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 GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE 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 --enable-cld enable -mcld by default for 32bit x86
1050 --disable-win32-registry
1051 disable lookup of installation paths in the
1052 Registry on Windows hosts
1053 --enable-win32-registry enable registry lookup (default)
1054 --enable-win32-registry=KEY
1055 use KEY instead of GCC version as the last portion
1057 --enable-shared[=PKGS]
1058 build shared libraries [default=yes]
1059 --enable-static[=PKGS]
1060 build static libraries [default=yes]
1061 --enable-fast-install[=PKGS]
1062 optimize for fast installation [default=yes]
1063 --disable-libtool-lock avoid locking (might break parallel builds)
1064 --enable-maintainer-mode
1065 enable make rules and dependencies not useful
1066 (and sometimes confusing) to the casual installer
1067 --enable-version-specific-runtime-libs
1068 specify that runtime libraries should be
1069 installed in a compiler-specific directory
1072 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1073 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1074 --with-build-libsubdir=DIR Directory where to find libraries for build system
1075 --with-local-prefix=DIR specifies directory to put local include
1076 --with-gxx-include-dir=DIR
1077 specifies directory to put g++ header files
1078 --with-cpp-install-dir=DIR
1079 install the user visible C preprocessor in DIR
1080 (relative to PREFIX) as well as PREFIX/bin
1081 --with-gnu-ld arrange to work with GNU ld.
1082 --with-ld arrange to use the specified ld (full pathname)
1083 --with-demangler-in-ld try to use demangler in GNU ld.
1084 --with-gnu-as arrange to work with GNU as
1085 --with-as arrange to use the specified as (full pathname)
1086 --with-stabs arrange to use stabs instead of host debug format
1087 --with-dwarf2 force the default debug format to be DWARF 2
1088 --with-build-sysroot=sysroot
1089 use sysroot as the system root during the build
1090 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1091 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1092 --with-bugurl=URL Direct users to URL to report a bug
1093 --with-gnu-ld assume the C compiler uses GNU ld default=no
1094 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1095 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1096 --with-system-libunwind use installed libunwind
1097 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1099 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1100 --with-long-double-128 Use
128-bit long double by default.
1101 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1103 --with-system-zlib use installed libz
1104 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1105 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
1106 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
1107 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
1109 Some influential environment variables
:
1110 CC C compiler
command
1111 CFLAGS C compiler flags
1112 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1113 nonstandard directory
<lib dir
>
1114 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1115 headers
in a nonstandard directory
<include dir
>
1117 GMPLIBS How to link GMP
1118 GMPINC How to
find GMP include files
1120 Use these variables to override the choices made by
`configure' or to help
1121 it to find libraries and programs with nonstandard names/locations.
1126 if test "$ac_init_help" = "recursive"; then
1127 # If there are subdirs, report their specific --help.
1129 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1130 test -d $ac_dir || continue
1133 if test "$ac_dir" != .; then
1134 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1135 # A "../" for each directory in $ac_dir_suffix.
1136 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1138 ac_dir_suffix= ac_top_builddir=
1142 .) # No --srcdir option. We are building in place.
1144 if test -z "$ac_top_builddir"; then
1147 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1149 [\\/]* | ?:[\\/]* ) # Absolute path.
1150 ac_srcdir=$srcdir$ac_dir_suffix;
1151 ac_top_srcdir=$srcdir ;;
1153 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1154 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1157 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1158 # the directories may not exist.
1160 .) ac_abs_builddir="$ac_dir";;
1163 .) ac_abs_builddir=`pwd`;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1165 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1168 case $ac_abs_builddir in
1169 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1171 case ${ac_top_builddir}. in
1172 .) ac_abs_top_builddir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1174 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1177 case $ac_abs_builddir in
1178 .) ac_abs_srcdir=$ac_srcdir;;
1181 .) ac_abs_srcdir=$ac_abs_builddir;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1183 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1186 case $ac_abs_builddir in
1187 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1189 case $ac_top_srcdir in
1190 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1191 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1192 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1197 # Check for guested configure; otherwise get Cygnus style configure.
1198 if test -f $ac_srcdir/configure.gnu; then
1200 $SHELL $ac_srcdir/configure.gnu --help=recursive
1201 elif test -f $ac_srcdir/configure; then
1203 $SHELL $ac_srcdir/configure --help=recursive
1204 elif test -f $ac_srcdir/configure.ac ||
1205 test -f $ac_srcdir/configure.in; then
1207 $ac_configure --help
1209 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1215 test -n "$ac_init_help" && exit 0
1216 if $ac_init_version; then
1219 Copyright (C) 2003 Free Software Foundation, Inc.
1220 This configure script is free software; the Free Software Foundation
1221 gives unlimited permission to copy, distribute and modify it.
1227 This file contains any messages produced by compilers while
1228 running configure, to aid debugging if configure makes a mistake.
1230 It was created by $as_me, which was
1231 generated by GNU Autoconf 2.59. Invocation command line was
1242 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1243 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1244 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1245 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1246 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1248 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1249 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1251 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1252 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1253 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1254 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1255 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1256 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1257 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1265 test -z "$as_dir" && as_dir=.
1266 echo "PATH: $as_dir"
1281 # Keep a trace of the command line.
1282 # Strip out --no-create and --no-recursion so they do not pile up.
1283 # Strip out --silent because we don't want to record it for future runs.
1284 # Also quote any args containing shell meta-characters.
1285 # Make two passes to allow for proper duplicate-argument suppression.
1290 ac_must_keep_next=false
1296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1304 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1306 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1307 if test $ac_must_keep_next = true; then
1308 ac_must_keep_next=false # Got value, back to normal.
1311 *=* | --config-cache | -C | -disable-* | --disable-* \
1312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1314 | -with-* | --with-* | -without-* | --without-* | --x)
1315 case "$ac_configure_args0 " in
1316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1319 -* ) ac_must_keep_next=true ;;
1322 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1323 # Get rid of the leading space.
1329 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1330 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1332 # When interrupted or exit'd, cleanup temporary files, and complete
1333 # config.log. We remove comments because anyway the quotes in there
1334 # would cause problems or look ugly.
1335 # WARNING: Be sure not to use single quotes in there, as some shells,
1336 # such as our DU 5.0 friend, will then `close
' the trap.
1337 trap 'exit_status
=$?
1338 # Save into config.log some information that might help in debugging.
1343 ## ---------------- ##
1344 ## Cache variables. ##
1345 ## ---------------- ##
1348 # The following way of writing the cache mishandles newlines in values,
1351 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1354 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1366 ## ----------------- ##
1367 ## Output variables. ##
1368 ## ----------------- ##
1371 for ac_var
in $ac_subst_vars
1373 eval ac_val
=$
`echo $ac_var`
1374 echo "$ac_var='"'"'$ac_val'"'"'"
1378 if test -n "$ac_subst_files"; then
1385 for ac_var
in $ac_subst_files
1387 eval ac_val
=$
`echo $ac_var`
1388 echo "$ac_var='"'"'$ac_val'"'"'"
1393 if test -s confdefs.h
; then
1400 sed "/^$/d" confdefs.h |
sort
1403 test "$ac_signal" != 0 &&
1404 echo "$as_me: caught signal $ac_signal"
1405 echo "$as_me: exit $exit_status"
1407 rm -f core
*.core
&&
1408 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1411 for ac_signal in 1 2 13 15; do
1412 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1416 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1417 rm -rf conftest* confdefs.h
1418 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1421 # Predefined preprocessor variables.
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_NAME "$PACKAGE_NAME"
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1438 cat >>confdefs.h <<_ACEOF
1439 #define PACKAGE_STRING "$PACKAGE_STRING"
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1448 # Let the site file select an alternate cache file if it wants to.
1449 # Prefer explicitly selected file to automatically selected ones.
1450 if test -z "$CONFIG_SITE"; then
1451 if test "x$prefix" != xNONE; then
1452 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1454 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1457 for ac_site_file in $CONFIG_SITE; do
1458 if test -r "$ac_site_file"; then
1459 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1460 echo "$as_me: loading site script $ac_site_file" >&6;}
1461 sed 's
/^
/|
/' "$ac_site_file" >&5
1466 if test -r "$cache_file"; then
1467 # Some versions of bash will fail to source /dev/null (special
1468 # files actually), so we avoid doing that.
1469 if test -f "$cache_file"; then
1470 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1471 echo "$as_me: loading cache $cache_file" >&6;}
1473 [\\/]* | ?:[\\/]* ) . $cache_file;;
1474 *) . ./$cache_file;;
1478 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1479 echo "$as_me: creating cache $cache_file" >&6;}
1483 # Check that the precious variables saved in the cache have kept the same
1485 ac_cache_corrupted=false
1486 for ac_var in `(set) 2>&1 |
1487 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1489 eval ac_new_set=\$ac_env_${ac_var}_set
1490 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1491 eval ac_new_val="\$ac_env_${ac_var}_value"
1492 case $ac_old_set,$ac_new_set in
1494 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1495 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1496 ac_cache_corrupted=: ;;
1498 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1500 ac_cache_corrupted=: ;;
1503 if test "x$ac_old_val" != "x$ac_new_val"; then
1504 # differences in whitespace do not lead to failure.
1505 ac_old_val_w=`echo x $ac_old_val`
1506 ac_new_val_w=`echo x $ac_new_val`
1507 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1508 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1509 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1510 ac_cache_corrupted=:
1512 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1513 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1514 eval $ac_var=\$ac_old_val
1516 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1517 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1518 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1519 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1522 # Pass precious variables to config.status.
1523 if test "$ac_new_set" = set; then
1525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1526 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1527 *) ac_arg=$ac_var=$ac_new_val ;;
1529 case " $ac_configure_args " in
1530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1531 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1535 if $ac_cache_corrupted; then
1536 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1537 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1538 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1539 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1540 { (exit 1); exit 1; }; }
1544 ac_cpp='$CPP $CPPFLAGS'
1545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1546 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1568 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1571 gcc_version=`cat $srcdir/BASE-VER`
1573 # Determine the host, build, and target systems
1575 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1576 if test -f $ac_dir/install-sh; then
1578 ac_install_sh="$ac_aux_dir/install-sh -c"
1580 elif test -f $ac_dir/install.sh; then
1582 ac_install_sh="$ac_aux_dir/install.sh -c"
1584 elif test -f $ac_dir/shtool; then
1586 ac_install_sh="$ac_aux_dir/shtool install -c"
1590 if test -z "$ac_aux_dir"; then
1591 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1592 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1593 { (exit 1); exit 1; }; }
1595 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1596 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1597 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1599 # Make sure we can run config.sub.
1600 $ac_config_sub sun4 >/dev/null 2>&1 ||
1601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1602 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1603 { (exit 1); exit 1; }; }
1605 echo "$as_me:$LINENO: checking build system type" >&5
1606 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1607 if test "${ac_cv_build+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 ac_cv_build_alias=$build_alias
1611 test -z "$ac_cv_build_alias" &&
1612 ac_cv_build_alias=`$ac_config_guess`
1613 test -z "$ac_cv_build_alias" &&
1614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1615 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1616 { (exit 1); exit 1; }; }
1617 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1624 echo "${ECHO_T}$ac_cv_build" >&6
1626 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1627 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1628 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1631 echo "$as_me:$LINENO: checking host system type" >&5
1632 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1633 if test "${ac_cv_host+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 ac_cv_host_alias=$host_alias
1637 test -z "$ac_cv_host_alias" &&
1638 ac_cv_host_alias=$ac_cv_build_alias
1639 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1641 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1642 { (exit 1); exit 1; }; }
1645 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1646 echo "${ECHO_T}$ac_cv_host" >&6
1648 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1649 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1650 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1653 echo "$as_me:$LINENO: checking target system type" >&5
1654 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1655 if test "${ac_cv_target+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 ac_cv_target_alias=$target_alias
1659 test "x$ac_cv_target_alias" = "x" &&
1660 ac_cv_target_alias=$ac_cv_host_alias
1661 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1662 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1663 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1664 { (exit 1); exit 1; }; }
1667 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1668 echo "${ECHO_T}$ac_cv_target" >&6
1669 target=$ac_cv_target
1670 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1671 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1672 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1675 # The aliases save the names the user supplied, while $host etc.
1676 # will get canonicalized.
1677 test -n "$target_alias" &&
1678 test "$program_prefix$program_suffix$program_transform_name" = \
1680 program_prefix=${target_alias}-
1682 # Determine the noncanonical target name, for directory use.
1683 case ${build_alias} in
1684 "") build_noncanonical=${build} ;;
1685 *) build_noncanonical=${build_alias} ;;
1688 case ${host_alias} in
1689 "") host_noncanonical=${build_noncanonical} ;;
1690 *) host_noncanonical=${host_alias} ;;
1693 case ${target_alias} in
1694 "") target_noncanonical=${host_noncanonical} ;;
1695 *) target_noncanonical=${target_alias} ;;
1701 # Determine the target- and build-specific subdirectories
1703 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1704 # have matching libraries, they should use host libraries: Makefile.tpl
1705 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1706 # However, they still use the build modules, because the corresponding
1707 # host modules (e.g. bison) are only built for the host when bootstrap
1709 # - build_subdir is where we find build modules, and never changes.
1710 # - build_libsubdir is where we find build libraries, and can be overridden.
1712 # Prefix 'build-
' so this never conflicts with target_subdir.
1713 build_subdir="build-${build_noncanonical}"
1715 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1716 if test "${with_build_libsubdir+set}" = set; then
1717 withval="$with_build_libsubdir"
1718 build_libsubdir="$withval"
1720 build_libsubdir="$build_subdir"
1722 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1723 if ( test $srcdir = . && test -d gcc ) \
1724 || test -d $srcdir/../host-${host_noncanonical}; then
1725 host_subdir="host-${host_noncanonical}"
1730 target_subdir=${target_noncanonical}
1733 # Set program_transform_name
1734 test "$program_prefix" != NONE &&
1735 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1736 # Use a double $ so make ignores it.
1737 test "$program_suffix" != NONE &&
1738 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1739 # Double any \ or $. echo might interpret backslashes.
1740 # By default was `s,x,x', remove it
if useless.
1741 cat <<\_ACEOF
>conftest.
sed
1742 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1744 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1748 # Check for bogus environment variables.
1749 # Test if LIBRARY_PATH contains the notation for the current directory
1750 # since this would lead to problems installing/building glibc.
1751 # LIBRARY_PATH contains the current directory if one of the following
1753 # - one of the terminals (":" and ";") is the first or last sign
1754 # - two terminals occur directly after each other
1755 # - the path contains an element with a dot in it
1756 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1757 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1758 case ${LIBRARY_PATH} in
1759 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1760 library_path_setting
="contains current directory"
1763 library_path_setting
="ok"
1766 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1767 echo "${ECHO_T}$library_path_setting" >&6
1768 if test "$library_path_setting" != "ok"; then
1769 { { echo "$as_me:$LINENO: error:
1770 *** LIBRARY_PATH shouldn't contain the current directory when
1771 *** building gcc. Please change the environment variable
1772 *** and run configure again." >&5
1773 echo "$as_me: error:
1774 *** LIBRARY_PATH shouldn't contain the current directory when
1775 *** building gcc. Please change the environment variable
1776 *** and run configure again." >&2;}
1777 { (exit 1); exit 1; }; }
1780 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1781 # since this would lead to problems installing/building glibc.
1782 # GCC_EXEC_PREFIX contains the current directory if one of the following
1784 # - one of the terminals (":" and ";") is the first or last sign
1785 # - two terminals occur directly after each other
1786 # - the path contains an element with a dot in it
1787 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1788 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1789 case ${GCC_EXEC_PREFIX} in
1790 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1791 gcc_exec_prefix_setting
="contains current directory"
1794 gcc_exec_prefix_setting
="ok"
1797 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1798 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1799 if test "$gcc_exec_prefix_setting" != "ok"; then
1800 { { echo "$as_me:$LINENO: error:
1801 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1802 *** building gcc. Please change the environment variable
1803 *** and run configure again." >&5
1804 echo "$as_me: error:
1805 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1806 *** building gcc. Please change the environment variable
1807 *** and run configure again." >&2;}
1808 { (exit 1); exit 1; }; }
1815 # Specify the local prefix
1818 # Check whether --with-local-prefix or --without-local-prefix was given.
1819 if test "${with_local_prefix+set}" = set; then
1820 withval
="$with_local_prefix"
1821 case "${withval}" in
1822 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1823 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1824 { (exit 1); exit 1; }; } ;;
1826 *) local_prefix
=$with_local_prefix ;;
1830 # Default local prefix if it is empty
1831 if test x
$local_prefix = x
; then
1832 local_prefix
=/usr
/local
1835 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1836 # passed in by the toplevel make and thus we'd get different behavior
1837 # depending on where we built the sources.
1838 gcc_gxx_include_dir
=
1839 # Specify the g++ header file directory
1841 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1842 if test "${with_gxx_include_dir+set}" = set; then
1843 withval
="$with_gxx_include_dir"
1844 case "${withval}" in
1845 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1846 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1847 { (exit 1); exit 1; }; } ;;
1849 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1853 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1854 if test x
${gcc_gxx_include_dir} = x
; then
1855 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1856 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1858 libstdcxx_incdir
='include/c++/$(version)'
1859 if test x
$host != x
$target; then
1860 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1862 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1867 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1868 if test "${with_cpp_install_dir+set}" = set; then
1869 withval
="$with_cpp_install_dir"
1870 if test x
$withval = xyes
; then
1871 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1872 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1873 { (exit 1); exit 1; }; }
1874 elif test x
$withval != xno
; then
1875 cpp_install_dir
=$withval
1879 # We would like to our source tree to be readonly. However when releases or
1880 # pre-releases are generated, the flex/bison generated files as well as the
1881 # various formats of manuals need to be included along with the rest of the
1882 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1885 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1886 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1887 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1888 if test "${enable_generated_files_in_srcdir+set}" = set; then
1889 enableval
="$enable_generated_files_in_srcdir"
1890 generated_files_in_srcdir
=$enableval
1892 generated_files_in_srcdir
=no
1895 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1896 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1898 if test "$generated_files_in_srcdir" = "yes"; then
1905 # -------------------
1906 # Find default linker
1907 # -------------------
1911 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1912 if test "${with_gnu_ld+set}" = set; then
1913 withval
="$with_gnu_ld"
1914 gnu_ld_flag
="$with_gnu_ld"
1919 # With pre-defined ld
1921 # Check whether --with-ld or --without-ld was given.
1922 if test "${with_ld+set}" = set; then
1924 DEFAULT_LINKER
="$with_ld"
1926 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1927 if test ! -x "$DEFAULT_LINKER"; then
1928 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1929 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1930 { (exit 1); exit 1; }; }
1931 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1935 cat >>confdefs.h
<<_ACEOF
1936 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1941 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1943 cat >>confdefs.h
<<_ACEOF
1944 #define HAVE_GNU_LD $gnu_ld
1948 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1949 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1950 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1951 if test x
"$gnu_ld_flag" = x
"no"; then
1952 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1953 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1955 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1956 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1963 # With demangler in GNU ld
1965 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1966 if test "${with_demangler_in_ld+set}" = set; then
1967 withval
="$with_demangler_in_ld"
1968 demangler_in_ld
="$with_demangler_in_ld"
1973 # ----------------------
1974 # Find default assembler
1975 # ----------------------
1979 # Check whether --with-gnu-as or --without-gnu-as was given.
1980 if test "${with_gnu_as+set}" = set; then
1981 withval
="$with_gnu_as"
1982 gas_flag
="$with_gnu_as"
1988 # Check whether --with-as or --without-as was given.
1989 if test "${with_as+set}" = set; then
1991 DEFAULT_ASSEMBLER
="$with_as"
1993 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1994 if test ! -x "$DEFAULT_ASSEMBLER"; then
1995 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1996 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1997 { (exit 1); exit 1; }; }
1998 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2002 cat >>confdefs.h
<<_ACEOF
2003 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2008 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2010 cat >>confdefs.h
<<_ACEOF
2011 #define HAVE_GNU_AS $gnu_as
2015 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2016 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2017 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2018 if test x
"$gas_flag" = x
"no"; then
2019 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2020 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2022 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2023 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2034 # If a non-executable a.out is present (e.g. created by GNU as above even if
2035 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2036 # file, even when creating an executable, so an execution test fails.
2037 # Remove possible default executable files to avoid this.
2039 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2040 # Autoconf includes it.
2041 rm -f a.out a.exe b.out
2043 # Find the native compiler
2045 ac_cpp
='$CPP $CPPFLAGS'
2046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2051 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC
="$CC" # Let the user override the test.
2060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir
=.
2065 for ac_exec_ext
in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 if test -n "$CC"; then
2078 echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2086 if test -z "$ac_cv_prog_CC"; then
2088 # Extract the first word of "gcc", so it can be a program name with args.
2089 set dummy gcc
; ac_word
=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir
=.
2103 for ac_exec_ext
in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_ac_ct_CC
="gcc"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2128 if test -z "$CC"; then
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC
="$CC" # Let the user override the test.
2140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir
=.
2145 for ac_exec_ext
in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 if test -n "$CC"; then
2158 echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2166 if test -z "$ac_cv_prog_CC"; then
2168 # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc
; ac_word
=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$ac_ct_CC"; then
2176 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir
=.
2183 for ac_exec_ext
in '' $ac_executable_extensions; do
2184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185 ac_cv_prog_ac_ct_CC
="cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197 echo "${ECHO_T}$ac_ct_CC" >&6
2199 echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2209 if test -z "$CC"; then
2210 # Extract the first word of "cc", so it can be a program name with args.
2211 set dummy cc
; ac_word
=$2
2212 echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test -n "$CC"; then
2218 ac_cv_prog_CC
="$CC" # Let the user override the test.
2221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir
=.
2226 for ac_exec_ext
in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2229 ac_prog_rejected
=yes
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 if test $ac_prog_rejected = yes; then
2240 # We found a bogon in the path, so make sure we never use it.
2241 set dummy
$ac_cv_prog_CC
2243 if test $# != 0; then
2244 # We chose a different compiler from the bogus one.
2245 # However, it has the same basename, so the bogon will be chosen
2246 # first if we set CC to just the basename; use the full file name.
2248 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2254 if test -n "$CC"; then
2255 echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6
2258 echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2263 if test -z "$CC"; then
2264 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2268 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC
="$CC" # Let the user override the test.
2277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir
=.
2282 for ac_exec_ext
in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test -n "$CC"; then
2295 echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6
2298 echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2302 test -n "$CC" && break
2305 if test -z "$CC"; then
2309 # Extract the first word of "$ac_prog", so it can be a program name with args.
2310 set dummy
$ac_prog; ac_word
=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir
=.
2324 for ac_exec_ext
in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_ac_ct_CC
="$ac_prog"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6
2340 echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2344 test -n "$ac_ct_CC" && break
2353 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: no acceptable C compiler found in \$PATH
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2359 # Provide some information about the compiler.
2360 echo "$as_me:$LINENO:" \
2361 "checking for C compiler version" >&5
2362 ac_compiler
=`set X $ac_compile; echo $2`
2363 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2364 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2369 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2374 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }
2379 cat >conftest.
$ac_ext <<_ACEOF
2382 cat confdefs.h
>>conftest.
$ac_ext
2383 cat >>conftest.
$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2394 ac_clean_files_save
=$ac_clean_files
2395 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2396 # Try to create an executable without -o first, disregard a.out.
2397 # It will help us diagnose broken compilers, and finding out an intuition
2399 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2400 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2401 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2402 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2403 (eval $ac_link_default) 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; then
2407 # Find the output, starting from the most likely. This scheme is
2408 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2411 # Be careful to initialize this variable, since it used to be cached.
2412 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2414 # b.out is created by i960 compilers.
2415 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2417 test -f "$ac_file" ||
continue
2419 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2422 # This is the source file.
2425 # We found the default executable, but exeext='' is most
2429 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2430 # FIXME: I believe we export ac_cv_exeext for Libtool,
2431 # but it would be cool to find out if it's true. Does anybody
2432 # maintain Libtool? --akim.
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.
$ac_ext >&5
2443 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: C compiler cannot create executables
2446 See \`config.log' for more details." >&2;}
2447 { (exit 77); exit 77; }; }
2450 ac_exeext
=$ac_cv_exeext
2451 echo "$as_me:$LINENO: result: $ac_file" >&5
2452 echo "${ECHO_T}$ac_file" >&6
2454 # Check the compiler produces executables we can run. If not, either
2455 # the compiler is broken, or we cross compile.
2456 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2457 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2458 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459 # If not cross compiling, check that we can run a simple program.
2460 if test "$cross_compiling" != yes; then
2461 if { ac_try
='./$ac_file'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 if test "$cross_compiling" = maybe
; then
2472 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \`config.log' for more details." >&5
2475 echo "$as_me: error: cannot run C compiled programs.
2476 If you meant to cross compile, use \`--host'.
2477 See \`config.log' for more details." >&2;}
2478 { (exit 1); exit 1; }; }
2482 echo "$as_me:$LINENO: result: yes" >&5
2483 echo "${ECHO_T}yes" >&6
2485 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2486 ac_clean_files
=$ac_clean_files_save
2487 # Check the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2490 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2491 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2492 echo "${ECHO_T}$cross_compiling" >&6
2494 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2495 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2497 (eval $ac_link) 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; then
2501 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2502 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2503 # work properly (i.e., refer to `conftest.exe'), while it won't with
2505 for ac_file
in conftest.exe conftest conftest.
*; do
2506 test -f "$ac_file" ||
continue
2508 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2509 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2517 See \`config.log' for more details." >&5
2518 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2519 See \`config.log' for more details." >&2;}
2520 { (exit 1); exit 1; }; }
2523 rm -f conftest
$ac_cv_exeext
2524 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2525 echo "${ECHO_T}$ac_cv_exeext" >&6
2527 rm -f conftest.
$ac_ext
2528 EXEEXT
=$ac_cv_exeext
2530 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2531 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2532 if test "${ac_cv_objext+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 cat >conftest.
$ac_ext <<_ACEOF
2538 cat confdefs.h
>>conftest.
$ac_ext
2539 cat >>conftest.
$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2550 rm -f conftest.o conftest.obj
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; then
2556 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2558 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2559 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.
$ac_ext >&5
2567 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }
2574 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2576 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2577 echo "${ECHO_T}$ac_cv_objext" >&6
2578 OBJEXT
=$ac_cv_objext
2580 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2581 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2582 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 cat >conftest.
$ac_ext <<_ACEOF
2588 cat confdefs.h
>>conftest.
$ac_ext
2589 cat >>conftest.
$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2603 rm -f conftest.
$ac_objext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605 (eval $ac_compile) 2>conftest.er1
2607 grep -v '^ *+' conftest.er1
>conftest.err
2609 cat conftest.err
>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try
='test -z "$ac_c_werror_flag"
2613 || test ! -s conftest.err'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try
='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.
$ac_ext >&5
2632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2633 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2636 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2637 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2638 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2639 ac_test_CFLAGS
=${CFLAGS+set}
2640 ac_save_CFLAGS
=$CFLAGS
2642 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2643 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cc_g+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 cat >conftest.
$ac_ext <<_ACEOF
2650 cat confdefs.h
>>conftest.
$ac_ext
2651 cat >>conftest.
$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2662 rm -f conftest.
$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2666 grep -v '^ *+' conftest.er1
>conftest.err
2668 cat conftest.err
>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try
='test -z "$ac_c_werror_flag"
2672 || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try
='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.
$ac_ext >&5
2691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2693 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2695 if test "$ac_test_CFLAGS" = set; then
2696 CFLAGS
=$ac_save_CFLAGS
2697 elif test $ac_cv_prog_cc_g = yes; then
2698 if test "$GCC" = yes; then
2704 if test "$GCC" = yes; then
2710 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2711 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2712 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 ac_cv_prog_cc_stdc
=no
2717 cat >conftest.
$ac_ext <<_ACEOF
2720 cat confdefs.h
>>conftest.
$ac_ext
2721 cat >>conftest.
$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2725 #include <sys/types.h>
2726 #include <sys/stat.h>
2727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2728 struct buf { int x; };
2729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2730 static char *e (p, i)
2736 static char *f (char * (*g) (char **, int), char **p, ...)
2741 s = g (p, va_arg (v,int));
2746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2747 function prototypes and stuff, but not '\xHH' hex character constants.
2748 These don't provoke an error unfortunately, instead are silently treated
2749 as 'x'. The following induces an error, until -std1 is added to get
2750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2751 array size at least. It's necessary to write '\x00'==0 to get something
2752 that's true only with -std1. */
2753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2769 # Don't try gcc -ansi; that turns off useful extensions and
2770 # breaks some systems' header files.
2771 # AIX -qlanglvl=ansi
2772 # Ultrix and OSF/1 -std1
2773 # HP-UX 10.20 and later -Ae
2774 # HP-UX older versions -Aa -D_HPUX_SOURCE
2775 # SVR4 -Xc -D__EXTENSIONS__
2776 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2778 CC
="$ac_save_CC $ac_arg"
2779 rm -f conftest.
$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1
>conftest.err
2785 cat conftest.err
>&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try
='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try
='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 ac_cv_prog_cc_stdc
=$ac_arg
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.
$ac_ext >&5
2808 rm -f conftest.err conftest.
$ac_objext
2810 rm -f conftest.
$ac_ext conftest.
$ac_objext
2815 case "x$ac_cv_prog_cc_stdc" in
2817 echo "$as_me:$LINENO: result: none needed" >&5
2818 echo "${ECHO_T}none needed" >&6 ;;
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2822 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2825 # Some people use a C++ compiler to compile C. Since we use `exit',
2826 # in C++ we need to declare it. In case someone uses the same compiler
2827 # for both compiling C and C++ we need to have the C++ compiler decide
2828 # the declaration of exit, since it's the most demanding environment.
2829 cat >conftest.
$ac_ext <<_ACEOF
2834 rm -f conftest.
$ac_objext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836 (eval $ac_compile) 2>conftest.er1
2838 grep -v '^ *+' conftest.er1
>conftest.err
2840 cat conftest.err
>&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try
='test -z "$ac_c_werror_flag"
2844 || test ! -s conftest.err'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try
='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 for ac_declaration
in \
2858 'extern "C" void std::exit (int) throw (); using std::exit;' \
2859 'extern "C" void std::exit (int); using std::exit;' \
2860 'extern "C" void exit (int) throw ();' \
2861 'extern "C" void exit (int);' \
2864 cat >conftest.
$ac_ext <<_ACEOF
2867 cat confdefs.h
>>conftest.
$ac_ext
2868 cat >>conftest.
$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2880 rm -f conftest.
$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>conftest.er1
2884 grep -v '^ *+' conftest.er1
>conftest.err
2886 cat conftest.err
>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try
='test -z "$ac_c_werror_flag"
2890 || test ! -s conftest.err'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try
='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.
$ac_ext >&5
2909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2910 cat >conftest.
$ac_ext <<_ACEOF
2913 cat confdefs.h
>>conftest.
$ac_ext
2914 cat >>conftest.
$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2925 rm -f conftest.
$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2929 grep -v '^ *+' conftest.er1
>conftest.err
2931 cat conftest.err
>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try
='test -z "$ac_c_werror_flag"
2935 || test ! -s conftest.err'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; } &&
2941 { ac_try
='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.
$ac_ext >&5
2953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2956 if test -n "$ac_declaration"; then
2957 echo '#ifdef __cplusplus' >>confdefs.h
2958 echo $ac_declaration >>confdefs.h
2959 echo '#endif' >>confdefs.h
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.
$ac_ext >&5
2967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2969 ac_cpp
='$CPP $CPPFLAGS'
2970 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2974 if test "x$CC" != xcc
; then
2975 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2976 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2978 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2979 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2981 set dummy
$CC; ac_cc
=`echo $2 |
2982 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2983 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 cat >conftest.
$ac_ext <<_ACEOF
2989 cat confdefs.h
>>conftest.
$ac_ext
2990 cat >>conftest.
$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
3001 # Make sure it works both with $CC and with simple cc.
3002 # We do the test twice because some compilers refuse to overwrite an
3003 # existing .o file with -o, though they will create one.
3004 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3005 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } &&
3010 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); };
3016 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3017 if test "x$CC" != xcc
; then
3018 # Test first that cc exists at all.
3019 if { ac_try
='cc -c conftest.$ac_ext >&5'
3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; }; then
3025 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3026 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); };
3040 # cc exists but doesn't like -o.
3041 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3046 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3051 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3052 echo "$as_me:$LINENO: result: yes" >&5
3053 echo "${ECHO_T}yes" >&6
3055 echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6
3058 cat >>confdefs.h
<<\_ACEOF
3059 #define NO_MINUS_C_MINUS_O 1
3064 # expand $ac_aux_dir to an absolute path
3065 am_aux_dir
=`cd $ac_aux_dir && pwd`
3067 # FIXME: we rely on the cache variable name because
3068 # there is no other way.
3070 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3071 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3072 # Losing compiler, so override with the script.
3073 # FIXME: It is wrong to rewrite CC.
3074 # But if we don't then we get into trouble of one sort or another.
3075 # A longer-term fix would be to have automake use am__CC in this case,
3076 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3077 CC
="$am_aux_dir/compile $CC"
3083 if test -n "$ac_tool_prefix"; then
3084 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3085 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3086 echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 if test -n "$GNATBIND"; then
3092 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir
=.
3099 for ac_exec_ext
in '' $ac_executable_extensions; do
3100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 GNATBIND
=$ac_cv_prog_GNATBIND
3111 if test -n "$GNATBIND"; then
3112 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3113 echo "${ECHO_T}$GNATBIND" >&6
3115 echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6
3120 if test -z "$ac_cv_prog_GNATBIND"; then
3121 ac_ct_GNATBIND
=$GNATBIND
3122 # Extract the first word of "gnatbind", so it can be a program name with args.
3123 set dummy gnatbind
; ac_word
=$2
3124 echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 if test -n "$ac_ct_GNATBIND"; then
3130 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir
=.
3137 for ac_exec_ext
in '' $ac_executable_extensions; do
3138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3149 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3150 if test -n "$ac_ct_GNATBIND"; then
3151 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3152 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3158 GNATBIND
=$ac_ct_GNATBIND
3160 GNATBIND
="$ac_cv_prog_GNATBIND"
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3165 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if test -n "$GNATMAKE"; then
3172 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
3174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir
=.
3179 for ac_exec_ext
in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 GNATMAKE
=$ac_cv_prog_GNATMAKE
3191 if test -n "$GNATMAKE"; then
3192 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3193 echo "${ECHO_T}$GNATMAKE" >&6
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3200 if test -z "$ac_cv_prog_GNATMAKE"; then
3201 ac_ct_GNATMAKE
=$GNATMAKE
3202 # Extract the first word of "gnatmake", so it can be a program name with args.
3203 set dummy gnatmake
; ac_word
=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 if test -n "$ac_ct_GNATMAKE"; then
3210 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
3212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir
=.
3217 for ac_exec_ext
in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE
="no"
3229 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
3230 if test -n "$ac_ct_GNATMAKE"; then
3231 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3232 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3234 echo "$as_me:$LINENO: result: no" >&5
3235 echo "${ECHO_T}no" >&6
3238 GNATMAKE
=$ac_ct_GNATMAKE
3240 GNATMAKE
="$ac_cv_prog_GNATMAKE"
3243 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3244 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3245 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 cat >conftest.adb
<<EOF
3249 procedure conftest is begin null; end conftest;
3251 acx_cv_cc_gcc_supports_ada
=no
3252 # There is a bug in old released versions of GCC which causes the
3253 # driver to exit successfully when the appropriate language module
3254 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3255 # Therefore we must check for the error message as well as an
3256 # unsuccessful exit.
3257 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3258 # given a .adb file, but produce no object file. So we must check
3259 # if an object file was really produced to guard against this.
3260 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3261 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
3262 acx_cv_cc_gcc_supports_ada
=yes
3266 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3267 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3269 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
3276 # autoconf is lame and doesn't give us any substitution variable for this.
3277 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3278 NO_MINUS_C_MINUS_O
=yes
3280 OUTPUT_OPTION
='-o $@'
3285 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3286 # optimizations to be activated explicitly by the toplevel.
3288 */prev-gcc
/xgcc
*) ;;
3289 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3293 # -------------------------
3294 # Check C compiler features
3295 # -------------------------
3299 ac_cpp
='$CPP $CPPFLAGS'
3300 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3303 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3304 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3305 # On Suns, sometimes $CPP names a directory.
3306 if test -n "$CPP" && test -d "$CPP"; then
3309 if test -z "$CPP"; then
3310 if test "${ac_cv_prog_CPP+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 # Double quotes because CPP needs to be expanded
3314 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3317 for ac_c_preproc_warn_flag
in '' yes
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat >conftest.
$ac_ext <<_ACEOF
3328 cat confdefs.h
>>conftest.
$ac_ext
3329 cat >>conftest.
$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3332 # include <limits.h>
3334 # include <assert.h>
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3341 grep -v '^ *+' conftest.er1
>conftest.err
3343 cat conftest.err
>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev
/null
; then
3346 if test -s conftest.err
; then
3347 ac_cpp_err
=$ac_c_preproc_warn_flag
3348 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3355 if test -z "$ac_cpp_err"; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.
$ac_ext >&5
3361 # Broken: fails on valid input.
3364 rm -f conftest.err conftest.
$ac_ext
3366 # OK, works on sane cases. Now check whether non-existent headers
3367 # can be detected and how.
3368 cat >conftest.
$ac_ext <<_ACEOF
3371 cat confdefs.h
>>conftest.
$ac_ext
3372 cat >>conftest.
$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
3384 if test -s conftest.err
; then
3385 ac_cpp_err
=$ac_c_preproc_warn_flag
3386 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3393 if test -z "$ac_cpp_err"; then
3394 # Broken: success on invalid input.
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.
$ac_ext >&5
3400 # Passes both tests.
3404 rm -f conftest.err conftest.
$ac_ext
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.
$ac_ext
3409 if $ac_preproc_ok; then
3421 echo "$as_me:$LINENO: result: $CPP" >&5
3422 echo "${ECHO_T}$CPP" >&6
3424 for ac_c_preproc_warn_flag
in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.
$ac_ext <<_ACEOF
3435 cat confdefs.h
>>conftest.
$ac_ext
3436 cat >>conftest.
$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3439 # include <limits.h>
3441 # include <assert.h>
3445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3446 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3448 grep -v '^ *+' conftest.er1
>conftest.err
3450 cat conftest.err
>&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev
/null
; then
3453 if test -s conftest.err
; then
3454 ac_cpp_err
=$ac_c_preproc_warn_flag
3455 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3462 if test -z "$ac_cpp_err"; then
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.
$ac_ext >&5
3468 # Broken: fails on valid input.
3471 rm -f conftest.err conftest.
$ac_ext
3473 # OK, works on sane cases. Now check whether non-existent headers
3474 # can be detected and how.
3475 cat >conftest.
$ac_ext <<_ACEOF
3478 cat confdefs.h
>>conftest.
$ac_ext
3479 cat >>conftest.
$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3486 grep -v '^ *+' conftest.er1
>conftest.err
3488 cat conftest.err
>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev
/null
; then
3491 if test -s conftest.err
; then
3492 ac_cpp_err
=$ac_c_preproc_warn_flag
3493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3500 if test -z "$ac_cpp_err"; then
3501 # Broken: success on invalid input.
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.
$ac_ext >&5
3507 # Passes both tests.
3511 rm -f conftest.err conftest.
$ac_ext
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.
$ac_ext
3516 if $ac_preproc_ok; then
3519 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&5
3521 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3522 See \`config.log' for more details." >&2;}
3523 { (exit 1); exit 1; }; }
3527 ac_cpp
='$CPP $CPPFLAGS'
3528 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3533 echo "$as_me:$LINENO: checking for egrep" >&5
3534 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3535 if test "${ac_cv_prog_egrep+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3539 then ac_cv_prog_egrep
='grep -E'
3540 else ac_cv_prog_egrep
='egrep'
3543 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3544 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3545 EGREP
=$ac_cv_prog_egrep
3548 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3549 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3550 if test "${ac_cv_header_stdc+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 cat >conftest.
$ac_ext <<_ACEOF
3556 cat confdefs.h
>>conftest.
$ac_ext
3557 cat >>conftest.
$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3572 rm -f conftest.
$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3576 grep -v '^ *+' conftest.er1
>conftest.err
3578 cat conftest.err
>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try
='test -z "$ac_c_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try
='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_header_stdc
=yes
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.
$ac_ext >&5
3599 ac_cv_header_stdc
=no
3601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3603 if test $ac_cv_header_stdc = yes; then
3604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3605 cat >conftest.
$ac_ext <<_ACEOF
3608 cat confdefs.h
>>conftest.
$ac_ext
3609 cat >>conftest.
$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 $EGREP "memchr" >/dev
/null
2>&1; then
3618 ac_cv_header_stdc
=no
3624 if test $ac_cv_header_stdc = yes; then
3625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3626 cat >conftest.
$ac_ext <<_ACEOF
3629 cat confdefs.h
>>conftest.
$ac_ext
3630 cat >>conftest.
$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 $EGREP "free" >/dev
/null
2>&1; then
3639 ac_cv_header_stdc
=no
3645 if test $ac_cv_header_stdc = yes; then
3646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3647 if test "$cross_compiling" = yes; then
3650 cat >conftest.
$ac_ext <<_ACEOF
3653 cat confdefs.h
>>conftest.
$ac_ext
3654 cat >>conftest.
$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3657 #if ((' ' & 0x0FF) == 0x020)
3658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3661 # define ISLOWER(c) \
3662 (('a' <= (c) && (c) <= 'i') \
3663 || ('j' <= (c) && (c) <= 'r') \
3664 || ('s' <= (c) && (c) <= 'z'))
3665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3673 for (i = 0; i < 256; i++)
3674 if (XOR (islower (i), ISLOWER (i))
3675 || toupper (i) != TOUPPER (i))
3680 rm -f conftest
$ac_exeext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3682 (eval $ac_link) 2>&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3693 echo "$as_me: program exited with status $ac_status" >&5
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.
$ac_ext >&5
3698 ac_cv_header_stdc
=no
3700 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3704 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3705 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3706 if test $ac_cv_header_stdc = yes; then
3708 cat >>confdefs.h
<<\_ACEOF
3709 #define STDC_HEADERS 1
3714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3724 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3725 inttypes.h stdint.h unistd.h
3727 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3728 echo "$as_me:$LINENO: checking for $ac_header" >&5
3729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 cat >conftest.
$ac_ext <<_ACEOF
3736 cat confdefs.h
>>conftest.
$ac_ext
3737 cat >>conftest.
$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 $ac_includes_default
3741 #include <$ac_header>
3743 rm -f conftest.
$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3747 grep -v '^ *+' conftest.er1
>conftest.err
3749 cat conftest.err
>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try
='test -z "$ac_c_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try
='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 eval "$as_ac_Header=yes"
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.
$ac_ext >&5
3770 eval "$as_ac_Header=no"
3772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3777 cat >>confdefs.h
<<_ACEOF
3778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3787 if test "${ac_cv_header_minix_config_h+set}" = set; then
3788 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3789 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3790 if test "${ac_cv_header_minix_config_h+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3794 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3796 # Is the header compilable?
3797 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3798 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3799 cat >conftest.
$ac_ext <<_ACEOF
3802 cat confdefs.h
>>conftest.
$ac_ext
3803 cat >>conftest.
$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 $ac_includes_default
3806 #include <minix/config.h>
3808 rm -f conftest.
$ac_objext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>conftest.er1
3812 grep -v '^ *+' conftest.er1
>conftest.err
3814 cat conftest.err
>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try
='test -z "$ac_c_werror_flag"
3818 || test ! -s conftest.err'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try
='test -s conftest.$ac_objext'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then
3830 ac_header_compiler
=yes
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.
$ac_ext >&5
3835 ac_header_compiler
=no
3837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3839 echo "${ECHO_T}$ac_header_compiler" >&6
3841 # Is the header present?
3842 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3843 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3844 cat >conftest.
$ac_ext <<_ACEOF
3847 cat confdefs.h
>>conftest.
$ac_ext
3848 cat >>conftest.
$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #include <minix/config.h>
3852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3853 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3855 grep -v '^ *+' conftest.er1
>conftest.err
3857 cat conftest.err
>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } >/dev
/null
; then
3860 if test -s conftest.err
; then
3861 ac_cpp_err
=$ac_c_preproc_warn_flag
3862 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3869 if test -z "$ac_cpp_err"; then
3870 ac_header_preproc
=yes
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3875 ac_header_preproc
=no
3877 rm -f conftest.err conftest.
$ac_ext
3878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3879 echo "${ECHO_T}$ac_header_preproc" >&6
3881 # So? What about this header?
3882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3884 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3885 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3886 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3887 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3888 ac_header_preproc
=yes
3891 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3892 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3893 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3894 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3895 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3896 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3897 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3898 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3900 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3902 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3905 ## ------------------------------------------ ##
3906 ## Report this to the AC_PACKAGE_NAME lists. ##
3907 ## ------------------------------------------ ##
3910 sed "s/^/$as_me: WARNING: /" >&2
3913 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3914 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3915 if test "${ac_cv_header_minix_config_h+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_cv_header_minix_config_h
=$ac_header_preproc
3920 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3921 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3924 if test $ac_cv_header_minix_config_h = yes; then
3931 if test "$MINIX" = yes; then
3933 cat >>confdefs.h
<<\_ACEOF
3934 #define _POSIX_SOURCE 1
3938 cat >>confdefs.h
<<\_ACEOF
3939 #define _POSIX_1_SOURCE 2
3943 cat >>confdefs.h
<<\_ACEOF
3951 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3952 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3953 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 cat >conftest.
$ac_ext <<_ACEOF
3959 cat confdefs.h
>>conftest.
$ac_ext
3960 cat >>conftest.
$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3963 # define __EXTENSIONS__ 1
3964 $ac_includes_default
3973 rm -f conftest.
$ac_objext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>conftest.er1
3977 grep -v '^ *+' conftest.er1
>conftest.err
3979 cat conftest.err
>&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } &&
3982 { ac_try
='test -z "$ac_c_werror_flag"
3983 || test ! -s conftest.err'
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; } &&
3989 { ac_try
='test -s conftest.$ac_objext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_safe_to_define___extensions__
=yes
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.
$ac_ext >&5
4000 ac_cv_safe_to_define___extensions__
=no
4002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4004 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4005 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4006 test $ac_cv_safe_to_define___extensions__ = yes &&
4007 cat >>confdefs.h
<<\_ACEOF
4008 #define __EXTENSIONS__ 1
4011 cat >>confdefs.h
<<\_ACEOF
4012 #define _ALL_SOURCE 1
4015 cat >>confdefs.h
<<\_ACEOF
4016 #define _GNU_SOURCE 1
4019 cat >>confdefs.h
<<\_ACEOF
4020 #define _POSIX_PTHREAD_SEMANTICS 1
4023 cat >>confdefs.h
<<\_ACEOF
4024 #define _TANDEM_SOURCE 1
4029 ac_cpp
='$CPP $CPPFLAGS'
4030 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4033 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4034 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4035 # On Suns, sometimes $CPP names a directory.
4036 if test -n "$CPP" && test -d "$CPP"; then
4039 if test -z "$CPP"; then
4040 if test "${ac_cv_prog_CPP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 # Double quotes because CPP needs to be expanded
4044 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4047 for ac_c_preproc_warn_flag
in '' yes
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat >conftest.
$ac_ext <<_ACEOF
4058 cat confdefs.h
>>conftest.
$ac_ext
4059 cat >>conftest.
$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4062 # include <limits.h>
4064 # include <assert.h>
4068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1
>conftest.err
4073 cat conftest.err
>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev
/null
; then
4076 if test -s conftest.err
; then
4077 ac_cpp_err
=$ac_c_preproc_warn_flag
4078 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4085 if test -z "$ac_cpp_err"; then
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.
$ac_ext >&5
4091 # Broken: fails on valid input.
4094 rm -f conftest.err conftest.
$ac_ext
4096 # OK, works on sane cases. Now check whether non-existent headers
4097 # can be detected and how.
4098 cat >conftest.
$ac_ext <<_ACEOF
4101 cat confdefs.h
>>conftest.
$ac_ext
4102 cat >>conftest.
$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <ac_nonexistent.h>
4106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4107 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4109 grep -v '^ *+' conftest.er1
>conftest.err
4111 cat conftest.err
>&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } >/dev
/null
; then
4114 if test -s conftest.err
; then
4115 ac_cpp_err
=$ac_c_preproc_warn_flag
4116 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4123 if test -z "$ac_cpp_err"; then
4124 # Broken: success on invalid input.
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.
$ac_ext >&5
4130 # Passes both tests.
4134 rm -f conftest.err conftest.
$ac_ext
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.
$ac_ext
4139 if $ac_preproc_ok; then
4151 echo "$as_me:$LINENO: result: $CPP" >&5
4152 echo "${ECHO_T}$CPP" >&6
4154 for ac_c_preproc_warn_flag
in '' yes
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat >conftest.
$ac_ext <<_ACEOF
4165 cat confdefs.h
>>conftest.
$ac_ext
4166 cat >>conftest.
$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4169 # include <limits.h>
4171 # include <assert.h>
4175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4176 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1
>conftest.err
4180 cat conftest.err
>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } >/dev
/null
; then
4183 if test -s conftest.err
; then
4184 ac_cpp_err
=$ac_c_preproc_warn_flag
4185 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4192 if test -z "$ac_cpp_err"; then
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.
$ac_ext >&5
4198 # Broken: fails on valid input.
4201 rm -f conftest.err conftest.
$ac_ext
4203 # OK, works on sane cases. Now check whether non-existent headers
4204 # can be detected and how.
4205 cat >conftest.
$ac_ext <<_ACEOF
4208 cat confdefs.h
>>conftest.
$ac_ext
4209 cat >>conftest.
$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4216 grep -v '^ *+' conftest.er1
>conftest.err
4218 cat conftest.err
>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } >/dev
/null
; then
4221 if test -s conftest.err
; then
4222 ac_cpp_err
=$ac_c_preproc_warn_flag
4223 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4230 if test -z "$ac_cpp_err"; then
4231 # Broken: success on invalid input.
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.
$ac_ext >&5
4237 # Passes both tests.
4241 rm -f conftest.err conftest.
$ac_ext
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.
$ac_ext
4246 if $ac_preproc_ok; then
4249 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4250 See \`config.log' for more details." >&5
4251 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4252 See \`config.log' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4257 ac_cpp
='$CPP $CPPFLAGS'
4258 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4262 echo "$as_me:$LINENO: checking for inline" >&5
4263 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4264 if test "${ac_cv_c_inline+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 for ac_kw
in inline __inline__ __inline
; do
4269 cat >conftest.
$ac_ext <<_ACEOF
4272 cat confdefs.h
>>conftest.
$ac_ext
4273 cat >>conftest.
$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4277 static $ac_kw foo_t static_foo () {return 0; }
4278 $ac_kw foo_t foo () {return 0; }
4282 rm -f conftest.
$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>conftest.er1
4286 grep -v '^ *+' conftest.er1
>conftest.err
4288 cat conftest.err
>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try
='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try
='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_c_inline
=$ac_kw; break
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.
$ac_ext >&5
4310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4314 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4315 echo "${ECHO_T}$ac_cv_c_inline" >&6
4318 case $ac_cv_c_inline in
4321 case $ac_cv_c_inline in
4323 *) ac_val
=$ac_cv_c_inline;;
4325 cat >>confdefs.h
<<_ACEOF
4327 #define inline $ac_val
4334 # sizeof(char) is 1 by definition.
4335 echo "$as_me:$LINENO: checking for void *" >&5
4336 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4337 if test "${ac_cv_type_void_p+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 cat >conftest.
$ac_ext <<_ACEOF
4343 cat confdefs.h
>>conftest.
$ac_ext
4344 cat >>conftest.
$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 $ac_includes_default
4352 if (sizeof (void *))
4358 rm -f conftest.
$ac_objext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>conftest.er1
4362 grep -v '^ *+' conftest.er1
>conftest.err
4364 cat conftest.err
>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try
='test -z "$ac_c_werror_flag"
4368 || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try
='test -s conftest.$ac_objext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_type_void_p
=yes
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.
$ac_ext >&5
4385 ac_cv_type_void_p
=no
4387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4389 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4390 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4392 echo "$as_me:$LINENO: checking size of void *" >&5
4393 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4394 if test "${ac_cv_sizeof_void_p+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test "$ac_cv_type_void_p" = yes; then
4398 # The cast to unsigned long works around a bug in the HP C Compiler
4399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4401 # This bug is HP SR number 8606223364.
4402 if test "$cross_compiling" = yes; then
4403 # Depending upon the size, compute the lo and hi bounds.
4404 cat >conftest.
$ac_ext <<_ACEOF
4407 cat confdefs.h
>>conftest.
$ac_ext
4408 cat >>conftest.
$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4414 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4421 rm -f conftest.
$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4425 grep -v '^ *+' conftest.er1
>conftest.err
4427 cat conftest.err
>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try
='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try
='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4445 cat >conftest.
$ac_ext <<_ACEOF
4448 cat confdefs.h
>>conftest.
$ac_ext
4449 cat >>conftest.
$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4455 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4462 rm -f conftest.
$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1
>conftest.err
4468 cat conftest.err
>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try
='test -z "$ac_c_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try
='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_hi
=$ac_mid; break
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.
$ac_ext >&5
4489 ac_lo
=`expr $ac_mid + 1`
4490 if test $ac_lo -le $ac_mid; then
4494 ac_mid
=`expr 2 '*' $ac_mid + 1`
4496 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.
$ac_ext >&5
4502 cat >conftest.
$ac_ext <<_ACEOF
4505 cat confdefs.h
>>conftest.
$ac_ext
4506 cat >>conftest.
$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 $ac_includes_default
4512 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4519 rm -f conftest.
$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1
>conftest.err
4525 cat conftest.err
>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try
='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try
='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4543 cat >conftest.
$ac_ext <<_ACEOF
4546 cat confdefs.h
>>conftest.
$ac_ext
4547 cat >>conftest.
$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4553 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4560 rm -f conftest.
$ac_objext
4561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562 (eval $ac_compile) 2>conftest.er1
4564 grep -v '^ *+' conftest.er1
>conftest.err
4566 cat conftest.err
>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try
='test -z "$ac_c_werror_flag"
4570 || test ! -s conftest.err'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try
='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 ac_lo
=$ac_mid; break
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.
$ac_ext >&5
4587 ac_hi
=`expr '(' $ac_mid ')' - 1`
4588 if test $ac_mid -le $ac_hi; then
4592 ac_mid
=`expr 2 '*' $ac_mid`
4594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.
$ac_ext >&5
4602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4605 # Binary search between lo and hi bounds.
4606 while test "x$ac_lo" != "x$ac_hi"; do
4607 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4608 cat >conftest.
$ac_ext <<_ACEOF
4611 cat confdefs.h
>>conftest.
$ac_ext
4612 cat >>conftest.
$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 $ac_includes_default
4618 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4625 rm -f conftest.
$ac_objext
4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>conftest.er1
4629 grep -v '^ *+' conftest.er1
>conftest.err
4631 cat conftest.err
>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try
='test -z "$ac_c_werror_flag"
4635 || test ! -s conftest.err'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try
='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.
$ac_ext >&5
4652 ac_lo
=`expr '(' $ac_mid ')' + 1`
4654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4657 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
4658 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4659 See \`config.log' for more details." >&5
4660 echo "$as_me: error: cannot compute sizeof (void *), 77
4661 See \`config.log' for more details." >&2;}
4662 { (exit 1); exit 1; }; } ;;
4665 if test "$cross_compiling" = yes; then
4666 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4667 See \`config.log' for more details." >&5
4668 echo "$as_me: error: cannot run test program while cross compiling
4669 See \`config.log' for more details." >&2;}
4670 { (exit 1); exit 1; }; }
4672 cat >conftest.
$ac_ext <<_ACEOF
4675 cat confdefs.h
>>conftest.
$ac_ext
4676 cat >>conftest.
$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 $ac_includes_default
4679 long longval () { return (long) (sizeof (void *)); }
4680 unsigned long ulongval () { return (long) (sizeof (void *)); }
4687 FILE *f = fopen ("conftest.val", "w");
4690 if (((long) (sizeof (void *))) < 0)
4692 long i = longval ();
4693 if (i != ((long) (sizeof (void *))))
4695 fprintf (f, "%ld\n", i);
4699 unsigned long i = ulongval ();
4700 if (i != ((long) (sizeof (void *))))
4702 fprintf (f, "%lu\n", i);
4704 exit (ferror (f) || fclose (f) != 0);
4710 rm -f conftest
$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_sizeof_void_p
=`cat conftest.val`
4723 echo "$as_me: program exited with status $ac_status" >&5
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.
$ac_ext >&5
4728 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4729 See \`config.log' for more details." >&5
4730 echo "$as_me: error: cannot compute sizeof (void *), 77
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }
4734 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4739 ac_cv_sizeof_void_p
=0
4742 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4743 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4744 cat >>confdefs.h
<<_ACEOF
4745 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4749 echo "$as_me:$LINENO: checking for short" >&5
4750 echo $ECHO_N "checking for short... $ECHO_C" >&6
4751 if test "${ac_cv_type_short+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 cat >conftest.
$ac_ext <<_ACEOF
4757 cat confdefs.h
>>conftest.
$ac_ext
4758 cat >>conftest.
$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 $ac_includes_default
4772 rm -f conftest.
$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>conftest.er1
4776 grep -v '^ *+' conftest.er1
>conftest.err
4778 cat conftest.err
>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try
='test -z "$ac_c_werror_flag"
4782 || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try
='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_type_short
=yes
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.
$ac_ext >&5
4801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4803 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4804 echo "${ECHO_T}$ac_cv_type_short" >&6
4806 echo "$as_me:$LINENO: checking size of short" >&5
4807 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4808 if test "${ac_cv_sizeof_short+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 if test "$ac_cv_type_short" = yes; then
4812 # The cast to unsigned long works around a bug in the HP C Compiler
4813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4815 # This bug is HP SR number 8606223364.
4816 if test "$cross_compiling" = yes; then
4817 # Depending upon the size, compute the lo and hi bounds.
4818 cat >conftest.
$ac_ext <<_ACEOF
4821 cat confdefs.h
>>conftest.
$ac_ext
4822 cat >>conftest.
$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 $ac_includes_default
4828 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4835 rm -f conftest.
$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>conftest.er1
4839 grep -v '^ *+' conftest.er1
>conftest.err
4841 cat conftest.err
>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try
='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try
='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4859 cat >conftest.
$ac_ext <<_ACEOF
4862 cat confdefs.h
>>conftest.
$ac_ext
4863 cat >>conftest.
$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 $ac_includes_default
4869 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4876 rm -f conftest.
$ac_objext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878 (eval $ac_compile) 2>conftest.er1
4880 grep -v '^ *+' conftest.er1
>conftest.err
4882 cat conftest.err
>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try
='test -z "$ac_c_werror_flag"
4886 || test ! -s conftest.err'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; } &&
4892 { ac_try
='test -s conftest.$ac_objext'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 ac_hi
=$ac_mid; break
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.
$ac_ext >&5
4903 ac_lo
=`expr $ac_mid + 1`
4904 if test $ac_lo -le $ac_mid; then
4908 ac_mid
=`expr 2 '*' $ac_mid + 1`
4910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.
$ac_ext >&5
4916 cat >conftest.
$ac_ext <<_ACEOF
4919 cat confdefs.h
>>conftest.
$ac_ext
4920 cat >>conftest.
$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 $ac_includes_default
4926 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4933 rm -f conftest.
$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try
='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try
='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4957 cat >conftest.
$ac_ext <<_ACEOF
4960 cat confdefs.h
>>conftest.
$ac_ext
4961 cat >>conftest.
$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4967 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4974 rm -f conftest.
$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>conftest.er1
4978 grep -v '^ *+' conftest.er1
>conftest.err
4980 cat conftest.err
>&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try
='test -z "$ac_c_werror_flag"
4984 || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try
='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_lo
=$ac_mid; break
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.
$ac_ext >&5
5001 ac_hi
=`expr '(' $ac_mid ')' - 1`
5002 if test $ac_mid -le $ac_hi; then
5006 ac_mid
=`expr 2 '*' $ac_mid`
5008 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.
$ac_ext >&5
5016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5019 # Binary search between lo and hi bounds.
5020 while test "x$ac_lo" != "x$ac_hi"; do
5021 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5022 cat >conftest.
$ac_ext <<_ACEOF
5025 cat confdefs.h
>>conftest.
$ac_ext
5026 cat >>conftest.
$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 $ac_includes_default
5032 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5039 rm -f conftest.
$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>conftest.er1
5043 grep -v '^ *+' conftest.er1
>conftest.err
5045 cat conftest.err
>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try
='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try
='test -s conftest.$ac_objext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.
$ac_ext >&5
5066 ac_lo
=`expr '(' $ac_mid ')' + 1`
5068 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5071 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5073 See \`config.log' for more details." >&5
5074 echo "$as_me: error: cannot compute sizeof (short), 77
5075 See \`config.log' for more details." >&2;}
5076 { (exit 1); exit 1; }; } ;;
5079 if test "$cross_compiling" = yes; then
5080 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5081 See \`config.log' for more details." >&5
5082 echo "$as_me: error: cannot run test program while cross compiling
5083 See \`config.log' for more details." >&2;}
5084 { (exit 1); exit 1; }; }
5086 cat >conftest.
$ac_ext <<_ACEOF
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 $ac_includes_default
5093 long longval () { return (long) (sizeof (short)); }
5094 unsigned long ulongval () { return (long) (sizeof (short)); }
5101 FILE *f = fopen ("conftest.val", "w");
5104 if (((long) (sizeof (short))) < 0)
5106 long i = longval ();
5107 if (i != ((long) (sizeof (short))))
5109 fprintf (f, "%ld\n", i);
5113 unsigned long i = ulongval ();
5114 if (i != ((long) (sizeof (short))))
5116 fprintf (f, "%lu\n", i);
5118 exit (ferror (f) || fclose (f) != 0);
5124 rm -f conftest
$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126 (eval $ac_link) 2>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 ac_cv_sizeof_short
=`cat conftest.val`
5137 echo "$as_me: program exited with status $ac_status" >&5
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.
$ac_ext >&5
5142 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot compute sizeof (short), 77
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; }
5148 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5153 ac_cv_sizeof_short
=0
5156 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5157 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5158 cat >>confdefs.h
<<_ACEOF
5159 #define SIZEOF_SHORT $ac_cv_sizeof_short
5163 echo "$as_me:$LINENO: checking for int" >&5
5164 echo $ECHO_N "checking for int... $ECHO_C" >&6
5165 if test "${ac_cv_type_int+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 cat >conftest.
$ac_ext <<_ACEOF
5171 cat confdefs.h
>>conftest.
$ac_ext
5172 cat >>conftest.
$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5186 rm -f conftest.
$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>conftest.er1
5190 grep -v '^ *+' conftest.er1
>conftest.err
5192 cat conftest.err
>&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try
='test -z "$ac_c_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try
='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.
$ac_ext >&5
5215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5217 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5218 echo "${ECHO_T}$ac_cv_type_int" >&6
5220 echo "$as_me:$LINENO: checking size of int" >&5
5221 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5222 if test "${ac_cv_sizeof_int+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 if test "$ac_cv_type_int" = yes; then
5226 # The cast to unsigned long works around a bug in the HP C Compiler
5227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5229 # This bug is HP SR number 8606223364.
5230 if test "$cross_compiling" = yes; then
5231 # Depending upon the size, compute the lo and hi bounds.
5232 cat >conftest.
$ac_ext <<_ACEOF
5235 cat confdefs.h
>>conftest.
$ac_ext
5236 cat >>conftest.
$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5242 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5249 rm -f conftest.
$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1
>conftest.err
5255 cat conftest.err
>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try
='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try
='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5273 cat >conftest.
$ac_ext <<_ACEOF
5276 cat confdefs.h
>>conftest.
$ac_ext
5277 cat >>conftest.
$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 $ac_includes_default
5283 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5290 rm -f conftest.
$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>conftest.er1
5294 grep -v '^ *+' conftest.er1
>conftest.err
5296 cat conftest.err
>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try
='test -z "$ac_c_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try
='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_hi
=$ac_mid; break
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.
$ac_ext >&5
5317 ac_lo
=`expr $ac_mid + 1`
5318 if test $ac_lo -le $ac_mid; then
5322 ac_mid
=`expr 2 '*' $ac_mid + 1`
5324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.
$ac_ext >&5
5330 cat >conftest.
$ac_ext <<_ACEOF
5333 cat confdefs.h
>>conftest.
$ac_ext
5334 cat >>conftest.
$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 $ac_includes_default
5340 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5347 rm -f conftest.
$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>conftest.er1
5351 grep -v '^ *+' conftest.er1
>conftest.err
5353 cat conftest.err
>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try
='test -z "$ac_c_werror_flag"
5357 || test ! -s conftest.err'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try
='test -s conftest.$ac_objext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5371 cat >conftest.
$ac_ext <<_ACEOF
5374 cat confdefs.h
>>conftest.
$ac_ext
5375 cat >>conftest.
$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 $ac_includes_default
5381 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5388 rm -f conftest.
$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5392 grep -v '^ *+' conftest.er1
>conftest.err
5394 cat conftest.err
>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try
='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try
='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_lo
=$ac_mid; break
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.
$ac_ext >&5
5415 ac_hi
=`expr '(' $ac_mid ')' - 1`
5416 if test $ac_mid -le $ac_hi; then
5420 ac_mid
=`expr 2 '*' $ac_mid`
5422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.
$ac_ext >&5
5430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5433 # Binary search between lo and hi bounds.
5434 while test "x$ac_lo" != "x$ac_hi"; do
5435 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5436 cat >conftest.
$ac_ext <<_ACEOF
5439 cat confdefs.h
>>conftest.
$ac_ext
5440 cat >>conftest.
$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 $ac_includes_default
5446 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5453 rm -f conftest.
$ac_objext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 (eval $ac_compile) 2>conftest.er1
5457 grep -v '^ *+' conftest.er1
>conftest.err
5459 cat conftest.err
>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try
='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try
='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.
$ac_ext >&5
5480 ac_lo
=`expr '(' $ac_mid ')' + 1`
5482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5485 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5486 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5487 See \`config.log' for more details." >&5
5488 echo "$as_me: error: cannot compute sizeof (int), 77
5489 See \`config.log' for more details." >&2;}
5490 { (exit 1); exit 1; }; } ;;
5493 if test "$cross_compiling" = yes; then
5494 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot run test program while cross compiling
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; }
5500 cat >conftest.
$ac_ext <<_ACEOF
5503 cat confdefs.h
>>conftest.
$ac_ext
5504 cat >>conftest.
$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 $ac_includes_default
5507 long longval () { return (long) (sizeof (int)); }
5508 unsigned long ulongval () { return (long) (sizeof (int)); }
5515 FILE *f = fopen ("conftest.val", "w");
5518 if (((long) (sizeof (int))) < 0)
5520 long i = longval ();
5521 if (i != ((long) (sizeof (int))))
5523 fprintf (f, "%ld\n", i);
5527 unsigned long i = ulongval ();
5528 if (i != ((long) (sizeof (int))))
5530 fprintf (f, "%lu\n", i);
5532 exit (ferror (f) || fclose (f) != 0);
5538 rm -f conftest
$ac_exeext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540 (eval $ac_link) 2>&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_sizeof_int
=`cat conftest.val`
5551 echo "$as_me: program exited with status $ac_status" >&5
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5557 See \`config.log' for more details." >&5
5558 echo "$as_me: error: cannot compute sizeof (int), 77
5559 See \`config.log' for more details." >&2;}
5560 { (exit 1); exit 1; }; }
5562 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5570 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5571 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5572 cat >>confdefs.h
<<_ACEOF
5573 #define SIZEOF_INT $ac_cv_sizeof_int
5577 echo "$as_me:$LINENO: checking for long" >&5
5578 echo $ECHO_N "checking for long... $ECHO_C" >&6
5579 if test "${ac_cv_type_long+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 cat >conftest.
$ac_ext <<_ACEOF
5585 cat confdefs.h
>>conftest.
$ac_ext
5586 cat >>conftest.
$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5600 rm -f conftest.
$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1
>conftest.err
5606 cat conftest.err
>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try
='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try
='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.
$ac_ext >&5
5629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5631 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5632 echo "${ECHO_T}$ac_cv_type_long" >&6
5634 echo "$as_me:$LINENO: checking size of long" >&5
5635 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5636 if test "${ac_cv_sizeof_long+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 if test "$ac_cv_type_long" = yes; then
5640 # The cast to unsigned long works around a bug in the HP C Compiler
5641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5643 # This bug is HP SR number 8606223364.
5644 if test "$cross_compiling" = yes; then
5645 # Depending upon the size, compute the lo and hi bounds.
5646 cat >conftest.
$ac_ext <<_ACEOF
5649 cat confdefs.h
>>conftest.
$ac_ext
5650 cat >>conftest.
$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5656 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5663 rm -f conftest.
$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>conftest.er1
5667 grep -v '^ *+' conftest.er1
>conftest.err
5669 cat conftest.err
>&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try
='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try
='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5687 cat >conftest.
$ac_ext <<_ACEOF
5690 cat confdefs.h
>>conftest.
$ac_ext
5691 cat >>conftest.
$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5697 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5704 rm -f conftest.
$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5708 grep -v '^ *+' conftest.er1
>conftest.err
5710 cat conftest.err
>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try
='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try
='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_hi
=$ac_mid; break
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.
$ac_ext >&5
5731 ac_lo
=`expr $ac_mid + 1`
5732 if test $ac_lo -le $ac_mid; then
5736 ac_mid
=`expr 2 '*' $ac_mid + 1`
5738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.
$ac_ext >&5
5744 cat >conftest.
$ac_ext <<_ACEOF
5747 cat confdefs.h
>>conftest.
$ac_ext
5748 cat >>conftest.
$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 $ac_includes_default
5754 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5761 rm -f conftest.
$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>conftest.er1
5765 grep -v '^ *+' conftest.er1
>conftest.err
5767 cat conftest.err
>&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try
='test -z "$ac_c_werror_flag"
5771 || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try
='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5785 cat >conftest.
$ac_ext <<_ACEOF
5788 cat confdefs.h
>>conftest.
$ac_ext
5789 cat >>conftest.
$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5795 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5802 rm -f conftest.
$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1
>conftest.err
5808 cat conftest.err
>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try
='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try
='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_lo
=$ac_mid; break
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.
$ac_ext >&5
5829 ac_hi
=`expr '(' $ac_mid ')' - 1`
5830 if test $ac_mid -le $ac_hi; then
5834 ac_mid
=`expr 2 '*' $ac_mid`
5836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.
$ac_ext >&5
5844 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5847 # Binary search between lo and hi bounds.
5848 while test "x$ac_lo" != "x$ac_hi"; do
5849 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5850 cat >conftest.
$ac_ext <<_ACEOF
5853 cat confdefs.h
>>conftest.
$ac_ext
5854 cat >>conftest.
$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 $ac_includes_default
5860 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5867 rm -f conftest.
$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>conftest.er1
5871 grep -v '^ *+' conftest.er1
>conftest.err
5873 cat conftest.err
>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try
='test -z "$ac_c_werror_flag"
5877 || test ! -s conftest.err'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try
='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.
$ac_ext >&5
5894 ac_lo
=`expr '(' $ac_mid ')' + 1`
5896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5899 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5900 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: cannot compute sizeof (long), 77
5903 See \`config.log' for more details." >&2;}
5904 { (exit 1); exit 1; }; } ;;
5907 if test "$cross_compiling" = yes; then
5908 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5909 See \`config.log' for more details." >&5
5910 echo "$as_me: error: cannot run test program while cross compiling
5911 See \`config.log' for more details." >&2;}
5912 { (exit 1); exit 1; }; }
5914 cat >conftest.
$ac_ext <<_ACEOF
5917 cat confdefs.h
>>conftest.
$ac_ext
5918 cat >>conftest.
$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5921 long longval () { return (long) (sizeof (long)); }
5922 unsigned long ulongval () { return (long) (sizeof (long)); }
5929 FILE *f = fopen ("conftest.val", "w");
5932 if (((long) (sizeof (long))) < 0)
5934 long i = longval ();
5935 if (i != ((long) (sizeof (long))))
5937 fprintf (f, "%ld\n", i);
5941 unsigned long i = ulongval ();
5942 if (i != ((long) (sizeof (long))))
5944 fprintf (f, "%lu\n", i);
5946 exit (ferror (f) || fclose (f) != 0);
5952 rm -f conftest
$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_cv_sizeof_long
=`cat conftest.val`
5965 echo "$as_me: program exited with status $ac_status" >&5
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.
$ac_ext >&5
5970 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5971 See \`config.log' for more details." >&5
5972 echo "$as_me: error: cannot compute sizeof (long), 77
5973 See \`config.log' for more details." >&2;}
5974 { (exit 1); exit 1; }; }
5976 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5984 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5985 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5986 cat >>confdefs.h
<<_ACEOF
5987 #define SIZEOF_LONG $ac_cv_sizeof_long
5991 echo "$as_me:$LINENO: checking for long long" >&5
5992 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5993 if test "${ac_cv_type_long_long+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 cat >conftest.
$ac_ext <<_ACEOF
5999 cat confdefs.h
>>conftest.
$ac_ext
6000 cat >>conftest.
$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6006 if ((long long *) 0)
6008 if (sizeof (long long))
6014 rm -f conftest.
$ac_objext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016 (eval $ac_compile) 2>conftest.er1
6018 grep -v '^ *+' conftest.er1
>conftest.err
6020 cat conftest.err
>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try
='test -z "$ac_c_werror_flag"
6024 || test ! -s conftest.err'
6025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; } &&
6030 { ac_try
='test -s conftest.$ac_objext'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; }; then
6036 ac_cv_type_long_long
=yes
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.
$ac_ext >&5
6041 ac_cv_type_long_long
=no
6043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6045 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6046 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6047 if test $ac_cv_type_long_long = yes; then
6049 cat >>confdefs.h
<<_ACEOF
6050 #define HAVE_LONG_LONG 1
6053 echo "$as_me:$LINENO: checking for long long" >&5
6054 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6055 if test "${ac_cv_type_long_long+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 cat >conftest.
$ac_ext <<_ACEOF
6061 cat confdefs.h
>>conftest.
$ac_ext
6062 cat >>conftest.
$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 $ac_includes_default
6068 if ((long long *) 0)
6070 if (sizeof (long long))
6076 rm -f conftest.
$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1
>conftest.err
6082 cat conftest.err
>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try
='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try
='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_type_long_long
=yes
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6103 ac_cv_type_long_long
=no
6105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6108 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6110 echo "$as_me:$LINENO: checking size of long long" >&5
6111 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6112 if test "${ac_cv_sizeof_long_long+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 if test "$ac_cv_type_long_long" = yes; then
6116 # The cast to unsigned long works around a bug in the HP C Compiler
6117 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6118 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6119 # This bug is HP SR number 8606223364.
6120 if test "$cross_compiling" = yes; then
6121 # Depending upon the size, compute the lo and hi bounds.
6122 cat >conftest.
$ac_ext <<_ACEOF
6125 cat confdefs.h
>>conftest.
$ac_ext
6126 cat >>conftest.
$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 $ac_includes_default
6132 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6139 rm -f conftest.
$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6143 grep -v '^ *+' conftest.er1
>conftest.err
6145 cat conftest.err
>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try
='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try
='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6163 cat >conftest.
$ac_ext <<_ACEOF
6166 cat confdefs.h
>>conftest.
$ac_ext
6167 cat >>conftest.
$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 $ac_includes_default
6173 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6180 rm -f conftest.
$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>conftest.er1
6184 grep -v '^ *+' conftest.er1
>conftest.err
6186 cat conftest.err
>&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try
='test -z "$ac_c_werror_flag"
6190 || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try
='test -s conftest.$ac_objext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_hi
=$ac_mid; break
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.
$ac_ext >&5
6207 ac_lo
=`expr $ac_mid + 1`
6208 if test $ac_lo -le $ac_mid; then
6212 ac_mid
=`expr 2 '*' $ac_mid + 1`
6214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.
$ac_ext >&5
6220 cat >conftest.
$ac_ext <<_ACEOF
6223 cat confdefs.h
>>conftest.
$ac_ext
6224 cat >>conftest.
$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6230 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6237 rm -f conftest.
$ac_objext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239 (eval $ac_compile) 2>conftest.er1
6241 grep -v '^ *+' conftest.er1
>conftest.err
6243 cat conftest.err
>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try
='test -z "$ac_c_werror_flag"
6247 || test ! -s conftest.err'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; } &&
6253 { ac_try
='test -s conftest.$ac_objext'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6271 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6278 rm -f conftest.
$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1
>conftest.err
6284 cat conftest.err
>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try
='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try
='test -s conftest.$ac_objext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_lo
=$ac_mid; break
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.
$ac_ext >&5
6305 ac_hi
=`expr '(' $ac_mid ')' - 1`
6306 if test $ac_mid -le $ac_hi; then
6310 ac_mid
=`expr 2 '*' $ac_mid`
6312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.
$ac_ext >&5
6320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6323 # Binary search between lo and hi bounds.
6324 while test "x$ac_lo" != "x$ac_hi"; do
6325 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6326 cat >conftest.
$ac_ext <<_ACEOF
6329 cat confdefs.h
>>conftest.
$ac_ext
6330 cat >>conftest.
$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6343 rm -f conftest.
$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6347 grep -v '^ *+' conftest.er1
>conftest.err
6349 cat conftest.err
>&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try
='test -z "$ac_c_werror_flag"
6353 || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try
='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.
$ac_ext >&5
6370 ac_lo
=`expr '(' $ac_mid ')' + 1`
6372 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6375 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6376 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6377 See \`config.log' for more details." >&5
6378 echo "$as_me: error: cannot compute sizeof (long long), 77
6379 See \`config.log' for more details." >&2;}
6380 { (exit 1); exit 1; }; } ;;
6383 if test "$cross_compiling" = yes; then
6384 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6385 See \`config.log' for more details." >&5
6386 echo "$as_me: error: cannot run test program while cross compiling
6387 See \`config.log' for more details." >&2;}
6388 { (exit 1); exit 1; }; }
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 long longval () { return (long) (sizeof (long long)); }
6398 unsigned long ulongval () { return (long) (sizeof (long long)); }
6405 FILE *f = fopen ("conftest.val", "w");
6408 if (((long) (sizeof (long long))) < 0)
6410 long i = longval ();
6411 if (i != ((long) (sizeof (long long))))
6413 fprintf (f, "%ld\n", i);
6417 unsigned long i = ulongval ();
6418 if (i != ((long) (sizeof (long long))))
6420 fprintf (f, "%lu\n", i);
6422 exit (ferror (f) || fclose (f) != 0);
6428 rm -f conftest
$ac_exeext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_sizeof_long_long
=`cat conftest.val`
6441 echo "$as_me: program exited with status $ac_status" >&5
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.
$ac_ext >&5
6446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6447 See \`config.log' for more details." >&5
6448 echo "$as_me: error: cannot compute sizeof (long long), 77
6449 See \`config.log' for more details." >&2;}
6450 { (exit 1); exit 1; }; }
6452 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6457 ac_cv_sizeof_long_long
=0
6460 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6461 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6462 cat >>confdefs.h
<<_ACEOF
6463 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6469 echo "$as_me:$LINENO: checking for __int64" >&5
6470 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6471 if test "${ac_cv_type___int64+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 cat >conftest.
$ac_ext <<_ACEOF
6477 cat confdefs.h
>>conftest.
$ac_ext
6478 cat >>conftest.
$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 $ac_includes_default
6486 if (sizeof (__int64))
6492 rm -f conftest.
$ac_objext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6494 (eval $ac_compile) 2>conftest.er1
6496 grep -v '^ *+' conftest.er1
>conftest.err
6498 cat conftest.err
>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try
='test -z "$ac_c_werror_flag"
6502 || test ! -s conftest.err'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; } &&
6508 { ac_try
='test -s conftest.$ac_objext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_cv_type___int64
=yes
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.
$ac_ext >&5
6519 ac_cv_type___int64
=no
6521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6523 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6524 echo "${ECHO_T}$ac_cv_type___int64" >&6
6525 if test $ac_cv_type___int64 = yes; then
6527 cat >>confdefs.h
<<_ACEOF
6528 #define HAVE___INT64 1
6531 echo "$as_me:$LINENO: checking for __int64" >&5
6532 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6533 if test "${ac_cv_type___int64+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 cat >conftest.
$ac_ext <<_ACEOF
6539 cat confdefs.h
>>conftest.
$ac_ext
6540 cat >>conftest.
$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 $ac_includes_default
6548 if (sizeof (__int64))
6554 rm -f conftest.
$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556 (eval $ac_compile) 2>conftest.er1
6558 grep -v '^ *+' conftest.er1
>conftest.err
6560 cat conftest.err
>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try
='test -z "$ac_c_werror_flag"
6564 || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try
='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_type___int64
=yes
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.
$ac_ext >&5
6581 ac_cv_type___int64
=no
6583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6585 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6586 echo "${ECHO_T}$ac_cv_type___int64" >&6
6588 echo "$as_me:$LINENO: checking size of __int64" >&5
6589 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6590 if test "${ac_cv_sizeof___int64+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 if test "$ac_cv_type___int64" = yes; then
6594 # The cast to unsigned long works around a bug in the HP C Compiler
6595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6597 # This bug is HP SR number 8606223364.
6598 if test "$cross_compiling" = yes; then
6599 # Depending upon the size, compute the lo and hi bounds.
6600 cat >conftest.
$ac_ext <<_ACEOF
6603 cat confdefs.h
>>conftest.
$ac_ext
6604 cat >>conftest.
$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 $ac_includes_default
6610 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6617 rm -f conftest.
$ac_objext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619 (eval $ac_compile) 2>conftest.er1
6621 grep -v '^ *+' conftest.er1
>conftest.err
6623 cat conftest.err
>&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
6626 { ac_try
='test -z "$ac_c_werror_flag"
6627 || test ! -s conftest.err'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; } &&
6633 { ac_try
='test -s conftest.$ac_objext'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; }; then
6641 cat >conftest.
$ac_ext <<_ACEOF
6644 cat confdefs.h
>>conftest.
$ac_ext
6645 cat >>conftest.
$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6651 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6658 rm -f conftest.
$ac_objext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660 (eval $ac_compile) 2>conftest.er1
6662 grep -v '^ *+' conftest.er1
>conftest.err
6664 cat conftest.err
>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try
='test -z "$ac_c_werror_flag"
6668 || test ! -s conftest.err'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; } &&
6674 { ac_try
='test -s conftest.$ac_objext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 ac_hi
=$ac_mid; break
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.
$ac_ext >&5
6685 ac_lo
=`expr $ac_mid + 1`
6686 if test $ac_lo -le $ac_mid; then
6690 ac_mid
=`expr 2 '*' $ac_mid + 1`
6692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.
$ac_ext >&5
6698 cat >conftest.
$ac_ext <<_ACEOF
6701 cat confdefs.h
>>conftest.
$ac_ext
6702 cat >>conftest.
$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6708 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6715 rm -f conftest.
$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>conftest.er1
6719 grep -v '^ *+' conftest.er1
>conftest.err
6721 cat conftest.err
>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try
='test -z "$ac_c_werror_flag"
6725 || test ! -s conftest.err'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; } &&
6731 { ac_try
='test -s conftest.$ac_objext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6739 cat >conftest.
$ac_ext <<_ACEOF
6742 cat confdefs.h
>>conftest.
$ac_ext
6743 cat >>conftest.
$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6749 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6756 rm -f conftest.
$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
6762 cat conftest.err
>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try
='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try
='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_lo
=$ac_mid; break
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.
$ac_ext >&5
6783 ac_hi
=`expr '(' $ac_mid ')' - 1`
6784 if test $ac_mid -le $ac_hi; then
6788 ac_mid
=`expr 2 '*' $ac_mid`
6790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.
$ac_ext >&5
6798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6801 # Binary search between lo and hi bounds.
6802 while test "x$ac_lo" != "x$ac_hi"; do
6803 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6804 cat >conftest.
$ac_ext <<_ACEOF
6807 cat confdefs.h
>>conftest.
$ac_ext
6808 cat >>conftest.
$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6814 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6821 rm -f conftest.
$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>conftest.er1
6825 grep -v '^ *+' conftest.er1
>conftest.err
6827 cat conftest.err
>&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try
='test -z "$ac_c_werror_flag"
6831 || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try
='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.
$ac_ext >&5
6848 ac_lo
=`expr '(' $ac_mid ')' + 1`
6850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6853 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6854 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6855 See \`config.log' for more details." >&5
6856 echo "$as_me: error: cannot compute sizeof (__int64), 77
6857 See \`config.log' for more details." >&2;}
6858 { (exit 1); exit 1; }; } ;;
6861 if test "$cross_compiling" = yes; then
6862 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6863 See \`config.log' for more details." >&5
6864 echo "$as_me: error: cannot run test program while cross compiling
6865 See \`config.log' for more details." >&2;}
6866 { (exit 1); exit 1; }; }
6868 cat >conftest.
$ac_ext <<_ACEOF
6871 cat confdefs.h
>>conftest.
$ac_ext
6872 cat >>conftest.
$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6875 long longval () { return (long) (sizeof (__int64)); }
6876 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6883 FILE *f = fopen ("conftest.val", "w");
6886 if (((long) (sizeof (__int64))) < 0)
6888 long i = longval ();
6889 if (i != ((long) (sizeof (__int64))))
6891 fprintf (f, "%ld\n", i);
6895 unsigned long i = ulongval ();
6896 if (i != ((long) (sizeof (__int64))))
6898 fprintf (f, "%lu\n", i);
6900 exit (ferror (f) || fclose (f) != 0);
6906 rm -f conftest
$ac_exeext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_cv_sizeof___int64
=`cat conftest.val`
6919 echo "$as_me: program exited with status $ac_status" >&5
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.
$ac_ext >&5
6924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6925 See \`config.log' for more details." >&5
6926 echo "$as_me: error: cannot compute sizeof (__int64), 77
6927 See \`config.log' for more details." >&2;}
6928 { (exit 1); exit 1; }; }
6930 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6935 ac_cv_sizeof___int64
=0
6938 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6939 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6940 cat >>confdefs.h
<<_ACEOF
6941 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6948 # ---------------------
6949 # Warnings and checking
6950 # ---------------------
6952 # Check $CC warning features (if it's GCC).
6953 # We want to use -pedantic, but we don't want warnings about
6956 # * overlong strings
6957 # So, we only use -pedantic if we can disable those warnings.
6960 save_CFLAGS
="$CFLAGS"
6961 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6962 -Wmissing-prototypes; do
6963 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6965 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6966 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6967 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 cat >conftest.
$ac_ext <<_ACEOF
6974 cat confdefs.h
>>conftest.
$ac_ext
6975 cat >>conftest.
$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6986 rm -f conftest.
$ac_objext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6988 (eval $ac_compile) 2>conftest.er1
6990 grep -v '^ *+' conftest.er1
>conftest.err
6992 cat conftest.err
>&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } &&
6995 { ac_try
='test -z "$ac_c_werror_flag"
6996 || test ! -s conftest.err'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; } &&
7002 { ac_try
='test -s conftest.$ac_objext'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; }; then
7008 eval "$as_acx_Woption=yes"
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.
$ac_ext >&5
7013 eval "$as_acx_Woption=no"
7015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7018 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7019 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7020 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7021 loose_warn
="$loose_warn${loose_warn:+ }$option"
7025 CFLAGS
="$save_CFLAGS"
7028 save_CFLAGS
="$CFLAGS"
7029 for option
in -Wc++-compat; do
7030 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7032 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7033 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7034 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 cat >conftest.
$ac_ext <<_ACEOF
7041 cat confdefs.h
>>conftest.
$ac_ext
7042 cat >>conftest.
$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7053 rm -f conftest.
$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7057 grep -v '^ *+' conftest.er1
>conftest.err
7059 cat conftest.err
>&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try
='test -z "$ac_c_werror_flag"
7063 || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try
='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 eval "$as_acx_Woption=yes"
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.
$ac_ext >&5
7080 eval "$as_acx_Woption=no"
7082 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7085 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7086 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7087 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7088 cxx_compat_warn
="$cxx_compat_warn${cxx_compat_warn:+ }$option"
7092 CFLAGS
="$save_CFLAGS"
7095 save_CFLAGS
="$CFLAGS"
7096 for option
in -Wold-style-definition \
7097 -Wmissing-format-attribute; do
7098 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7100 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7101 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7102 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 cat >conftest.
$ac_ext <<_ACEOF
7109 cat confdefs.h
>>conftest.
$ac_ext
7110 cat >>conftest.
$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7121 rm -f conftest.
$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>conftest.er1
7125 grep -v '^ *+' conftest.er1
>conftest.err
7127 cat conftest.err
>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try
='test -z "$ac_c_werror_flag"
7131 || test ! -s conftest.err'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; } &&
7137 { ac_try
='test -s conftest.$ac_objext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 eval "$as_acx_Woption=yes"
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.
$ac_ext >&5
7148 eval "$as_acx_Woption=no"
7150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7153 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7154 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7155 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7156 strict_warn
="$strict_warn${strict_warn:+ }$option"
7160 CFLAGS
="$save_CFLAGS"
7162 if test "$GCC" = yes; then
7163 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7164 -Wno-overlength-strings" >&5
7165 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7166 -Wno-overlength-strings... $ECHO_C" >&6
7167 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 save_CFLAGS
="$CFLAGS"
7171 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros \
7172 -Wno-overlength-strings"
7173 cat >conftest.
$ac_ext <<_ACEOF
7176 cat confdefs.h
>>conftest.
$ac_ext
7177 cat >>conftest.
$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7188 rm -f conftest.
$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7192 grep -v '^ *+' conftest.er1
>conftest.err
7194 cat conftest.err
>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try
='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try
='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=yes
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7215 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=no
7217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7218 CFLAGS
="$save_CFLAGS"
7220 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7221 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7222 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7223 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7224 -Wno-overlength-strings"
7231 # Check whether --enable-werror-always or --disable-werror-always was given.
7232 if test "${enable_werror_always+set}" = set; then
7233 enableval
="$enable_werror_always"
7236 enable_werror_always
=no
7238 if test $enable_werror_always = yes; then
7239 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7245 # The above macros do nothing if the compiler is not GCC. However, the
7246 # Makefile has more goo to add other flags, so this variabl is used to
7247 # enables warnings only for GCC.
7249 if test "x$GCC" = "xyes"; then
7250 warn_cflags
='$(GCC_WARN_CFLAGS)'
7254 # Enable expensive internal checks
7256 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7260 # Check whether --enable-checking or --disable-checking was given.
7261 if test "${enable_checking+set}" = set; then
7262 enableval
="$enable_checking"
7263 ac_checking_flags
="${enableval}"
7266 # Determine the default checks.
7267 if test x
$is_release = x
; then
7268 ac_checking_flags
=yes
7270 ac_checking_flags
=release
7273 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7274 for check
in release
$ac_checking_flags
7277 # these set all the flags to specific states
7278 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7279 ac_fold_checking
= ; ac_gc_checking
=1 ;
7280 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7281 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7282 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7283 ac_types_checking
=1 ;;
7284 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7285 ac_fold_checking
= ; ac_gc_checking
= ;
7286 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7287 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7288 ac_tree_checking
= ; ac_valgrind_checking
= ;
7289 ac_types_checking
= ;;
7290 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7291 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7292 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
7293 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7294 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7295 ac_types_checking
=1 ;;
7296 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7297 ac_fold_checking
= ; ac_gc_checking
= ;
7298 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7299 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7300 ac_tree_checking
= ; ac_valgrind_checking
= ;
7301 ac_types_checking
= ;;
7302 # these enable particular checks
7303 assert
) ac_assert_checking
=1 ;;
7304 df
) ac_df_checking
=1 ;;
7305 fold) ac_fold_checking
=1 ;;
7306 gc
) ac_gc_checking
=1 ;;
7307 gcac
) ac_gc_always_collect
=1 ;;
7308 misc
) ac_checking
=1 ;;
7309 rtl
) ac_rtl_checking
=1 ;;
7310 rtlflag
) ac_rtlflag_checking
=1 ;;
7311 runtime
) ac_runtime_checking
=1 ;;
7312 tree
) ac_tree_checking
=1 ;;
7313 types
) ac_types_checking
=1 ;;
7314 valgrind
) ac_valgrind_checking
=1 ;;
7315 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7316 echo "$as_me: error: unknown check category $check" >&2;}
7317 { (exit 1); exit 1; }; } ;;
7323 if test x
$ac_checking != x
; then
7325 cat >>confdefs.h
<<\_ACEOF
7326 #define ENABLE_CHECKING 1
7329 nocommon_flag
=-fno-common
7332 if test x
$ac_df_checking != x
; then
7334 cat >>confdefs.h
<<\_ACEOF
7335 #define ENABLE_DF_CHECKING 1
7339 if test x
$ac_assert_checking != x
; then
7341 cat >>confdefs.h
<<\_ACEOF
7342 #define ENABLE_ASSERT_CHECKING 1
7347 if test x
$ac_runtime_checking != x
; then
7349 cat >>confdefs.h
<<\_ACEOF
7350 #define ENABLE_RUNTIME_CHECKING 1
7354 if test x
$ac_tree_checking != x
; then
7356 cat >>confdefs.h
<<\_ACEOF
7357 #define ENABLE_TREE_CHECKING 1
7360 TREEBROWSER
=tree-browser.o
7362 if test x
$ac_types_checking != x
; then
7364 cat >>confdefs.h
<<\_ACEOF
7365 #define ENABLE_TYPES_CHECKING 1
7370 if test x
$ac_rtl_checking != x
; then
7372 cat >>confdefs.h
<<\_ACEOF
7373 #define ENABLE_RTL_CHECKING 1
7377 if test x
$ac_rtlflag_checking != x
; then
7379 cat >>confdefs.h
<<\_ACEOF
7380 #define ENABLE_RTL_FLAG_CHECKING 1
7384 if test x
$ac_gc_checking != x
; then
7386 cat >>confdefs.h
<<\_ACEOF
7387 #define ENABLE_GC_CHECKING 1
7391 if test x
$ac_gc_always_collect != x
; then
7393 cat >>confdefs.h
<<\_ACEOF
7394 #define ENABLE_GC_ALWAYS_COLLECT 1
7398 if test x
$ac_fold_checking != x
; then
7400 cat >>confdefs.h
<<\_ACEOF
7401 #define ENABLE_FOLD_CHECKING 1
7405 valgrind_path_defines
=
7408 if test "${ac_cv_header_valgrind_h+set}" = set; then
7409 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7410 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7411 if test "${ac_cv_header_valgrind_h+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7415 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7417 # Is the header compilable?
7418 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7419 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7420 cat >conftest.
$ac_ext <<_ACEOF
7423 cat confdefs.h
>>conftest.
$ac_ext
7424 cat >>conftest.
$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 $ac_includes_default
7427 #include <valgrind.h>
7429 rm -f conftest.
$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431 (eval $ac_compile) 2>conftest.er1
7433 grep -v '^ *+' conftest.er1
>conftest.err
7435 cat conftest.err
>&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try
='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try
='test -s conftest.$ac_objext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 ac_header_compiler
=yes
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.
$ac_ext >&5
7456 ac_header_compiler
=no
7458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7460 echo "${ECHO_T}$ac_header_compiler" >&6
7462 # Is the header present?
7463 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7464 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7465 cat >conftest.
$ac_ext <<_ACEOF
7468 cat confdefs.h
>>conftest.
$ac_ext
7469 cat >>conftest.
$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 #include <valgrind.h>
7473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7474 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7476 grep -v '^ *+' conftest.er1
>conftest.err
7478 cat conftest.err
>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } >/dev
/null
; then
7481 if test -s conftest.err
; then
7482 ac_cpp_err
=$ac_c_preproc_warn_flag
7483 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7490 if test -z "$ac_cpp_err"; then
7491 ac_header_preproc
=yes
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.
$ac_ext >&5
7496 ac_header_preproc
=no
7498 rm -f conftest.err conftest.
$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7500 echo "${ECHO_T}$ac_header_preproc" >&6
7502 # So? What about this header?
7503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7505 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7506 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7508 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7509 ac_header_preproc
=yes
7512 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7513 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7514 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7515 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7516 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7517 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7519 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7521 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7523 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7526 ## ------------------------------------------ ##
7527 ## Report this to the AC_PACKAGE_NAME lists. ##
7528 ## ------------------------------------------ ##
7531 sed "s/^/$as_me: WARNING: /" >&2
7534 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7535 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7536 if test "${ac_cv_header_valgrind_h+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 ac_cv_header_valgrind_h
=$ac_header_preproc
7541 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7542 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7545 if test $ac_cv_header_valgrind_h = yes; then
7553 if test x
$ac_valgrind_checking != x
; then
7554 # It is certainly possible that there's valgrind but no valgrind.h.
7555 # GCC relies on making annotations so we must have both.
7556 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7557 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7558 cat >conftest.
$ac_ext <<_ACEOF
7561 cat confdefs.h
>>conftest.
$ac_ext
7562 cat >>conftest.
$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 #include <valgrind/memcheck.h>
7565 #ifndef VALGRIND_DISCARD
7566 #error VALGRIND_DISCARD not defined
7569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7570 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7572 grep -v '^ *+' conftest.er1
>conftest.err
7574 cat conftest.err
>&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } >/dev
/null
; then
7577 if test -s conftest.err
; then
7578 ac_cpp_err
=$ac_c_preproc_warn_flag
7579 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7586 if test -z "$ac_cpp_err"; then
7587 gcc_cv_header_valgrind_memcheck_h
=yes
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.
$ac_ext >&5
7592 gcc_cv_header_valgrind_memcheck_h
=no
7594 rm -f conftest.err conftest.
$ac_ext
7595 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7596 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7597 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7598 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7599 cat >conftest.
$ac_ext <<_ACEOF
7602 cat confdefs.h
>>conftest.
$ac_ext
7603 cat >>conftest.
$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <memcheck.h>
7606 #ifndef VALGRIND_DISCARD
7607 #error VALGRIND_DISCARD not defined
7610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7611 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7613 grep -v '^ *+' conftest.er1
>conftest.err
7615 cat conftest.err
>&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } >/dev
/null
; then
7618 if test -s conftest.err
; then
7619 ac_cpp_err
=$ac_c_preproc_warn_flag
7620 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7627 if test -z "$ac_cpp_err"; then
7628 gcc_cv_header_memcheck_h
=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.
$ac_ext >&5
7633 gcc_cv_header_memcheck_h
=no
7635 rm -f conftest.err conftest.
$ac_ext
7636 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7637 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7639 # Prepare PATH_SEPARATOR.
7640 # The user is always right.
7641 if test "${PATH_SEPARATOR+set}" != set; then
7642 echo "#! /bin/sh" >conf$$.sh
7643 echo "exit 0" >>conf$$.sh
7645 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7653 # Find out how to test for executable files. Don't use a zero-byte file,
7654 # as systems may use methods other than mode bits to determine executability.
7655 cat >conf$$.
file <<_ASEOF
7659 chmod +x conf$$.
file
7660 if test -x conf$$.
file >/dev
/null
2>&1; then
7661 ac_executable_p
="test -x"
7663 ac_executable_p
="test -f"
7667 # Extract the first word of "valgrind", so it can be a program name with args.
7668 set dummy valgrind
; ac_word
=$2
7669 echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671 if test "${ac_cv_path_valgrind_path+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 case "$valgrind_path" in
7676 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7679 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7680 for ac_dir
in $PATH; do
7682 test -z "$ac_dir" && ac_dir
=.
7683 for ac_exec_ext
in '' $ac_executable_extensions; do
7684 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7685 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7686 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7696 valgrind_path
="$ac_cv_path_valgrind_path"
7697 if test -n "$valgrind_path"; then
7698 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7699 echo "${ECHO_T}$valgrind_path" >&6
7701 echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6
7705 if test "x$valgrind_path" = "x" \
7706 ||
(test $have_valgrind_h = no \
7707 && test $gcc_cv_header_memcheck_h = no \
7708 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7709 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7710 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7711 { (exit 1); exit 1; }; }
7713 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7714 valgrind_command
="$valgrind_path -q"
7716 cat >>confdefs.h
<<\_ACEOF
7717 #define ENABLE_VALGRIND_CHECKING 1
7720 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7722 cat >>confdefs.h
<<\_ACEOF
7723 #define HAVE_VALGRIND_MEMCHECK_H 1
7727 if test $gcc_cv_header_memcheck_h = yes; then
7729 cat >>confdefs.h
<<\_ACEOF
7730 #define HAVE_MEMCHECK_H 1
7738 # Enable code coverage collection
7739 # Check whether --enable-coverage or --disable-coverage was given.
7740 if test "${enable_coverage+set}" = set; then
7741 enableval
="$enable_coverage"
7742 case "${enableval}" in
7744 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7747 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7750 # a.k.a. --disable-coverage
7754 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7755 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7756 { (exit 1); exit 1; }; }
7764 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7765 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7766 enableval
="$enable_gather_detailed_mem_stats"
7769 enable_gather_detailed_mem_stats
=no
7771 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7773 cat >>confdefs.h
<<\_ACEOF
7774 #define GATHER_STATISTICS 1
7779 # -------------------------------
7780 # Miscenalleous configure options
7781 # -------------------------------
7785 # Check whether --with-stabs or --without-stabs was given.
7786 if test "${with_stabs+set}" = set; then
7787 withval
="$with_stabs"
7793 # Determine whether or not multilibs are enabled.
7794 # Check whether --enable-multilib or --disable-multilib was given.
7795 if test "${enable_multilib+set}" = set; then
7796 enableval
="$enable_multilib"
7803 # Enable __cxa_atexit for C++.
7804 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7805 if test "${enable___cxa_atexit+set}" = set; then
7806 enableval
="$enable___cxa_atexit"
7810 # Enable C extension for decimal float if target supports it.
7811 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7812 if test "${enable_decimal_float+set}" = set; then
7813 enableval
="$enable_decimal_float"
7815 case $enable_decimal_float in
7816 yes | no | bid | dpd
) ;;
7817 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7818 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7819 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7820 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7821 { (exit 1); exit 1; }; } ;;
7827 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7828 enable_decimal_float
=yes
7831 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7832 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7833 enable_decimal_float
=no
7839 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7841 cat >>confdefs.h
<<_ACEOF
7842 #define ENABLE_DECIMAL_FLOAT $dfp
7846 # x86's use BID format instead of DPD
7847 case x
$enable_decimal_float in
7850 i?
86*-*-linux* | x86_64
*-*-linux*)
7851 enable_decimal_float
=bid
7854 enable_decimal_float
=dpd
7859 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7860 # dependency on libdecnumber.
7861 enable_decimal_float
=dpd
7866 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7868 cat >>confdefs.h
<<_ACEOF
7869 #define ENABLE_DECIMAL_BID_FORMAT $bid
7873 # Enable C extension for fixed-point arithmetic.
7874 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7875 if test "${enable_fixed_point+set}" = set; then
7876 enableval
="$enable_fixed_point"
7885 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7886 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7887 enable_fixed_point
=no
7890 enable_fixed_point
=yes
7895 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7896 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7897 enable_fixed_point
=no
7904 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7906 cat >>confdefs.h
<<_ACEOF
7907 #define ENABLE_FIXED_POINT $fixedpoint
7912 # Pass with no value to take the default
7913 # Pass with a value to specify a thread package
7914 # Check whether --enable-threads or --disable-threads was given.
7915 if test "${enable_threads+set}" = set; then
7916 enableval
="$enable_threads"
7922 # Check whether --enable-tls or --disable-tls was given.
7923 if test "${enable_tls+set}" = set; then
7924 enableval
="$enable_tls"
7928 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7929 Valid choices are 'yes' and 'no'." >&5
7930 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7931 Valid choices are 'yes' and 'no'." >&2;}
7932 { (exit 1); exit 1; }; } ;;
7939 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7940 if test "${enable_objc_gc+set}" = set; then
7941 enableval
="$enable_objc_gc"
7942 if test x
$enable_objc_gc = xno
; then
7952 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7953 if test "${with_dwarf2+set}" = set; then
7954 withval
="$with_dwarf2"
7955 dwarf2
="$with_dwarf2"
7960 # Check whether --enable-shared or --disable-shared was given.
7961 if test "${enable_shared+set}" = set; then
7962 enableval
="$enable_shared"
7964 case $enable_shared in
7968 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7969 for pkg
in $enableval; do
7970 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7984 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7985 if test "${with_build_sysroot+set}" = set; then
7986 withval
="$with_build_sysroot"
7991 # Check whether --with-sysroot or --without-sysroot was given.
7992 if test "${with_sysroot+set}" = set; then
7993 withval
="$with_sysroot"
7995 case ${with_sysroot} in
7996 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7997 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
8000 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8001 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8003 if test "x$prefix" = xNONE
; then
8004 test_prefix
=/usr
/local
8008 if test "x$exec_prefix" = xNONE
; then
8009 test_exec_prefix
=$test_prefix
8011 test_exec_prefix
=$exec_prefix
8013 case ${TARGET_SYSTEM_ROOT} in
8014 "${test_prefix}"|
"${test_prefix}/"*|\
8015 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
8016 '${prefix}'|
'${prefix}/'*|\
8017 '${exec_prefix}'|
'${exec_prefix}/'*)
8018 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8019 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8026 TARGET_SYSTEM_ROOT_DEFINE
=
8027 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
8034 # Build with intermodule optimisations
8035 # Check whether --enable-intermodule or --disable-intermodule was given.
8036 if test "${enable_intermodule+set}" = set; then
8037 enableval
="$enable_intermodule"
8038 case ${enable_intermodule} in
8039 yes) onestep
="-onestep";;
8049 # Check whether --with-pkgversion or --without-pkgversion was given.
8050 if test "${with_pkgversion+set}" = set; then
8051 withval
="$with_pkgversion"
8053 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8054 echo "$as_me: error: package version not specified" >&2;}
8055 { (exit 1); exit 1; }; } ;;
8057 *) PKGVERSION
="($withval) " ;;
8067 # Check whether --with-bugurl or --without-bugurl was given.
8068 if test "${with_bugurl+set}" = set; then
8069 withval
="$with_bugurl"
8071 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8072 echo "$as_me: error: bug URL not specified" >&2;}
8073 { (exit 1); exit 1; }; } ;;
8076 *) BUGURL
="$withval"
8080 BUGURL
="http://gcc.gnu.org/bugs.html"
8089 REPORT_BUGS_TO
="<$BUGURL>"
8090 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8097 # Sanity check enable_languages in case someone does not run the toplevel
8098 # configure # script.
8099 # Check whether --enable-languages or --disable-languages was given.
8100 if test "${enable_languages+set}" = set; then
8101 enableval
="$enable_languages"
8102 case ,${enable_languages}, in
8104 # go safe -- we cannot be much sure without the toplevel
8106 # analysis of which target libs are present and usable
8110 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8111 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8112 { (exit 1); exit 1; }; }
8117 enable_languages
=c
,${enable_languages}
8124 # Used by documentation targets
8129 # -------------------------
8130 # Checks for other programs
8131 # -------------------------
8133 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8134 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8135 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8136 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 cat >conftest.
make <<\_ACEOF
8141 @
echo 'ac_maketemp="$(MAKE)"'
8143 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8144 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8145 if test -n "$ac_maketemp"; then
8146 eval ac_cv_prog_make_
${ac_make}_set
=yes
8148 eval ac_cv_prog_make_
${ac_make}_set
=no
8152 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8153 echo "$as_me:$LINENO: result: yes" >&5
8154 echo "${ECHO_T}yes" >&6
8157 echo "$as_me:$LINENO: result: no" >&5
8158 echo "${ECHO_T}no" >&6
8159 SET_MAKE
="MAKE=${MAKE-make}"
8163 # Find some useful tools
8164 for ac_prog
in gawk mawk nawk
awk
8166 # Extract the first word of "$ac_prog", so it can be a program name with args.
8167 set dummy
$ac_prog; ac_word
=$2
8168 echo "$as_me:$LINENO: checking for $ac_word" >&5
8169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8170 if test "${ac_cv_prog_AWK+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 if test -n "$AWK"; then
8174 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8180 test -z "$as_dir" && as_dir
=.
8181 for ac_exec_ext
in '' $ac_executable_extensions; do
8182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8183 ac_cv_prog_AWK
="$ac_prog"
8184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 if test -n "$AWK"; then
8194 echo "$as_me:$LINENO: result: $AWK" >&5
8195 echo "${ECHO_T}$AWK" >&6
8197 echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6
8201 test -n "$AWK" && break
8204 # We need awk to create options.c and options.h.
8205 # Bail out if it's missing.
8207 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8208 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8209 { (exit 1); exit 1; }; } ;;
8212 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8213 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8214 if test "${gcc_cv_prog_LN_S+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 rm -f conftestdata_t
8218 echo >conftestdata_f
8219 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8221 gcc_cv_prog_LN_S
="ln -s"
8223 if ln conftestdata_f conftestdata_t
2>/dev
/null
8227 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8229 gcc_cv_prog_LN_S
="cp -p"
8235 rm -f conftestdata_f conftestdata_t
8238 LN_S
="$gcc_cv_prog_LN_S"
8239 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8240 echo "$as_me:$LINENO: result: yes" >&5
8241 echo "${ECHO_T}yes" >&6
8243 if test "$gcc_cv_prog_LN_S" = "ln"; then
8244 echo "$as_me:$LINENO: result: no, using ln" >&5
8245 echo "${ECHO_T}no, using ln" >&6
8247 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8248 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8252 echo "$as_me:$LINENO: checking whether ln works" >&5
8253 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8254 if test "${acx_cv_prog_LN+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 rm -f conftestdata_t
8258 echo >conftestdata_f
8259 if ln conftestdata_f conftestdata_t
2>/dev
/null
8265 rm -f conftestdata_f conftestdata_t
8268 if test $acx_cv_prog_LN = no
; then
8270 echo "$as_me:$LINENO: result: no, using $LN" >&5
8271 echo "${ECHO_T}no, using $LN" >&6
8273 LN
="$acx_cv_prog_LN"
8274 echo "$as_me:$LINENO: result: yes" >&5
8275 echo "${ECHO_T}yes" >&6
8278 if test -n "$ac_tool_prefix"; then
8279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8280 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8281 echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283 if test "${ac_cv_prog_RANLIB+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 if test -n "$RANLIB"; then
8287 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8293 test -z "$as_dir" && as_dir
=.
8294 for ac_exec_ext
in '' $ac_executable_extensions; do
8295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 RANLIB
=$ac_cv_prog_RANLIB
8306 if test -n "$RANLIB"; then
8307 echo "$as_me:$LINENO: result: $RANLIB" >&5
8308 echo "${ECHO_T}$RANLIB" >&6
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8315 if test -z "$ac_cv_prog_RANLIB"; then
8316 ac_ct_RANLIB
=$RANLIB
8317 # Extract the first word of "ranlib", so it can be a program name with args.
8318 set dummy ranlib
; ac_word
=$2
8319 echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8321 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 if test -n "$ac_ct_RANLIB"; then
8325 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8331 test -z "$as_dir" && as_dir
=.
8332 for ac_exec_ext
in '' $ac_executable_extensions; do
8333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8344 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8345 if test -n "$ac_ct_RANLIB"; then
8346 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8347 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8349 echo "$as_me:$LINENO: result: no" >&5
8350 echo "${ECHO_T}no" >&6
8353 RANLIB
=$ac_ct_RANLIB
8355 RANLIB
="$ac_cv_prog_RANLIB"
8360 # By default, the Darwin ranlib will not treat common symbols as
8361 # definitions when building the archive table of contents. Other
8362 # ranlibs do that; pass an option to the Darwin ranlib that makes
8363 # it behave similarly.
8371 # Find a good install program. We prefer a C program (faster),
8372 # so one script is as good as another. But avoid the broken or
8373 # incompatible versions:
8374 # SysV /etc/install, /usr/sbin/install
8375 # SunOS /usr/etc/install
8376 # IRIX /sbin/install
8378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8380 # ./install, which can be erroneously created by make from ./install.sh.
8381 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8382 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8383 if test -z "$INSTALL"; then
8384 if test "${ac_cv_path_install+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8388 for ac_dir
in $PATH; do
8389 # Account for people who put trailing slashes in PATH elements.
8391 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8393 # OSF1 and SCO ODT 3.0 have their own names for install.
8394 for ac_prog
in ginstall scoinst
install; do
8395 if test -f $ac_dir/$ac_prog; then
8396 if test $ac_prog = install &&
8397 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8398 # AIX install. It has an incompatible calling convention.
8399 # OSF/1 installbsd also uses dspmsg, but is usable.
8402 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8413 if test "${ac_cv_path_install+set}" = set; then
8414 INSTALL
="$ac_cv_path_install"
8416 # As a last resort, use the slow shell script. We don't cache a
8417 # path for INSTALL within a source directory, because that will
8418 # break other packages using the cache if that directory is
8419 # removed, or if the path is relative.
8420 INSTALL
="$ac_install_sh"
8423 echo "$as_me:$LINENO: result: $INSTALL" >&5
8424 echo "${ECHO_T}$INSTALL" >&6
8426 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8427 # It thinks the first close brace ends the variable substitution.
8428 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8430 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8433 # See if cmp has --ignore-initial.
8434 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8435 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8436 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 gcc_cv_prog_cmp_skip
=slowcompare
8442 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8443 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8446 gcc_cv_prog_cmp_skip
=gnucompare
8449 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8450 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8451 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8454 gcc_cv_prog_cmp_skip
=fastcompare
8461 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8462 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8463 make_compare_target
=$gcc_cv_prog_cmp_skip
8467 # See if we have the mktemp command.
8468 # Extract the first word of "mktemp", so it can be a program name with args.
8469 set dummy mktemp
; ac_word
=$2
8470 echo "$as_me:$LINENO: checking for $ac_word" >&5
8471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8472 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 if test -n "$have_mktemp_command"; then
8476 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8482 test -z "$as_dir" && as_dir
=.
8483 for ac_exec_ext
in '' $ac_executable_extensions; do
8484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_have_mktemp_command
="yes"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8495 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8496 if test -n "$have_mktemp_command"; then
8497 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8498 echo "${ECHO_T}$have_mktemp_command" >&6
8500 echo "$as_me:$LINENO: result: no" >&5
8501 echo "${ECHO_T}no" >&6
8505 # See if makeinfo has been installed and is modern enough
8506 # that we can use it.
8508 # Extract the first word of "makeinfo", so it can be a program name with args.
8509 set dummy makeinfo
; ac_word
=$2
8510 echo "$as_me:$LINENO: checking for $ac_word" >&5
8511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8512 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 if test -n "$MAKEINFO"; then
8516 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8522 test -z "$as_dir" && as_dir
=.
8523 for ac_exec_ext
in '' $ac_executable_extensions; do
8524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8525 ac_cv_prog_MAKEINFO
="makeinfo"
8526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 MAKEINFO
=$ac_cv_prog_MAKEINFO
8535 if test -n "$MAKEINFO"; then
8536 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8537 echo "${ECHO_T}$MAKEINFO" >&6
8539 echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6
8543 if test -n "$MAKEINFO"; then
8544 # Found it, now check the version.
8545 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8546 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8547 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8551 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8553 case $ac_prog_version in
8554 '') gcc_cv_prog_makeinfo_modern
=no
;;
8555 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8556 *) gcc_cv_prog_makeinfo_modern
=no
;;
8560 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8561 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8563 gcc_cv_prog_makeinfo_modern
=no
8565 if test $gcc_cv_prog_makeinfo_modern = no
; then
8566 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8569 if test $gcc_cv_prog_makeinfo_modern = no
; then
8570 { echo "$as_me:$LINENO: WARNING:
8571 *** Makeinfo is missing or too old.
8572 *** Info documentation will not be built." >&5
8573 echo "$as_me: WARNING:
8574 *** Makeinfo is missing or too old.
8575 *** Info documentation will not be built." >&2;}
8582 # Is pod2man recent enough to regenerate manpages?
8583 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8584 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8585 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8586 echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6
8588 GENERATED_MANPAGES
=generated-manpages
8590 echo "$as_me:$LINENO: result: no" >&5
8591 echo "${ECHO_T}no" >&6
8596 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8601 # Extract the first word of "$ac_prog", so it can be a program name with args.
8602 set dummy
$ac_prog; ac_word
=$2
8603 echo "$as_me:$LINENO: checking for $ac_word" >&5
8604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8605 if test "${ac_cv_prog_FLEX+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 if test -n "$FLEX"; then
8609 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8615 test -z "$as_dir" && as_dir
=.
8616 for ac_exec_ext
in '' $ac_executable_extensions; do
8617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618 ac_cv_prog_FLEX
="$ac_prog"
8619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 FLEX
=$ac_cv_prog_FLEX
8628 if test -n "$FLEX"; then
8629 echo "$as_me:$LINENO: result: $FLEX" >&5
8630 echo "${ECHO_T}$FLEX" >&6
8632 echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6
8636 test -n "$FLEX" && break
8638 test -n "$FLEX" || FLEX
="$MISSING flex"
8642 for ac_prog
in bison
8644 # Extract the first word of "$ac_prog", so it can be a program name with args.
8645 set dummy
$ac_prog; ac_word
=$2
8646 echo "$as_me:$LINENO: checking for $ac_word" >&5
8647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8648 if test "${ac_cv_prog_BISON+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 if test -n "$BISON"; then
8652 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8658 test -z "$as_dir" && as_dir
=.
8659 for ac_exec_ext
in '' $ac_executable_extensions; do
8660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_BISON
="$ac_prog"
8662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 BISON
=$ac_cv_prog_BISON
8671 if test -n "$BISON"; then
8672 echo "$as_me:$LINENO: result: $BISON" >&5
8673 echo "${ECHO_T}$BISON" >&6
8675 echo "$as_me:$LINENO: result: no" >&5
8676 echo "${ECHO_T}no" >&6
8679 test -n "$BISON" && break
8681 test -n "$BISON" || BISON
="$MISSING bison"
8684 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8685 # check for build == host before using them.
8688 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8689 && test -d ..
/binutils
; then
8690 NM
='$(objdir)/../binutils/nm-new'
8692 # Extract the first word of "nm", so it can be a program name with args.
8693 set dummy nm
; ac_word
=$2
8694 echo "$as_me:$LINENO: checking for $ac_word" >&5
8695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8696 if test "${ac_cv_prog_NM+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 if test -n "$NM"; then
8700 ac_cv_prog_NM
="$NM" # Let the user override the test.
8702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8706 test -z "$as_dir" && as_dir
=.
8707 for ac_exec_ext
in '' $ac_executable_extensions; do
8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8720 if test -n "$NM"; then
8721 echo "$as_me:$LINENO: result: $NM" >&5
8722 echo "${ECHO_T}$NM" >&6
8724 echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8731 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8732 && test -d ..
/binutils
; then
8733 AR
='$(objdir)/../binutils/ar'
8735 # Extract the first word of "ar", so it can be a program name with args.
8736 set dummy
ar; ac_word
=$2
8737 echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8739 if test "${ac_cv_prog_AR+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 if test -n "$AR"; then
8743 ac_cv_prog_AR
="$AR" # Let the user override the test.
8745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8749 test -z "$as_dir" && as_dir
=.
8750 for ac_exec_ext
in '' $ac_executable_extensions; do
8751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8763 if test -n "$AR"; then
8764 echo "$as_me:$LINENO: result: $AR" >&5
8765 echo "${ECHO_T}$AR" >&6
8767 echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6
8774 # --------------------
8775 # Checks for C headers
8776 # --------------------
8778 # Need to reject headers which give warnings, so that the -Werror bootstrap
8779 # works later. *sigh* This needs to come before all header checks.
8781 ac_c_preproc_warn_flag
=yes
8783 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8784 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8785 if test "${ac_cv_header_stdc+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 cat >conftest.
$ac_ext <<_ACEOF
8791 cat confdefs.h
>>conftest.
$ac_ext
8792 cat >>conftest.
$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8807 rm -f conftest.
$ac_objext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8809 (eval $ac_compile) 2>conftest.er1
8811 grep -v '^ *+' conftest.er1
>conftest.err
8813 cat conftest.err
>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try
='test -z "$ac_c_werror_flag"
8817 || test ! -s conftest.err'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; } &&
8823 { ac_try
='test -s conftest.$ac_objext'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 ac_cv_header_stdc
=yes
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.
$ac_ext >&5
8834 ac_cv_header_stdc
=no
8836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8838 if test $ac_cv_header_stdc = yes; then
8839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8840 cat >conftest.
$ac_ext <<_ACEOF
8843 cat confdefs.h
>>conftest.
$ac_ext
8844 cat >>conftest.
$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8850 $EGREP "memchr" >/dev
/null
2>&1; then
8853 ac_cv_header_stdc
=no
8859 if test $ac_cv_header_stdc = yes; then
8860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8861 cat >conftest.
$ac_ext <<_ACEOF
8864 cat confdefs.h
>>conftest.
$ac_ext
8865 cat >>conftest.
$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8871 $EGREP "free" >/dev
/null
2>&1; then
8874 ac_cv_header_stdc
=no
8880 if test $ac_cv_header_stdc = yes; then
8881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8882 if test "$cross_compiling" = yes; then
8885 cat >conftest.
$ac_ext <<_ACEOF
8888 cat confdefs.h
>>conftest.
$ac_ext
8889 cat >>conftest.
$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8892 #if ((' ' & 0x0FF) == 0x020)
8893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8896 # define ISLOWER(c) \
8897 (('a' <= (c) && (c) <= 'i') \
8898 || ('j' <= (c) && (c) <= 'r') \
8899 || ('s' <= (c) && (c) <= 'z'))
8900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8908 for (i = 0; i < 256; i++)
8909 if (XOR (islower (i), ISLOWER (i))
8910 || toupper (i) != TOUPPER (i))
8915 rm -f conftest
$ac_exeext
8916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8917 (eval $ac_link) 2>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8928 echo "$as_me: program exited with status $ac_status" >&5
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.
$ac_ext >&5
8933 ac_cv_header_stdc
=no
8935 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8939 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8940 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8941 if test $ac_cv_header_stdc = yes; then
8943 cat >>confdefs.h
<<\_ACEOF
8944 #define STDC_HEADERS 1
8949 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8950 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8951 if test "${ac_cv_header_time+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 cat >conftest.
$ac_ext <<_ACEOF
8957 cat confdefs.h
>>conftest.
$ac_ext
8958 cat >>conftest.
$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <sys/types.h>
8961 #include <sys/time.h>
8967 if ((struct tm *) 0)
8973 rm -f conftest.
$ac_objext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>conftest.er1
8977 grep -v '^ *+' conftest.er1
>conftest.err
8979 cat conftest.err
>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try
='test -z "$ac_c_werror_flag"
8983 || test ! -s conftest.err'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try
='test -s conftest.$ac_objext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_header_time
=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.
$ac_ext >&5
9000 ac_cv_header_time
=no
9002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9004 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9005 echo "${ECHO_T}$ac_cv_header_time" >&6
9006 if test $ac_cv_header_time = yes; then
9008 cat >>confdefs.h
<<\_ACEOF
9009 #define TIME_WITH_SYS_TIME 1
9014 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9015 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9016 if test "${gcc_cv_header_string+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 cat >conftest.
$ac_ext <<_ACEOF
9022 cat confdefs.h
>>conftest.
$ac_ext
9023 cat >>conftest.
$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9026 #include <strings.h>
9035 rm -f conftest.
$ac_objext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037 (eval $ac_compile) 2>conftest.er1
9039 grep -v '^ *+' conftest.er1
>conftest.err
9041 cat conftest.err
>&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
9044 { ac_try
='test -z "$ac_c_werror_flag"
9045 || test ! -s conftest.err'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try
='test -s conftest.$ac_objext'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9057 gcc_cv_header_string
=yes
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.
$ac_ext >&5
9062 gcc_cv_header_string
=no
9064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9066 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9067 echo "${ECHO_T}$gcc_cv_header_string" >&6
9068 if test $gcc_cv_header_string = yes; then
9070 cat >>confdefs.h
<<\_ACEOF
9071 #define STRING_WITH_STRINGS 1
9076 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9077 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9078 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 cat >conftest.
$ac_ext <<_ACEOF
9084 cat confdefs.h
>>conftest.
$ac_ext
9085 cat >>conftest.
$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 #include <sys/types.h>
9088 #include <sys/wait.h>
9090 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9093 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9101 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9106 rm -f conftest.
$ac_objext
9107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9108 (eval $ac_compile) 2>conftest.er1
9110 grep -v '^ *+' conftest.er1
>conftest.err
9112 cat conftest.err
>&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try
='test -z "$ac_c_werror_flag"
9116 || test ! -s conftest.err'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; } &&
9122 { ac_try
='test -s conftest.$ac_objext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_header_sys_wait_h
=yes
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.
$ac_ext >&5
9133 ac_cv_header_sys_wait_h
=no
9135 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9137 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9138 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9139 if test $ac_cv_header_sys_wait_h = yes; then
9141 cat >>confdefs.h
<<\_ACEOF
9142 #define HAVE_SYS_WAIT_H 1
9169 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9170 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9171 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
9172 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9174 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9175 echo "$as_me:$LINENO: checking for $ac_header" >&5
9176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 cat >conftest.
$ac_ext <<_ACEOF
9183 cat confdefs.h
>>conftest.
$ac_ext
9184 cat >>conftest.
$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 #include <$ac_header>
9188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9189 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9191 grep -v '^ *+' conftest.er1
>conftest.err
9193 cat conftest.err
>&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } >/dev
/null
; then
9196 if test -s conftest.err
; then
9197 ac_cpp_err
=$ac_c_preproc_warn_flag
9198 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9205 if test -z "$ac_cpp_err"; then
9206 eval "$as_ac_Header=yes"
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.
$ac_ext >&5
9211 eval "$as_ac_Header=no"
9213 rm -f conftest.err conftest.
$ac_ext
9215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9218 cat >>confdefs.h
<<_ACEOF
9219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9226 # Check for thread headers.
9227 echo "$as_me:$LINENO: checking for thread.h" >&5
9228 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9229 if test "${ac_cv_header_thread_h+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 cat >conftest.
$ac_ext <<_ACEOF
9235 cat confdefs.h
>>conftest.
$ac_ext
9236 cat >>conftest.
$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9243 grep -v '^ *+' conftest.er1
>conftest.err
9245 cat conftest.err
>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } >/dev
/null
; then
9248 if test -s conftest.err
; then
9249 ac_cpp_err
=$ac_c_preproc_warn_flag
9250 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9257 if test -z "$ac_cpp_err"; then
9258 ac_cv_header_thread_h
=yes
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.
$ac_ext >&5
9263 ac_cv_header_thread_h
=no
9265 rm -f conftest.err conftest.
$ac_ext
9267 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9268 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9269 if test $ac_cv_header_thread_h = yes; then
9275 echo "$as_me:$LINENO: checking for pthread.h" >&5
9276 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9277 if test "${ac_cv_header_pthread_h+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 cat >conftest.
$ac_ext <<_ACEOF
9283 cat confdefs.h
>>conftest.
$ac_ext
9284 cat >>conftest.
$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 #include <pthread.h>
9288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9289 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9291 grep -v '^ *+' conftest.er1
>conftest.err
9293 cat conftest.err
>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev
/null
; then
9296 if test -s conftest.err
; then
9297 ac_cpp_err
=$ac_c_preproc_warn_flag
9298 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9305 if test -z "$ac_cpp_err"; then
9306 ac_cv_header_pthread_h
=yes
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.
$ac_ext >&5
9311 ac_cv_header_pthread_h
=no
9313 rm -f conftest.err conftest.
$ac_ext
9315 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9316 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9317 if test $ac_cv_header_pthread_h = yes; then
9324 # These tests can't be done till we know if we have limits.h.
9325 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9326 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9327 if test "${gcc_cv_decl_char_bit+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 cat >conftest.
$ac_ext <<_ACEOF
9333 cat confdefs.h
>>conftest.
$ac_ext
9334 cat >>conftest.
$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 #ifdef HAVE_LIMITS_H
9343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9344 $EGREP "found" >/dev
/null
2>&1; then
9345 gcc_cv_decl_char_bit
=yes
9347 gcc_cv_decl_char_bit
=no
9353 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9354 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9355 if test $gcc_cv_decl_char_bit = no
; then
9356 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9357 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9358 if test "${gcc_cv_c_nbby+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 while test $i -lt 65; do
9364 cat >conftest.
$ac_ext <<_ACEOF
9367 cat confdefs.h
>>conftest.
$ac_ext
9368 cat >>conftest.
$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9375 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9376 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9382 rm -f conftest.
$ac_objext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9384 (eval $ac_compile) 2>conftest.er1
9386 grep -v '^ *+' conftest.er1
>conftest.err
9388 cat conftest.err
>&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try
='test -z "$ac_c_werror_flag"
9392 || test ! -s conftest.err'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; } &&
9398 { ac_try
='test -s conftest.$ac_objext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 gcc_cv_c_nbby
=$i; break
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.
$ac_ext >&5
9410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9413 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9416 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9417 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9418 if test $gcc_cv_c_nbby = failed
; then
9419 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9420 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9421 { (exit 1); exit 1; }; }
9424 cat >>confdefs.h
<<_ACEOF
9425 #define CHAR_BIT $gcc_cv_c_nbby
9430 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9431 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9432 if test "${ac_cv_c_bigendian+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 # See if sys/param.h defines the BYTE_ORDER macro.
9436 cat >conftest.
$ac_ext <<_ACEOF
9439 cat confdefs.h
>>conftest.
$ac_ext
9440 cat >>conftest.
$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442 #include <sys/types.h>
9443 #include <sys/param.h>
9448 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9456 rm -f conftest.
$ac_objext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9458 (eval $ac_compile) 2>conftest.er1
9460 grep -v '^ *+' conftest.er1
>conftest.err
9462 cat conftest.err
>&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try
='test -z "$ac_c_werror_flag"
9466 || test ! -s conftest.err'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try
='test -s conftest.$ac_objext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 # It does; now see whether it defined to BIG_ENDIAN or not.
9479 cat >conftest.
$ac_ext <<_ACEOF
9482 cat confdefs.h
>>conftest.
$ac_ext
9483 cat >>conftest.
$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 #include <sys/types.h>
9486 #include <sys/param.h>
9491 #if BYTE_ORDER != BIG_ENDIAN
9499 rm -f conftest.
$ac_objext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>conftest.er1
9503 grep -v '^ *+' conftest.er1
>conftest.err
9505 cat conftest.err
>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try
='test -z "$ac_c_werror_flag"
9509 || test ! -s conftest.err'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; } &&
9515 { ac_try
='test -s conftest.$ac_objext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_c_bigendian
=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.
$ac_ext >&5
9526 ac_cv_c_bigendian
=no
9528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.
$ac_ext >&5
9533 # It does not; compile a test program.
9534 if test "$cross_compiling" = yes; then
9535 # try to guess the endianness by grepping values into an object file
9536 ac_cv_c_bigendian
=unknown
9537 cat >conftest.
$ac_ext <<_ACEOF
9540 cat confdefs.h
>>conftest.
$ac_ext
9541 cat >>conftest.
$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9544 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9545 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9546 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9547 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9548 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9552 _ascii (); _ebcdic ();
9557 rm -f conftest.
$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>conftest.er1
9561 grep -v '^ *+' conftest.er1
>conftest.err
9563 cat conftest.err
>&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try
='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try
='test -s conftest.$ac_objext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9580 ac_cv_c_bigendian
=yes
9582 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9583 if test "$ac_cv_c_bigendian" = unknown
; then
9584 ac_cv_c_bigendian
=no
9586 # finding both strings is unlikely to happen, but who knows?
9587 ac_cv_c_bigendian
=unknown
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.
$ac_ext >&5
9595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9597 cat >conftest.
$ac_ext <<_ACEOF
9600 cat confdefs.h
>>conftest.
$ac_ext
9601 cat >>conftest.
$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9606 /* Are we little or big endian? From Harbison&Steele. */
9610 char c[sizeof (long)];
9613 exit (u.c[sizeof (long) - 1] == 1);
9616 rm -f conftest
$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 ac_cv_c_bigendian
=no
9629 echo "$as_me: program exited with status $ac_status" >&5
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.
$ac_ext >&5
9634 ac_cv_c_bigendian
=yes
9636 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9641 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9642 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9643 case $ac_cv_c_bigendian in
9646 cat >>confdefs.h
<<\_ACEOF
9647 #define WORDS_BIGENDIAN 1
9653 { { echo "$as_me:$LINENO: error: unknown endianness
9654 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9655 echo "$as_me: error: unknown endianness
9656 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9657 { (exit 1); exit 1; }; } ;;
9666 # These libraries may be used by collect2.
9667 # We may need a special search path to get them linked.
9668 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9669 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9670 if test "${gcc_cv_collect2_libs+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 for libs
in '' -lld -lmld \
9675 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9676 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9679 cat >conftest.
$ac_ext <<_ACEOF
9682 cat confdefs.h
>>conftest.
$ac_ext
9683 cat >>conftest.
$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 /* Override any gcc2 internal prototype to avoid an error. */
9690 /* We use char because int might match the return type of a gcc2
9691 builtin and then its argument prototype would still apply. */
9701 rm -f conftest.
$ac_objext conftest
$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>conftest.er1
9705 grep -v '^ *+' conftest.er1
>conftest.err
9707 cat conftest.err
>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try
='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try
='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 gcc_cv_collect2_libs
="$libs"; break
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.
$ac_ext >&5
9729 rm -f conftest.err conftest.
$ac_objext \
9730 conftest
$ac_exeext conftest.
$ac_ext
9733 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9735 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9736 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9737 case $gcc_cv_collect2_libs in
9739 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9743 # When building Ada code on Alpha, we need exc_resume which is usually in
9744 # -lexc. So test for it.
9747 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9748 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9749 if test "${ac_cv_search_exc_resume+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 ac_func_search_save_LIBS
=$LIBS
9753 ac_cv_search_exc_resume
=no
9754 cat >conftest.
$ac_ext <<_ACEOF
9757 cat confdefs.h
>>conftest.
$ac_ext
9758 cat >>conftest.
$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9761 /* Override any gcc2 internal prototype to avoid an error. */
9765 /* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9776 rm -f conftest.
$ac_objext conftest
$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9780 grep -v '^ *+' conftest.er1
>conftest.err
9782 cat conftest.err
>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try
='test -z "$ac_c_werror_flag"
9786 || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try
='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_search_exc_resume
="none required"
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.
$ac_ext >&5
9804 rm -f conftest.err conftest.
$ac_objext \
9805 conftest
$ac_exeext conftest.
$ac_ext
9806 if test "$ac_cv_search_exc_resume" = no
; then
9807 for ac_lib
in exc
; do
9808 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9809 cat >conftest.
$ac_ext <<_ACEOF
9812 cat confdefs.h
>>conftest.
$ac_ext
9813 cat >>conftest.
$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9816 /* Override any gcc2 internal prototype to avoid an error. */
9820 /* We use char because int might match the return type of a gcc2
9821 builtin and then its argument prototype would still apply. */
9831 rm -f conftest.
$ac_objext conftest
$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try
='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try
='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_cv_search_exc_resume
="-l$ac_lib"
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.
$ac_ext >&5
9860 rm -f conftest.err conftest.
$ac_objext \
9861 conftest
$ac_exeext conftest.
$ac_ext
9864 LIBS
=$ac_func_search_save_LIBS
9866 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9867 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9868 if test "$ac_cv_search_exc_resume" != no
; then
9869 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9877 # Some systems put ldexp and frexp in libm instead of libc; assume
9878 # they're both in the same place. jcf-dump needs them.
9881 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9882 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9883 if test "${ac_cv_search_ldexp+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 ac_func_search_save_LIBS
=$LIBS
9887 ac_cv_search_ldexp
=no
9888 cat >conftest.
$ac_ext <<_ACEOF
9891 cat confdefs.h
>>conftest.
$ac_ext
9892 cat >>conftest.
$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9895 /* Override any gcc2 internal prototype to avoid an error. */
9899 /* We use char because int might match the return type of a gcc2
9900 builtin and then its argument prototype would still apply. */
9910 rm -f conftest.
$ac_objext conftest
$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>conftest.er1
9914 grep -v '^ *+' conftest.er1
>conftest.err
9916 cat conftest.err
>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try
='test -z "$ac_c_werror_flag"
9920 || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try
='test -s conftest$ac_exeext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_search_ldexp
="none required"
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.
$ac_ext >&5
9938 rm -f conftest.err conftest.
$ac_objext \
9939 conftest
$ac_exeext conftest.
$ac_ext
9940 if test "$ac_cv_search_ldexp" = no
; then
9942 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9943 cat >conftest.
$ac_ext <<_ACEOF
9946 cat confdefs.h
>>conftest.
$ac_ext
9947 cat >>conftest.
$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9950 /* Override any gcc2 internal prototype to avoid an error. */
9954 /* We use char because int might match the return type of a gcc2
9955 builtin and then its argument prototype would still apply. */
9965 rm -f conftest.
$ac_objext conftest
$ac_exeext
9966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967 (eval $ac_link) 2>conftest.er1
9969 grep -v '^ *+' conftest.er1
>conftest.err
9971 cat conftest.err
>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try
='test -z "$ac_c_werror_flag"
9975 || test ! -s conftest.err'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; } &&
9981 { ac_try
='test -s conftest$ac_exeext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_search_ldexp
="-l$ac_lib"
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.
$ac_ext >&5
9994 rm -f conftest.err conftest.
$ac_objext \
9995 conftest
$ac_exeext conftest.
$ac_ext
9998 LIBS
=$ac_func_search_save_LIBS
10000 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10001 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10002 if test "$ac_cv_search_ldexp" != no
; then
10003 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
10011 # Use <inttypes.h> only if it exists,
10012 # doesn't clash with <sys/types.h>, and declares intmax_t.
10013 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10014 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10015 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 cat >conftest.
$ac_ext <<_ACEOF
10021 cat confdefs.h
>>conftest.
$ac_ext
10022 cat >>conftest.
$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 #include <sys/types.h>
10025 #include <inttypes.h>
10034 rm -f conftest.
$ac_objext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036 (eval $ac_compile) 2>conftest.er1
10038 grep -v '^ *+' conftest.er1
>conftest.err
10040 cat conftest.err
>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try
='test -z "$ac_c_werror_flag"
10044 || test ! -s conftest.err'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try
='test -s conftest.$ac_objext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 gcc_cv_header_inttypes_h
=yes
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.
$ac_ext >&5
10061 gcc_cv_header_inttypes_h
=no
10063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10066 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10067 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10068 if test $gcc_cv_header_inttypes_h = yes; then
10070 cat >>confdefs.h
<<\_ACEOF
10071 #define HAVE_INTTYPES_H 1
10113 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
10114 sysconf strsignal getrusage nl_langinfo scandir alphasort \
10115 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10116 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
10118 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10119 echo "$as_me:$LINENO: checking for $ac_func" >&5
10120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10121 if eval "test \"\${$as_ac_var+set}\" = set"; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 cat >conftest.
$ac_ext <<_ACEOF
10127 cat confdefs.h
>>conftest.
$ac_ext
10128 cat >>conftest.
$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10132 #define $ac_func innocuous_$ac_func
10134 /* System header to define __stub macros and hopefully few prototypes,
10135 which can conflict with char $ac_func (); below.
10136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10137 <limits.h> exists even on freestanding compilers. */
10140 # include <limits.h>
10142 # include <assert.h>
10147 /* Override any gcc2 internal prototype to avoid an error. */
10152 /* We use char because int might match the return type of a gcc2
10153 builtin and then its argument prototype would still apply. */
10155 /* The GNU C library defines this for functions which it implements
10156 to always fail with ENOSYS. Some functions are actually named
10157 something starting with __ and the normal name is an alias. */
10158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10161 char (*f) () = $ac_func;
10170 return f != $ac_func;
10175 rm -f conftest.
$ac_objext conftest
$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10179 grep -v '^ *+' conftest.er1
>conftest.err
10181 cat conftest.err
>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try
='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try
='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 eval "$as_ac_var=yes"
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.
$ac_ext >&5
10202 eval "$as_ac_var=no"
10204 rm -f conftest.err conftest.
$ac_objext \
10205 conftest
$ac_exeext conftest.
$ac_ext
10207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10209 if test `eval echo '${'$as_ac_var'}'` = yes; then
10210 cat >>confdefs.h
<<_ACEOF
10211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10218 if test x
$ac_cv_func_mbstowcs = xyes
; then
10219 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10220 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10221 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 if test "$cross_compiling" = yes; then
10225 gcc_cv_func_mbstowcs_works
=yes
10227 cat >conftest.
$ac_ext <<_ACEOF
10230 cat confdefs.h
>>conftest.
$ac_ext
10231 cat >>conftest.
$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10233 #include <stdlib.h>
10236 mbstowcs(0, "", 0);
10240 rm -f conftest
$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 gcc_cv_func_mbstowcs_works
=yes
10253 echo "$as_me: program exited with status $ac_status" >&5
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.
$ac_ext >&5
10257 ( exit $ac_status )
10258 gcc_cv_func_mbstowcs_works
=no
10260 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10263 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10264 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10265 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10267 cat >>confdefs.h
<<\_ACEOF
10268 #define HAVE_WORKING_MBSTOWCS 1
10274 echo "$as_me:$LINENO: checking for ssize_t" >&5
10275 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10276 if test "${ac_cv_type_ssize_t+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.
$ac_ext <<_ACEOF
10282 cat confdefs.h
>>conftest.
$ac_ext
10283 cat >>conftest.
$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 $ac_includes_default
10291 if (sizeof (ssize_t))
10297 rm -f conftest.
$ac_objext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299 (eval $ac_compile) 2>conftest.er1
10301 grep -v '^ *+' conftest.er1
>conftest.err
10303 cat conftest.err
>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try
='test -z "$ac_c_werror_flag"
10307 || test ! -s conftest.err'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try
='test -s conftest.$ac_objext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_type_ssize_t
=yes
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.
$ac_ext >&5
10324 ac_cv_type_ssize_t
=no
10326 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10328 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10329 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10330 if test $ac_cv_type_ssize_t = yes; then
10334 cat >>confdefs.h
<<_ACEOF
10335 #define ssize_t int
10341 # Try to determine the array type of the second argument of getgroups
10342 # for the target system (int or gid_t).
10343 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10344 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10345 if test "${ac_cv_type_uid_t+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 cat >conftest.
$ac_ext <<_ACEOF
10351 cat confdefs.h
>>conftest.
$ac_ext
10352 cat >>conftest.
$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 #include <sys/types.h>
10357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10358 $EGREP "uid_t" >/dev
/null
2>&1; then
10359 ac_cv_type_uid_t
=yes
10361 ac_cv_type_uid_t
=no
10366 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10367 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10368 if test $ac_cv_type_uid_t = no
; then
10370 cat >>confdefs.h
<<\_ACEOF
10375 cat >>confdefs.h
<<\_ACEOF
10381 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10382 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10383 if test "${ac_cv_type_getgroups+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 if test "$cross_compiling" = yes; then
10387 ac_cv_type_getgroups
=cross
10389 cat >conftest.
$ac_ext <<_ACEOF
10392 cat confdefs.h
>>conftest.
$ac_ext
10393 cat >>conftest.
$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 /* Thanks to Mike Rendell for this test. */
10396 #include <sys/types.h>
10399 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10404 gid_t gidset[NGID];
10406 union { gid_t gval; long lval; } val;
10409 for (i = 0; i < NGID; i++)
10410 gidset[i] = val.gval;
10411 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10413 /* Exit non-zero if getgroups seems to require an array of ints. This
10414 happens when gid_t is short but getgroups modifies an array of ints. */
10415 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10418 rm -f conftest
$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_cv_type_getgroups
=gid_t
10431 echo "$as_me: program exited with status $ac_status" >&5
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.
$ac_ext >&5
10435 ( exit $ac_status )
10436 ac_cv_type_getgroups
=int
10438 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10440 if test $ac_cv_type_getgroups = cross
; then
10441 cat >conftest.
$ac_ext <<_ACEOF
10444 cat confdefs.h
>>conftest.
$ac_ext
10445 cat >>conftest.
$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 #include <unistd.h>
10450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10451 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
10452 ac_cv_type_getgroups
=gid_t
10454 ac_cv_type_getgroups
=int
10460 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10461 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10463 cat >>confdefs.h
<<_ACEOF
10464 #define GETGROUPS_T $ac_cv_type_getgroups
10468 if test "${target}" = "${build}"; then
10469 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
10471 case "${target}" in
10472 # This condition may need some tweaking. It should include all
10473 # targets where the array type of the second argument of getgroups
10474 # is int and the type of gid_t is not equivalent to int.
10475 *-*-sunos* |
*-*-ultrix*)
10476 TARGET_GETGROUPS_T
=int
10479 TARGET_GETGROUPS_T
=gid_t
10486 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10487 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10488 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 cat >conftest.
$ac_ext <<_ACEOF
10494 cat confdefs.h
>>conftest.
$ac_ext
10495 cat >>conftest.
$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <sys/mman.h>
10499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10500 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10502 grep -v '^ *+' conftest.er1
>conftest.err
10504 cat conftest.err
>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } >/dev
/null
; then
10507 if test -s conftest.err
; then
10508 ac_cpp_err
=$ac_c_preproc_warn_flag
10509 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10516 if test -z "$ac_cpp_err"; then
10517 ac_cv_header_sys_mman_h
=yes
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.
$ac_ext >&5
10522 ac_cv_header_sys_mman_h
=no
10524 rm -f conftest.err conftest.
$ac_ext
10526 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10527 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10528 if test $ac_cv_header_sys_mman_h = yes; then
10529 gcc_header_sys_mman_h
=yes
10531 gcc_header_sys_mman_h
=no
10534 echo "$as_me:$LINENO: checking for mmap" >&5
10535 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10536 if test "${ac_cv_func_mmap+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 cat >conftest.
$ac_ext <<_ACEOF
10542 cat confdefs.h
>>conftest.
$ac_ext
10543 cat >>conftest.
$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10547 #define mmap innocuous_mmap
10549 /* System header to define __stub macros and hopefully few prototypes,
10550 which can conflict with char mmap (); below.
10551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10552 <limits.h> exists even on freestanding compilers. */
10555 # include <limits.h>
10557 # include <assert.h>
10562 /* Override any gcc2 internal prototype to avoid an error. */
10567 /* We use char because int might match the return type of a gcc2
10568 builtin and then its argument prototype would still apply. */
10570 /* The GNU C library defines this for functions which it implements
10571 to always fail with ENOSYS. Some functions are actually named
10572 something starting with __ and the normal name is an alias. */
10573 #if defined (__stub_mmap) || defined (__stub___mmap)
10576 char (*f) () = mmap;
10590 rm -f conftest.
$ac_objext conftest
$ac_exeext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>conftest.er1
10594 grep -v '^ *+' conftest.er1
>conftest.err
10596 cat conftest.err
>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try
='test -z "$ac_c_werror_flag"
10600 || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try
='test -s conftest$ac_exeext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_cv_func_mmap
=yes
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.
$ac_ext >&5
10619 rm -f conftest.err conftest.
$ac_objext \
10620 conftest
$ac_exeext conftest.
$ac_ext
10622 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10623 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10624 if test $ac_cv_func_mmap = yes; then
10630 if test "$gcc_header_sys_mman_h" != yes \
10631 ||
test "$gcc_func_mmap" != yes; then
10632 gcc_cv_func_mmap_file
=no
10633 gcc_cv_func_mmap_dev_zero
=no
10634 gcc_cv_func_mmap_anon
=no
10636 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10637 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10638 if test "${gcc_cv_func_mmap_file+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 # Add a system to this blacklist if
10642 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10643 # memory area containing the same data that you'd get if you applied
10644 # read() to the same fd. The only system known to have a problem here
10645 # is VMS, where text files have record structure.
10648 gcc_cv_func_mmap_file
=no
;;
10650 gcc_cv_func_mmap_file
=yes;;
10653 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10654 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10655 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10656 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10657 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 # Add a system to this blacklist if it has mmap() but /dev/zero
10661 # does not exist, or if mmapping /dev/zero does not give anonymous
10662 # zeroed pages with both the following properties:
10663 # 1. If you map N consecutive pages in with one call, and then
10664 # unmap any subset of those pages, the pages that were not
10665 # explicitly unmapped remain accessible.
10666 # 2. If you map two adjacent blocks of memory and then unmap them
10667 # both at once, they must both go away.
10668 # Systems known to be in this category are Windows (all variants),
10671 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10672 gcc_cv_func_mmap_dev_zero
=no
;;
10674 gcc_cv_func_mmap_dev_zero
=yes;;
10677 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10678 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10680 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10681 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10682 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10683 if test "${gcc_cv_decl_map_anon+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 cat >conftest.
$ac_ext <<_ACEOF
10689 cat confdefs.h
>>conftest.
$ac_ext
10690 cat >>conftest.
$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <sys/types.h>
10693 #include <sys/mman.h>
10694 #include <unistd.h>
10696 #ifndef MAP_ANONYMOUS
10697 #define MAP_ANONYMOUS MAP_ANON
10703 int n = MAP_ANONYMOUS;
10708 rm -f conftest.
$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10712 grep -v '^ *+' conftest.er1
>conftest.err
10714 cat conftest.err
>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try
='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try
='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 gcc_cv_decl_map_anon
=yes
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.
$ac_ext >&5
10735 gcc_cv_decl_map_anon
=no
10737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10739 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10740 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10742 if test $gcc_cv_decl_map_anon = no
; then
10743 gcc_cv_func_mmap_anon
=no
10745 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10746 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10747 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10751 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10752 # doesn't give anonymous zeroed pages with the same properties listed
10753 # above for use of /dev/zero.
10754 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10756 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10757 gcc_cv_func_mmap_anon
=no
;;
10759 gcc_cv_func_mmap_anon
=yes;;
10762 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10763 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10767 if test $gcc_cv_func_mmap_file = yes; then
10769 cat >>confdefs.h
<<\_ACEOF
10770 #define HAVE_MMAP_FILE 1
10774 if test $gcc_cv_func_mmap_dev_zero = yes; then
10776 cat >>confdefs.h
<<\_ACEOF
10777 #define HAVE_MMAP_DEV_ZERO 1
10781 if test $gcc_cv_func_mmap_anon = yes; then
10783 cat >>confdefs.h
<<\_ACEOF
10784 #define HAVE_MMAP_ANON 1
10792 # Under VMS, vfork works very differently than on Unix. The standard test
10793 # won't work, and it isn't easily adaptable. It makes more sense to
10795 ac_cv_func_vfork_works
=yes
10798 echo "$as_me:$LINENO: checking for pid_t" >&5
10799 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10800 if test "${ac_cv_type_pid_t+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 cat >conftest.
$ac_ext <<_ACEOF
10806 cat confdefs.h
>>conftest.
$ac_ext
10807 cat >>conftest.
$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 $ac_includes_default
10815 if (sizeof (pid_t))
10821 rm -f conftest.
$ac_objext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10823 (eval $ac_compile) 2>conftest.er1
10825 grep -v '^ *+' conftest.er1
>conftest.err
10827 cat conftest.err
>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } &&
10830 { ac_try
='test -z "$ac_c_werror_flag"
10831 || test ! -s conftest.err'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; } &&
10837 { ac_try
='test -s conftest.$ac_objext'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 ac_cv_type_pid_t
=yes
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.
$ac_ext >&5
10848 ac_cv_type_pid_t
=no
10850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10853 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10854 if test $ac_cv_type_pid_t = yes; then
10858 cat >>confdefs.h
<<_ACEOF
10866 for ac_header
in unistd.h vfork.h
10868 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869 echo "$as_me:$LINENO: checking for $ac_header" >&5
10870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 cat >conftest.
$ac_ext <<_ACEOF
10877 cat confdefs.h
>>conftest.
$ac_ext
10878 cat >>conftest.
$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 #include <$ac_header>
10882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10883 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10885 grep -v '^ *+' conftest.er1
>conftest.err
10887 cat conftest.err
>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } >/dev
/null
; then
10890 if test -s conftest.err
; then
10891 ac_cpp_err
=$ac_c_preproc_warn_flag
10892 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10899 if test -z "$ac_cpp_err"; then
10900 eval "$as_ac_Header=yes"
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.
$ac_ext >&5
10905 eval "$as_ac_Header=no"
10907 rm -f conftest.err conftest.
$ac_ext
10909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10912 cat >>confdefs.h
<<_ACEOF
10913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10921 for ac_func
in fork vfork
10923 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_var+set}\" = set"; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.
$ac_ext <<_ACEOF
10932 cat confdefs.h
>>conftest.
$ac_ext
10933 cat >>conftest.
$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937 #define $ac_func innocuous_$ac_func
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10945 # include <limits.h>
10947 # include <assert.h>
10952 /* Override any gcc2 internal prototype to avoid an error. */
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10960 /* The GNU C library defines this for functions which it implements
10961 to always fail with ENOSYS. Some functions are actually named
10962 something starting with __ and the normal name is an alias. */
10963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10966 char (*f) () = $ac_func;
10975 return f != $ac_func;
10980 rm -f conftest.
$ac_objext conftest
$ac_exeext
10981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10982 (eval $ac_link) 2>conftest.er1
10984 grep -v '^ *+' conftest.er1
>conftest.err
10986 cat conftest.err
>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 { ac_try
='test -z "$ac_c_werror_flag"
10990 || test ! -s conftest.err'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; } &&
10996 { ac_try
='test -s conftest$ac_exeext'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 eval "$as_ac_var=yes"
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.
$ac_ext >&5
11007 eval "$as_ac_var=no"
11009 rm -f conftest.err conftest.
$ac_objext \
11010 conftest
$ac_exeext conftest.
$ac_ext
11012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11014 if test `eval echo '${'$as_ac_var'}'` = yes; then
11015 cat >>confdefs.h
<<_ACEOF
11016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11022 if test "x$ac_cv_func_fork" = xyes
; then
11023 echo "$as_me:$LINENO: checking for working fork" >&5
11024 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11025 if test "${ac_cv_func_fork_works+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 if test "$cross_compiling" = yes; then
11029 ac_cv_func_fork_works
=cross
11031 cat >conftest.
$ac_ext <<_ACEOF
11032 /* By Ruediger Kuhlmann. */
11033 #include <sys/types.h>
11035 # include <unistd.h>
11037 /* Some systems only have a dummy stub for fork() */
11045 rm -f conftest
$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047 (eval $ac_link) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 ac_cv_func_fork_works
=yes
11058 echo "$as_me: program exited with status $ac_status" >&5
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.
$ac_ext >&5
11062 ( exit $ac_status )
11063 ac_cv_func_fork_works
=no
11065 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11068 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11069 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11072 ac_cv_func_fork_works
=$ac_cv_func_fork
11074 if test "x$ac_cv_func_fork_works" = xcross
; then
11076 *-*-amigaos* |
*-*-msdosdjgpp*)
11077 # Override, as these systems have only a dummy fork() stub
11078 ac_cv_func_fork_works
=no
11081 ac_cv_func_fork_works
=yes
11084 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11085 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11087 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11088 if test "x$ac_cv_func_vfork" = xyes
; then
11089 echo "$as_me:$LINENO: checking for working vfork" >&5
11090 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11091 if test "${ac_cv_func_vfork_works+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 if test "$cross_compiling" = yes; then
11095 ac_cv_func_vfork_works
=cross
11097 cat >conftest.
$ac_ext <<_ACEOF
11100 cat confdefs.h
>>conftest.
$ac_ext
11101 cat >>conftest.
$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 /* Thanks to Paul Eggert for this test. */
11105 #include <stdlib.h>
11106 #include <sys/types.h>
11107 #include <sys/stat.h>
11108 #include <sys/wait.h>
11110 # include <unistd.h>
11113 # include <vfork.h>
11115 /* On some sparc systems, changes by the child to local and incoming
11116 argument registers are propagated back to the parent. The compiler
11117 is told about this with #include <vfork.h>, but some compilers
11118 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11119 static variable whose address is put into a register that is
11120 clobbered by the vfork. */
11123 sparc_address_test (int arg)
11125 sparc_address_test (arg) int arg;
11128 static pid_t child;
11146 pid_t parent = getpid ();
11149 sparc_address_test (0);
11154 /* Here is another test for sparc vfork register problems. This
11155 test uses lots of local variables, at least as many local
11156 variables as main has allocated so far including compiler
11157 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11158 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11159 reuse the register of parent for one of the local variables,
11160 since it will think that parent can't possibly be used any more
11161 in this routine. Assigning to the local variable will thus
11162 munge parent in the parent process. */
11164 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11165 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11166 /* Convince the compiler that p..p7 are live; otherwise, it might
11167 use the same hardware register for all 8 local variables. */
11168 if (p != p1 || p != p2 || p != p3 || p != p4
11169 || p != p5 || p != p6 || p != p7)
11172 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11173 from child file descriptors. If the child closes a descriptor
11174 before it execs or exits, this munges the parent's descriptor
11175 as well. Test for this by closing stdout in the child. */
11176 _exit(close(fileno(stdout)) != 0);
11181 while (wait(&status) != child)
11184 /* Was there some problem with vforking? */
11187 /* Did the child fail? (This shouldn't happen.) */
11190 /* Did the vfork/compiler bug occur? */
11191 || parent != getpid()
11193 /* Did the file descriptor bug occur? */
11194 || fstat(fileno(stdout), &st) != 0
11199 rm -f conftest
$ac_exeext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11201 (eval $ac_link) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_func_vfork_works
=yes
11212 echo "$as_me: program exited with status $ac_status" >&5
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.
$ac_ext >&5
11216 ( exit $ac_status )
11217 ac_cv_func_vfork_works
=no
11219 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11222 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11223 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11226 if test "x$ac_cv_func_fork_works" = xcross
; then
11227 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11228 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11229 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11232 if test "x$ac_cv_func_vfork_works" = xyes
; then
11234 cat >>confdefs.h
<<\_ACEOF
11235 #define HAVE_WORKING_VFORK 1
11240 cat >>confdefs.h
<<\_ACEOF
11245 if test "x$ac_cv_func_fork_works" = xyes
; then
11247 cat >>confdefs.h
<<\_ACEOF
11248 #define HAVE_WORKING_FORK 1
11255 if test "X$prefix" = "XNONE"; then
11256 acl_final_prefix
="$ac_default_prefix"
11258 acl_final_prefix
="$prefix"
11260 if test "X$exec_prefix" = "XNONE"; then
11261 acl_final_exec_prefix
='${prefix}'
11263 acl_final_exec_prefix
="$exec_prefix"
11265 acl_save_prefix
="$prefix"
11266 prefix
="$acl_final_prefix"
11267 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11268 prefix
="$acl_save_prefix"
11271 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11272 if test "${with_gnu_ld+set}" = set; then
11273 withval
="$with_gnu_ld"
11274 test "$withval" = no || with_gnu_ld
=yes
11278 # Prepare PATH_SEPARATOR.
11279 # The user is always right.
11280 if test "${PATH_SEPARATOR+set}" != set; then
11281 echo "#! /bin/sh" >conf$$.sh
11282 echo "exit 0" >>conf$$.sh
11284 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11292 if test "$GCC" = yes; then
11293 # Check if gcc -print-prog-name=ld gives a path.
11294 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11295 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11298 # gcc leaves a trailing carriage return which upsets mingw
11299 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11301 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11304 # Accept absolute paths.
11305 [\\/]* |
[A-Za-z
]:[\\/]*)
11306 re_direlt
='/[^/][^/]*/\.\./'
11307 # Canonicalize the path of ld
11308 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11309 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11310 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11312 test -z "$LD" && LD
="$ac_prog"
11315 # If it fails, then pretend we aren't using GCC.
11319 # If it is relative, then search for the first ld in PATH.
11320 with_gnu_ld
=unknown
11323 elif test "$with_gnu_ld" = yes; then
11324 echo "$as_me:$LINENO: checking for GNU ld" >&5
11325 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11327 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11328 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11330 if test "${acl_cv_path_LD+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 if test -z "$LD"; then
11334 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11335 for ac_dir
in $PATH; do
11336 test -z "$ac_dir" && ac_dir
=.
11337 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11338 acl_cv_path_LD
="$ac_dir/$ac_prog"
11339 # Check to see if the program is GNU ld. I'd rather use --version,
11340 # but apparently some GNU ld's only accept -v.
11341 # Break only if it was the GNU/non-GNU ld that we prefer.
11342 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11343 test "$with_gnu_ld" != no
&& break
11345 test "$with_gnu_ld" != yes && break
11351 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11355 LD
="$acl_cv_path_LD"
11356 if test -n "$LD"; then
11357 echo "$as_me:$LINENO: result: $LD" >&5
11358 echo "${ECHO_T}$LD" >&6
11360 echo "$as_me:$LINENO: result: no" >&5
11361 echo "${ECHO_T}no" >&6
11363 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11364 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11365 { (exit 1); exit 1; }; }
11366 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11367 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11368 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11372 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11373 acl_cv_prog_gnu_ld
=yes
11375 acl_cv_prog_gnu_ld
=no
11378 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11379 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11380 with_gnu_ld
=$acl_cv_prog_gnu_ld
11384 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11385 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11386 if test "${acl_cv_rpath+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11391 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11393 rm -f .
/conftest.sh
11397 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11398 echo "${ECHO_T}$acl_cv_rpath" >&6
11400 libext
="$acl_cv_libext"
11401 shlibext
="$acl_cv_shlibext"
11402 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11403 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11404 hardcode_direct
="$acl_cv_hardcode_direct"
11405 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11406 # Check whether --enable-rpath or --disable-rpath was given.
11407 if test "${enable_rpath+set}" = set; then
11408 enableval
="$enable_rpath"
11422 acl_save_prefix
="$prefix"
11423 prefix
="$acl_final_prefix"
11424 acl_save_exec_prefix
="$exec_prefix"
11425 exec_prefix
="$acl_final_exec_prefix"
11427 eval additional_includedir
=\"$includedir\"
11428 eval additional_libdir
=\"$libdir\"
11430 exec_prefix
="$acl_save_exec_prefix"
11431 prefix
="$acl_save_prefix"
11434 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11435 if test "${with_libiconv_prefix+set}" = set; then
11436 withval
="$with_libiconv_prefix"
11438 if test "X$withval" = "Xno"; then
11441 if test "X$withval" = "X"; then
11443 acl_save_prefix
="$prefix"
11444 prefix
="$acl_final_prefix"
11445 acl_save_exec_prefix
="$exec_prefix"
11446 exec_prefix
="$acl_final_exec_prefix"
11448 eval additional_includedir
=\"$includedir\"
11449 eval additional_libdir
=\"$libdir\"
11451 exec_prefix
="$acl_save_exec_prefix"
11452 prefix
="$acl_save_prefix"
11455 additional_includedir
="$withval/include"
11456 additional_libdir
="$withval/lib"
11466 names_already_handled
=
11467 names_next_round
='iconv '
11468 while test -n "$names_next_round"; do
11469 names_this_round
="$names_next_round"
11471 for name
in $names_this_round; do
11473 for n
in $names_already_handled; do
11474 if test "$n" = "$name"; then
11475 already_handled
=yes
11479 if test -z "$already_handled"; then
11480 names_already_handled
="$names_already_handled $name"
11481 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11482 eval value
=\"\
$HAVE_LIB$uppername\"
11483 if test -n "$value"; then
11484 if test "$value" = yes; then
11485 eval value
=\"\
$LIB$uppername\"
11486 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11487 eval value
=\"\
$LTLIB$uppername\"
11488 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11497 if test $use_additional = yes; then
11498 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11499 found_dir
="$additional_libdir"
11500 found_so
="$additional_libdir/lib$name.$shlibext"
11501 if test -f "$additional_libdir/lib$name.la"; then
11502 found_la
="$additional_libdir/lib$name.la"
11505 if test -f "$additional_libdir/lib$name.$libext"; then
11506 found_dir
="$additional_libdir"
11507 found_a
="$additional_libdir/lib$name.$libext"
11508 if test -f "$additional_libdir/lib$name.la"; then
11509 found_la
="$additional_libdir/lib$name.la"
11514 if test "X$found_dir" = "X"; then
11515 for x
in $LDFLAGS $LTLIBICONV; do
11517 acl_save_prefix
="$prefix"
11518 prefix
="$acl_final_prefix"
11519 acl_save_exec_prefix
="$exec_prefix"
11520 exec_prefix
="$acl_final_exec_prefix"
11522 exec_prefix
="$acl_save_exec_prefix"
11523 prefix
="$acl_save_prefix"
11527 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11528 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11530 found_so
="$dir/lib$name.$shlibext"
11531 if test -f "$dir/lib$name.la"; then
11532 found_la
="$dir/lib$name.la"
11535 if test -f "$dir/lib$name.$libext"; then
11537 found_a
="$dir/lib$name.$libext"
11538 if test -f "$dir/lib$name.la"; then
11539 found_la
="$dir/lib$name.la"
11545 if test "X$found_dir" != "X"; then
11550 if test "X$found_dir" != "X"; then
11551 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11552 if test "X$found_so" != "X"; then
11553 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11554 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11557 for x
in $ltrpathdirs; do
11558 if test "X$x" = "X$found_dir"; then
11563 if test -z "$haveit"; then
11564 ltrpathdirs
="$ltrpathdirs $found_dir"
11566 if test "$hardcode_direct" = yes; then
11567 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11569 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11570 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11572 for x
in $rpathdirs; do
11573 if test "X$x" = "X$found_dir"; then
11578 if test -z "$haveit"; then
11579 rpathdirs
="$rpathdirs $found_dir"
11583 for x
in $LDFLAGS $LIBICONV; do
11585 acl_save_prefix
="$prefix"
11586 prefix
="$acl_final_prefix"
11587 acl_save_exec_prefix
="$exec_prefix"
11588 exec_prefix
="$acl_final_exec_prefix"
11590 exec_prefix
="$acl_save_exec_prefix"
11591 prefix
="$acl_save_prefix"
11593 if test "X$x" = "X-L$found_dir"; then
11598 if test -z "$haveit"; then
11599 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11601 if test "$hardcode_minus_L" != no
; then
11602 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11604 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11610 if test "X$found_a" != "X"; then
11611 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11613 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11616 additional_includedir
=
11617 case "$found_dir" in
11619 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11620 additional_includedir
="$basedir/include"
11623 if test "X$additional_includedir" != "X"; then
11624 if test "X$additional_includedir" != "X/usr/include"; then
11626 if test "X$additional_includedir" = "X/usr/local/include"; then
11627 if test -n "$GCC"; then
11629 linux
*) haveit
=yes;;
11633 if test -z "$haveit"; then
11634 for x
in $CPPFLAGS $INCICONV; do
11636 acl_save_prefix
="$prefix"
11637 prefix
="$acl_final_prefix"
11638 acl_save_exec_prefix
="$exec_prefix"
11639 exec_prefix
="$acl_final_exec_prefix"
11641 exec_prefix
="$acl_save_exec_prefix"
11642 prefix
="$acl_save_prefix"
11644 if test "X$x" = "X-I$additional_includedir"; then
11649 if test -z "$haveit"; then
11650 if test -d "$additional_includedir"; then
11651 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11657 if test -n "$found_la"; then
11658 save_libdir
="$libdir"
11659 case "$found_la" in
11660 */* |
*\\*) .
"$found_la" ;;
11661 *) .
"./$found_la" ;;
11663 libdir
="$save_libdir"
11664 for dep
in $dependency_libs; do
11667 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11668 if test "X$additional_libdir" != "X/usr/lib"; then
11670 if test "X$additional_libdir" = "X/usr/local/lib"; then
11671 if test -n "$GCC"; then
11673 linux
*) haveit
=yes;;
11677 if test -z "$haveit"; then
11679 for x
in $LDFLAGS $LIBICONV; do
11681 acl_save_prefix
="$prefix"
11682 prefix
="$acl_final_prefix"
11683 acl_save_exec_prefix
="$exec_prefix"
11684 exec_prefix
="$acl_final_exec_prefix"
11686 exec_prefix
="$acl_save_exec_prefix"
11687 prefix
="$acl_save_prefix"
11689 if test "X$x" = "X-L$additional_libdir"; then
11694 if test -z "$haveit"; then
11695 if test -d "$additional_libdir"; then
11696 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11700 for x
in $LDFLAGS $LTLIBICONV; do
11702 acl_save_prefix
="$prefix"
11703 prefix
="$acl_final_prefix"
11704 acl_save_exec_prefix
="$exec_prefix"
11705 exec_prefix
="$acl_final_exec_prefix"
11707 exec_prefix
="$acl_save_exec_prefix"
11708 prefix
="$acl_save_prefix"
11710 if test "X$x" = "X-L$additional_libdir"; then
11715 if test -z "$haveit"; then
11716 if test -d "$additional_libdir"; then
11717 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11724 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11725 if test "$enable_rpath" != no
; then
11727 for x
in $rpathdirs; do
11728 if test "X$x" = "X$dir"; then
11733 if test -z "$haveit"; then
11734 rpathdirs
="$rpathdirs $dir"
11737 for x
in $ltrpathdirs; do
11738 if test "X$x" = "X$dir"; then
11743 if test -z "$haveit"; then
11744 ltrpathdirs
="$ltrpathdirs $dir"
11749 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11752 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11755 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11756 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11762 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11763 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11769 if test "X$rpathdirs" != "X"; then
11770 if test -n "$hardcode_libdir_separator"; then
11772 for found_dir
in $rpathdirs; do
11773 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11775 acl_save_libdir
="$libdir"
11777 eval flag
=\"$hardcode_libdir_flag_spec\"
11778 libdir
="$acl_save_libdir"
11779 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11781 for found_dir
in $rpathdirs; do
11782 acl_save_libdir
="$libdir"
11783 libdir
="$found_dir"
11784 eval flag
=\"$hardcode_libdir_flag_spec\"
11785 libdir
="$acl_save_libdir"
11786 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11790 if test "X$ltrpathdirs" != "X"; then
11791 for found_dir
in $ltrpathdirs; do
11792 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11802 am_save_CPPFLAGS
="$CPPFLAGS"
11804 for element
in $INCICONV; do
11806 for x
in $CPPFLAGS; do
11808 acl_save_prefix
="$prefix"
11809 prefix
="$acl_final_prefix"
11810 acl_save_exec_prefix
="$exec_prefix"
11811 exec_prefix
="$acl_final_exec_prefix"
11813 exec_prefix
="$acl_save_exec_prefix"
11814 prefix
="$acl_save_prefix"
11816 if test "X$x" = "X$element"; then
11821 if test -z "$haveit"; then
11822 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11827 echo "$as_me:$LINENO: checking for iconv" >&5
11828 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11829 if test "${am_cv_func_iconv+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 am_cv_func_iconv
="no, consider installing GNU libiconv"
11835 cat >conftest.
$ac_ext <<_ACEOF
11838 cat confdefs.h
>>conftest.
$ac_ext
11839 cat >>conftest.
$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 #include <stdlib.h>
11846 iconv_t cd = iconv_open("","");
11847 iconv(cd,NULL,NULL,NULL,NULL);
11853 rm -f conftest.
$ac_objext conftest
$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>conftest.er1
11857 grep -v '^ *+' conftest.er1
>conftest.err
11859 cat conftest.err
>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try
='test -z "$ac_c_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try
='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 am_cv_func_iconv
=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.
$ac_ext >&5
11881 rm -f conftest.err conftest.
$ac_objext \
11882 conftest
$ac_exeext conftest.
$ac_ext
11883 if test "$am_cv_func_iconv" != yes; then
11884 am_save_LIBS
="$LIBS"
11885 LIBS
="$LIBS $LIBICONV"
11886 cat >conftest.
$ac_ext <<_ACEOF
11889 cat confdefs.h
>>conftest.
$ac_ext
11890 cat >>conftest.
$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 #include <stdlib.h>
11897 iconv_t cd = iconv_open("","");
11898 iconv(cd,NULL,NULL,NULL,NULL);
11904 rm -f conftest.
$ac_objext conftest
$ac_exeext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906 (eval $ac_link) 2>conftest.er1
11908 grep -v '^ *+' conftest.er1
>conftest.err
11910 cat conftest.err
>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try
='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try
='test -s conftest$ac_exeext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 am_cv_lib_iconv
=yes
11927 am_cv_func_iconv
=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.
$ac_ext >&5
11933 rm -f conftest.err conftest.
$ac_objext \
11934 conftest
$ac_exeext conftest.
$ac_ext
11935 LIBS
="$am_save_LIBS"
11939 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11940 echo "${ECHO_T}$am_cv_func_iconv" >&6
11941 if test "$am_cv_func_iconv" = yes; then
11943 cat >>confdefs.h
<<\_ACEOF
11944 #define HAVE_ICONV 1
11948 if test "$am_cv_lib_iconv" = yes; then
11949 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11950 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11951 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11952 echo "${ECHO_T}$LIBICONV" >&6
11954 CPPFLAGS
="$am_save_CPPFLAGS"
11961 if test "$am_cv_func_iconv" = yes; then
11962 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11963 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11964 if test "${am_cv_proto_iconv+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 cat >conftest.
$ac_ext <<_ACEOF
11971 cat confdefs.h
>>conftest.
$ac_ext
11972 cat >>conftest.
$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11975 #include <stdlib.h>
11981 #if defined(__STDC__) || defined(__cplusplus)
11982 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11995 rm -f conftest.
$ac_objext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997 (eval $ac_compile) 2>conftest.er1
11999 grep -v '^ *+' conftest.er1
>conftest.err
12001 cat conftest.err
>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try
='test -z "$ac_c_werror_flag"
12005 || test ! -s conftest.err'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try
='test -s conftest.$ac_objext'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 am_cv_proto_iconv_arg1
=""
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.
$ac_ext >&5
12022 am_cv_proto_iconv_arg1
="const"
12024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12025 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);"
12028 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12029 echo "$as_me:$LINENO: result: ${ac_t:-
12030 }$am_cv_proto_iconv" >&5
12031 echo "${ECHO_T}${ac_t:-
12032 }$am_cv_proto_iconv" >&6
12034 cat >>confdefs.h
<<_ACEOF
12035 #define ICONV_CONST $am_cv_proto_iconv_arg1
12040 # Until we have in-tree GNU iconv:
12045 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12046 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12047 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.
$ac_ext <<_ACEOF
12053 cat confdefs.h
>>conftest.
$ac_ext
12054 cat >>conftest.
$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <locale.h>
12065 rm -f conftest.
$ac_objext conftest
$ac_exeext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12067 (eval $ac_link) 2>conftest.er1
12069 grep -v '^ *+' conftest.er1
>conftest.err
12071 cat conftest.err
>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try
='test -z "$ac_c_werror_flag"
12075 || test ! -s conftest.err'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try
='test -s conftest$ac_exeext'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 am_cv_val_LC_MESSAGES
=yes
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.
$ac_ext >&5
12092 am_cv_val_LC_MESSAGES
=no
12094 rm -f conftest.err conftest.
$ac_objext \
12095 conftest
$ac_exeext conftest.
$ac_ext
12097 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12098 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12099 if test $am_cv_val_LC_MESSAGES = yes; then
12101 cat >>confdefs.h
<<\_ACEOF
12102 #define HAVE_LC_MESSAGES 1
12109 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12110 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12111 if test "${am_cv_langinfo_codeset+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 cat >conftest.
$ac_ext <<_ACEOF
12117 cat confdefs.h
>>conftest.
$ac_ext
12118 cat >>conftest.
$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 #include <langinfo.h>
12124 char* cs = nl_langinfo(CODESET);
12129 rm -f conftest.
$ac_objext conftest
$ac_exeext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>conftest.er1
12133 grep -v '^ *+' conftest.er1
>conftest.err
12135 cat conftest.err
>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try
='test -z "$ac_c_werror_flag"
12139 || test ! -s conftest.err'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; } &&
12145 { ac_try
='test -s conftest$ac_exeext'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 am_cv_langinfo_codeset
=yes
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.
$ac_ext >&5
12156 am_cv_langinfo_codeset
=no
12158 rm -f conftest.err conftest.
$ac_objext \
12159 conftest
$ac_exeext conftest.
$ac_ext
12162 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12163 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12164 if test $am_cv_langinfo_codeset = yes; then
12166 cat >>confdefs.h
<<\_ACEOF
12167 #define HAVE_LANGINFO_CODESET 1
12173 # We will need to find libiberty.h and ansidecl.h
12174 saved_CFLAGS
="$CFLAGS"
12175 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12215 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
12216 strsignal strstr strverscmp \
12217 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12218 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
12220 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12221 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12222 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12223 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 cat >conftest.
$ac_ext <<_ACEOF
12229 cat confdefs.h
>>conftest.
$ac_ext
12230 cat >>conftest.
$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 #define $ac_tr_decl 1
12235 #include "ansidecl.h"
12236 #include "system.h"
12242 char *(*pfn) = (char *(*)) $ac_func ;
12248 rm -f conftest.
$ac_objext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>conftest.er1
12252 grep -v '^ *+' conftest.er1
>conftest.err
12254 cat conftest.err
>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try
='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try
='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 eval "gcc_cv_have_decl_$ac_func=yes"
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.
$ac_ext >&5
12275 eval "gcc_cv_have_decl_$ac_func=no"
12277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12280 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12281 echo "$as_me:$LINENO: result: yes" >&5
12282 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12283 #define $ac_tr_decl 1
12287 echo "$as_me:$LINENO: result: no" >&5
12288 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12289 #define $ac_tr_decl 0
12300 for ac_func
in getrlimit setrlimit getrusage
12302 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12303 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12304 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12305 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 cat >conftest.
$ac_ext <<_ACEOF
12311 cat confdefs.h
>>conftest.
$ac_ext
12312 cat >>conftest.
$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 #define $ac_tr_decl 1
12317 #include "ansidecl.h"
12318 #include "system.h"
12319 #ifdef HAVE_SYS_RESOURCE_H
12320 #include <sys/resource.h>
12328 char *(*pfn) = (char *(*)) $ac_func ;
12334 rm -f conftest.
$ac_objext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12336 (eval $ac_compile) 2>conftest.er1
12338 grep -v '^ *+' conftest.er1
>conftest.err
12340 cat conftest.err
>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try
='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try
='test -s conftest.$ac_objext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 eval "gcc_cv_have_decl_$ac_func=yes"
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.
$ac_ext >&5
12361 eval "gcc_cv_have_decl_$ac_func=no"
12363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12366 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12367 echo "$as_me:$LINENO: result: yes" >&5
12368 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12369 #define $ac_tr_decl 1
12373 echo "$as_me:$LINENO: result: no" >&5
12374 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12375 #define $ac_tr_decl 0
12383 cat >conftest.
$ac_ext <<_ACEOF
12386 cat confdefs.h
>>conftest.
$ac_ext
12387 cat >>conftest.
$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12390 #include "ansidecl.h"
12391 #include "system.h"
12392 #ifdef HAVE_SYS_RESOURCE_H
12393 #include <sys/resource.h>
12404 rm -f conftest.
$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>conftest.er1
12408 grep -v '^ *+' conftest.er1
>conftest.err
12410 cat conftest.err
>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try
='test -z "$ac_c_werror_flag"
12414 || test ! -s conftest.err'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try
='test -s conftest.$ac_objext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.
$ac_ext >&5
12432 cat >>confdefs.h
<<\_ACEOF
12433 #define rlim_t long
12437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12439 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12440 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12441 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12442 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12444 for ac_func
in ldgetname
12446 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12447 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12448 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12449 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 cat >conftest.
$ac_ext <<_ACEOF
12455 cat confdefs.h
>>conftest.
$ac_ext
12456 cat >>conftest.
$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12459 #define $ac_tr_decl 1
12461 #include "ansidecl.h"
12462 #include "system.h"
12463 #ifdef HAVE_LDFCN_H
12474 char *(*pfn) = (char *(*)) $ac_func ;
12480 rm -f conftest.
$ac_objext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12482 (eval $ac_compile) 2>conftest.er1
12484 grep -v '^ *+' conftest.er1
>conftest.err
12486 cat conftest.err
>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try
='test -z "$ac_c_werror_flag"
12490 || test ! -s conftest.err'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try
='test -s conftest.$ac_objext'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 eval "gcc_cv_have_decl_$ac_func=yes"
12504 echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.
$ac_ext >&5
12507 eval "gcc_cv_have_decl_$ac_func=no"
12509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12512 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12513 echo "$as_me:$LINENO: result: yes" >&5
12514 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12515 #define $ac_tr_decl 1
12519 echo "$as_me:$LINENO: result: no" >&5
12520 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12521 #define $ac_tr_decl 0
12530 for ac_func
in times
12532 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12533 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12534 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12535 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 cat >conftest.
$ac_ext <<_ACEOF
12541 cat confdefs.h
>>conftest.
$ac_ext
12542 cat >>conftest.
$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12545 #define $ac_tr_decl 1
12547 #include "ansidecl.h"
12548 #include "system.h"
12549 #ifdef HAVE_SYS_TIMES_H
12550 #include <sys/times.h>
12558 char *(*pfn) = (char *(*)) $ac_func ;
12564 rm -f conftest.
$ac_objext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566 (eval $ac_compile) 2>conftest.er1
12568 grep -v '^ *+' conftest.er1
>conftest.err
12570 cat conftest.err
>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
12573 { ac_try
='test -z "$ac_c_werror_flag"
12574 || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try
='test -s conftest.$ac_objext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 eval "gcc_cv_have_decl_$ac_func=yes"
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.
$ac_ext >&5
12591 eval "gcc_cv_have_decl_$ac_func=no"
12593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12596 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12597 echo "$as_me:$LINENO: result: yes" >&5
12598 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12599 #define $ac_tr_decl 1
12603 echo "$as_me:$LINENO: result: no" >&5
12604 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12605 #define $ac_tr_decl 0
12614 for ac_func
in sigaltstack
12616 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12617 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12618 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12619 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 cat >conftest.
$ac_ext <<_ACEOF
12625 cat confdefs.h
>>conftest.
$ac_ext
12626 cat >>conftest.
$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 #define $ac_tr_decl 1
12631 #include "ansidecl.h"
12632 #include "system.h"
12633 #include <signal.h>
12640 char *(*pfn) = (char *(*)) $ac_func ;
12646 rm -f conftest.
$ac_objext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12648 (eval $ac_compile) 2>conftest.er1
12650 grep -v '^ *+' conftest.er1
>conftest.err
12652 cat conftest.err
>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try
='test -z "$ac_c_werror_flag"
12656 || test ! -s conftest.err'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try
='test -s conftest.$ac_objext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 eval "gcc_cv_have_decl_$ac_func=yes"
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.
$ac_ext >&5
12673 eval "gcc_cv_have_decl_$ac_func=no"
12675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12678 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12679 echo "$as_me:$LINENO: result: yes" >&5
12680 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12681 #define $ac_tr_decl 1
12685 echo "$as_me:$LINENO: result: no" >&5
12686 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12687 #define $ac_tr_decl 0
12695 # More time-related stuff.
12696 echo "$as_me:$LINENO: checking for struct tms" >&5
12697 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12698 if test "${ac_cv_struct_tms+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 cat >conftest.
$ac_ext <<_ACEOF
12705 cat confdefs.h
>>conftest.
$ac_ext
12706 cat >>conftest.
$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12709 #include "ansidecl.h"
12710 #include "system.h"
12711 #ifdef HAVE_SYS_TIMES_H
12712 #include <sys/times.h>
12723 rm -f conftest.
$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>conftest.er1
12727 grep -v '^ *+' conftest.er1
>conftest.err
12729 cat conftest.err
>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try
='test -z "$ac_c_werror_flag"
12733 || test ! -s conftest.err'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try
='test -s conftest.$ac_objext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_struct_tms
=yes
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.
$ac_ext >&5
12750 ac_cv_struct_tms
=no
12752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12754 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12755 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12756 if test $ac_cv_struct_tms = yes; then
12758 cat >>confdefs.h
<<\_ACEOF
12759 #define HAVE_STRUCT_TMS 1
12764 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12765 # revisit after autoconf 2.50.
12766 echo "$as_me:$LINENO: checking for clock_t" >&5
12767 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12768 if test "${gcc_cv_type_clock_t+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 cat >conftest.
$ac_ext <<_ACEOF
12775 cat confdefs.h
>>conftest.
$ac_ext
12776 cat >>conftest.
$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12779 #include "ansidecl.h"
12780 #include "system.h"
12790 rm -f conftest.
$ac_objext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12792 (eval $ac_compile) 2>conftest.er1
12794 grep -v '^ *+' conftest.er1
>conftest.err
12796 cat conftest.err
>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try
='test -z "$ac_c_werror_flag"
12800 || test ! -s conftest.err'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; } &&
12806 { ac_try
='test -s conftest.$ac_objext'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 gcc_cv_type_clock_t
=yes
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.
$ac_ext >&5
12817 gcc_cv_type_clock_t
=no
12819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12821 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12822 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12823 if test $gcc_cv_type_clock_t = yes; then
12825 cat >>confdefs.h
<<\_ACEOF
12826 #define HAVE_CLOCK_T 1
12831 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12832 CFLAGS
="$saved_CFLAGS"
12834 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12835 if test "${enable_initfini_array+set}" = set; then
12836 enableval
="$enable_initfini_array"
12840 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12841 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12842 if test "${gcc_cv_initfini_array+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 if test "$cross_compiling" = yes; then
12846 gcc_cv_initfini_array
=no
12848 cat >conftest.
$ac_ext <<_ACEOF
12851 cat confdefs.h
>>conftest.
$ac_ext
12852 cat >>conftest.
$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12856 int main (void) { return x; }
12857 int foo (void) { x = 0; }
12858 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12860 rm -f conftest
$ac_exeext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862 (eval $ac_link) 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 gcc_cv_initfini_array
=yes
12873 echo "$as_me: program exited with status $ac_status" >&5
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.
$ac_ext >&5
12877 ( exit $ac_status )
12878 gcc_cv_initfini_array
=no
12880 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12883 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12884 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12885 enable_initfini_array
=$gcc_cv_initfini_array
12888 if test $enable_initfini_array = yes; then
12890 cat >>confdefs.h
<<\_ACEOF
12891 #define HAVE_INITFINI_ARRAY 1
12896 # mkdir takes a single argument on some systems.
12897 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12898 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12899 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 cat >conftest.
$ac_ext <<_ACEOF
12905 cat confdefs.h
>>conftest.
$ac_ext
12906 cat >>conftest.
$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12909 #include <sys/types.h>
12910 #ifdef HAVE_SYS_STAT_H
12911 # include <sys/stat.h>
12913 #ifdef HAVE_UNISTD_H
12914 # include <unistd.h>
12916 #ifdef HAVE_DIRECT_H
12917 # include <direct.h>
12927 rm -f conftest.
$ac_objext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>conftest.er1
12931 grep -v '^ *+' conftest.er1
>conftest.err
12933 cat conftest.err
>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try
='test -z "$ac_c_werror_flag"
12937 || test ! -s conftest.err'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try
='test -s conftest.$ac_objext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 gcc_cv_mkdir_takes_one_arg
=no
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.
$ac_ext >&5
12954 gcc_cv_mkdir_takes_one_arg
=yes
12956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12958 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12959 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12960 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12962 cat >>confdefs.h
<<\_ACEOF
12963 #define MKDIR_TAKES_ONE_ARG 1
12975 # With Setjmp/Longjmp based exception handling.
12976 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12977 if test "${enable_sjlj_exceptions+set}" = set; then
12978 enableval
="$enable_sjlj_exceptions"
12981 if test $enableval != yes; then
12982 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12983 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12988 force_sjlj_exceptions
=yes
12992 force_sjlj_exceptions
=yes
12996 force_sjlj_exceptions
=no
13000 if test $force_sjlj_exceptions = yes; then
13001 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
13003 cat >>confdefs.h
<<_ACEOF
13004 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13009 # For platforms with the unwind ABI which includes an unwind library,
13010 # libunwind, we can choose to use the system libunwind.
13012 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13013 if test "${with_system_libunwind+set}" = set; then
13014 withval
="$with_system_libunwind"
13018 # config.gcc also contains tests of with_system_libunwind.
13019 if test x
$with_system_libunwind = xyes
; then
13021 cat >>confdefs.h
<<\_ACEOF
13022 #define HAVE_GETIPINFO 1
13027 # --------------------------------------------------------
13028 # Build, host, and target specific configuration fragments
13029 # --------------------------------------------------------
13031 # Collect build-machine-specific information.
13032 .
${srcdir}/config.build
13034 # Collect host-machine-specific information.
13035 .
${srcdir}/config.
host
13039 # Collect target-machine-specific information.
13040 .
${srcdir}/config.gcc
13042 extra_objs
="${host_extra_objs} ${extra_objs}"
13043 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13045 # Default the target-machine variables that were not explicitly set.
13046 if test x
"$tm_file" = x
13047 then tm_file
=$cpu_type/$cpu_type.h
; fi
13049 if test x
"$extra_headers" = x
13050 then extra_headers
=; fi
13052 if test x
$md_file = x
13053 then md_file
=$cpu_type/$cpu_type.md
; fi
13055 if test x
$out_file = x
13056 then out_file
=$cpu_type/$cpu_type.c
; fi
13058 if test x
"$tmake_file" = x
13059 then tmake_file
=$cpu_type/t-
$cpu_type
13062 if test x
"$dwarf2" = xyes
13063 then tm_file
="$tm_file tm-dwarf2.h"
13066 # Say what files are being used for the output code and MD file.
13067 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13068 echo "Using \`$srcdir/config/$md_file' as machine description file."
13070 # If any of the xm_file variables contain nonexistent files, warn
13071 # about them and drop them.
13074 for x
in $build_xm_file; do
13075 if test -f $srcdir/config
/$x
13077 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13078 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13081 build_xm_file
="$bx"
13084 for x
in $host_xm_file; do
13085 if test -f $srcdir/config
/$x
13087 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13088 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13094 for x
in $xm_file; do
13095 if test -f $srcdir/config
/$x
13097 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13098 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13104 for f
in $tm_file; do
13107 if test $count = ax
; then
13108 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13110 echo "Using the following target machine macro files:"
13111 for f
in $tm_file; do
13112 echo " $srcdir/config/$f"
13116 if test x
$need_64bit_hwint = xyes
; then
13118 cat >>confdefs.h
<<\_ACEOF
13119 #define NEED_64BIT_HOST_WIDE_INT 1
13124 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13126 cat >>confdefs.h
<<\_ACEOF
13127 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13133 for f
in $host_xm_file; do
13136 if test $count = a
; then
13138 elif test $count = ax
; then
13139 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13141 echo "Using the following host machine macro files:"
13142 for f
in $host_xm_file; do
13143 echo " $srcdir/config/$f"
13146 echo "Using ${out_host_hook_obj} for host machine hooks."
13148 if test "$host_xm_file" != "$build_xm_file"; then
13150 for f
in $build_xm_file; do
13153 if test $count = a
; then
13155 elif test $count = ax
; then
13156 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13158 echo "Using the following build machine macro files:"
13159 for f
in $build_xm_file; do
13160 echo " $srcdir/config/$f"
13166 powerpc
*-*-darwin*)
13167 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13168 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13169 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 cat >conftest.
$ac_ext <<_ACEOF
13174 #include <sys/cdefs.h>
13175 #include <sys/signal.h>
13176 #include <ucontext.h>
13177 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13180 rm -f conftest.
$ac_objext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182 (eval $ac_compile) 2>conftest.er1
13184 grep -v '^ *+' conftest.er1
>conftest.err
13186 cat conftest.err
>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try
='test -z "$ac_c_werror_flag"
13190 || test ! -s conftest.err'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; } &&
13196 { ac_try
='test -s conftest.$ac_objext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 gcc_cv_mcontext_underscores
=no
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.
$ac_ext >&5
13207 gcc_cv_mcontext_underscores
=yes
13209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13211 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13212 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13213 if test $gcc_cv_mcontext_underscores = yes; then
13215 cat >>confdefs.h
<<\_ACEOF
13216 #define HAS_MCONTEXT_T_UNDERSCORES
13227 # Check if a valid thread package
13228 case ${enable_threads} in
13231 target_thread_file
='single'
13235 target_thread_file
='single'
13237 aix | dce | gnat | irix | posix | posix95 | rtems | \
13238 single | solaris | vxworks | win32 | mipssde
)
13239 target_thread_file
=${enable_threads}
13242 echo "${enable_threads} is an unknown thread package" 1>&2
13247 if test x
${thread_file} = x
; then
13248 # No thread file set by target-specific clauses in config.gcc,
13249 # so use file chosen by default logic above
13250 thread_file
=${target_thread_file}
13253 # Make gthr-default.h if we have a thread file.
13255 if test $thread_file != single
; then
13256 rm -f gthr-default.h
13257 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
13258 gthread_flags
=-DHAVE_GTHR_DEFAULT
13267 if test x
$enable___cxa_atexit = xyes || \
13268 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13269 if test x
$host = x
$target; then
13271 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13272 # keyed to flag_use_cxa_atexit
13277 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13278 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13279 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 cat >conftest.
$ac_ext <<_ACEOF
13285 cat confdefs.h
>>conftest.
$ac_ext
13286 cat >>conftest.
$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13288 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13290 #define __cxa_atexit innocuous___cxa_atexit
13292 /* System header to define __stub macros and hopefully few prototypes,
13293 which can conflict with char __cxa_atexit (); below.
13294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13295 <limits.h> exists even on freestanding compilers. */
13298 # include <limits.h>
13300 # include <assert.h>
13303 #undef __cxa_atexit
13305 /* Override any gcc2 internal prototype to avoid an error. */
13310 /* We use char because int might match the return type of a gcc2
13311 builtin and then its argument prototype would still apply. */
13312 char __cxa_atexit ();
13313 /* The GNU C library defines this for functions which it implements
13314 to always fail with ENOSYS. Some functions are actually named
13315 something starting with __ and the normal name is an alias. */
13316 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13319 char (*f) () = __cxa_atexit;
13328 return f != __cxa_atexit;
13333 rm -f conftest.
$ac_objext conftest
$ac_exeext
13334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13335 (eval $ac_link) 2>conftest.er1
13337 grep -v '^ *+' conftest.er1
>conftest.err
13339 cat conftest.err
>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try
='test -z "$ac_c_werror_flag"
13343 || test ! -s conftest.err'
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try
='test -s conftest$ac_exeext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 ac_cv_func___cxa_atexit
=yes
13357 echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.
$ac_ext >&5
13360 ac_cv_func___cxa_atexit
=no
13362 rm -f conftest.err conftest.
$ac_objext \
13363 conftest
$ac_exeext conftest.
$ac_ext
13365 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13366 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13367 if test $ac_cv_func___cxa_atexit = yes; then
13370 echo "__cxa_atexit can't be enabled on this target"
13376 # We can't check for __cxa_atexit when building a cross, so assume
13380 if test x
$use_cxa_atexit = xyes
; then
13382 cat >>confdefs.h
<<\_ACEOF
13383 #define DEFAULT_USE_CXA_ATEXIT 2
13390 if test x
$with_system_libunwind = xyes
; then
13391 if test x
$host = x
$target; then
13392 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13393 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13394 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 ac_func_search_save_LIBS
=$LIBS
13398 ac_cv_search__Unwind_GetIPInfo
=no
13399 cat >conftest.
$ac_ext <<_ACEOF
13402 cat confdefs.h
>>conftest.
$ac_ext
13403 cat >>conftest.
$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13406 /* Override any gcc2 internal prototype to avoid an error. */
13410 /* We use char because int might match the return type of a gcc2
13411 builtin and then its argument prototype would still apply. */
13412 char _Unwind_GetIPInfo ();
13416 _Unwind_GetIPInfo ();
13421 rm -f conftest.
$ac_objext conftest
$ac_exeext
13422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13423 (eval $ac_link) 2>conftest.er1
13425 grep -v '^ *+' conftest.er1
>conftest.err
13427 cat conftest.err
>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try
='test -z "$ac_c_werror_flag"
13431 || test ! -s conftest.err'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try
='test -s conftest$ac_exeext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 ac_cv_search__Unwind_GetIPInfo
="none required"
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.
$ac_ext >&5
13449 rm -f conftest.err conftest.
$ac_objext \
13450 conftest
$ac_exeext conftest.
$ac_ext
13451 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
13452 for ac_lib
in unwind
; do
13453 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13454 cat >conftest.
$ac_ext <<_ACEOF
13457 cat confdefs.h
>>conftest.
$ac_ext
13458 cat >>conftest.
$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13461 /* Override any gcc2 internal prototype to avoid an error. */
13465 /* We use char because int might match the return type of a gcc2
13466 builtin and then its argument prototype would still apply. */
13467 char _Unwind_GetIPInfo ();
13471 _Unwind_GetIPInfo ();
13476 rm -f conftest.
$ac_objext conftest
$ac_exeext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13478 (eval $ac_link) 2>conftest.er1
13480 grep -v '^ *+' conftest.er1
>conftest.err
13482 cat conftest.err
>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try
='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try
='test -s conftest$ac_exeext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.
$ac_ext >&5
13505 rm -f conftest.err conftest.
$ac_objext \
13506 conftest
$ac_exeext conftest.
$ac_ext
13509 LIBS
=$ac_func_search_save_LIBS
13511 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13512 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13513 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
13514 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13523 if test x
$use_getipinfo = xyes
; then
13525 cat >>confdefs.h
<<\_ACEOF
13526 #define HAVE_GETIPINFO 1
13530 echo "The system unwind library does not support _Unwind_GetIPInfo."
13533 # Look for a file containing extra machine modes.
13534 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13535 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13538 cat >>confdefs.h
<<_ACEOF
13539 #define EXTRA_MODES_FILE "config/$extra_modes"
13544 # Convert extra_options into a form suitable for Makefile use.
13546 for f
in $extra_options; do
13547 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13551 # auto-host.h is the file containing items generated by autoconf and is
13552 # the first file included by config.h.
13553 # If host=build, it is correct to have bconfig include auto-host.h
13554 # as well. If host!=build, we are in error and need to do more
13555 # work to find out the build config parameters.
13556 if test x
$host = x
$build
13558 build_auto
=auto-host.h
13560 # We create a subdir, then run autoconf in the subdir.
13561 # To prevent recursion we set host and build for the new
13562 # invocation of configure to the build for this invocation
13569 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13570 *) realsrcdir
=..
/${srcdir};;
13572 saved_CFLAGS
="${CFLAGS}"
13573 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13574 ${realsrcdir}/configure \
13575 --enable-languages=${enable_languages-all} \
13576 --target=$target_alias --host=$build_alias --build=$build_alias
13577 CFLAGS
="${saved_CFLAGS}"
13579 # We just finished tests for the build machine, so rename
13580 # the file auto-build.h in the gcc directory.
13581 mv auto-host.h ..
/auto-build.h
13584 build_auto
=auto-build.h
13588 tm_file
="${tm_file} defaults.h"
13589 tm_p_file
="${tm_p_file} tm-preds.h"
13590 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13591 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13592 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13593 # put this back in temporarily.
13594 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13600 # Compile in configure arguments.
13601 if test -f configargs.h
; then
13602 # Being re-configured.
13603 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13604 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13606 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13609 # Double all backslashes and backslash all quotes to turn
13610 # gcc_config_arguments into a C string.
13611 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13612 $gcc_config_arguments
13614 gcc_config_arguments_str
=`cat conftest.out`
13617 cat > configargs.h
<<EOF
13618 /* Generated automatically. */
13619 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13620 static const char thread_model[] = "$thread_file";
13622 static const struct {
13623 const char *name, *value;
13624 } configure_default_options[] = $configure_default_options;
13627 # Internationalization
13628 # If we haven't got the data from the intl directory,
13629 # assume NLS is disabled.
13638 if test -f ..
/intl
/config.intl
; then
13639 . ..
/intl
/config.intl
13641 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13642 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13643 if test x
"$USE_NLS" != xyes
; then
13644 echo "$as_me:$LINENO: result: no" >&5
13645 echo "${ECHO_T}no" >&6
13647 echo "$as_me:$LINENO: result: yes" >&5
13648 echo "${ECHO_T}yes" >&6
13650 cat >>confdefs.h
<<\_ACEOF
13651 #define ENABLE_NLS 1
13655 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13656 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13657 # Look for .po and .gmo files in the source directory.
13660 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13661 # If there aren't any .gmo files the shell will give us the
13662 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13664 case "$cat" in *\
**)
13667 # The quadruple backslash is collapsed to a double backslash
13668 # by the backticks, then collapsed again by the double quotes,
13669 # leaving us with one backslash in the sed expression (right
13670 # before the dot that mustn't act as a wildcard).
13671 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13672 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13673 # The user is allowed to set LINGUAS to a list of languages to
13674 # install catalogs for. If it's empty that means "all of them."
13675 if test "x$LINGUAS" = x
; then
13676 CATALOGS
="$CATALOGS $cat"
13677 XLINGUAS
="$XLINGUAS $lang"
13679 case "$LINGUAS" in *$lang*)
13680 CATALOGS
="$CATALOGS $cat"
13681 XLINGUAS
="$XLINGUAS $lang"
13686 LINGUAS
="$XLINGUAS"
13687 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13688 echo "${ECHO_T}$LINGUAS" >&6
13701 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13702 # -liconv on the link line twice.
13703 case "$LIBINTL" in *$LIBICONV*)
13707 # Check whether --enable-secureplt or --disable-secureplt was given.
13708 if test "${enable_secureplt+set}" = set; then
13709 enableval
="$enable_secureplt"
13713 # Check whether --enable-cld or --disable-cld was given.
13714 if test "${enable_cld+set}" = set; then
13715 enableval
="$enable_cld"
13721 # Windows32 Registry support for specifying GCC installation paths.
13722 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13723 if test "${enable_win32_registry+set}" = set; then
13724 enableval
="$enable_win32_registry"
13729 win32 | pe | cygwin
* | mingw32
* | uwin
*)
13730 if test "x$enable_win32_registry" != xno
; then
13731 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13732 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13733 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 ac_func_search_save_LIBS
=$LIBS
13737 ac_cv_search_RegOpenKeyExA
=no
13738 cat >conftest.
$ac_ext <<_ACEOF
13741 cat confdefs.h
>>conftest.
$ac_ext
13742 cat >>conftest.
$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13745 /* Override any gcc2 internal prototype to avoid an error. */
13749 /* We use char because int might match the return type of a gcc2
13750 builtin and then its argument prototype would still apply. */
13751 char RegOpenKeyExA ();
13760 rm -f conftest.
$ac_objext conftest
$ac_exeext
13761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13762 (eval $ac_link) 2>conftest.er1
13764 grep -v '^ *+' conftest.er1
>conftest.err
13766 cat conftest.err
>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try
='test -z "$ac_c_werror_flag"
13770 || test ! -s conftest.err'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try
='test -s conftest$ac_exeext'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 ac_cv_search_RegOpenKeyExA
="none required"
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.
$ac_ext >&5
13788 rm -f conftest.err conftest.
$ac_objext \
13789 conftest
$ac_exeext conftest.
$ac_ext
13790 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13791 for ac_lib
in advapi32
; do
13792 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13793 cat >conftest.
$ac_ext <<_ACEOF
13796 cat confdefs.h
>>conftest.
$ac_ext
13797 cat >>conftest.
$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13800 /* Override any gcc2 internal prototype to avoid an error. */
13804 /* We use char because int might match the return type of a gcc2
13805 builtin and then its argument prototype would still apply. */
13806 char RegOpenKeyExA ();
13815 rm -f conftest.
$ac_objext conftest
$ac_exeext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817 (eval $ac_link) 2>conftest.er1
13819 grep -v '^ *+' conftest.er1
>conftest.err
13821 cat conftest.err
>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try
='test -z "$ac_c_werror_flag"
13825 || test ! -s conftest.err'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; } &&
13831 { ac_try
='test -s conftest$ac_exeext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.
$ac_ext >&5
13844 rm -f conftest.err conftest.
$ac_objext \
13845 conftest
$ac_exeext conftest.
$ac_ext
13848 LIBS
=$ac_func_search_save_LIBS
13850 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13851 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13852 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13853 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13856 enable_win32_registry
=no
13861 if test "x$enable_win32_registry" != xno
; then
13863 cat >>confdefs.h
<<\_ACEOF
13864 #define ENABLE_WIN32_REGISTRY 1
13868 if test "x$enable_win32_registry" != xyes \
13869 && test "x$enable_win32_registry" != x
; then
13871 cat >>confdefs.h
<<_ACEOF
13872 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13880 # Get an absolute path to the GCC top-level source directory
13881 holddir
=`${PWDCMD-pwd}`
13883 topdir
=`${PWDCMD-pwd}`
13886 # Conditionalize the makefile for this host machine.
13888 for f
in ${host_xmake_file}
13890 if test -f ${srcdir}/config
/$f
13892 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13896 # Conditionalize the makefile for this target machine.
13898 for f
in ${tmake_file}
13900 if test -f ${srcdir}/config
/$f
13902 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13905 tmake_file
="${tmake_file_}"
13907 # This is a terrible hack which will go away some day.
13908 host_cc_for_libada
=${CC}
13911 out_object_file
=`basename $out_file .c`.o
13913 tm_file_list
="options.h"
13914 tm_include_list
="options.h"
13915 for f
in $tm_file; do
13918 f
=`echo $f | sed 's/^..//'`
13919 tm_file_list
="${tm_file_list} $f"
13920 tm_include_list
="${tm_include_list} $f"
13923 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13924 tm_include_list
="${tm_include_list} $f"
13927 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13928 tm_include_list
="${tm_include_list} config/$f"
13935 for f
in $tm_p_file; do
13938 tm_p_file_list
="${tm_p_file_list} $f"
13939 tm_p_include_list
="${tm_p_include_list} $f"
13942 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13943 tm_p_include_list
="${tm_p_include_list} config/$f"
13949 for f
in $xm_file; do
13952 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13953 xm_include_list
="${xm_include_list} $f"
13956 xm_file_list
="${xm_file_list} $f"
13957 xm_include_list
="${xm_include_list} $f"
13960 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13961 xm_include_list
="${xm_include_list} config/$f"
13967 host_xm_include_list
=
13968 for f
in $host_xm_file; do
13971 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13972 host_xm_include_list
="${host_xm_include_list} $f"
13975 host_xm_file_list
="${host_xm_file_list} $f"
13976 host_xm_include_list
="${host_xm_include_list} $f"
13979 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13980 host_xm_include_list
="${host_xm_include_list} config/$f"
13985 build_xm_file_list
=
13986 for f
in $build_xm_file; do
13989 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13990 build_xm_include_list
="${build_xm_include_list} $f"
13992 auto-build.h | auto-host.h
)
13993 build_xm_file_list
="${build_xm_file_list} $f"
13994 build_xm_include_list
="${build_xm_include_list} $f"
13997 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13998 build_xm_include_list
="${build_xm_include_list} config/$f"
14003 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14004 # cross-compiler which does not use the native headers and libraries.
14005 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14008 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
14010 if test "x$with_build_sysroot" != x
; then
14011 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14013 # This value is used, even on a native system, because
14014 # CROSS_SYSTEM_HEADER_DIR is just
14015 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14016 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
14019 if test x
$host != x
$target
14021 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
14023 SYSTEM_HEADER_DIR
=$build_system_header_dir
14024 case "$host","$target" in
14025 # Darwin crosses can use the host system's libraries and headers,
14026 # because of the fat library support. Of course, it must be the
14027 # same version of Darwin on both sides. Allow the user to
14028 # just say --target=foo-darwin without a version number to mean
14029 # "the version on this system".
14030 *-*-darwin*,*-*-darwin*)
14031 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
14032 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
14033 if test $hostos = $targetos -o $targetos = darwin
; then
14035 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
14040 i?
86-*-*,x86_64-
*-* \
14041 | powerpc
*-*-*,powerpc64
*-*-*)
14042 CROSS
="$CROSS -DNATIVE_CROSS" ;;
14044 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
14045 SYSTEM_HEADER_DIR
=$build_system_header_dir
14048 # If this is a cross-compiler that does not
14049 # have its own set of headers then define
14052 # If this is using newlib, without having the headers available now,
14053 # then define inhibit_libc in LIBGCC2_CFLAGS.
14054 # This prevents libgcc2 from containing any code which requires libc
14056 : ${inhibit_libc=false}
14057 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
14058 test x
$with_newlib = xyes
; } &&
14059 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
14064 # When building gcc with a cross-compiler, we need to adjust things so
14065 # that the generator programs are still built with the native compiler.
14066 # Also, we cannot run fixincludes or fix-header.
14068 # These are the normal (build=host) settings:
14069 CC_FOR_BUILD
='$(CC)'
14070 BUILD_CFLAGS
='$(ALL_CFLAGS)'
14071 STMP_FIXINC
=stmp-fixinc
14073 # Possibly disable fixproto, on a per-target basis.
14074 case ${use_fixproto} in
14079 STMP_FIXPROTO
=stmp-fixproto
14084 # And these apply if build != host, or we are generating coverage data
14085 if test x
$build != x
$host ||
test "x$coverage_flags" != x
14087 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14089 if test "x$TARGET_SYSTEM_ROOT" = x
; then
14090 if test "x$STMP_FIXPROTO" != x
; then
14091 STMP_FIXPROTO
=stmp-install-fixproto
14096 # Expand extra_headers to include complete path.
14097 # This substitutes for lots of t-* files.
14098 extra_headers_list
=
14099 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14100 for file in ${extra_headers} ; do
14101 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14104 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14105 if test x
"$use_gcc_tgmath" = xyes
14106 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14109 # Define collect2 in Makefile.
14110 case $host_can_use_collect2 in
14112 *) collect2
='collect2$(exeext)' ;;
14116 # Add a definition of USE_COLLECT2 if system wants one.
14117 case $use_collect2 in
14118 no
) use_collect2
= ;;
14121 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
14122 xm_defines
="${xm_defines} USE_COLLECT2"
14123 case $host_can_use_collect2 in
14125 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14126 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14127 { (exit 1); exit 1; }; }
14133 # ---------------------------
14134 # Assembler & linker features
14135 # ---------------------------
14137 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14138 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14139 # However when ld-new is first executed from the build tree, libtool will
14140 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14141 # to the build tree. While doing this we need to use the previous-stage
14142 # linker, or we have an infinite loop. The presence of a shell script as
14143 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14144 # the gcc/collect-ld script. So we need to know how libtool works, or
14145 # exec-tool will fail.
14150 macro_version
='2.1a'
14151 macro_revision
='1.2435'
14164 ltmain
="$ac_aux_dir/ltmain.sh"
14171 enable_win32_dll
=no
14174 # Check whether --enable-shared or --disable-shared was given.
14175 if test "${enable_shared+set}" = set; then
14176 enableval
="$enable_shared"
14177 p
=${PACKAGE-default}
14179 yes) enable_shared
=yes ;;
14180 no
) enable_shared
=no
;;
14183 # Look at the argument we got. We use all the common list separators.
14184 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14185 for pkg
in $enableval; do
14187 if test "X$pkg" = "X$p"; then
14205 # Check whether --enable-static or --disable-static was given.
14206 if test "${enable_static+set}" = set; then
14207 enableval
="$enable_static"
14208 p
=${PACKAGE-default}
14210 yes) enable_static
=yes ;;
14211 no
) enable_static
=no
;;
14214 # Look at the argument we got. We use all the common list separators.
14215 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14216 for pkg
in $enableval; do
14218 if test "X$pkg" = "X$p"; then
14237 # Check whether --with-pic or --without-pic was given.
14238 if test "${with_pic+set}" = set; then
14239 withval
="$with_pic"
14240 pic_mode
="$withval"
14245 test -z "$pic_mode" && pic_mode
=default
14253 # Check whether --enable-fast-install or --disable-fast-install was given.
14254 if test "${enable_fast_install+set}" = set; then
14255 enableval
="$enable_fast_install"
14256 p
=${PACKAGE-default}
14258 yes) enable_fast_install
=yes ;;
14259 no
) enable_fast_install
=no
;;
14261 enable_fast_install
=no
14262 # Look at the argument we got. We use all the common list separators.
14263 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14264 for pkg
in $enableval; do
14266 if test "X$pkg" = "X$p"; then
14267 enable_fast_install
=yes
14274 enable_fast_install
=yes
14284 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14285 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14286 if test "${lt_cv_path_SED+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 # Loop through the user's path and test for sed and gsed.
14290 # Then use that list of sed's as ones to test for truncation.
14291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14292 for as_dir
in $PATH
14295 test -z "$as_dir" && as_dir
=.
14296 for lt_ac_prog
in sed gsed
; do
14297 for ac_exec_ext
in '' $ac_executable_extensions; do
14298 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14299 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14307 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14308 # along with /bin/sed that truncates output.
14309 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
14310 test ! -f $lt_ac_sed && continue
14311 cat /dev
/null
> conftest.
in
14313 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
14314 # Check for GNU sed and select it if it is found.
14315 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
14316 lt_cv_path_SED
=$lt_ac_sed
14320 cat conftest.
in conftest.
in >conftest.tmp
14321 mv conftest.tmp conftest.
in
14322 cp conftest.
in conftest.
nl
14324 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
14325 cmp -s conftest.out conftest.
nl ||
break
14326 # 10000 chars as input seems more than enough
14327 test $lt_ac_count -gt 10 && break
14328 lt_ac_count
=`expr $lt_ac_count + 1`
14329 if test $lt_ac_count -gt $lt_ac_max; then
14330 lt_ac_max
=$lt_ac_count
14331 lt_cv_path_SED
=$lt_ac_sed
14338 SED
=$lt_cv_path_SED
14340 echo "$as_me:$LINENO: result: $SED" >&5
14341 echo "${ECHO_T}$SED" >&6
14343 test -z "$SED" && SED
=sed
14344 Xsed
="$SED -e 1s/^X//"
14356 echo "$as_me:$LINENO: checking for fgrep" >&5
14357 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14358 if test "${ac_cv_prog_fgrep+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
14362 then ac_cv_prog_fgrep
='grep -F'
14363 else ac_cv_prog_fgrep
='fgrep'
14366 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14367 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14368 FGREP
=$ac_cv_prog_fgrep
14371 test -z "$GREP" && GREP
=grep
14391 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14392 if test "${with_gnu_ld+set}" = set; then
14393 withval
="$with_gnu_ld"
14394 test "$withval" = no || with_gnu_ld
=yes
14399 if test "$GCC" = yes; then
14400 # Check if gcc -print-prog-name=ld gives a path.
14401 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14402 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14405 # gcc leaves a trailing carriage return which upsets mingw
14406 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14408 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14411 # Accept absolute paths.
14413 re_direlt
='/[^/][^/]*/\.\./'
14414 # Canonicalize the pathname of ld
14415 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14416 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14417 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14419 test -z "$LD" && LD
="$ac_prog"
14422 # If it fails, then pretend we aren't using GCC.
14426 # If it is relative, then search for the first ld in PATH.
14427 with_gnu_ld
=unknown
14430 elif test "$with_gnu_ld" = yes; then
14431 echo "$as_me:$LINENO: checking for GNU ld" >&5
14432 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14434 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14435 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14437 if test "${lt_cv_path_LD+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 if test -z "$LD"; then
14441 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14442 for ac_dir
in $PATH; do
14444 test -z "$ac_dir" && ac_dir
=.
14445 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14446 lt_cv_path_LD
="$ac_dir/$ac_prog"
14447 # Check to see if the program is GNU ld. I'd rather use --version,
14448 # but apparently some variants of GNU ld only accept -v.
14449 # Break only if it was the GNU/non-GNU ld that we prefer.
14450 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14451 *GNU
* |
*'with BFD'*)
14452 test "$with_gnu_ld" != no
&& break
14455 test "$with_gnu_ld" != yes && break
14462 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14466 LD
="$lt_cv_path_LD"
14467 if test -n "$LD"; then
14468 echo "$as_me:$LINENO: result: $LD" >&5
14469 echo "${ECHO_T}$LD" >&6
14471 echo "$as_me:$LINENO: result: no" >&5
14472 echo "${ECHO_T}no" >&6
14474 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14475 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14476 { (exit 1); exit 1; }; }
14477 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14478 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14479 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14483 case `$LD -v 2>&1 </dev/null` in
14484 *GNU
* |
*'with BFD'*)
14485 lt_cv_prog_gnu_ld
=yes
14488 lt_cv_prog_gnu_ld
=no
14492 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14493 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14494 with_gnu_ld
=$lt_cv_prog_gnu_ld
14505 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14506 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14507 if test "${lt_cv_path_NM+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 if test -n "$NM"; then
14511 # Let the user override the test.
14512 lt_cv_path_NM
="$NM"
14514 lt_nm_to_check
="${ac_tool_prefix}nm"
14515 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14516 lt_nm_to_check
="$lt_nm_to_check nm"
14518 for lt_tmp_nm
in $lt_nm_to_check; do
14519 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14520 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14522 test -z "$ac_dir" && ac_dir
=.
14523 tmp_nm
="$ac_dir/$lt_tmp_nm"
14524 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14525 # Check to see if the nm accepts a BSD-compat flag.
14526 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14527 # nm: unknown option "B" ignored
14528 # Tru64's nm complains that /dev/null is an invalid object file
14529 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14530 */dev
/null
* |
*'Invalid file or object type'*)
14531 lt_cv_path_NM
="$tmp_nm -B"
14535 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14537 lt_cv_path_NM
="$tmp_nm -p"
14541 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14542 continue # so that we can try to find one that supports BSD flags
14551 : ${lt_cv_path_NM=no}
14554 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14555 echo "${ECHO_T}$lt_cv_path_NM" >&6
14556 if test "$lt_cv_path_NM" != "no"; then
14557 NM
="$lt_cv_path_NM"
14559 # Didn't find any BSD compatible name lister, look for dumpbin.
14560 if test -n "$ac_tool_prefix"; then
14561 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14564 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14565 echo "$as_me:$LINENO: checking for $ac_word" >&5
14566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14567 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 if test -n "$DUMPBIN"; then
14571 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14574 for as_dir
in $PATH
14577 test -z "$as_dir" && as_dir
=.
14578 for ac_exec_ext
in '' $ac_executable_extensions; do
14579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14580 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14589 DUMPBIN
=$ac_cv_prog_DUMPBIN
14590 if test -n "$DUMPBIN"; then
14591 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14592 echo "${ECHO_T}$DUMPBIN" >&6
14594 echo "$as_me:$LINENO: result: no" >&5
14595 echo "${ECHO_T}no" >&6
14598 test -n "$DUMPBIN" && break
14601 if test -z "$DUMPBIN"; then
14602 ac_ct_DUMPBIN
=$DUMPBIN
14603 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14605 # Extract the first word of "$ac_prog", so it can be a program name with args.
14606 set dummy
$ac_prog; ac_word
=$2
14607 echo "$as_me:$LINENO: checking for $ac_word" >&5
14608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14609 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 if test -n "$ac_ct_DUMPBIN"; then
14613 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14616 for as_dir
in $PATH
14619 test -z "$as_dir" && as_dir
=.
14620 for ac_exec_ext
in '' $ac_executable_extensions; do
14621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14622 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14631 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14632 if test -n "$ac_ct_DUMPBIN"; then
14633 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14634 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14636 echo "$as_me:$LINENO: result: no" >&5
14637 echo "${ECHO_T}no" >&6
14640 test -n "$ac_ct_DUMPBIN" && break
14642 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
14644 DUMPBIN
=$ac_ct_DUMPBIN
14648 if test "$DUMPBIN" != ":"; then
14652 test -z "$NM" && NM
=nm
14659 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14660 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14661 if test "${lt_cv_nm_interface+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 lt_cv_nm_interface
="BSD nm"
14665 echo "int some_variable = 0;" > conftest.
$ac_ext
14666 (eval echo "\"\$as_me:14657: $ac_compile\"" >&5)
14667 (eval "$ac_compile" 2>conftest.err
)
14668 cat conftest.err
>&5
14669 (eval echo "\"\$as_me:14660: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14670 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14671 cat conftest.err
>&5
14672 (eval echo "\"\$as_me:14663: output\"" >&5)
14673 cat conftest.out
>&5
14674 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14675 lt_cv_nm_interface
="MS dumpbin"
14679 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14680 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14682 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14683 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14685 if test "$LN_S" = "ln -s"; then
14686 echo "$as_me:$LINENO: result: yes" >&5
14687 echo "${ECHO_T}yes" >&6
14689 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14690 echo "${ECHO_T}no, using $LN_S" >&6
14693 # find the maximum length of command line arguments
14694 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14695 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14696 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 # On DJGPP, this test can blow up pretty badly due to problems in libc
14705 # (any single argument exceeding 2000 bytes causes a buffer overrun
14706 # during glob expansion). Even if it were fixed, the result of this
14707 # check would be larger than it should be.
14708 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14712 # Under GNU Hurd, this test is not required because there is
14713 # no limit to the length of command line arguments.
14714 # Libtool will interpret -1 as no limit whatsoever
14715 lt_cv_sys_max_cmd_len
=-1;
14719 # On Win9x/ME, this test blows up -- it succeeds, but takes
14720 # about 5 minutes as the teststring grows exponentially.
14721 # Worse, since 9x/ME are not pre-emptively multitasking,
14722 # you end up with a "frozen" computer, even though with patience
14723 # the test eventually succeeds (with a max line length of 256k).
14724 # Instead, let's just punt: use the minimum linelength reported by
14725 # all of the supported platforms: 8192 (on NT/2K/XP).
14726 lt_cv_sys_max_cmd_len
=8192;
14730 # On AmigaOS with pdksh, this test takes hours, literally.
14731 # So we just punt and use a minimum line length of 8192.
14732 lt_cv_sys_max_cmd_len
=8192;
14735 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14736 # This has been around since 386BSD, at least. Likely further.
14737 if test -x /sbin
/sysctl
; then
14738 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14739 elif test -x /usr
/sbin
/sysctl
; then
14740 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14742 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14744 # And add a safety zone
14745 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14746 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14750 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14751 lt_cv_sys_max_cmd_len
=196608
14755 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14756 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14757 # nice to cause kernel panics so lets avoid the loop below.
14758 # First set a reasonable default.
14759 lt_cv_sys_max_cmd_len
=16384
14761 if test -x /sbin
/sysconfig
; then
14762 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14763 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14768 lt_cv_sys_max_cmd_len
=102400
14770 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14771 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14772 if test -n "$kargmax"; then
14773 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14775 lt_cv_sys_max_cmd_len
=32768
14779 lt_cv_sys_max_cmd_len
=`getconf ARG_MAX 2> /dev/null`
14780 if test -n $lt_cv_sys_max_cmd_len; then
14781 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14782 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14784 # Make teststring a little bigger before we do anything with it.
14785 # a 1K string should be a reasonable start.
14786 for i
in 1 2 3 4 5 6 7 8 ; do
14787 teststring
=$teststring$teststring
14789 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14790 # If test is not a shell built-in, we'll probably end up computing a
14791 # maximum length that is only half of the actual maximum length, but
14793 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14794 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
14795 test $i != 17 # 1/2 MB should be enough
14798 teststring
=$teststring$teststring
14800 # Only check the string length outside the loop.
14801 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14803 # Add a significant safety factor because C++ compilers can tack on
14804 # massive amounts of additional arguments before passing them to the
14805 # linker. It appears as though 1/2 is a usable value.
14806 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14813 if test -n $lt_cv_sys_max_cmd_len ; then
14814 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14815 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14817 echo "$as_me:$LINENO: result: none" >&5
14818 echo "${ECHO_T}none" >&6
14820 max_cmd_len
=$lt_cv_sys_max_cmd_len
14832 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14833 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14834 # Try some XSI features
14836 ( _lt_dummy
="a/b/c"
14837 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14838 = c,a/b,, ) >/dev/null 2>&1 \
14840 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
14841 echo "${ECHO_T}$xsi_shell" >&6
14844 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
14845 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
14847 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14849 && lt_shell_append=yes
14850 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
14851 echo "${ECHO_T}$lt_shell_append" >&6
14854 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14864 # test EBCDIC or ASCII
14865 case `echo X|tr X '\101'` in
14866 A) # ASCII based system
14867 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14868 lt_SP2NL='tr \040 \012'
14869 lt_NL2SP='tr \015\012 \040\040'
14871 *) # EBCDIC based system
14872 lt_SP2NL='tr \100 \n'
14873 lt_NL2SP='tr \r\n \100\100'
14885 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
14886 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
14887 if test "${lt_cv_ld_reload_flag+set}" = set; then
14888 echo $ECHO_N "(cached
) $ECHO_C" >&6
14890 lt_cv_ld_reload_flag='-r'
14892 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
14893 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14894 reload_flag=$lt_cv_ld_reload_flag
14895 case $reload_flag in
14897 *) reload_flag=" $reload_flag" ;;
14899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14902 if test "$GCC" = yes; then
14903 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14919 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
14920 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
14921 if test "${lt_cv_deplibs_check_method+set}" = set; then
14922 echo $ECHO_N "(cached
) $ECHO_C" >&6
14924 lt_cv_file_magic_cmd='$MAGIC_CMD'
14925 lt_cv_file_magic_test_file=
14926 lt_cv_deplibs_check_method='unknown'
14927 # Need to set the preceding variable on all platforms that support
14928 # interlibrary dependencies.
14929 # 'none' -- dependencies not supported.
14930 # `unknown' -- same as none, but documents that we really don't know.
14931 # 'pass_all' -- all dependencies passed with no checks.
14932 # 'test_compile' -- check by making test program.
14933 # 'file_magic [[regex]]' -- check by looking for files in library path
14934 # which responds to the $file_magic_cmd with a given extended regex.
14935 # If you have `file' or equivalent on your system and you're not sure
14936 # whether `pass_all' will *always* work, you probably want this one.
14940 lt_cv_deplibs_check_method=pass_all
14944 lt_cv_deplibs_check_method=pass_all
14948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14949 lt_cv_file_magic_cmd='/usr/bin/file -L'
14950 lt_cv_file_magic_test_file=/shlib/libc.so
14954 # func_win32_libid is a shell function defined in ltmain.sh
14955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14956 lt_cv_file_magic_cmd='func_win32_libid'
14960 # Base MSYS/MinGW do not provide the 'file' command needed by
14961 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14962 # unless we find 'file', for example because we are cross-compiling.
14963 if ( file / ) >/dev/null 2>&1; then
14964 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14965 lt_cv_file_magic_cmd='func_win32_libid'
14967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14968 lt_cv_file_magic_cmd='$OBJDUMP -f'
14972 darwin* | rhapsody*)
14973 lt_cv_deplibs_check_method=pass_all
14976 freebsd* | dragonfly*)
14977 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14980 # Not sure whether the presence of OpenBSD here was a mistake.
14981 # Let's accept both of them until this is cleared up.
14982 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14983 lt_cv_file_magic_cmd=/usr/bin/file
14984 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14988 lt_cv_deplibs_check_method=pass_all
14993 lt_cv_deplibs_check_method=pass_all
14996 hpux10.20* | hpux11*)
14997 lt_cv_file_magic_cmd=/usr/bin/file
15000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15001 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15004 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]'
15005 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15009 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15015 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15019 irix5* | irix6* | nonstopux*)
15021 *-32|*"-32 ") libmagic=32-bit;;
15022 *-n32|*"-n32 ") libmagic=N32;;
15023 *-64|*"-64 ") libmagic=64-bit;;
15024 *) libmagic=never-match;;
15026 lt_cv_deplibs_check_method=pass_all
15029 # This must be Linux ELF.
15030 linux* | k*bsd*-gnu)
15031 lt_cv_deplibs_check_method=pass_all
15035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15044 lt_cv_file_magic_cmd=/usr/bin/file
15045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15049 lt_cv_deplibs_check_method=pass_all
15053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
15054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15060 osf3* | osf4* | osf5*)
15061 lt_cv_deplibs_check_method=pass_all
15065 lt_cv_deplibs_check_method=pass_all
15069 lt_cv_deplibs_check_method=pass_all
15072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15073 lt_cv_deplibs_check_method=pass_all
15077 case $host_vendor in
15079 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]'
15080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15083 lt_cv_deplibs_check_method=pass_all
15086 lt_cv_file_magic_cmd='/bin/file'
15087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15090 lt_cv_file_magic_cmd='/bin/file'
15091 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
15092 lt_cv_file_magic_test_file=/lib/libc.so
15095 lt_cv_deplibs_check_method=pass_all
15098 lt_cv_deplibs_check_method=pass_all
15104 lt_cv_deplibs_check_method=pass_all
15109 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
15110 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15111 file_magic_cmd=$lt_cv_file_magic_cmd
15112 deplibs_check_method=$lt_cv_deplibs_check_method
15113 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15126 if test -n "$ac_tool_prefix"; then
15127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15128 set dummy ${ac_tool_prefix}ar; ac_word=$2
15129 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15130 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15131 if test "${ac_cv_prog_AR+set}" = set; then
15132 echo $ECHO_N "(cached
) $ECHO_C" >&6
15134 if test -n "$AR"; then
15135 ac_cv_prog_AR="$AR" # Let the user override the test.
15137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15138 for as_dir in $PATH
15141 test -z "$as_dir" && as_dir=.
15142 for ac_exec_ext in '' $ac_executable_extensions; do
15143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15144 ac_cv_prog_AR="${ac_tool_prefix}ar"
15145 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15154 if test -n "$AR"; then
15155 echo "$as_me:$LINENO: result
: $AR" >&5
15156 echo "${ECHO_T}$AR" >&6
15158 echo "$as_me:$LINENO: result
: no
" >&5
15159 echo "${ECHO_T}no
" >&6
15163 if test -z "$ac_cv_prog_AR"; then
15165 # Extract the first word of "ar", so it can be a program name with args.
15166 set dummy ar; ac_word=$2
15167 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15168 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15170 echo $ECHO_N "(cached
) $ECHO_C" >&6
15172 if test -n "$ac_ct_AR"; then
15173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15176 for as_dir in $PATH
15179 test -z "$as_dir" && as_dir=.
15180 for ac_exec_ext in '' $ac_executable_extensions; do
15181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15182 ac_cv_prog_ac_ct_AR="ar"
15183 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15189 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
15192 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15193 if test -n "$ac_ct_AR"; then
15194 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
15195 echo "${ECHO_T}$ac_ct_AR" >&6
15197 echo "$as_me:$LINENO: result
: no
" >&5
15198 echo "${ECHO_T}no
" >&6
15203 AR="$ac_cv_prog_AR"
15206 test -z "$AR" && AR=ar
15207 test -z "$AR_FLAGS" && AR_FLAGS=cru
15219 if test -n "$ac_tool_prefix"; then
15220 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15221 set dummy ${ac_tool_prefix}strip; ac_word=$2
15222 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15223 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15224 if test "${ac_cv_prog_STRIP+set}" = set; then
15225 echo $ECHO_N "(cached
) $ECHO_C" >&6
15227 if test -n "$STRIP"; then
15228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15231 for as_dir in $PATH
15234 test -z "$as_dir" && as_dir=.
15235 for ac_exec_ext in '' $ac_executable_extensions; do
15236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15237 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15238 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15246 STRIP=$ac_cv_prog_STRIP
15247 if test -n "$STRIP"; then
15248 echo "$as_me:$LINENO: result
: $STRIP" >&5
15249 echo "${ECHO_T}$STRIP" >&6
15251 echo "$as_me:$LINENO: result
: no
" >&5
15252 echo "${ECHO_T}no
" >&6
15256 if test -z "$ac_cv_prog_STRIP"; then
15258 # Extract the first word of "strip
", so it can be a program name with args.
15259 set dummy strip; ac_word=$2
15260 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15261 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15262 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15263 echo $ECHO_N "(cached
) $ECHO_C" >&6
15265 if test -n "$ac_ct_STRIP"; then
15266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15269 for as_dir in $PATH
15272 test -z "$as_dir" && as_dir=.
15273 for ac_exec_ext in '' $ac_executable_extensions; do
15274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15275 ac_cv_prog_ac_ct_STRIP="strip
"
15276 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15282 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15286 if test -n "$ac_ct_STRIP"; then
15287 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
15288 echo "${ECHO_T}$ac_ct_STRIP" >&6
15290 echo "$as_me:$LINENO: result
: no
" >&5
15291 echo "${ECHO_T}no
" >&6
15296 STRIP="$ac_cv_prog_STRIP"
15299 test -z "$STRIP" && STRIP=:
15306 if test -n "$ac_tool_prefix"; then
15307 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15308 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15309 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15310 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15311 if test "${ac_cv_prog_RANLIB+set}" = set; then
15312 echo $ECHO_N "(cached
) $ECHO_C" >&6
15314 if test -n "$RANLIB"; then
15315 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15318 for as_dir in $PATH
15321 test -z "$as_dir" && as_dir=.
15322 for ac_exec_ext in '' $ac_executable_extensions; do
15323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15324 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15325 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15333 RANLIB=$ac_cv_prog_RANLIB
15334 if test -n "$RANLIB"; then
15335 echo "$as_me:$LINENO: result
: $RANLIB" >&5
15336 echo "${ECHO_T}$RANLIB" >&6
15338 echo "$as_me:$LINENO: result
: no
" >&5
15339 echo "${ECHO_T}no
" >&6
15343 if test -z "$ac_cv_prog_RANLIB"; then
15344 ac_ct_RANLIB=$RANLIB
15345 # Extract the first word of "ranlib
", so it can be a program name with args.
15346 set dummy ranlib; ac_word=$2
15347 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15348 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15350 echo $ECHO_N "(cached
) $ECHO_C" >&6
15352 if test -n "$ac_ct_RANLIB"; then
15353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15356 for as_dir in $PATH
15359 test -z "$as_dir" && as_dir=.
15360 for ac_exec_ext in '' $ac_executable_extensions; do
15361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15362 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15363 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15369 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15373 if test -n "$ac_ct_RANLIB"; then
15374 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
15375 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15377 echo "$as_me:$LINENO: result
: no
" >&5
15378 echo "${ECHO_T}no
" >&6
15381 RANLIB=$ac_ct_RANLIB
15383 RANLIB="$ac_cv_prog_RANLIB"
15386 test -z "$RANLIB" && RANLIB=:
15393 # Determine commands to create old-style static archives.
15394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15395 old_postinstall_cmds='chmod 644 $oldlib'
15396 old_postuninstall_cmds=
15398 if test -n "$RANLIB"; then
15401 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15404 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15407 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15443 # If no C compiler was specified, use CC.
15446 # If no C compiler flags were specified, use CFLAGS.
15447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15449 # Allow CC to be a program name with arguments.
15453 # Check for command to grab the raw symbol name followed by C symbol from nm.
15454 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
15455 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
15456 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15457 echo $ECHO_N "(cached
) $ECHO_C" >&6
15460 # These are sane defaults that work on at least a few old systems.
15461 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15463 # Character class describing NM global symbol codes.
15464 symcode='[BCDEGRST]'
15466 # Regexp to match symbols that can be accessed directly from C.
15467 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15469 # Define system-specific variables.
15474 cygwin* | mingw* | pw32*)
15475 symcode='[ABCDGISTW]'
15478 if test "$host_cpu" = ia64; then
15479 symcode='[ABCDEGRST]'
15482 irix* | nonstopux*)
15483 symcode='[BCDEGRST]'
15486 symcode='[BCDEGQRST]'
15497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15505 # If we're using GNU nm, then use its standard symbol codes.
15506 case `$NM -V 2>&1` in
15507 *GNU* | *'with BFD'*)
15508 symcode='[ABCDGIRSTW]' ;;
15511 # Transform an extracted symbol line into a proper C declaration.
15512 # Some systems (esp. on ia64) link data and code symbols differently,
15513 # so use this general approach.
15514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15516 # Transform an extracted symbol line into symbol name and symbol address
15517 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15519 # Handle CRLF in mingw tool chain
15523 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15527 # Try without a prefix underscore, then with it.
15528 for ac_symprfx in "" "_
"; do
15530 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15531 symxfrm="\\1 $ac_symprfx\\2 \\2"
15533 # Write the raw and C identifiers.
15534 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15535 # Fake it for dumpbin and say T for any non-static function
15536 # and D for any global variable.
15537 # Also find C++ and __fastcall symbols from MSVC++,
15538 # which start with @ or ?.
15539 lt_cv_sys_global_symbol_pipe="$AWK '"\
15540 " {last_section=section; section=\$ 3};"\
15541 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15542 " \$ 0!~/External *\|/{next};"\
15543 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15544 " {if(hide[section]) next};"\
15545 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15546 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15547 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15548 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15549 " ' prfx
=^
$ac_symprfx"
15551 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15554 # Check to see that the pipe works correctly.
15558 cat > conftest.$ac_ext <<_LT_EOF
15563 void nm_test_func(void);
15564 void nm_test_func(void){}
15568 int main(){nm_test_var='a';nm_test_func();return(0);}
15571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15572 (eval $ac_compile) 2>&5
15574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15575 (exit $ac_status); }; then
15576 # Now try to grab the symbols.
15578 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
15579 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15582 (exit $ac_status); } && test -s "$nlist"; then
15583 # Try sorting and uniquifying the output.
15584 if sort "$nlist" | uniq > "$nlist"T; then
15585 mv -f "$nlist"T "$nlist"
15590 # Make sure that we snagged all the symbols we need.
15591 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15592 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15593 cat <<_LT_EOF > conftest.$ac_ext
15599 # Now generate the symbol file.
15600 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15602 cat <<_LT_EOF >> conftest.$ac_ext
15604 /* The mapping between symbol names and symbols. */
15609 lt__PROGRAM__LTX_preloaded_symbols[] =
15611 { "@PROGRAM@
", (void *) 0 },
15613 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15614 cat <<\_LT_EOF >> conftest.$ac_ext
15618 /* This works around a problem in FreeBSD linker */
15619 #ifdef FREEBSD_WORKAROUND
15620 static const void *lt_preloaded_setup() {
15621 return lt__PROGRAM__LTX_preloaded_symbols;
15629 # Now try linking the two files.
15630 mv conftest.$ac_objext conftstm.$ac_objext
15631 lt_save_LIBS="$LIBS"
15632 lt_save_CFLAGS="$CFLAGS"
15633 LIBS="conftstm.
$ac_objext"
15634 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15636 (eval $ac_link) 2>&5
15638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15639 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15642 LIBS="$lt_save_LIBS"
15643 CFLAGS="$lt_save_CFLAGS"
15645 echo "cannot
find nm_test_func
in $nlist" >&5
15648 echo "cannot
find nm_test_var
in $nlist" >&5
15651 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15654 echo "$progname: failed program was
:" >&5
15655 cat conftest.$ac_ext >&5
15657 rm -f conftest* conftst*
15659 # Do not use the global_symbol_pipe unless it works.
15660 if test "$pipe_works" = yes; then
15663 lt_cv_sys_global_symbol_pipe=
15669 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15670 lt_cv_sys_global_symbol_to_cdecl=
15672 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15673 echo "$as_me:$LINENO: result
: failed
" >&5
15674 echo "${ECHO_T}failed
" >&6
15676 echo "$as_me:$LINENO: result
: ok
" >&5
15677 echo "${ECHO_T}ok
" >&6
15696 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15697 if test "${enable_libtool_lock+set}" = set; then
15698 enableval="$enable_libtool_lock"
15701 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15703 # Some flags need to be propagated to the compiler or linker for good
15707 # Find out which ABI we are using.
15708 echo 'int i;' > conftest.$ac_ext
15709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15710 (eval $ac_compile) 2>&5
15712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15713 (exit $ac_status); }; then
15714 case `/usr/bin/file conftest.$ac_objext` in
15716 HPUX_IA64_MODE="32"
15719 HPUX_IA64_MODE="64"
15726 # Find out which ABI we are using.
15727 echo '#line 15718 "configure
"' > conftest.$ac_ext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15729 (eval $ac_compile) 2>&5
15731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15732 (exit $ac_status); }; then
15733 if test "$lt_cv_prog_gnu_ld" = yes; then
15734 case `/usr/bin/file conftest.$ac_objext` in
15736 LD="${LD-ld} -melf32bsmip"
15739 LD="${LD-ld} -melf32bmipn32"
15742 LD="${LD-ld} -melf64bmip"
15746 case `/usr/bin/file conftest.$ac_objext` in
15762 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15763 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15764 # Find out which ABI we are using.
15765 echo 'int i;' > conftest.$ac_ext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>&5
15769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15770 (exit $ac_status); }; then
15771 case `/usr/bin/file conftest.o` in
15774 x86_64-*kfreebsd*-gnu)
15775 LD="${LD-ld} -m elf_i386_fbsd
"
15778 LD="${LD-ld} -m elf_i386
"
15780 ppc64-*linux*|powerpc64-*linux*)
15781 LD="${LD-ld} -m elf32ppclinux
"
15784 LD="${LD-ld} -m elf_s390
"
15787 LD="${LD-ld} -m elf32_sparc
"
15793 x86_64-*kfreebsd*-gnu)
15794 LD="${LD-ld} -m elf_x86_64_fbsd
"
15797 LD="${LD-ld} -m elf_x86_64
"
15799 ppc*-*linux*|powerpc*-*linux*)
15800 LD="${LD-ld} -m elf64ppc
"
15802 s390*-*linux*|s390*-*tpf*)
15803 LD="${LD-ld} -m elf64_s390
"
15806 LD="${LD-ld} -m elf64_sparc
"
15816 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15817 SAVE_CFLAGS="$CFLAGS"
15818 CFLAGS="$CFLAGS -belf"
15819 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
15820 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
15821 if test "${lt_cv_cc_needs_belf+set}" = set; then
15822 echo $ECHO_N "(cached
) $ECHO_C" >&6
15825 ac_cpp='$CPP $CPPFLAGS'
15826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15845 rm -f conftest.$ac_objext conftest$ac_exeext
15846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15847 (eval $ac_link) 2>conftest.er1
15849 grep -v '^ *+' conftest.er1 >conftest.err
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -z "$ac_c_werror_flag"
15855 || test ! -s conftest.err'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15860 (exit $ac_status); }; } &&
15861 { ac_try='test -s conftest$ac_exeext'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15866 (exit $ac_status); }; }; then
15867 lt_cv_cc_needs_belf=yes
15869 echo "$as_me: failed program was
:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15872 lt_cv_cc_needs_belf=no
15874 rm -f conftest.err conftest.$ac_objext \
15875 conftest$ac_exeext conftest.$ac_ext
15877 ac_cpp='$CPP $CPPFLAGS'
15878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15883 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
15884 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15885 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15886 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15887 CFLAGS="$SAVE_CFLAGS"
15891 # Find out which ABI we are using.
15892 echo 'int i;' > conftest.$ac_ext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>&5
15896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15897 (exit $ac_status); }; then
15898 case `/usr/bin/file conftest.o` in
15900 case $lt_cv_prog_gnu_ld in
15901 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15902 *) LD="${LD-ld} -64" ;;
15911 need_locks="$enable_libtool_lock"
15914 for ac_header in dlfcn.h
15916 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15917 echo "$as_me:$LINENO: checking
for $ac_header" >&5
15918 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
15919 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
15920 echo $ECHO_N "(cached
) $ECHO_C" >&6
15922 cat >conftest.$ac_ext <<_ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 #include <$ac_header>
15930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
15931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15933 grep -v '^ *+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15937 (exit $ac_status); } >/dev/null; then
15938 if test -s conftest.err; then
15939 ac_cpp_err=$ac_c_preproc_warn_flag
15940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15947 if test -z "$ac_cpp_err"; then
15948 eval "$as_ac_Header=yes"
15950 echo "$as_me: failed program was
:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15953 eval "$as_ac_Header=no
"
15955 rm -f conftest.err conftest.$ac_ext
15957 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
15958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15969 # This can be used to rebuild libtool when needed
15970 LIBTOOL_DEPS="$ltmain"
15972 # Always use our own libtool.
15973 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15999 test -z "$LN_S" && LN_S="ln -s"
16014 if test -n "${ZSH_VERSION+set}" ; then
16015 setopt NO_GLOB_SUBST
16018 echo "$as_me:$LINENO: checking
for objdir
" >&5
16019 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6
16020 if test "${lt_cv_objdir+set}" = set; then
16021 echo $ECHO_N "(cached
) $ECHO_C" >&6
16023 rm -f .libs 2>/dev/null
16024 mkdir .libs 2>/dev/null
16025 if test -d .libs; then
16028 # MS-DOS does not allow filenames that begin with a dot.
16031 rmdir .libs 2>/dev/null
16033 echo "$as_me:$LINENO: result
: $lt_cv_objdir" >&5
16034 echo "${ECHO_T}$lt_cv_objdir" >&6
16035 objdir=$lt_cv_objdir
16041 cat >>confdefs.h <<_ACEOF
16042 #define LT_OBJDIR "$lt_cv_objdir/"
16063 # AIX sometimes has problems with the GCC collect2 program. For some
16064 # reason, if we set the COLLECT_NAMES environment variable, the problems
16065 # vanish in a puff of smoke.
16066 if test "X
${COLLECT_NAMES+set}" != Xset; then
16068 export COLLECT_NAMES
16073 # Sed substitution that helps us do robust quoting. It backslashifies
16074 # metacharacters that are still active within double-quoted strings.
16075 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16077 # Same as above, but do not quote variable references.
16078 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
16080 # Sed substitution to delay expansion of an escaped shell variable in a
16081 # double_quote_subst'ed string.
16082 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
16084 # Sed substitution to delay expansion of an escaped single quote.
16085 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
16087 # Sed substitution to avoid accidental globbing in evaled expressions
16088 no_glob_subst
='s/\*/\\\*/g'
16090 # Global variables:
16092 can_build_shared
=yes
16094 # All known linkers require a `.a' archive for static linking (except MSVC,
16095 # which needs '.lib').
16098 with_gnu_ld
="$lt_cv_prog_gnu_ld"
16101 old_CFLAGS
="$CFLAGS"
16103 # Set sane defaults for various variables
16104 test -z "$CC" && CC
=cc
16105 test -z "$LTCC" && LTCC
=$CC
16106 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
16107 test -z "$LD" && LD
=ld
16108 test -z "$ac_objext" && ac_objext
=o
16110 for cc_temp
in $compiler""; do
16112 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16113 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16118 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16121 # Only perform the check for file, if the check method requires it
16122 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
16123 case $deplibs_check_method in
16125 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16126 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16127 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16128 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16136 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16137 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16138 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16139 for ac_dir
in $ac_dummy; do
16141 test -z "$ac_dir" && ac_dir
=.
16142 if test -f $ac_dir/${ac_tool_prefix}file; then
16143 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
16144 if test -n "$file_magic_test_file"; then
16145 case $deplibs_check_method in
16147 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16148 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16149 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16150 $EGREP "$file_magic_regex" > /dev
/null
; then
16155 *** Warning: the command libtool uses to detect shared libraries,
16156 *** $file_magic_cmd, produces output that libtool cannot recognize.
16157 *** The result is that libtool may fail to recognize shared libraries
16158 *** as such. This will affect the creation of libtool libraries that
16159 *** depend on shared libraries, but programs linked with such libtool
16160 *** libraries will work regardless of this problem. Nevertheless, you
16161 *** may want to report the problem to your system manager and/or to
16162 *** bug-libtool@gnu.org
16172 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16177 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16178 if test -n "$MAGIC_CMD"; then
16179 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16180 echo "${ECHO_T}$MAGIC_CMD" >&6
16182 echo "$as_me:$LINENO: result: no" >&5
16183 echo "${ECHO_T}no" >&6
16190 if test -z "$lt_cv_path_MAGIC_CMD"; then
16191 if test -n "$ac_tool_prefix"; then
16192 echo "$as_me:$LINENO: checking for file" >&5
16193 echo $ECHO_N "checking for file... $ECHO_C" >&6
16194 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16202 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16203 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16204 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16205 for ac_dir
in $ac_dummy; do
16207 test -z "$ac_dir" && ac_dir
=.
16208 if test -f $ac_dir/file; then
16209 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
16210 if test -n "$file_magic_test_file"; then
16211 case $deplibs_check_method in
16213 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16214 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16215 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16216 $EGREP "$file_magic_regex" > /dev
/null
; then
16221 *** Warning: the command libtool uses to detect shared libraries,
16222 *** $file_magic_cmd, produces output that libtool cannot recognize.
16223 *** The result is that libtool may fail to recognize shared libraries
16224 *** as such. This will affect the creation of libtool libraries that
16225 *** depend on shared libraries, but programs linked with such libtool
16226 *** libraries will work regardless of this problem. Nevertheless, you
16227 *** may want to report the problem to your system manager and/or to
16228 *** bug-libtool@gnu.org
16238 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16243 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16244 if test -n "$MAGIC_CMD"; then
16245 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16246 echo "${ECHO_T}$MAGIC_CMD" >&6
16248 echo "$as_me:$LINENO: result: no" >&5
16249 echo "${ECHO_T}no" >&6
16262 # Use C for the default configuration in the libtool script
16266 ac_cpp
='$CPP $CPPFLAGS'
16267 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16268 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16269 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16272 # Source file extension for C test sources.
16275 # Object file extension for compiled C test sources.
16279 # Code to be used in simple compile tests
16280 lt_simple_compile_test_code
="int some_variable = 0;"
16282 # Code to be used in simple link tests
16283 lt_simple_link_test_code
='int main(){return(0);}'
16291 # If no C compiler was specified, use CC.
16294 # If no C compiler flags were specified, use CFLAGS.
16295 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16297 # Allow CC to be a program name with arguments.
16300 # Save the default compiler, since it gets overwritten when the other
16301 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16302 compiler_DEFAULT
=$CC
16304 # save warnings/boilerplate of simple test code
16305 ac_outfile
=conftest.
$ac_objext
16306 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16307 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16308 _lt_compiler_boilerplate
=`cat conftest.err`
16311 ac_outfile
=conftest.
$ac_objext
16312 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16313 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16314 _lt_linker_boilerplate
=`cat conftest.err`
16319 ## There is no encapsulation within the following macros, do not change
16320 ## the running order or otherwise move them around unless you know exactly
16321 ## what you are doing...
16322 if test -n "$compiler"; then
16324 lt_prog_compiler_no_builtin_flag
=
16326 if test "$GCC" = yes; then
16327 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
16329 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16330 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16331 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 lt_cv_prog_compiler_rtti_exceptions
=no
16335 ac_outfile
=conftest.
$ac_objext
16336 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16337 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16338 # Insert the option either (1) after the last *FLAGS variable, or
16339 # (2) before a word containing "conftest.", or (3) at the end.
16340 # Note that $ac_compile itself does not contain backslashes and begins
16341 # with a dollar sign (not a hyphen), so the echo should work correctly.
16342 # The option is referenced via a variable to avoid confusing sed.
16343 lt_compile
=`echo "$ac_compile" | $SED \
16344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16346 -e 's:$: $lt_compiler_flag:'`
16347 (eval echo "\"\$as_me:16338: $lt_compile\"" >&5)
16348 (eval "$lt_compile" 2>conftest.err
)
16350 cat conftest.err
>&5
16351 echo "$as_me:16342: \$? = $ac_status" >&5
16352 if (exit $ac_status) && test -s "$ac_outfile"; then
16353 # The compiler can only warn and ignore the option if not recognized
16354 # So say no if there are warnings other than the usual output.
16355 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16356 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16357 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16358 lt_cv_prog_compiler_rtti_exceptions
=yes
16364 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16365 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16367 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16368 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16380 lt_prog_compiler_wl
=
16381 lt_prog_compiler_pic
=
16382 lt_prog_compiler_static
=
16384 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16387 if test "$GCC" = yes; then
16388 lt_prog_compiler_wl
='-Wl,'
16389 lt_prog_compiler_static
='-static'
16393 # All AIX code is PIC.
16394 if test "$host_cpu" = ia64
; then
16395 # AIX 5 now supports IA64 processor
16396 lt_prog_compiler_static
='-Bstatic'
16401 if test "$host_cpu" = m68k
; then
16402 # FIXME: we need at least 68020 code to build shared libraries, but
16403 # adding the `-m68020' flag to GCC prevents building anything better,
16405 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
16409 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16410 # PIC is the default for these OSes.
16413 mingw
* | cygwin
* | pw32
* | os2
*)
16414 # This hack is so that the source file can tell whether it is being
16415 # built for inclusion in a dll (and should export symbols for example).
16416 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16417 # (--disable-auto-import) libraries
16418 lt_prog_compiler_pic
='-DDLL_EXPORT'
16421 darwin
* | rhapsody
*)
16422 # PIC is the default on this platform
16423 # Common symbols not allowed in MH_DYLIB files
16424 lt_prog_compiler_pic
='-fno-common'
16428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16429 # not for PA HP-UX.
16435 lt_prog_compiler_pic
='-fPIC'
16441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16442 # Instead, we relocate shared libraries at runtime.
16446 # Just because we use GCC doesn't mean we suddenly get shared libraries
16447 # on systems that don't support them.
16448 lt_prog_compiler_can_build_shared
=no
16453 # QNX uses GNU C++, but need to define -shared option too, otherwise
16454 # it will coredump.
16455 lt_prog_compiler_pic
='-fPIC -shared'
16459 if test -d /usr
/nec
; then
16460 lt_prog_compiler_pic
=-Kconform_pic
16465 lt_prog_compiler_pic
='-fPIC'
16469 # PORTME Check for flag to pass linker flags through the system compiler.
16472 lt_prog_compiler_wl
='-Wl,'
16473 if test "$host_cpu" = ia64
; then
16474 # AIX 5 now supports IA64 processor
16475 lt_prog_compiler_static
='-Bstatic'
16477 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
16481 # PIC is the default on this platform
16482 # Common symbols not allowed in MH_DYLIB files
16483 case $cc_basename in
16485 lt_prog_compiler_pic
='-qnocommon'
16486 lt_prog_compiler_wl
='-Wl,'
16491 mingw
* | cygwin
* | pw32
* | os2
*)
16492 # This hack is so that the source file can tell whether it is being
16493 # built for inclusion in a dll (and should export symbols for example).
16494 lt_prog_compiler_pic
='-DDLL_EXPORT'
16497 hpux9
* | hpux10
* | hpux11
*)
16498 lt_prog_compiler_wl
='-Wl,'
16499 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16500 # not for PA HP-UX.
16506 lt_prog_compiler_pic
='+Z'
16509 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16510 lt_prog_compiler_static
='${wl}-a ${wl}archive'
16513 irix5
* | irix6
* | nonstopux
*)
16514 lt_prog_compiler_wl
='-Wl,'
16515 # PIC (with -KPIC) is the default.
16516 lt_prog_compiler_static
='-non_shared'
16519 linux
* | k
*bsd
*-gnu)
16520 case $cc_basename in
16522 lt_prog_compiler_wl
='-Wl,'
16523 lt_prog_compiler_pic
='-KPIC'
16524 lt_prog_compiler_static
='-static'
16526 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16527 # Portland Group compilers (*not* the Pentium gcc compiler,
16528 # which looks to be a dead project)
16529 lt_prog_compiler_wl
='-Wl,'
16530 lt_prog_compiler_pic
='-fpic'
16531 lt_prog_compiler_static
='-Bstatic'
16534 lt_prog_compiler_wl
='-Wl,'
16535 # All Alpha code is PIC.
16536 lt_prog_compiler_static
='-non_shared'
16539 case `$CC -V 2>&1 | sed 5q` in
16542 lt_prog_compiler_pic
='-KPIC'
16543 lt_prog_compiler_static
='-Bstatic'
16544 lt_prog_compiler_wl
='-Wl,'
16547 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16548 lt_prog_compiler_pic
='-KPIC'
16549 lt_prog_compiler_static
='-Bstatic'
16550 lt_prog_compiler_wl
=''
16558 lt_prog_compiler_pic
='-KPIC'
16559 lt_prog_compiler_static
='-Bstatic'
16563 # QNX uses GNU C++, but need to define -shared option too, otherwise
16564 # it will coredump.
16565 lt_prog_compiler_pic
='-fPIC -shared'
16568 osf3
* | osf4
* | osf5
*)
16569 lt_prog_compiler_wl
='-Wl,'
16570 # All OSF/1 code is PIC.
16571 lt_prog_compiler_static
='-non_shared'
16575 lt_prog_compiler_static
='-non_shared'
16579 lt_prog_compiler_pic
='-KPIC'
16580 lt_prog_compiler_static
='-Bstatic'
16581 case $cc_basename in
16582 f77
* | f90
* | f95
*)
16583 lt_prog_compiler_wl
='-Qoption ld ';;
16585 lt_prog_compiler_wl
='-Wl,';;
16590 lt_prog_compiler_wl
='-Qoption ld '
16591 lt_prog_compiler_pic
='-PIC'
16592 lt_prog_compiler_static
='-Bstatic'
16595 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16596 lt_prog_compiler_wl
='-Wl,'
16597 lt_prog_compiler_pic
='-KPIC'
16598 lt_prog_compiler_static
='-Bstatic'
16602 if test -d /usr
/nec
;then
16603 lt_prog_compiler_pic
='-Kconform_pic'
16604 lt_prog_compiler_static
='-Bstatic'
16608 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16609 lt_prog_compiler_wl
='-Wl,'
16610 lt_prog_compiler_pic
='-KPIC'
16611 lt_prog_compiler_static
='-Bstatic'
16615 lt_prog_compiler_wl
='-Wl,'
16616 lt_prog_compiler_can_build_shared
=no
16620 lt_prog_compiler_pic
='-pic'
16621 lt_prog_compiler_static
='-Bstatic'
16625 lt_prog_compiler_can_build_shared
=no
16631 # For platforms which do not support PIC, -DPIC is meaningless:
16633 lt_prog_compiler_pic
=
16636 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
16639 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16640 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16648 # Check to make sure the PIC flag actually works.
16650 if test -n "$lt_prog_compiler_pic"; then
16651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16653 if test "${lt_prog_compiler_pic_works+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 lt_prog_compiler_pic_works
=no
16657 ac_outfile
=conftest.
$ac_objext
16658 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16659 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
16660 # Insert the option either (1) after the last *FLAGS variable, or
16661 # (2) before a word containing "conftest.", or (3) at the end.
16662 # Note that $ac_compile itself does not contain backslashes and begins
16663 # with a dollar sign (not a hyphen), so the echo should work correctly.
16664 # The option is referenced via a variable to avoid confusing sed.
16665 lt_compile
=`echo "$ac_compile" | $SED \
16666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16668 -e 's:$: $lt_compiler_flag:'`
16669 (eval echo "\"\$as_me:16660: $lt_compile\"" >&5)
16670 (eval "$lt_compile" 2>conftest.err
)
16672 cat conftest.err
>&5
16673 echo "$as_me:16664: \$? = $ac_status" >&5
16674 if (exit $ac_status) && test -s "$ac_outfile"; then
16675 # The compiler can only warn and ignore the option if not recognized
16676 # So say no if there are warnings other than the usual output.
16677 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16678 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16679 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16680 lt_prog_compiler_pic_works
=yes
16686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16687 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16689 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
16690 case $lt_prog_compiler_pic in
16692 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
16695 lt_prog_compiler_pic
=
16696 lt_prog_compiler_can_build_shared
=no
16707 # Check to make sure the static flag actually works.
16709 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
16710 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16711 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16712 if test "${lt_prog_compiler_static_works+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 lt_prog_compiler_static_works
=no
16716 save_LDFLAGS
="$LDFLAGS"
16717 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16718 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16719 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16720 # The linker can only warn and ignore the option if not recognized
16721 # So say no if there are warnings
16722 if test -s conftest.err
; then
16723 # Append any errors to the config.log.
16724 cat conftest.err
1>&5
16725 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16726 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16727 if diff conftest.exp conftest.er2
>/dev
/null
; then
16728 lt_prog_compiler_static_works
=yes
16731 lt_prog_compiler_static_works
=yes
16735 LDFLAGS
="$save_LDFLAGS"
16738 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16739 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16741 if test x
"$lt_prog_compiler_static_works" = xyes
; then
16744 lt_prog_compiler_static
=
16753 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16754 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16755 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 lt_cv_prog_compiler_c_o
=no
16759 $RM -r conftest
2>/dev
/null
16763 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16765 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16766 # Insert the option either (1) after the last *FLAGS variable, or
16767 # (2) before a word containing "conftest.", or (3) at the end.
16768 # Note that $ac_compile itself does not contain backslashes and begins
16769 # with a dollar sign (not a hyphen), so the echo should work correctly.
16770 lt_compile
=`echo "$ac_compile" | $SED \
16771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16773 -e 's:$: $lt_compiler_flag:'`
16774 (eval echo "\"\$as_me:16765: $lt_compile\"" >&5)
16775 (eval "$lt_compile" 2>out
/conftest.err
)
16777 cat out
/conftest.err
>&5
16778 echo "$as_me:16769: \$? = $ac_status" >&5
16779 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16781 # The compiler can only warn and ignore the option if not recognized
16782 # So say no if there are warnings
16783 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16784 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16785 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16786 lt_cv_prog_compiler_c_o
=yes
16791 # SGI C++ compiler will create directory out/ii_files/ for
16792 # template instantiation
16793 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16794 $RM out
/* && rmdir out
16800 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16801 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16808 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16809 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16810 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 lt_cv_prog_compiler_c_o
=no
16814 $RM -r conftest
2>/dev
/null
16818 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16820 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16821 # Insert the option either (1) after the last *FLAGS variable, or
16822 # (2) before a word containing "conftest.", or (3) at the end.
16823 # Note that $ac_compile itself does not contain backslashes and begins
16824 # with a dollar sign (not a hyphen), so the echo should work correctly.
16825 lt_compile
=`echo "$ac_compile" | $SED \
16826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16828 -e 's:$: $lt_compiler_flag:'`
16829 (eval echo "\"\$as_me:16820: $lt_compile\"" >&5)
16830 (eval "$lt_compile" 2>out
/conftest.err
)
16832 cat out
/conftest.err
>&5
16833 echo "$as_me:16824: \$? = $ac_status" >&5
16834 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16836 # The compiler can only warn and ignore the option if not recognized
16837 # So say no if there are warnings
16838 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16839 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16840 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16841 lt_cv_prog_compiler_c_o
=yes
16846 # SGI C++ compiler will create directory out/ii_files/ for
16847 # template instantiation
16848 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16849 $RM out
/* && rmdir out
16855 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16856 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16861 hard_links
="nottested"
16862 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
16863 # do not overwrite the value of need_locks provided by the user
16864 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16865 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16868 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16870 ln conftest.a conftest.b
2>&5 || hard_links
=no
16871 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16872 echo "$as_me:$LINENO: result: $hard_links" >&5
16873 echo "${ECHO_T}$hard_links" >&6
16874 if test "$hard_links" = no
; then
16875 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16876 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16888 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16889 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16892 allow_undefined_flag
=
16893 always_export_symbols
=no
16895 archive_expsym_cmds
=
16896 compiler_needs_object
=no
16897 enable_shared_with_static_runtimes
=no
16898 export_dynamic_flag_spec
=
16899 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16900 hardcode_automatic
=no
16902 hardcode_direct_absolute
=no
16903 hardcode_libdir_flag_spec
=
16904 hardcode_libdir_flag_spec_ld
=
16905 hardcode_libdir_separator
=
16906 hardcode_minus_L
=no
16907 hardcode_shlibpath_var
=unsupported
16909 link_all_deplibs
=unknown
16911 module_expsym_cmds
=
16912 old_archive_from_new_cmds
=
16913 old_archive_from_expsyms_cmds
=
16914 thread_safe_flag_spec
=
16915 whole_archive_flag_spec
=
16916 # include_expsyms should be a list of space-separated symbols to be *always*
16917 # included in the symbol list
16919 # exclude_expsyms can be an extended regexp of symbols to exclude
16920 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16921 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16922 # as well as any symbol that contains `d'.
16923 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
16924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16925 # platforms (ab)use it in PIC code, but their linkers get confused if
16926 # the symbol is explicitly referenced. Since portable code cannot
16927 # rely on this symbol name, it's probably fine to never include it in
16928 # preloaded symbol tables.
16929 extract_expsyms_cmds
=
16932 cygwin
* | mingw
* | pw32
*)
16933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16934 # When not using gcc, we currently assume that we are using
16935 # Microsoft Visual C++.
16936 if test "$GCC" != yes; then
16941 # we just hope/assume this is gcc and not c89 (= MSVC++)
16950 if test "$with_gnu_ld" = yes; then
16951 # If archive_cmds runs LD, not CC, wlarc should be empty
16954 # Set some defaults for GNU ld with shared library support. These
16955 # are reset later if shared libraries are not supported. Putting them
16956 # here allows them to be overridden if necessary.
16957 runpath_var
=LD_RUN_PATH
16958 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16959 export_dynamic_flag_spec
='${wl}--export-dynamic'
16960 # ancient GNU ld didn't support --whole-archive et. al.
16961 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
16962 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16964 whole_archive_flag_spec
=
16966 supports_anon_versioning
=no
16967 case `$LD -v 2>&1` in
16968 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16969 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16970 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16971 *\
2.11.
*) ;; # other 2.11 versions
16972 *) supports_anon_versioning
=yes ;;
16975 # See if GNU ld supports shared libraries.
16978 # On AIX/PPC, the GNU linker is very broken
16979 if test "$host_cpu" != ia64
; then
16983 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16984 *** to be unable to reliably create shared libraries on AIX.
16985 *** Therefore, libtool is disabling shared libraries support. If you
16986 *** really care for shared libraries, you may want to modify your PATH
16987 *** so that a non-GNU linker is found, and then restart.
16994 if test "$host_cpu" = m68k
; then
16995 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)'
16996 hardcode_libdir_flag_spec
='-L$libdir'
16997 hardcode_minus_L
=yes
17000 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17001 # that the semantics of dynamic libraries on AmigaOS, at least up
17002 # to version 4, is to share data among multiple programs linked
17003 # with the same dynamic library. Since this doesn't match the
17004 # behavior of shared libraries on other platforms, we can't use
17010 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17011 allow_undefined_flag
=unsupported
17012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17013 # support --undefined. This deserves some investigation. FIXME
17014 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17020 cygwin
* | mingw
* | pw32
*)
17021 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17022 # as there is no search path for DLLs.
17023 hardcode_libdir_flag_spec
='-L$libdir'
17024 allow_undefined_flag
=unsupported
17025 always_export_symbols
=no
17026 enable_shared_with_static_runtimes
=yes
17027 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17029 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17030 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17031 # If the export-symbols file already is a .def file (1st line
17032 # is EXPORTS), use it as is; otherwise, prepend...
17033 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17034 cp $export_symbols $output_objdir/$soname.def;
17036 echo EXPORTS > $output_objdir/$soname.def;
17037 cat $export_symbols >> $output_objdir/$soname.def;
17039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17047 hardcode_shlibpath_var
=no
17048 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17049 export_dynamic_flag_spec
='${wl}-E'
17050 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17051 # Instead, shared libraries are loaded at an image base (0x10000000 by
17052 # default) and relocated if they conflict, which is a slow very memory
17053 # consuming and fragmenting process. To avoid this, we pick a random,
17054 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17055 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17056 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17057 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'
17060 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
17062 if test "$host_os" = linux-dietlibc
; then
17063 case $cc_basename in
17064 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17067 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17068 && test "$tmp_diet" = no
17071 case $cc_basename,$host_cpu in
17072 pgcc
*) # Portland Group C compiler
17073 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'
17074 tmp_addflag
=' $pic_flag'
17076 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17077 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'
17078 tmp_addflag
=' $pic_flag -Mnomain' ;;
17079 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17080 tmp_addflag
=' -i_dynamic' ;;
17081 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17082 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17083 ifc
* | ifort
*) # Intel Fortran compiler
17084 tmp_addflag
=' -nofor_main' ;;
17086 case `$CC -V 2>&1 | sed 5q` in
17087 *Sun\ C
*) # Sun C 5.9
17088 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'
17089 compiler_needs_object
=yes
17090 tmp_sharedflag
='-G' ;;
17091 *Sun\ F
*) # Sun Fortran 8.3
17092 tmp_sharedflag
='-G' ;;
17094 tmp_sharedflag
='-shared' ;;
17096 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17098 if test "x$supports_anon_versioning" = xyes
; then
17099 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17101 echo "local: *; };" >> $output_objdir/$libname.ver~
17102 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17110 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17111 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17114 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17115 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17120 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17124 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17125 *** create shared libraries on Solaris systems. Therefore, libtool
17126 *** is disabling shared libraries support. We urge you to upgrade GNU
17127 *** binutils to release 2.9.1 or newer. Another option is to modify
17128 *** your PATH or compiler configuration so that the native linker is
17129 *** used, and then restart.
17132 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17133 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17134 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17140 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17141 case `$LD -v 2>&1` in
17142 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17146 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17147 *** reliably create shared libraries on SCO systems. Therefore, libtool
17148 *** is disabling shared libraries support. We urge you to upgrade GNU
17149 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17150 *** your PATH or compiler configuration so that the native linker is
17151 *** used, and then restart.
17156 # For security reasons, it is highly recommended that you always
17157 # use absolute paths for naming shared libraries, and exclude the
17158 # DT_RUNPATH tag from executables and libraries. But doing so
17159 # requires that you compile everything twice, which is a pain.
17160 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17161 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17162 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17163 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17172 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17174 hardcode_direct
=yes
17175 hardcode_shlibpath_var
=no
17179 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17180 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17181 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17188 if test "$ld_shlibs" = no
; then
17190 hardcode_libdir_flag_spec
=
17191 export_dynamic_flag_spec
=
17192 whole_archive_flag_spec
=
17195 # PORTME fill in a description of your system's linker (not GNU ld)
17198 allow_undefined_flag
=unsupported
17199 always_export_symbols
=yes
17200 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'
17201 # Note: this linker hardcodes the directories in LIBPATH if there
17202 # are no directories specified by -L.
17203 hardcode_minus_L
=yes
17204 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17205 # Neither direct hardcoding nor static linking is supported with a
17207 hardcode_direct
=unsupported
17212 if test "$host_cpu" = ia64
; then
17213 # On IA64, the linker does run time linking by default, so we don't
17214 # have to do anything special.
17215 aix_use_runtimelinking
=no
17216 exp_sym_flag
='-Bexport'
17219 # If we're using GNU nm, then we don't want the "-C" option.
17220 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17221 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17222 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'
17224 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'
17226 aix_use_runtimelinking
=no
17228 # Test if we are trying to use run time linking or normal
17229 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17230 # need to do runtime linking.
17231 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17232 for ld_flag
in $LDFLAGS; do
17233 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17234 aix_use_runtimelinking
=yes
17241 exp_sym_flag
='-bexport'
17242 no_entry_flag
='-bnoentry'
17245 # When large executables or shared objects are built, AIX ld can
17246 # have problems creating the table of contents. If linking a library
17247 # or program results in "error TOC overflow" add -mminimal-toc to
17248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17252 hardcode_direct
=yes
17253 hardcode_direct_absolute
=yes
17254 hardcode_libdir_separator
=':'
17255 link_all_deplibs
=yes
17256 file_list_spec
='${wl}-f,'
17258 if test "$GCC" = yes; then
17259 case $host_os in aix4.
[012]|aix4.
[012].
*)
17260 # We only want to do this on AIX 4.2 and lower, the check
17261 # below for broken collect2 doesn't work under 4.3+
17262 collect2name
=`${CC} -print-prog-name=collect2`
17263 if test -f "$collect2name" &&
17264 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17266 # We have reworked collect2
17269 # We have old collect2
17270 hardcode_direct
=unsupported
17271 # It fails to find uninstalled libraries when the uninstalled
17272 # path is not listed in the libpath. Setting hardcode_minus_L
17273 # to unsupported forces relinking
17274 hardcode_minus_L
=yes
17275 hardcode_libdir_flag_spec
='-L$libdir'
17276 hardcode_libdir_separator
=
17280 shared_flag
='-shared'
17281 if test "$aix_use_runtimelinking" = yes; then
17282 shared_flag
="$shared_flag "'${wl}-G'
17286 if test "$host_cpu" = ia64
; then
17287 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17288 # chokes on -Wl,-G. The following line is correct:
17291 if test "$aix_use_runtimelinking" = yes; then
17292 shared_flag
='${wl}-G'
17294 shared_flag
='${wl}-bM:SRE'
17299 # It seems that -bexpall does not export symbols beginning with
17300 # underscore (_), so it is better to generate a list of symbols to export.
17301 always_export_symbols
=yes
17302 if test "$aix_use_runtimelinking" = yes; then
17303 # Warning - without using the other runtime loading flags (-brtl),
17304 # -berok will link without error, but may produce a broken library.
17305 allow_undefined_flag
='-berok'
17306 # Determine the default libpath from the value encoded in an
17307 # empty executable.
17308 cat >conftest.
$ac_ext <<_ACEOF
17311 cat confdefs.h
>>conftest.
$ac_ext
17312 cat >>conftest.
$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17323 rm -f conftest.
$ac_objext conftest
$ac_exeext
17324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17325 (eval $ac_link) 2>conftest.er1
17327 grep -v '^ *+' conftest.er1
>conftest.err
17329 cat conftest.err
>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
17332 { ac_try
='test -z "$ac_c_werror_flag"
17333 || test ! -s conftest.err'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; } &&
17339 { ac_try
='test -s conftest$ac_exeext'
17340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341 (eval $ac_try) 2>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; }; then
17346 lt_aix_libpath_sed
='
17347 /Import File Strings/,/^$/ {
17353 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17354 # Check for a 64-bit object if we didn't find anything.
17355 if test -z "$aix_libpath"; then
17356 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.
$ac_ext >&5
17363 rm -f conftest.err conftest.
$ac_objext \
17364 conftest
$ac_exeext conftest.
$ac_ext
17365 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17367 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17368 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"
17370 if test "$host_cpu" = ia64
; then
17371 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17372 allow_undefined_flag
="-z nodefs"
17373 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"
17375 # Determine the default libpath from the value encoded in an
17376 # empty executable.
17377 cat >conftest.
$ac_ext <<_ACEOF
17380 cat confdefs.h
>>conftest.
$ac_ext
17381 cat >>conftest.
$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17392 rm -f conftest.
$ac_objext conftest
$ac_exeext
17393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394 (eval $ac_link) 2>conftest.er1
17396 grep -v '^ *+' conftest.er1
>conftest.err
17398 cat conftest.err
>&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } &&
17401 { ac_try
='test -z "$ac_c_werror_flag"
17402 || test ! -s conftest.err'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try
='test -s conftest$ac_exeext'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; }; then
17415 lt_aix_libpath_sed
='
17416 /Import File Strings/,/^$/ {
17422 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17423 # Check for a 64-bit object if we didn't find anything.
17424 if test -z "$aix_libpath"; then
17425 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.
$ac_ext >&5
17432 rm -f conftest.err conftest.
$ac_objext \
17433 conftest
$ac_exeext conftest.
$ac_ext
17434 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17436 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17437 # Warning - without using the other run time loading flags,
17438 # -berok will link without error, but may produce a broken library.
17439 no_undefined_flag
=' ${wl}-bernotok'
17440 allow_undefined_flag
=' ${wl}-berok'
17441 # Exported symbols can be pulled into shared objects from archives
17442 whole_archive_flag_spec
='$convenience'
17443 archive_cmds_need_lc
=yes
17444 # This is similar to how AIX traditionally builds its shared libraries.
17445 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'
17451 if test "$host_cpu" = m68k
; then
17452 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)'
17453 hardcode_libdir_flag_spec
='-L$libdir'
17454 hardcode_minus_L
=yes
17456 # see comment about different semantics on the GNU ld section
17461 export_dynamic_flag_spec
=-rdynamic
17464 cygwin
* | mingw
* | pw32
*)
17465 # When not using gcc, we currently assume that we are using
17466 # Microsoft Visual C++.
17467 # hardcode_libdir_flag_spec is actually meaningless, as there is
17468 # no search path for DLLs.
17469 hardcode_libdir_flag_spec
=' '
17470 allow_undefined_flag
=unsupported
17471 # Tell ltmain to make .lib files, not .a files.
17473 # Tell ltmain to make .dll files, not .so files.
17475 # FIXME: Setting linknames here is a bad hack.
17476 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17477 # The linker will automatically build a .lib file if we build a DLL.
17478 old_archive_from_new_cmds
='true'
17479 # FIXME: Should let the user specify the lib program.
17480 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17481 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17482 enable_shared_with_static_runtimes
=yes
17485 darwin
* | rhapsody
*)
17487 rhapsody
* | darwin1.
[012])
17488 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
17491 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17493 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17496 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
17501 archive_cmds_need_lc
=no
17503 hardcode_automatic
=yes
17504 hardcode_shlibpath_var
=unsupported
17505 whole_archive_flag_spec
=''
17506 link_all_deplibs
=yes
17507 if test "$GCC" = yes ; then
17508 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 lt_cv_apple_cc_single_mod
=no
17512 if test -z "${LT_MULTI_MODULE}"; then
17513 # By default we will add the -single_module flag. You can override
17514 # by either setting the environment variable LT_MULTI_MODULE
17515 # non-empty at configure time, or by adding -multi-module to the
17517 echo "int foo(void){return 1;}" > conftest.c
17518 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17519 -dynamiclib ${wl}-single_module conftest.c
17520 if test -f libconftest.dylib
; then
17521 lt_cv_apple_cc_single_mod
=yes
17522 rm libconftest.dylib
17524 rm conftest.
$ac_ext
17528 output_verbose_link_cmd
=echo
17529 if test "X$lt_cv_apple_cc_single_mod" = Xyes
; then
17530 archive_cmds
='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17531 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}'
17533 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17534 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}'
17536 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17537 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}'
17539 case $cc_basename in
17541 output_verbose_link_cmd
=echo
17542 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17543 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17545 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}'
17546 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}'
17556 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17557 hardcode_libdir_flag_spec
='-L$libdir'
17558 hardcode_shlibpath_var
=no
17565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17566 # support. Future versions do this automatically, but an explicit c++rt0.o
17567 # does not break anything, and helps significantly (at the cost of a little
17570 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17571 hardcode_libdir_flag_spec
='-R$libdir'
17572 hardcode_direct
=yes
17573 hardcode_shlibpath_var
=no
17576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17578 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17579 hardcode_direct
=yes
17580 hardcode_minus_L
=yes
17581 hardcode_shlibpath_var
=no
17584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17585 freebsd
* | dragonfly
*)
17586 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17587 hardcode_libdir_flag_spec
='-R$libdir'
17588 hardcode_direct
=yes
17589 hardcode_shlibpath_var
=no
17593 if test "$GCC" = yes; then
17594 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'
17596 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'
17598 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17599 hardcode_libdir_separator
=:
17600 hardcode_direct
=yes
17602 # hardcode_minus_L: Not really in the search PATH,
17603 # but as the default location of the library.
17604 hardcode_minus_L
=yes
17605 export_dynamic_flag_spec
='${wl}-E'
17609 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17610 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17612 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17614 if test "$with_gnu_ld" = no
; then
17615 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17616 hardcode_libdir_flag_spec_ld
='+b $libdir'
17617 hardcode_libdir_separator
=:
17618 hardcode_direct
=yes
17619 hardcode_direct_absolute
=yes
17620 export_dynamic_flag_spec
='${wl}-E'
17621 # hardcode_minus_L: Not really in the search PATH,
17622 # but as the default location of the library.
17623 hardcode_minus_L
=yes
17628 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17631 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17634 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17637 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17643 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17646 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17649 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17653 if test "$with_gnu_ld" = no
; then
17654 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17655 hardcode_libdir_separator
=:
17660 hardcode_shlibpath_var
=no
17663 hardcode_direct
=yes
17664 hardcode_direct_absolute
=yes
17665 export_dynamic_flag_spec
='${wl}-E'
17667 # hardcode_minus_L: Not really in the search PATH,
17668 # but as the default location of the library.
17669 hardcode_minus_L
=yes
17675 irix5
* | irix6
* | nonstopux
*)
17676 if test "$GCC" = yes; then
17677 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'
17678 # Try to use the -exported_symbol ld option, if it does not
17679 # work, assume that -exports_file does not work either and
17680 # implicitly export all symbols.
17681 save_LDFLAGS
="$LDFLAGS"
17682 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17683 cat >conftest.
$ac_ext <<_ACEOF
17686 rm -f conftest.
$ac_objext conftest
$ac_exeext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17688 (eval $ac_link) 2>conftest.er1
17690 grep -v '^ *+' conftest.er1
>conftest.err
17692 cat conftest.err
>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try
='test -z "$ac_c_werror_flag"
17696 || test ! -s conftest.err'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try
='test -s conftest$ac_exeext'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 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'
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.
$ac_ext >&5
17715 rm -f conftest.err conftest.
$ac_objext \
17716 conftest
$ac_exeext conftest.
$ac_ext
17717 LDFLAGS
="$save_LDFLAGS"
17719 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'
17720 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'
17722 archive_cmds_need_lc
='no'
17723 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17724 hardcode_libdir_separator
=:
17726 link_all_deplibs
=yes
17730 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17731 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17733 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17735 hardcode_libdir_flag_spec
='-R$libdir'
17736 hardcode_direct
=yes
17737 hardcode_shlibpath_var
=no
17741 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_direct
=yes
17743 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17744 hardcode_libdir_separator
=:
17745 hardcode_shlibpath_var
=no
17752 hardcode_direct
=yes
17753 hardcode_shlibpath_var
=no
17754 hardcode_direct_absolute
=yes
17755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17756 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17757 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17758 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17759 export_dynamic_flag_spec
='${wl}-E'
17762 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17763 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17764 hardcode_libdir_flag_spec
='-R$libdir'
17767 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17768 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17775 hardcode_libdir_flag_spec
='-L$libdir'
17776 hardcode_minus_L
=yes
17777 allow_undefined_flag
=unsupported
17778 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'
17779 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17783 if test "$GCC" = yes; then
17784 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17785 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'
17787 allow_undefined_flag
=' -expect_unresolved \*'
17788 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'
17790 archive_cmds_need_lc
='no'
17791 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17792 hardcode_libdir_separator
=:
17795 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17796 if test "$GCC" = yes; then
17797 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17798 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'
17799 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17801 allow_undefined_flag
=' -expect_unresolved \*'
17802 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'
17803 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~
17804 $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'
17806 # Both c and cxx compiler support -rpath directly
17807 hardcode_libdir_flag_spec
='-rpath $libdir'
17809 archive_cmds_need_lc
='no'
17810 hardcode_libdir_separator
=:
17814 no_undefined_flag
=' -z defs'
17815 if test "$GCC" = yes; then
17817 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17818 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17819 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17821 case `$CC -V 2>&1` in
17824 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17825 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17830 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17831 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17832 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17836 hardcode_libdir_flag_spec
='-R$libdir'
17837 hardcode_shlibpath_var
=no
17839 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17841 # The compiler driver will combine and reorder linker options,
17842 # but understands `-z linker_flag'. GCC discards it without `$wl',
17843 # but is careful enough not to reorder.
17844 # Supported since Solaris 2.6 (maybe 2.5.1?)
17845 if test "$GCC" = yes; then
17846 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17848 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17852 link_all_deplibs
=yes
17856 if test "x$host_vendor" = xsequent
; then
17857 # Use $CC to link under sequent, because it throws in some extra .o
17858 # files that make .init and .fini sections work.
17859 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17861 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17863 hardcode_libdir_flag_spec
='-L$libdir'
17864 hardcode_direct
=yes
17865 hardcode_minus_L
=yes
17866 hardcode_shlibpath_var
=no
17870 case $host_vendor in
17872 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17873 hardcode_direct
=yes # is this really true???
17876 ## LD is ld it makes a PLAMLIB
17877 ## CC just makes a GrossModule.
17878 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17879 reload_cmds
='$CC -r -o $output$reload_objs'
17883 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17884 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17887 runpath_var
='LD_RUN_PATH'
17888 hardcode_shlibpath_var
=no
17892 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17893 hardcode_shlibpath_var
=no
17894 export_dynamic_flag_spec
='-Bexport'
17898 if test -d /usr
/nec
; then
17899 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17900 hardcode_shlibpath_var
=no
17901 runpath_var
=LD_RUN_PATH
17902 hardcode_runpath_var
=yes
17907 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17908 no_undefined_flag
='${wl}-z,text'
17909 archive_cmds_need_lc
=no
17910 hardcode_shlibpath_var
=no
17911 runpath_var
='LD_RUN_PATH'
17913 if test "$GCC" = yes; then
17914 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17915 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17917 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17918 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17922 sysv5
* | sco3.2v5
* | sco5v6
*)
17923 # Note: We can NOT use -z defs as we might desire, because we do not
17924 # link with -lc, and that would cause any symbols used from libc to
17925 # always be unresolved, which means just about no library would
17926 # ever link correctly. If we're not using GNU ld we use -z text
17927 # though, which does catch some bad symbols but isn't as heavy-handed
17929 no_undefined_flag
='${wl}-z,text'
17930 allow_undefined_flag
='${wl}-z,nodefs'
17931 archive_cmds_need_lc
=no
17932 hardcode_shlibpath_var
=no
17933 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17934 hardcode_libdir_separator
=':'
17935 link_all_deplibs
=yes
17936 export_dynamic_flag_spec
='${wl}-Bexport'
17937 runpath_var
='LD_RUN_PATH'
17939 if test "$GCC" = yes; then
17940 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17941 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17943 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17944 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17949 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17950 hardcode_libdir_flag_spec
='-L$libdir'
17951 hardcode_shlibpath_var
=no
17959 if test x
$host_vendor = xsni
; then
17961 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17962 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17968 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17969 echo "${ECHO_T}$ld_shlibs" >&6
17970 test "$ld_shlibs" = no
&& can_build_shared
=no
17972 with_gnu_ld
=$with_gnu_ld
17989 # Do we need to explicitly link libc?
17991 case "x$archive_cmds_need_lc" in
17993 # Assume -lc should be added
17994 archive_cmds_need_lc
=yes
17996 if test "$enable_shared" = yes && test "$GCC" = yes; then
17997 case $archive_cmds in
17999 # FIXME: we may have to deal with multi-command sequences.
18002 # Test whether the compiler implicitly links with -lc since on some
18003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18004 # to ld, don't add -lc before -lgcc.
18005 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18006 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18008 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18011 (eval $ac_compile) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } 2>conftest.err
; then
18017 libobjs
=conftest.
$ac_objext
18019 wl
=$lt_prog_compiler_wl
18020 pic_flag
=$lt_prog_compiler_pic
18026 lt_save_allow_undefined_flag
=$allow_undefined_flag
18027 allow_undefined_flag
=
18028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18029 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }
18034 archive_cmds_need_lc
=no
18036 archive_cmds_need_lc
=yes
18038 allow_undefined_flag
=$lt_save_allow_undefined_flag
18040 cat conftest.err
1>&5
18043 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18044 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18207 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18208 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18210 if test "$withGCC" = yes; then
18212 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18213 *) lt_awk_arg
="/^libraries:/" ;;
18215 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18216 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
18217 # if the path contains ";" then we assume it to be the separator
18218 # otherwise default to the standard path separator (i.e. ":") - it is
18219 # assumed that no part of a normal pathname contains ";" but that should
18220 # okay in the real world where ";" in dirpaths is itself problematic.
18221 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18223 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18225 # Ok, now we have the path, separated by spaces, we can step through it
18226 # and add multilib dir if necessary.
18227 lt_tmp_lt_search_path_spec
=
18228 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18229 for lt_sys_path
in $lt_search_path_spec; do
18230 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18231 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18233 test -d "$lt_sys_path" && \
18234 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18237 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18238 BEGIN {RS=" "; FS="/|\n";} {
18241 for (lt_i = NF; lt_i > 0; lt_i--) {
18242 if ($lt_i != "" && $lt_i != ".") {
18243 if ($lt_i == "..") {
18246 if (lt_count == 0) {
18247 lt_foo="/" $lt_i lt_foo;
18254 if (lt_foo != "") { lt_freq[lt_foo]++; }
18255 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18257 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
18259 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18261 library_names_spec
=
18262 libname_spec
='lib$name'
18266 postuninstall_cmds
=
18270 shlibpath_overrides_runpath
=unknown
18272 dynamic_linker
="$host_os ld.so"
18273 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18274 need_lib_prefix
=unknown
18275 hardcode_into_libs
=no
18277 # when you set need_version to no, make sure it does not cause -set_version
18278 # flags to be left without arguments
18279 need_version
=unknown
18284 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18285 shlibpath_var
=LIBPATH
18287 # AIX 3 has no versioning support, so we append a major version to the name.
18288 soname_spec
='${libname}${release}${shared_ext}$major'
18295 hardcode_into_libs
=yes
18296 if test "$host_cpu" = ia64
; then
18297 # AIX 5 supports IA64
18298 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18299 shlibpath_var
=LD_LIBRARY_PATH
18301 # With GCC up to 2.95.x, collect2 would create an import file
18302 # for dependence libraries. The import file would start with
18303 # the line `#! .'. This would cause the generated library to
18304 # depend on `.', always an invalid library. This was fixed in
18305 # development snapshots of GCC prior to 3.0.
18307 aix4 | aix4.
[01] | aix4.
[01].
*)
18308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18310 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18313 can_build_shared
=no
18317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18318 # soname into executable. Probably we can add versioning support to
18319 # collect2, so additional links can be useful in future.
18320 if test "$aix_use_runtimelinking" = yes; then
18321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18322 # instead of lib<name>.a to let people know that these are not
18323 # typical AIX shared libraries.
18324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18326 # We preserve .a as extension for shared libraries through AIX4.2
18327 # and later when we are not doing run time linking.
18328 library_names_spec
='${libname}${release}.a $libname.a'
18329 soname_spec
='${libname}${release}${shared_ext}$major'
18331 shlibpath_var
=LIBPATH
18336 if test "$host_cpu" = m68k
; then
18337 library_names_spec
='$libname.ixlibrary $libname.a'
18338 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18339 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'
18346 library_names_spec
='${libname}${shared_ext}'
18347 dynamic_linker
="$host_os ld.so"
18348 shlibpath_var
=LIBRARY_PATH
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 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18357 shlibpath_var
=LD_LIBRARY_PATH
18358 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18359 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18360 # the default ld.so.conf also contains /usr/contrib/lib and
18361 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18362 # libtool to hard-code these into programs
18365 cygwin
* | mingw
* | pw32
*)
18366 version_type
=windows
18371 case $withGCC,$host_os in
18372 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18373 library_names_spec
='$libname.dll.a'
18374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18375 postinstall_cmds
='base_file=`basename \${file}`~
18376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18377 dldir=$destdir/`dirname \$dlpath`~
18378 test -d \$dldir || mkdir -p \$dldir~
18379 $install_prog $dir/$dlname \$dldir/$dlname~
18380 chmod a+x \$dldir/$dlname~
18381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18384 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18385 dlpath=$dir/\$dldll~
18387 shlibpath_overrides_runpath
=yes
18391 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18392 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18393 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18396 # MinGW DLLs use traditional 'lib' prefix
18397 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18398 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18399 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
18400 # It is most probably a Windows format PATH printed by
18401 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18402 # path with ; separators, and with drive letters. We can handle the
18403 # drive letters (cygwin fileutils understands them), so leave them,
18404 # especially as we might pass files found there to a mingw objdump,
18405 # which wouldn't understand a cygwinified path. Ahh.
18406 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18408 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18412 # pw32 DLLs use 'pw' prefix rather than 'lib'
18413 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18419 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18422 dynamic_linker
='Win32 ld.exe'
18423 # FIXME: first we should search . and the directory the executable is in
18427 darwin
* | rhapsody
*)
18428 dynamic_linker
="$host_os dyld"
18429 version_type
=darwin
18432 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18433 soname_spec
='${libname}${release}${major}$shared_ext'
18434 shlibpath_overrides_runpath
=yes
18435 shlibpath_var
=DYLD_LIBRARY_PATH
18436 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18438 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18439 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18447 soname_spec
='${libname}${release}${shared_ext}$major'
18448 shlibpath_var
=LD_LIBRARY_PATH
18455 freebsd
* | dragonfly
*)
18456 # DragonFly does not have aout. When/if they implement a new
18457 # versioning mechanism, adjust this.
18458 if test -x /usr
/bin
/objformat
; then
18459 objformat
=`/usr/bin/objformat`
18462 freebsd
[123]*) objformat
=aout
;;
18463 *) objformat
=elf
;;
18466 version_type
=freebsd-
$objformat
18467 case $version_type in
18469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18474 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18478 shlibpath_var
=LD_LIBRARY_PATH
18481 shlibpath_overrides_runpath
=yes
18483 freebsd3.
[01]* | freebsdelf3.
[01]*)
18484 shlibpath_overrides_runpath
=yes
18485 hardcode_into_libs
=yes
18487 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18488 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18489 shlibpath_overrides_runpath
=no
18490 hardcode_into_libs
=yes
18492 *) # from 4.6 on, and DragonFly
18493 shlibpath_overrides_runpath
=yes
18494 hardcode_into_libs
=yes
18503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18504 soname_spec
='${libname}${release}${shared_ext}$major'
18505 shlibpath_var
=LD_LIBRARY_PATH
18506 hardcode_into_libs
=yes
18509 hpux9
* | hpux10
* | hpux11
*)
18510 # Give a soname corresponding to the major version so that dld.sl refuses to
18511 # link against other versions.
18518 hardcode_into_libs
=yes
18519 dynamic_linker
="$host_os dld.so"
18520 shlibpath_var
=LD_LIBRARY_PATH
18521 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18523 soname_spec
='${libname}${release}${shared_ext}$major'
18524 if test "X$HPUX_IA64_MODE" = X32
; then
18525 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18527 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18529 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18533 hardcode_into_libs
=yes
18534 dynamic_linker
="$host_os dld.sl"
18535 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18536 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18538 soname_spec
='${libname}${release}${shared_ext}$major'
18539 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18540 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18544 dynamic_linker
="$host_os dld.sl"
18545 shlibpath_var
=SHLIB_PATH
18546 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18548 soname_spec
='${libname}${release}${shared_ext}$major'
18551 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18552 postinstall_cmds
='chmod 555 $lib'
18559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18560 soname_spec
='${libname}${release}${shared_ext}$major'
18561 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18562 shlibpath_var
=LD_LIBRARY_PATH
18563 shlibpath_overrides_runpath
=no
18564 hardcode_into_libs
=yes
18567 irix5
* | irix6
* | nonstopux
*)
18569 nonstopux
*) version_type
=nonstopux
;;
18571 if test "$lt_cv_prog_gnu_ld" = yes; then
18579 soname_spec
='${libname}${release}${shared_ext}$major'
18580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18582 irix5
* | nonstopux
*)
18583 libsuff
= shlibsuff
=
18586 case $LD in # libtool.m4 will add one of these switches to LD
18587 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18588 libsuff
= shlibsuff
= libmagic
=32-bit;;
18589 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18590 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18591 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18592 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18593 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18597 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18598 shlibpath_overrides_runpath
=no
18599 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18600 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18601 hardcode_into_libs
=yes
18604 # No shared lib support for Linux oldld, aout, or coff.
18605 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18609 # This must be Linux ELF.
18610 linux
* | k
*bsd
*-gnu)
18614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615 soname_spec
='${libname}${release}${shared_ext}$major'
18616 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18617 shlibpath_var
=LD_LIBRARY_PATH
18618 shlibpath_overrides_runpath
=no
18619 # Some binutils ld are patched to set DT_RUNPATH
18620 save_LDFLAGS
=$LDFLAGS
18621 save_libdir
=$libdir
18622 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18623 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18624 cat >conftest.
$ac_ext <<_ACEOF
18627 cat confdefs.h
>>conftest.
$ac_ext
18628 cat >>conftest.
$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18639 rm -f conftest.
$ac_objext conftest
$ac_exeext
18640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18641 (eval $ac_link) 2>conftest.er1
18643 grep -v '^ *+' conftest.er1
>conftest.err
18645 cat conftest.err
>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try
='test -z "$ac_c_werror_flag"
18649 || test ! -s conftest.err'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; } &&
18655 { ac_try
='test -s conftest$ac_exeext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir"; then
18662 shlibpath_overrides_runpath
=yes
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.
$ac_ext >&5
18670 rm -f conftest.err conftest.
$ac_objext \
18671 conftest
$ac_exeext conftest.
$ac_ext
18672 LDFLAGS
=$save_LDFLAGS
18673 libdir
=$save_libdir
18675 # This implies no fast_install, which is unacceptable.
18676 # Some rework will be needed to allow for fast_install
18677 # before this can be enabled.
18678 hardcode_into_libs
=yes
18680 # Append ld.so.conf contents to the search path
18681 if test -f /etc
/ld.so.conf
; then
18682 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' ' '`
18683 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18686 # We used to test for /lib/ld.so.1 and disable shared libraries on
18687 # powerpc, because MkLinux only supported shared libraries with the
18688 # GNU dynamic linker. Since this was broken with cross compilers,
18689 # most powerpc-linux boxes support dynamic linking these days and
18690 # people can always --disable-shared, the test was removed, and we
18691 # assume the GNU/Linux dynamic linker is in use.
18692 dynamic_linker
='GNU/Linux ld.so'
18699 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18701 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18702 dynamic_linker
='NetBSD (a.out) ld.so'
18704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18705 soname_spec
='${libname}${release}${shared_ext}$major'
18706 dynamic_linker
='NetBSD ld.elf_so'
18708 shlibpath_var
=LD_LIBRARY_PATH
18709 shlibpath_overrides_runpath
=yes
18710 hardcode_into_libs
=yes
18715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18716 shlibpath_var
=LD_LIBRARY_PATH
18717 shlibpath_overrides_runpath
=yes
18724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725 soname_spec
='${libname}${release}${shared_ext}$major'
18726 shlibpath_var
=LD_LIBRARY_PATH
18727 shlibpath_overrides_runpath
=no
18728 hardcode_into_libs
=yes
18729 dynamic_linker
='ldqnx.so'
18734 sys_lib_dlsearch_path_spec
="/usr/lib"
18736 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18738 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18739 *) need_version
=no
;;
18741 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18742 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18743 shlibpath_var
=LD_LIBRARY_PATH
18744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18746 openbsd2.
[89] | openbsd2.
[89].
*)
18747 shlibpath_overrides_runpath
=no
18750 shlibpath_overrides_runpath
=yes
18754 shlibpath_overrides_runpath
=yes
18759 libname_spec
='$name'
18762 library_names_spec
='$libname${shared_ext} $libname.a'
18763 dynamic_linker
='OS/2 ld.exe'
18764 shlibpath_var
=LIBPATH
18767 osf3
* | osf4
* | osf5
*)
18771 soname_spec
='${libname}${release}${shared_ext}$major'
18772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18773 shlibpath_var
=LD_LIBRARY_PATH
18774 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18775 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787 soname_spec
='${libname}${release}${shared_ext}$major'
18788 shlibpath_var
=LD_LIBRARY_PATH
18789 shlibpath_overrides_runpath
=yes
18790 hardcode_into_libs
=yes
18791 # ldd complains unless libraries are executable
18792 postinstall_cmds
='chmod +x $lib'
18797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18798 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18799 shlibpath_var
=LD_LIBRARY_PATH
18800 shlibpath_overrides_runpath
=yes
18801 if test "$with_gnu_ld" = yes; then
18809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18810 soname_spec
='${libname}${release}${shared_ext}$major'
18811 shlibpath_var
=LD_LIBRARY_PATH
18812 case $host_vendor in
18814 shlibpath_overrides_runpath
=no
18816 runpath_var
=LD_RUN_PATH
18824 shlibpath_overrides_runpath
=no
18825 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18831 if test -d /usr
/nec
;then
18833 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18834 soname_spec
='$libname${shared_ext}.$major'
18835 shlibpath_var
=LD_LIBRARY_PATH
18839 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18840 version_type
=freebsd-elf
18843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18844 soname_spec
='${libname}${release}${shared_ext}$major'
18845 shlibpath_var
=LD_LIBRARY_PATH
18846 shlibpath_overrides_runpath
=yes
18847 hardcode_into_libs
=yes
18848 if test "$with_gnu_ld" = yes; then
18849 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18851 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18854 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18858 sys_lib_dlsearch_path_spec
='/usr/lib'
18862 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18866 library_name_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867 shlibpath_var
=LD_LIBRARY_PATH
18868 shlibpath_overrides_runpath
=no
18869 hardcode_into_libs
=yes
18874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18875 soname_spec
='${libname}${release}${shared_ext}$major'
18876 shlibpath_var
=LD_LIBRARY_PATH
18883 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18884 echo "${ECHO_T}$dynamic_linker" >&6
18885 test "$dynamic_linker" = no
&& can_build_shared
=no
18887 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18888 if test "$GCC" = yes; then
18889 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18978 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18979 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18981 if test -n "$hardcode_libdir_flag_spec" ||
18982 test -n "$runpath_var" ||
18983 test "X$hardcode_automatic" = "Xyes" ; then
18985 # We can hardcode non-existent directories.
18986 if test "$hardcode_direct" != no
&&
18987 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18988 # have to relink, otherwise we might link with an installed library
18989 # when we should be linking with a yet-to-be-installed one
18990 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18991 test "$hardcode_minus_L" != no
; then
18992 # Linking always hardcodes the temporary library directory.
18993 hardcode_action
=relink
18995 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18996 hardcode_action
=immediate
18999 # We cannot hardcode anything, or else we can only hardcode existing
19001 hardcode_action
=unsupported
19003 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19004 echo "${ECHO_T}$hardcode_action" >&6
19006 if test "$hardcode_action" = relink ||
19007 test "$inherit_rpath" = yes; then
19008 # Fast installation is not supported
19009 enable_fast_install
=no
19010 elif test "$shlibpath_overrides_runpath" = yes ||
19011 test "$enable_shared" = no
; then
19012 # Fast installation is not necessary
19013 enable_fast_install
=needless
19021 if test "x$enable_dlopen" != xyes
; then
19022 enable_dlopen
=unknown
19023 enable_dlopen_self
=unknown
19024 enable_dlopen_self_static
=unknown
19031 lt_cv_dlopen
="load_add_on"
19033 lt_cv_dlopen_self
=yes
19037 lt_cv_dlopen
="LoadLibrary"
19042 lt_cv_dlopen
="dlopen"
19047 # if libdl is installed we need to link against it
19048 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19049 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19050 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 ac_check_lib_save_LIBS
=$LIBS
19055 cat >conftest.
$ac_ext <<_ACEOF
19058 cat confdefs.h
>>conftest.
$ac_ext
19059 cat >>conftest.
$ac_ext <<_ACEOF
19060 /* end confdefs.h. */
19062 /* Override any gcc2 internal prototype to avoid an error. */
19066 /* We use char because int might match the return type of a gcc2
19067 builtin and then its argument prototype would still apply. */
19077 rm -f conftest.
$ac_objext conftest
$ac_exeext
19078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19079 (eval $ac_link) 2>conftest.er1
19081 grep -v '^ *+' conftest.er1
>conftest.err
19083 cat conftest.err
>&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
19086 { ac_try
='test -z "$ac_c_werror_flag"
19087 || test ! -s conftest.err'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try
='test -s conftest$ac_exeext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_lib_dl_dlopen
=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.
$ac_ext >&5
19104 ac_cv_lib_dl_dlopen
=no
19106 rm -f conftest.err conftest.
$ac_objext \
19107 conftest
$ac_exeext conftest.
$ac_ext
19108 LIBS
=$ac_check_lib_save_LIBS
19110 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19112 if test $ac_cv_lib_dl_dlopen = yes; then
19113 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19116 lt_cv_dlopen
="dyld"
19118 lt_cv_dlopen_self
=yes
19125 echo "$as_me:$LINENO: checking for shl_load" >&5
19126 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19127 if test "${ac_cv_func_shl_load+set}" = set; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19130 cat >conftest.
$ac_ext <<_ACEOF
19133 cat confdefs.h
>>conftest.
$ac_ext
19134 cat >>conftest.
$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19138 #define shl_load innocuous_shl_load
19140 /* System header to define __stub macros and hopefully few prototypes,
19141 which can conflict with char shl_load (); below.
19142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19143 <limits.h> exists even on freestanding compilers. */
19146 # include <limits.h>
19148 # include <assert.h>
19153 /* Override any gcc2 internal prototype to avoid an error. */
19158 /* We use char because int might match the return type of a gcc2
19159 builtin and then its argument prototype would still apply. */
19161 /* The GNU C library defines this for functions which it implements
19162 to always fail with ENOSYS. Some functions are actually named
19163 something starting with __ and the normal name is an alias. */
19164 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19167 char (*f) () = shl_load;
19176 return f != shl_load;
19181 rm -f conftest.
$ac_objext conftest
$ac_exeext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19183 (eval $ac_link) 2>conftest.er1
19185 grep -v '^ *+' conftest.er1
>conftest.err
19187 cat conftest.err
>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try
='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try
='test -s conftest$ac_exeext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_func_shl_load
=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.
$ac_ext >&5
19208 ac_cv_func_shl_load
=no
19210 rm -f conftest.err conftest.
$ac_objext \
19211 conftest
$ac_exeext conftest.
$ac_ext
19213 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19214 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19215 if test $ac_cv_func_shl_load = yes; then
19216 lt_cv_dlopen
="shl_load"
19218 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19219 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19223 ac_check_lib_save_LIBS
=$LIBS
19225 cat >conftest.
$ac_ext <<_ACEOF
19228 cat confdefs.h
>>conftest.
$ac_ext
19229 cat >>conftest.
$ac_ext <<_ACEOF
19230 /* end confdefs.h. */
19232 /* Override any gcc2 internal prototype to avoid an error. */
19236 /* We use char because int might match the return type of a gcc2
19237 builtin and then its argument prototype would still apply. */
19247 rm -f conftest.
$ac_objext conftest
$ac_exeext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19249 (eval $ac_link) 2>conftest.er1
19251 grep -v '^ *+' conftest.er1
>conftest.err
19253 cat conftest.err
>&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try
='test -z "$ac_c_werror_flag"
19257 || test ! -s conftest.err'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try
='test -s conftest$ac_exeext'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_cv_lib_dld_shl_load
=yes
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.
$ac_ext >&5
19274 ac_cv_lib_dld_shl_load
=no
19276 rm -f conftest.err conftest.
$ac_objext \
19277 conftest
$ac_exeext conftest.
$ac_ext
19278 LIBS
=$ac_check_lib_save_LIBS
19280 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19281 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19282 if test $ac_cv_lib_dld_shl_load = yes; then
19283 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
19285 echo "$as_me:$LINENO: checking for dlopen" >&5
19286 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19287 if test "${ac_cv_func_dlopen+set}" = set; then
19288 echo $ECHO_N "(cached) $ECHO_C" >&6
19290 cat >conftest.
$ac_ext <<_ACEOF
19293 cat confdefs.h
>>conftest.
$ac_ext
19294 cat >>conftest.
$ac_ext <<_ACEOF
19295 /* end confdefs.h. */
19296 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19298 #define dlopen innocuous_dlopen
19300 /* System header to define __stub macros and hopefully few prototypes,
19301 which can conflict with char dlopen (); below.
19302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19303 <limits.h> exists even on freestanding compilers. */
19306 # include <limits.h>
19308 # include <assert.h>
19313 /* Override any gcc2 internal prototype to avoid an error. */
19318 /* We use char because int might match the return type of a gcc2
19319 builtin and then its argument prototype would still apply. */
19321 /* The GNU C library defines this for functions which it implements
19322 to always fail with ENOSYS. Some functions are actually named
19323 something starting with __ and the normal name is an alias. */
19324 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19327 char (*f) () = dlopen;
19336 return f != dlopen;
19341 rm -f conftest.
$ac_objext conftest
$ac_exeext
19342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19343 (eval $ac_link) 2>conftest.er1
19345 grep -v '^ *+' conftest.er1
>conftest.err
19347 cat conftest.err
>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } &&
19350 { ac_try
='test -z "$ac_c_werror_flag"
19351 || test ! -s conftest.err'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try
='test -s conftest$ac_exeext'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; }; then
19363 ac_cv_func_dlopen
=yes
19365 echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.
$ac_ext >&5
19368 ac_cv_func_dlopen
=no
19370 rm -f conftest.err conftest.
$ac_objext \
19371 conftest
$ac_exeext conftest.
$ac_ext
19373 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19374 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19375 if test $ac_cv_func_dlopen = yes; then
19376 lt_cv_dlopen
="dlopen"
19378 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19379 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19380 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 ac_check_lib_save_LIBS
=$LIBS
19385 cat >conftest.
$ac_ext <<_ACEOF
19388 cat confdefs.h
>>conftest.
$ac_ext
19389 cat >>conftest.
$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19392 /* Override any gcc2 internal prototype to avoid an error. */
19396 /* We use char because int might match the return type of a gcc2
19397 builtin and then its argument prototype would still apply. */
19407 rm -f conftest.
$ac_objext conftest
$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>conftest.er1
19411 grep -v '^ *+' conftest.er1
>conftest.err
19413 cat conftest.err
>&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
19416 { ac_try
='test -z "$ac_c_werror_flag"
19417 || test ! -s conftest.err'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; } &&
19423 { ac_try
='test -s conftest$ac_exeext'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 ac_cv_lib_dl_dlopen
=yes
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.
$ac_ext >&5
19434 ac_cv_lib_dl_dlopen
=no
19436 rm -f conftest.err conftest.
$ac_objext \
19437 conftest
$ac_exeext conftest.
$ac_ext
19438 LIBS
=$ac_check_lib_save_LIBS
19440 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19441 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19442 if test $ac_cv_lib_dl_dlopen = yes; then
19443 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19445 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19446 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19447 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19450 ac_check_lib_save_LIBS
=$LIBS
19451 LIBS
="-lsvld $LIBS"
19452 cat >conftest.
$ac_ext <<_ACEOF
19455 cat confdefs.h
>>conftest.
$ac_ext
19456 cat >>conftest.
$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19459 /* Override any gcc2 internal prototype to avoid an error. */
19463 /* We use char because int might match the return type of a gcc2
19464 builtin and then its argument prototype would still apply. */
19474 rm -f conftest.
$ac_objext conftest
$ac_exeext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476 (eval $ac_link) 2>conftest.er1
19478 grep -v '^ *+' conftest.er1
>conftest.err
19480 cat conftest.err
>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try
='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try
='test -s conftest$ac_exeext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 ac_cv_lib_svld_dlopen
=yes
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.
$ac_ext >&5
19501 ac_cv_lib_svld_dlopen
=no
19503 rm -f conftest.err conftest.
$ac_objext \
19504 conftest
$ac_exeext conftest.
$ac_ext
19505 LIBS
=$ac_check_lib_save_LIBS
19507 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19508 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19509 if test $ac_cv_lib_svld_dlopen = yes; then
19510 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19512 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19513 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19514 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 ac_check_lib_save_LIBS
=$LIBS
19519 cat >conftest.
$ac_ext <<_ACEOF
19522 cat confdefs.h
>>conftest.
$ac_ext
19523 cat >>conftest.
$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 /* Override any gcc2 internal prototype to avoid an error. */
19530 /* We use char because int might match the return type of a gcc2
19531 builtin and then its argument prototype would still apply. */
19541 rm -f conftest.
$ac_objext conftest
$ac_exeext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543 (eval $ac_link) 2>conftest.er1
19545 grep -v '^ *+' conftest.er1
>conftest.err
19547 cat conftest.err
>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try
='test -z "$ac_c_werror_flag"
19551 || test ! -s conftest.err'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try
='test -s conftest$ac_exeext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_lib_dld_dld_link
=yes
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.
$ac_ext >&5
19568 ac_cv_lib_dld_dld_link
=no
19570 rm -f conftest.err conftest.
$ac_objext \
19571 conftest
$ac_exeext conftest.
$ac_ext
19572 LIBS
=$ac_check_lib_save_LIBS
19574 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19575 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19576 if test $ac_cv_lib_dld_dld_link = yes; then
19577 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
19598 if test "x$lt_cv_dlopen" != xno
; then
19604 case $lt_cv_dlopen in
19606 save_CPPFLAGS
="$CPPFLAGS"
19607 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19609 save_LDFLAGS
="$LDFLAGS"
19610 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19613 LIBS
="$lt_cv_dlopen_libs $LIBS"
19615 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19616 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19617 if test "${lt_cv_dlopen_self+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 if test "$cross_compiling" = yes; then :
19621 lt_cv_dlopen_self
=cross
19623 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19624 lt_status
=$lt_dlunknown
19625 cat > conftest.
$ac_ext <<_LT_EOF
19626 #line 19617 "configure"
19627 #include "confdefs.h"
19636 # define LT_DLGLOBAL RTLD_GLOBAL
19639 # define LT_DLGLOBAL DL_GLOBAL
19641 # define LT_DLGLOBAL 0
19645 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19646 find out it does not work in some platform. */
19647 #ifndef LT_DLLAZY_OR_NOW
19649 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19652 # define LT_DLLAZY_OR_NOW DL_LAZY
19655 # define LT_DLLAZY_OR_NOW RTLD_NOW
19658 # define LT_DLLAZY_OR_NOW DL_NOW
19660 # define LT_DLLAZY_OR_NOW 0
19668 extern "C" void exit (int);
19671 void fnord() { int i=42;}
19674 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19675 int status = $lt_dlunknown;
19679 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19680 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19681 /* dlclose (self); */
19689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19690 (eval $ac_link) 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19694 (.
/conftest
; exit; ) >&5 2>/dev
/null
19696 case x
$lt_status in
19697 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19698 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19699 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19702 # compilation failed
19703 lt_cv_dlopen_self
=no
19710 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19711 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19713 if test "x$lt_cv_dlopen_self" = xyes
; then
19714 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19715 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19716 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19717 if test "${lt_cv_dlopen_self_static+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 if test "$cross_compiling" = yes; then :
19721 lt_cv_dlopen_self_static
=cross
19723 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19724 lt_status
=$lt_dlunknown
19725 cat > conftest.
$ac_ext <<_LT_EOF
19726 #line 19717 "configure"
19727 #include "confdefs.h"
19736 # define LT_DLGLOBAL RTLD_GLOBAL
19739 # define LT_DLGLOBAL DL_GLOBAL
19741 # define LT_DLGLOBAL 0
19745 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19746 find out it does not work in some platform. */
19747 #ifndef LT_DLLAZY_OR_NOW
19749 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19752 # define LT_DLLAZY_OR_NOW DL_LAZY
19755 # define LT_DLLAZY_OR_NOW RTLD_NOW
19758 # define LT_DLLAZY_OR_NOW DL_NOW
19760 # define LT_DLLAZY_OR_NOW 0
19768 extern "C" void exit (int);
19771 void fnord() { int i=42;}
19774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19775 int status = $lt_dlunknown;
19779 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19780 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19781 /* dlclose (self); */
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790 (eval $ac_link) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19794 (.
/conftest
; exit; ) >&5 2>/dev
/null
19796 case x
$lt_status in
19797 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19798 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19799 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19802 # compilation failed
19803 lt_cv_dlopen_self_static
=no
19810 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19811 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19814 CPPFLAGS
="$save_CPPFLAGS"
19815 LDFLAGS
="$save_LDFLAGS"
19820 case $lt_cv_dlopen_self in
19821 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19822 *) enable_dlopen_self
=unknown
;;
19825 case $lt_cv_dlopen_self_static in
19826 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19827 *) enable_dlopen_self_static
=unknown
;;
19849 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19850 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19851 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19852 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19853 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19854 echo "$as_me:$LINENO: result: yes" >&5
19855 echo "${ECHO_T}yes" >&6
19857 # FIXME - insert some real tests, host_os isn't really good enough
19860 if test -n "$STRIP" ; then
19861 striplib
="$STRIP -x"
19862 old_striplib
="$STRIP -S"
19863 echo "$as_me:$LINENO: result: yes" >&5
19864 echo "${ECHO_T}yes" >&6
19866 echo "$as_me:$LINENO: result: no" >&5
19867 echo "${ECHO_T}no" >&6
19871 echo "$as_me:$LINENO: result: no" >&5
19872 echo "${ECHO_T}no" >&6
19888 # Report which library types will actually be built
19889 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19890 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19891 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19892 echo "${ECHO_T}$can_build_shared" >&6
19894 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19895 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19896 test "$can_build_shared" = "no" && enable_shared
=no
19898 # On AIX, shared libraries and static libraries use the same namespace, and
19899 # are all built from PIC.
19902 test "$enable_shared" = yes && enable_static
=no
19903 if test -n "$RANLIB"; then
19904 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19905 postinstall_cmds
='$RANLIB $lib'
19910 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19911 test "$enable_shared" = yes && enable_static
=no
19915 echo "$as_me:$LINENO: result: $enable_shared" >&5
19916 echo "${ECHO_T}$enable_shared" >&6
19918 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19919 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19920 # Make sure either enable_shared or enable_static is yes.
19921 test "$enable_shared" = yes || enable_static
=yes
19922 echo "$as_me:$LINENO: result: $enable_static" >&5
19923 echo "${ECHO_T}$enable_static" >&6
19930 ac_cpp
='$CPP $CPPFLAGS'
19931 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19952 # Only expand once:
19958 # Identify the assembler which will work hand-in-glove with the newly
19959 # built GCC, so that we can examine its features. This is the assembler
19960 # which will be driven by the driver program.
19962 # If build != host, and we aren't building gas in-tree, we identify a
19963 # build->target assembler and hope that it will have the same features
19964 # as the host->target assembler we'll be using.
19965 gcc_cv_gas_major_version
=
19966 gcc_cv_gas_minor_version
=
19967 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
19969 if test "${gcc_cv_as+set}" = set; then
19973 if test -x "$DEFAULT_ASSEMBLER"; then
19974 gcc_cv_as
="$DEFAULT_ASSEMBLER"
19975 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
19976 && test -f ..
/gas
/Makefile \
19977 && test x
$build = x
$host; then
19978 gcc_cv_as
=..
/gas
/as-new
$build_exeext
19979 elif test -x as
$build_exeext; then
19980 # Build using assembler in the current directory.
19981 gcc_cv_as
=.
/as
$build_exeext
19982 elif test -x $AS_FOR_TARGET; then
19983 gcc_cv_as
="$AS_FOR_TARGET"
19985 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
19986 set dummy
$AS_FOR_TARGET; ac_word
=$2
19987 echo "$as_me:$LINENO: checking for $ac_word" >&5
19988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19989 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
19997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19998 for as_dir
in $PATH
20001 test -z "$as_dir" && as_dir
=.
20002 for ac_exec_ext
in '' $ac_executable_extensions; do
20003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20004 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20014 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20016 if test -n "$gcc_cv_as"; then
20017 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20018 echo "${ECHO_T}$gcc_cv_as" >&6
20020 echo "$as_me:$LINENO: result: no" >&5
20021 echo "${ECHO_T}no" >&6
20028 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20030 case "$ORIGINAL_AS_FOR_TARGET" in
20031 .
/as | .
/as
$build_exeext) ;;
20032 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20036 echo "$as_me:$LINENO: checking what assembler to use" >&5
20037 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20038 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20039 # Single tree build which includes gas. We want to prefer it
20040 # over whatever linker top-level may have detected, since
20041 # we'll use what we're building after installation anyway.
20042 echo "$as_me:$LINENO: result: newly built gas" >&5
20043 echo "${ECHO_T}newly built gas" >&6
20045 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20046 for f
in $gcc_cv_as_bfd_srcdir/configure \
20047 $gcc_cv_as_gas_srcdir/configure \
20048 $gcc_cv_as_gas_srcdir/configure.
in \
20049 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20050 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20051 if test x
$gcc_cv_gas_version != x
; then
20055 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20056 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20057 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20058 case $gcc_cv_gas_patch_version in
20059 "") gcc_cv_gas_patch_version
="0" ;;
20061 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20062 + $gcc_cv_gas_minor_version \) \* 1000 \
20063 + $gcc_cv_gas_patch_version`
20065 in_tree_gas_is_elf
=no
20066 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20067 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20068 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20070 in_tree_gas_is_elf
=yes
20073 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20074 echo "${ECHO_T}$gcc_cv_as" >&6
20078 # Identify the linker which will work hand-in-glove with the newly
20079 # built GCC, so that we can examine its features. This is the linker
20080 # which will be driven by the driver program.
20082 # If build != host, and we aren't building gas in-tree, we identify a
20083 # build->target linker and hope that it will have the same features
20084 # as the host->target linker we'll be using.
20085 gcc_cv_gld_major_version
=
20086 gcc_cv_gld_minor_version
=
20087 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20088 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20090 if test "${gcc_cv_ld+set}" = set; then
20094 if test -x "$DEFAULT_LINKER"; then
20095 gcc_cv_ld
="$DEFAULT_LINKER"
20096 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20097 && test -f ..
/ld
/Makefile \
20098 && test x
$build = x
$host; then
20099 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20100 elif test -x collect-ld
$build_exeext; then
20101 # Build using linker in the current directory.
20102 gcc_cv_ld
=.
/collect-ld
$build_exeext
20103 elif test -x $LD_FOR_TARGET; then
20104 gcc_cv_ld
="$LD_FOR_TARGET"
20106 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20107 set dummy
$LD_FOR_TARGET; ac_word
=$2
20108 echo "$as_me:$LINENO: checking for $ac_word" >&5
20109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20110 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20119 for as_dir
in $PATH
20122 test -z "$as_dir" && as_dir
=.
20123 for ac_exec_ext
in '' $ac_executable_extensions; do
20124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20125 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20135 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20137 if test -n "$gcc_cv_ld"; then
20138 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20139 echo "${ECHO_T}$gcc_cv_ld" >&6
20141 echo "$as_me:$LINENO: result: no" >&5
20142 echo "${ECHO_T}no" >&6
20149 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20151 case "$ORIGINAL_LD_FOR_TARGET" in
20152 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20153 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20157 echo "$as_me:$LINENO: checking what linker to use" >&5
20158 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20159 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20160 # Single tree build which includes ld. We want to prefer it
20161 # over whatever linker top-level may have detected, since
20162 # we'll use what we're building after installation anyway.
20163 echo "$as_me:$LINENO: result: newly built ld" >&5
20164 echo "${ECHO_T}newly built ld" >&6
20166 in_tree_ld_is_elf
=no
20167 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20168 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20169 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20170 in_tree_ld_is_elf
=yes
20172 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
20174 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20175 if test x
$gcc_cv_gld_version != x
; then
20179 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20180 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20182 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20183 echo "${ECHO_T}$gcc_cv_ld" >&6
20187 # Figure out what nm we will be using.
20188 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20189 if test "${gcc_cv_nm+set}" = set; then
20193 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20194 && test -f ..
/binutils
/Makefile \
20195 && test x
$build = x
$host; then
20196 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20197 elif test -x nm
$build_exeext; then
20198 gcc_cv_nm
=.
/nm
$build_exeext
20199 elif test -x $NM_FOR_TARGET; then
20200 gcc_cv_nm
="$NM_FOR_TARGET"
20202 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20203 set dummy
$NM_FOR_TARGET; ac_word
=$2
20204 echo "$as_me:$LINENO: checking for $ac_word" >&5
20205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20206 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20215 for as_dir
in $PATH
20218 test -z "$as_dir" && as_dir
=.
20219 for ac_exec_ext
in '' $ac_executable_extensions; do
20220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20221 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20231 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20233 if test -n "$gcc_cv_nm"; then
20234 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20235 echo "${ECHO_T}$gcc_cv_nm" >&6
20237 echo "$as_me:$LINENO: result: no" >&5
20238 echo "${ECHO_T}no" >&6
20245 echo "$as_me:$LINENO: checking what nm to use" >&5
20246 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20247 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20248 # Single tree build which includes binutils.
20249 echo "$as_me:$LINENO: result: newly built nm" >&5
20250 echo "${ECHO_T}newly built nm" >&6
20253 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20254 echo "${ECHO_T}$gcc_cv_nm" >&6
20258 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20260 case "$ORIGINAL_NM_FOR_TARGET" in
20261 .
/nm | .
/nm
$build_exeext) ;;
20262 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20267 # Figure out what objdump we will be using.
20268 if test "${gcc_cv_objdump+set}" = set; then
20272 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20273 && test -f ..
/binutils
/Makefile \
20274 && test x
$build = x
$host; then
20275 # Single tree build which includes binutils.
20276 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20277 elif test -x objdump
$build_exeext; then
20278 gcc_cv_objdump
=.
/objdump
$build_exeext
20279 elif test -x $OBJDUMP_FOR_TARGET; then
20280 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20282 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20283 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20284 echo "$as_me:$LINENO: checking for $ac_word" >&5
20285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20286 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 case $gcc_cv_objdump in
20291 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20295 for as_dir
in $PATH
20298 test -z "$as_dir" && as_dir
=.
20299 for ac_exec_ext
in '' $ac_executable_extensions; do
20300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20301 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20311 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20313 if test -n "$gcc_cv_objdump"; then
20314 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20315 echo "${ECHO_T}$gcc_cv_objdump" >&6
20317 echo "$as_me:$LINENO: result: no" >&5
20318 echo "${ECHO_T}no" >&6
20325 echo "$as_me:$LINENO: checking what objdump to use" >&5
20326 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20327 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20328 # Single tree build which includes binutils.
20329 echo "$as_me:$LINENO: result: newly built objdump" >&5
20330 echo "${ECHO_T}newly built objdump" >&6
20331 elif test x
$gcc_cv_objdump = x
; then
20332 echo "$as_me:$LINENO: result: not found" >&5
20333 echo "${ECHO_T}not found" >&6
20335 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20336 echo "${ECHO_T}$gcc_cv_objdump" >&6
20339 # Figure out what assembler alignment features are present.
20340 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20341 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20342 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 gcc_cv_as_balign_and_p2align
=no
20346 if test $in_tree_gas = yes; then
20347 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20348 then gcc_cv_as_balign_and_p2align
=yes
20350 elif test x
$gcc_cv_as != x
; then
20352 .p2align 2' > conftest.s
20353 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }
20360 gcc_cv_as_balign_and_p2align
=yes
20362 echo "configure: failed program was" >&5
20365 rm -f conftest.o conftest.s
20368 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20369 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20370 if test $gcc_cv_as_balign_and_p2align = yes; then
20372 cat >>confdefs.h
<<\_ACEOF
20373 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20378 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20379 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20380 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 gcc_cv_as_max_skip_p2align
=no
20384 if test $in_tree_gas = yes; then
20385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20386 then gcc_cv_as_max_skip_p2align
=yes
20388 elif test x
$gcc_cv_as != x
; then
20389 echo '.p2align 4,,7' > conftest.s
20390 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392 (eval $ac_try) 2>&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); }; }
20397 gcc_cv_as_max_skip_p2align
=yes
20399 echo "configure: failed program was" >&5
20402 rm -f conftest.o conftest.s
20405 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20406 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20407 if test $gcc_cv_as_max_skip_p2align = yes; then
20409 cat >>confdefs.h
<<\_ACEOF
20410 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20415 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20416 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20417 if test "${gcc_cv_as_literal16+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 gcc_cv_as_literal16
=no
20421 if test $in_tree_gas = yes; then
20422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20423 then gcc_cv_as_literal16
=yes
20425 elif test x
$gcc_cv_as != x
; then
20426 echo '.literal16' > conftest.s
20427 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }
20434 gcc_cv_as_literal16
=yes
20436 echo "configure: failed program was" >&5
20439 rm -f conftest.o conftest.s
20442 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20443 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20444 if test $gcc_cv_as_literal16 = yes; then
20446 cat >>confdefs.h
<<\_ACEOF
20447 #define HAVE_GAS_LITERAL16 1
20452 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20453 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20454 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 gcc_cv_as_subsection_m1
=no
20458 if test $in_tree_gas = yes; then
20459 if test $in_tree_gas_is_elf = yes \
20460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20461 then gcc_cv_as_subsection_m1
=yes
20463 elif test x
$gcc_cv_as != x
; then
20464 echo 'conftest_label1: .word 0
20466 conftest_label2: .word 0
20467 .previous' > conftest.s
20468 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }
20475 if test x
$gcc_cv_nm != x
; then
20476 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
20477 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
20478 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
20480 else gcc_cv_as_subsection_m1
=yes
20482 rm -f conftest.nm1 conftest.nm2
20485 echo "configure: failed program was" >&5
20488 rm -f conftest.o conftest.s
20491 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20492 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20493 if test $gcc_cv_as_subsection_m1 = yes; then
20495 cat >>confdefs.h
<<\_ACEOF
20496 #define HAVE_GAS_SUBSECTION_ORDERING 1
20501 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20502 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20503 if test "${gcc_cv_as_weak+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 if test $in_tree_gas = yes; then
20508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20509 then gcc_cv_as_weak
=yes
20511 elif test x
$gcc_cv_as != x
; then
20512 echo ' .weak foobar' > conftest.s
20513 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }
20522 echo "configure: failed program was" >&5
20525 rm -f conftest.o conftest.s
20528 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20529 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20530 if test $gcc_cv_as_weak = yes; then
20532 cat >>confdefs.h
<<\_ACEOF
20533 #define HAVE_GAS_WEAK 1
20538 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20539 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20540 if test "${gcc_cv_as_weakref+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 gcc_cv_as_weakref
=no
20544 if test $in_tree_gas = yes; then
20545 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20546 then gcc_cv_as_weakref
=yes
20548 elif test x
$gcc_cv_as != x
; then
20549 echo ' .weakref foobar, barfnot' > conftest.s
20550 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }
20557 gcc_cv_as_weakref
=yes
20559 echo "configure: failed program was" >&5
20562 rm -f conftest.o conftest.s
20565 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20566 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20567 if test $gcc_cv_as_weakref = yes; then
20569 cat >>confdefs.h
<<\_ACEOF
20570 #define HAVE_GAS_WEAKREF 1
20575 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20576 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20577 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 gcc_cv_as_nsubspa_comdat
=no
20581 if test $in_tree_gas = yes; then
20582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20583 then gcc_cv_as_nsubspa_comdat
=yes
20585 elif test x
$gcc_cv_as != x
; then
20586 echo ' .SPACE $TEXT$
20587 .NSUBSPA $CODE$,COMDAT' > conftest.s
20588 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }
20595 gcc_cv_as_nsubspa_comdat
=yes
20597 echo "configure: failed program was" >&5
20600 rm -f conftest.o conftest.s
20603 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20604 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20605 if test $gcc_cv_as_nsubspa_comdat = yes; then
20607 cat >>confdefs.h
<<\_ACEOF
20608 #define HAVE_GAS_NSUBSPA_COMDAT 1
20613 # .hidden needs to be supported in both the assembler and the linker,
20614 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20615 # This is irritatingly difficult to feature test for; we have to check the
20616 # date string after the version number. If we've got an in-tree
20617 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20619 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20620 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20621 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20622 if test "${gcc_cv_as_hidden+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 gcc_cv_as_hidden
=no
20626 if test $in_tree_gas = yes; then
20627 if test $in_tree_gas_is_elf = yes \
20628 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20629 then gcc_cv_as_hidden
=yes
20631 elif test x
$gcc_cv_as != x
; then
20632 echo ' .hidden foobar
20633 foobar:' > conftest.s
20634 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; }
20641 gcc_cv_as_hidden
=yes
20643 echo "configure: failed program was" >&5
20646 rm -f conftest.o conftest.s
20649 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20650 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20653 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20654 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20655 if test "${gcc_cv_ld_hidden+set}" = set; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 if test $in_tree_ld = yes ; then
20659 gcc_cv_ld_hidden
=no
20660 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 \
20661 && test $in_tree_ld_is_elf = yes; then
20662 gcc_cv_ld_hidden
=yes
20665 gcc_cv_ld_hidden
=yes
20666 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20667 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
20668 ld_vers
=`echo $ld_ver | sed -n \
20669 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20670 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'`
20671 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
20672 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20673 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20674 if test 0"$ld_date" -lt 20020404; then
20675 if test -n "$ld_date"; then
20676 # If there was date string, but was earlier than 2002-04-04, fail
20677 gcc_cv_ld_hidden
=no
20678 elif test -z "$ld_vers"; then
20679 # If there was no date string nor ld version number, something is wrong
20680 gcc_cv_ld_hidden
=no
20682 test -z "$ld_vers_patch" && ld_vers_patch
=0
20683 if test "$ld_vers_major" -lt 2; then
20684 gcc_cv_ld_hidden
=no
20685 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20686 gcc_cv_ld_hidden
="no"
20687 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20688 gcc_cv_ld_hidden
=no
20693 case "${target}" in
20694 hppa64
*-*-hpux* | ia64
*-*-hpux*)
20695 gcc_cv_ld_hidden
=yes
20698 gcc_cv_ld_hidden
=no
20704 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20705 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20706 libgcc_visibility
=no
20709 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20710 libgcc_visibility
=yes
20712 cat >>confdefs.h
<<\_ACEOF
20713 #define HAVE_GAS_HIDDEN 1
20718 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20719 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20720 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20721 if test "${gcc_cv_as_leb128+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 gcc_cv_as_leb128
=no
20725 if test $in_tree_gas = yes; then
20726 if test $in_tree_gas_is_elf = yes \
20727 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20728 then gcc_cv_as_leb128
=yes
20730 elif test x
$gcc_cv_as != x
; then
20737 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; }
20744 # GAS versions before 2.11 do not support uleb128,
20745 # despite appearing to.
20746 # ??? There exists an elf-specific test that will crash
20747 # the assembler. Perhaps it's better to figure out whether
20748 # arbitrary sections are supported and try the test.
20749 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20750 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
20751 as_vers
=`echo $as_ver | sed -n \
20752 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20753 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
20754 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20755 if test $as_major -eq 2 && test $as_minor -lt 11
20757 else gcc_cv_as_leb128
=yes
20761 echo "configure: failed program was" >&5
20764 rm -f conftest.o conftest.s
20767 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20768 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20769 if test $gcc_cv_as_leb128 = yes; then
20771 cat >>confdefs.h
<<\_ACEOF
20772 #define HAVE_AS_LEB128 1
20777 # GAS versions up to and including 2.11.0 may mis-optimize
20779 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20780 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20781 if test "${gcc_cv_as_eh_frame+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20784 gcc_cv_as_eh_frame
=no
20785 if test $in_tree_gas = yes; then
20786 if test $in_tree_gas_is_elf = yes \
20787 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20788 then gcc_cv_as_eh_frame
=yes
20790 elif test x
$gcc_cv_as != x
; then
20797 .section .eh_frame,"aw",@progbits
20799 .4byte .LECIE1-.LSCIE1
20813 .4byte .LEFDE1-.LASFDE1
20815 .4byte .LASFDE1-__FRAME_BEGIN__
20822 .LEFDE1:' > conftest.s
20823 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }
20830 cat > conftest.lit
<<EOF
20831 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20832 0010 01000000 12000000 18000000 00000000 ................
20833 0020 08000000 04080000 0044 .........D
20835 cat > conftest.big
<<EOF
20836 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20837 0010 00000001 00000012 00000018 00000000 ................
20838 0020 00000008 04000000 0844 .........D
20840 # If the assembler didn't choke, and we can objdump,
20841 # and we got the correct data, then succeed.
20842 # The text in the here-document typically retains its unix-style line
20843 # endings, while the output of objdump will use host line endings.
20844 # Therefore, use diff -b for the comparisons.
20845 if test x
$gcc_cv_objdump != x \
20846 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
20847 |
tail -3 > conftest.got \
20848 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
20849 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
20851 gcc_cv_as_eh_frame
=yes
20852 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 gcc_cv_as_eh_frame
=buggy
20860 # Uh oh, what do we do now?
20861 gcc_cv_as_eh_frame
=no
20864 echo "configure: failed program was" >&5
20867 rm -f conftest.o conftest.s
20870 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20871 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20874 if test $gcc_cv_as_eh_frame = buggy
; then
20876 cat >>confdefs.h
<<\_ACEOF
20877 #define USE_AS_TRADITIONAL_FORMAT 1
20882 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20883 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20884 if test "${gcc_cv_as_shf_merge+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 gcc_cv_as_shf_merge
=no
20888 if test $in_tree_gas = yes; then
20889 if test $in_tree_gas_is_elf = yes \
20890 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20891 then gcc_cv_as_shf_merge
=yes
20893 elif test x
$gcc_cv_as != x
; then
20894 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20895 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; }
20902 gcc_cv_as_shf_merge
=yes
20904 echo "configure: failed program was" >&5
20907 rm -f conftest.o conftest.s
20910 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20911 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20913 if test $gcc_cv_as_shf_merge = no
; then
20914 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20915 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20916 if test "${gcc_cv_as_shf_merge+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 gcc_cv_as_shf_merge
=no
20920 if test $in_tree_gas = yes; then
20921 if test $in_tree_gas_is_elf = yes \
20922 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20923 then gcc_cv_as_shf_merge
=yes
20925 elif test x
$gcc_cv_as != x
; then
20926 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20927 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; }
20934 gcc_cv_as_shf_merge
=yes
20936 echo "configure: failed program was" >&5
20939 rm -f conftest.o conftest.s
20942 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20943 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20947 cat >>confdefs.h
<<_ACEOF
20948 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
20952 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20953 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20954 if test "${gcc_cv_as_comdat_group+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 gcc_cv_as_comdat_group
=no
20958 if test $in_tree_gas = yes; then
20959 if test $in_tree_gas_is_elf = yes \
20960 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20961 then gcc_cv_as_comdat_group
=yes
20963 elif test x
$gcc_cv_as != x
; then
20964 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
20965 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }
20972 gcc_cv_as_comdat_group
=yes
20974 echo "configure: failed program was" >&5
20977 rm -f conftest.o conftest.s
20980 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
20981 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
20983 if test $gcc_cv_as_comdat_group = yes; then
20984 gcc_cv_as_comdat_group_percent
=no
20986 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20987 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20988 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 gcc_cv_as_comdat_group_percent
=no
20992 if test $in_tree_gas = yes; then
20993 if test $in_tree_gas_is_elf = yes \
20994 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20995 then gcc_cv_as_comdat_group_percent
=yes
20997 elif test x
$gcc_cv_as != x
; then
20998 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
20999 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }
21006 gcc_cv_as_comdat_group_percent
=yes
21008 echo "configure: failed program was" >&5
21011 rm -f conftest.o conftest.s
21014 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21015 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21018 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
21020 if test 0"$ld_date" -lt 20050308; then
21021 if test -n "$ld_date"; then
21022 # If there was date string, but was earlier than 2005-03-08, fail
21024 elif test "$ld_vers_major" -lt 2; then
21026 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21031 # assume linkers other than GNU ld don't support COMDAT group
21034 if test $comdat_group = no
; then
21035 gcc_cv_as_comdat_group
=no
21036 gcc_cv_as_comdat_group_percent
=no
21039 cat >>confdefs.h
<<_ACEOF
21040 #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`
21044 # Thread-local storage - the check is heavily parametrized.
21052 .section ".tdata","awT",@progbits
21055 ldq $27,__tls_get_addr($29) !literal!1
21056 lda $16,foo($29) !tlsgd!1
21057 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21058 ldq $27,__tls_get_addr($29) !literal!2
21059 lda $16,foo($29) !tlsldm!2
21060 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21061 ldq $1,foo($29) !gotdtprel
21062 ldah $2,foo($29) !dtprelhi
21063 lda $3,foo($2) !dtprello
21064 lda $4,foo($29) !dtprel
21065 ldq $1,foo($29) !gottprel
21066 ldah $2,foo($29) !tprelhi
21067 lda $3,foo($2) !tprello
21068 lda $4,foo($29) !tprel'
21071 tls_as_opt
=--fatal-warnings
21075 .section ".tdata","awT",@progbits
21078 call #gettlsoff(x)'
21087 .section ".tdata","awT",@progbits
21091 addil LT%foo-$tls_gdidx$,gp
21092 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21095 addil LT%foo-$tls_ldidx$,gp
21097 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21098 addil LR%foo-$tls_dtpoff$,%ret0
21099 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21101 addil LT%foo-$tls_ieoff$,gp
21102 ldw RT%foo-$tls_ieoff$(%r1),%t2
21105 addil LR%foo-$tls_leoff$,%t1
21106 ldo RR%foo-$tls_leoff$(%r1),%t2'
21109 tls_as_opt
=--fatal-warnings
21113 .section ".tdata","awT",%progbits
21116 .word foo(gottpoff)
21126 .section ".tdata","awT",@progbits
21130 leal foo@TLSGD(,%ebx,1), %eax
21131 leal foo@TLSLDM(%ebx), %eax
21132 leal foo@DTPOFF(%eax), %edx
21133 movl foo@GOTTPOFF(%ebx), %eax
21134 subl foo@GOTTPOFF(%ebx), %eax
21135 addl foo@GOTNTPOFF(%ebx), %eax
21136 movl foo@INDNTPOFF, %eax
21137 movl $foo@TPOFF, %eax
21138 subl $foo@TPOFF, %eax
21139 leal foo@NTPOFF(%ecx), %eax'
21142 tls_as_opt
=--fatal-warnings
21146 .section ".tdata","awT",@progbits
21150 leaq foo@TLSGD(%rip), %rdi
21151 leaq foo@TLSLD(%rip), %rdi
21152 leaq foo@DTPOFF(%rax), %rdx
21153 movq foo@GOTTPOFF(%rip), %rax
21154 movq $foo@TPOFF, %rax'
21157 tls_as_opt
=--fatal-warnings
21161 .section ".tdata","awT",@progbits
21164 addl r16 = @ltoff(@dtpmod(foo#)), gp
21165 addl r17 = @ltoff(@dtprel(foo#)), gp
21166 addl r18 = @ltoff(@tprel(foo#)), gp
21167 addl r19 = @dtprel(foo#), gp
21168 adds r21 = @dtprel(foo#), r13
21169 movl r23 = @dtprel(foo#)
21170 addl r20 = @tprel(foo#), gp
21171 adds r22 = @tprel(foo#), r13
21172 movl r24 = @tprel(foo#)'
21175 tls_as_opt
=--fatal-warnings
21179 .section .tdata,"awT",@progbits
21183 addiu $4, $28, %tlsgd(x)
21184 addiu $4, $28, %tlsldm(x)
21185 lui $4, %dtprel_hi(x)
21186 addiu $4, $4, %dtprel_lo(x)
21187 lw $4, %gottprel(x)($28)
21188 lui $4, %tprel_hi(x)
21189 addiu $4, $4, %tprel_lo(x)'
21192 tls_as_opt
='-32 --fatal-warnings'
21196 .section ".tdata","awT",@progbits
21204 addi 3,31,ld0@got@tlsgd
21206 addi 3,31,x1@got@tlsld
21209 addis 9,3,x2@dtprel@ha
21210 addi 9,9,x2@dtprel@l
21211 lwz 9,x3@got@tprel(31)
21214 addis 9,2,x2@tprel@ha
21215 addi 9,9,x2@tprel@l'
21218 tls_as_opt
="-a32 --fatal-warnings"
21222 .section ".tdata","awT",@progbits
21230 addi 3,2,ld0@got@tlsgd
21236 addi 3,2,x1@got@tlsld
21242 addis 9,3,x2@dtprel@ha
21243 addi 9,9,x2@dtprel@l
21246 ld 9,x3@got@dtprel(2)
21252 tls_as_opt
="-a64 --fatal-warnings"
21256 .section ".tdata","awT",@progbits
21263 .long foo@GOTNTPOFF
21264 .long foo@INDNTPOFF
21265 l %r1,foo@GOTNTPOFF(%r12)
21266 l %r1,0(%r1):tls_load:foo
21267 bas %r14,0(%r1,%r13):tls_gdcall:foo
21268 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21271 tls_as_opt
="-m31 --fatal-warnings"
21275 .section ".tdata","awT",@progbits
21282 .quad foo@GOTNTPOFF
21283 lg %r1,foo@GOTNTPOFF(%r12)
21284 larl %r1,foo@INDNTPOFF
21285 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21286 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21289 tls_as_opt
="-m64 -Aesame --fatal-warnings"
21291 sh-
*-* | sh
[34]-*-*)
21293 .section ".tdata","awT",@progbits
21303 tls_as_opt
=--fatal-warnings
21307 sparc
*-sun-solaris2.
[56789]*)
21308 # TLS was introduced in the Solaris 9 4/04 release but
21309 # we do not enable it by default on Solaris 9 either.
21310 if test "x$enable_tls" = xyes
; then
21316 sparc
*-sun-solaris2.
*)
21323 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
21325 .section ".tdata",#alloc,#write,#tls
21328 sethi %tgd_hi22(foo), %o0
21329 add %o0, %tgd_lo10(foo), %o1
21330 add %l7, %o1, %o0, %tgd_add(foo)
21331 call __tls_get_addr, %tgd_call(foo)
21332 sethi %tldm_hi22(foo), %l1
21333 add %l1, %tldm_lo10(foo), %l2
21334 add %l7, %l2, %o0, %tldm_add(foo)
21335 call __tls_get_addr, %tldm_call(foo)
21336 sethi %tldo_hix22(foo), %l3
21337 xor %l3, %tldo_lox10(foo), %l4
21338 add %o0, %l4, %l5, %tldo_add(foo)
21339 sethi %tie_hi22(foo), %o3
21340 add %o3, %tie_lo10(foo), %o3
21341 ld [%l7 + %o3], %o2, %tie_ld(foo)
21342 add %g7, %o2, %o4, %tie_add(foo)
21343 sethi %tle_hix22(foo), %l1
21344 xor %l1, %tle_lox10(foo), %o5
21345 ld [%g7 + %o5], %o1'
21350 .section ".tdata","awT",@progbits
21353 sethi %tgd_hi22(foo), %o0
21354 add %o0, %tgd_lo10(foo), %o1
21355 add %l7, %o1, %o0, %tgd_add(foo)
21356 call __tls_get_addr, %tgd_call(foo)
21357 sethi %tldm_hi22(foo), %l1
21358 add %l1, %tldm_lo10(foo), %l2
21359 add %l7, %l2, %o0, %tldm_add(foo)
21360 call __tls_get_addr, %tldm_call(foo)
21361 sethi %tldo_hix22(foo), %l3
21362 xor %l3, %tldo_lox10(foo), %l4
21363 add %o0, %l4, %l5, %tldo_add(foo)
21364 sethi %tie_hi22(foo), %o3
21365 add %o3, %tie_lo10(foo), %o3
21366 ld [%l7 + %o3], %o2, %tie_ld(foo)
21367 add %g7, %o2, %o4, %tie_add(foo)
21368 sethi %tle_hix22(foo), %l1
21369 xor %l1, %tle_lox10(foo), %o5
21370 ld [%g7 + %o5], %o1'
21373 tls_as_opt
="-32 --fatal-warnings"
21378 if test "x$enable_tls" = xno
; then
21379 : # TLS explicitly disabled.
21380 elif test "x$enable_tls" = xyes
; then
21381 set_have_as_tls
=yes # TLS explicitly enabled.
21382 elif test -z "$tls_first_major"; then
21383 : # If we don't have a check, assume no support.
21385 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21386 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21387 if test "${gcc_cv_as_tls+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 if test $in_tree_gas = yes; then
21392 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21393 then gcc_cv_as_tls
=yes
21395 elif test x
$gcc_cv_as != x
; then
21396 echo "$conftest_s" > conftest.s
21397 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 (eval $ac_try) 2>&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; }
21406 echo "configure: failed program was" >&5
21409 rm -f conftest.o conftest.s
21412 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21413 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21414 if test $gcc_cv_as_tls = yes; then
21415 set_have_as_tls
=yes
21418 if test $set_have_as_tls = yes ; then
21420 cat >>confdefs.h
<<\_ACEOF
21421 #define HAVE_AS_TLS 1
21426 # Target-specific assembler checks.
21428 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21429 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21430 gcc_cv_ld_static_dynamic
=no
21431 if test $in_tree_ld = yes ; then
21432 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21433 gcc_cv_ld_static_dynamic
=yes
21435 elif test x
$gcc_cv_ld != x
; then
21436 # Check if linker supports -Bstatic/-Bdynamic option
21437 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
21438 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
21439 gcc_cv_ld_static_dynamic
=yes
21442 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
21444 cat >>confdefs.h
<<\_ACEOF
21445 #define HAVE_LD_STATIC_DYNAMIC 1
21449 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21450 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21452 if test x
"$demangler_in_ld" = xyes
; then
21453 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21454 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21455 gcc_cv_ld_demangle
=no
21456 if test $in_tree_ld = yes; then
21457 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 \
21458 gcc_cv_ld_demangle
=yes
21460 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
21461 # Check if the GNU linker supports --demangle option
21462 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
21463 gcc_cv_ld_demangle
=yes
21466 if test x
"$gcc_cv_ld_demangle" = xyes
; then
21468 cat >>confdefs.h
<<\_ACEOF
21469 #define HAVE_LD_DEMANGLE 1
21473 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21474 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21478 # All TARGET_ABI_OSF targets.
21479 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
21480 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21481 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21482 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 gcc_cv_as_alpha_explicit_relocs
=no
21486 if test $in_tree_gas = yes; then
21487 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21488 then gcc_cv_as_alpha_explicit_relocs
=yes
21490 elif test x
$gcc_cv_as != x
; then
21491 echo ' .set nomacro
21493 extbl $3, $2, $3 !lituse_bytoff!1
21494 ldq $2, a($29) !literal!1
21495 ldq $4, b($29) !literal!2
21496 ldq_u $3, 0($2) !lituse_base!1
21497 ldq $27, f($29) !literal!5
21498 jsr $26, ($27), f !lituse_jsr!5
21499 ldah $29, 0($26) !gpdisp!3
21500 lda $0, c($29) !gprel
21501 ldah $1, d($29) !gprelhigh
21502 lda $1, d($1) !gprellow
21503 lda $29, 0($29) !gpdisp!3' > conftest.s
21504 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }
21511 gcc_cv_as_alpha_explicit_relocs
=yes
21513 echo "configure: failed program was" >&5
21516 rm -f conftest.o conftest.s
21519 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21520 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21521 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21523 cat >>confdefs.h
<<\_ACEOF
21524 #define HAVE_AS_EXPLICIT_RELOCS 1
21528 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21529 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21530 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 gcc_cv_as_alpha_jsrdirect_relocs
=no
21534 if test $in_tree_gas = yes; then
21535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21536 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
21538 elif test x
$gcc_cv_as != x
; then
21539 echo ' .set nomacro
21541 ldq $27, a($29) !literal!1
21542 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21543 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }
21550 gcc_cv_as_alpha_jsrdirect_relocs
=yes
21552 echo "configure: failed program was" >&5
21555 rm -f conftest.o conftest.s
21558 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21559 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21560 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21562 cat >>confdefs.h
<<\_ACEOF
21563 #define HAVE_AS_JSRDIRECT_RELOCS 1
21570 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21571 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21572 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 gcc_cv_as_cris_no_mul_bug
=no
21576 if test $in_tree_gas = yes; then
21577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21578 then gcc_cv_as_cris_no_mul_bug
=yes
21580 elif test x
$gcc_cv_as != x
; then
21581 echo '.text' > conftest.s
21582 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }
21589 gcc_cv_as_cris_no_mul_bug
=yes
21591 echo "configure: failed program was" >&5
21594 rm -f conftest.o conftest.s
21597 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21598 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21599 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21601 cat >>confdefs.h
<<\_ACEOF
21602 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21609 echo "$as_me:$LINENO: checking assembler for .register" >&5
21610 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21611 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 gcc_cv_as_sparc_register_op
=no
21615 if test x
$gcc_cv_as != x
; then
21616 echo '.register %g2, #scratch' > conftest.s
21617 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; }
21624 gcc_cv_as_sparc_register_op
=yes
21626 echo "configure: failed program was" >&5
21629 rm -f conftest.o conftest.s
21632 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21633 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21634 if test $gcc_cv_as_sparc_register_op = yes; then
21636 cat >>confdefs.h
<<\_ACEOF
21637 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21642 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21643 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21644 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 gcc_cv_as_sparc_relax
=no
21648 if test x
$gcc_cv_as != x
; then
21649 echo '.text' > conftest.s
21650 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }
21657 gcc_cv_as_sparc_relax
=yes
21659 echo "configure: failed program was" >&5
21662 rm -f conftest.o conftest.s
21665 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21666 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21667 if test $gcc_cv_as_sparc_relax = yes; then
21669 cat >>confdefs.h
<<\_ACEOF
21670 #define HAVE_AS_RELAX_OPTION 1
21675 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21676 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21677 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 gcc_cv_as_sparc_ua_pcrel
=no
21681 if test x
$gcc_cv_as != x
; then
21688 .uaword %r_disp32(foo)' > conftest.s
21689 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; }
21696 if test x
$gcc_cv_ld != x \
21697 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
21698 gcc_cv_as_sparc_ua_pcrel
=yes
21702 echo "configure: failed program was" >&5
21705 rm -f conftest.o conftest.s
21708 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21709 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21710 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21712 cat >>confdefs.h
<<\_ACEOF
21713 #define HAVE_AS_SPARC_UA_PCREL 1
21717 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21718 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21719 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21722 gcc_cv_as_sparc_ua_pcrel_hidden
=no
21723 if test x
$gcc_cv_as != x
; then
21727 .uaword %r_disp32(foo)
21728 .byte 0x32, 0x33, 0x34
21732 .skip 4' > conftest.s
21733 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; }
21740 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
21741 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
21742 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
21743 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
21744 if $gcc_cv_objdump -R conftest
2> /dev
/null \
21745 |
grep 'DISP32' > /dev
/null
2>&1; then
21748 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
21753 echo "configure: failed program was" >&5
21756 rm -f conftest.o conftest.s
21759 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21760 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21761 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21763 cat >>confdefs.h
<<\_ACEOF
21764 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21769 fi # unaligned pcrel relocs
21771 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21772 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21773 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 gcc_cv_as_sparc_offsetable_lo10
=no
21777 if test x
$gcc_cv_as != x
; then
21779 or %g1, %lo(ab) + 12, %g1
21780 or %g1, %lo(ab + 12), %g1' > conftest.s
21781 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }
21788 if test x
$gcc_cv_objdump != x \
21789 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
21790 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
21791 gcc_cv_as_sparc_offsetable_lo10
=yes
21794 echo "configure: failed program was" >&5
21797 rm -f conftest.o conftest.s
21800 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21801 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21802 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21804 cat >>confdefs.h
<<\_ACEOF
21805 #define HAVE_AS_OFFSETABLE_LO10 1
21811 i
[34567]86-*-* | x86_64-
*-*)
21813 cygwin
* | pe | mingw32
*)
21814 # Used for DWARF 2 in PE
21815 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21816 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21817 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21820 gcc_cv_as_ix86_pe_secrel32
=no
21821 if test $in_tree_gas = yes; then
21822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21823 then gcc_cv_as_ix86_pe_secrel32
=yes
21825 elif test x
$gcc_cv_as != x
; then
21829 .secrel32 foo' > conftest.s
21830 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; }
21837 if test x
$gcc_cv_ld != x \
21838 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
21839 gcc_cv_as_ix86_pe_secrel32
=yes
21843 echo "configure: failed program was" >&5
21846 rm -f conftest.o conftest.s
21849 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21850 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21851 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21853 cat >>confdefs.h
<<\_ACEOF
21854 #define HAVE_GAS_PE_SECREL32_RELOC 1
21861 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21862 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21863 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21864 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 gcc_cv_as_ix86_filds_fists
=no
21867 if test $in_tree_gas = yes; then
21868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21869 then gcc_cv_as_ix86_filds_fists
=yes
21871 elif test x
$gcc_cv_as != x
; then
21872 echo 'filds mem; fists mem' > conftest.s
21873 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; }
21880 gcc_cv_as_ix86_filds_fists
=yes
21882 echo "configure: failed program was" >&5
21885 rm -f conftest.o conftest.s
21888 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21889 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21890 if test $gcc_cv_as_ix86_filds_fists = yes; then
21892 cat >>confdefs.h
<<\_ACEOF
21893 #define HAVE_GAS_FILDS_FISTS 1
21898 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21899 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21900 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21903 gcc_cv_as_ix86_cmov_sun_syntax
=no
21904 if test x
$gcc_cv_as != x
; then
21905 echo 'cmovl.l %edx, %eax' > conftest.s
21906 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }
21913 gcc_cv_as_ix86_cmov_sun_syntax
=yes
21915 echo "configure: failed program was" >&5
21918 rm -f conftest.o conftest.s
21921 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21922 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21923 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21925 cat >>confdefs.h
<<\_ACEOF
21926 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21931 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21932 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21933 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 gcc_cv_as_ix86_ffreep
=no
21937 if test x
$gcc_cv_as != x
; then
21938 echo 'ffreep %st(1)' > conftest.s
21939 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941 (eval $ac_try) 2>&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; }
21946 gcc_cv_as_ix86_ffreep
=yes
21948 echo "configure: failed program was" >&5
21951 rm -f conftest.o conftest.s
21954 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
21955 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
21956 if test $gcc_cv_as_ix86_ffreep = yes; then
21958 cat >>confdefs.h
<<\_ACEOF
21959 #define HAVE_AS_IX86_FFREEP 1
21964 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
21965 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
21966 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
21967 echo $ECHO_N "(cached) $ECHO_C" >&6
21969 gcc_cv_as_ix86_sahf
=no
21970 if test x
$gcc_cv_as != x
; then
21971 echo 'sahf' > conftest.s
21972 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; }
21979 gcc_cv_as_ix86_sahf
=yes
21981 echo "configure: failed program was" >&5
21984 rm -f conftest.o conftest.s
21987 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
21988 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
21989 if test $gcc_cv_as_ix86_sahf = yes; then
21991 cat >>confdefs.h
<<\_ACEOF
21992 #define HAVE_AS_IX86_SAHF 1
21997 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
21998 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
21999 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 gcc_cv_as_ix86_diff_sect_delta
=no
22003 if test x
$gcc_cv_as != x
; then
22004 echo '.section .rodata
22010 .L2: nop' > conftest.s
22011 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; }
22018 gcc_cv_as_ix86_diff_sect_delta
=yes
22020 echo "configure: failed program was" >&5
22023 rm -f conftest.o conftest.s
22026 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22027 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22028 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22030 cat >>confdefs.h
<<\_ACEOF
22031 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22036 # This one is used unconditionally by i386.[ch]; it is to be defined
22037 # to 1 if the feature is present, 0 otherwise.
22038 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22039 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22040 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 gcc_cv_as_ix86_gotoff_in_data
=no
22044 if test $in_tree_gas = yes; then
22045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22046 then gcc_cv_as_ix86_gotoff_in_data
=yes
22048 elif test x
$gcc_cv_as != x
; then
22053 .long .L0@GOTOFF' > conftest.s
22054 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }
22061 gcc_cv_as_ix86_gotoff_in_data
=yes
22063 echo "configure: failed program was" >&5
22066 rm -f conftest.o conftest.s
22069 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22070 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22073 cat >>confdefs.h
<<_ACEOF
22074 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22080 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22081 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22082 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
22086 if test $in_tree_gas = yes; then
22087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22088 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22090 elif test x
$gcc_cv_as != x
; then
22092 addl r15 = @ltoffx(x#), gp
22094 ld8.mov r16 = [r15], x#' > conftest.s
22095 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; }
22102 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22104 echo "configure: failed program was" >&5
22107 rm -f conftest.o conftest.s
22110 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22111 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22112 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22114 cat >>confdefs.h
<<\_ACEOF
22115 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22124 *-*-aix*) conftest_s
=' .machine "pwr5"
22128 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22129 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22130 if test "${gcc_cv_as_machine_directive+set}" = set; then
22131 echo $ECHO_N "(cached) $ECHO_C" >&6
22133 gcc_cv_as_machine_directive
=no
22134 if test x
$gcc_cv_as != x
; then
22135 echo ' .machine ppc7400' > conftest.s
22136 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }
22143 gcc_cv_as_machine_directive
=yes
22145 echo "configure: failed program was" >&5
22148 rm -f conftest.o conftest.s
22151 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22152 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22154 if test x
$gcc_cv_as_machine_directive != xyes
; then
22155 echo "*** This target requires an assembler supporting \".machine\"" >&2
22156 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
22157 test x
$build = x
$target && exit 1
22161 *) conftest_s
=' .machine power4
22166 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22167 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22168 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22171 gcc_cv_as_powerpc_mfcrf
=no
22172 if test $in_tree_gas = yes; then
22173 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22174 then gcc_cv_as_powerpc_mfcrf
=yes
22176 elif test x
$gcc_cv_as != x
; then
22177 echo "$conftest_s" > conftest.s
22178 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; }
22185 gcc_cv_as_powerpc_mfcrf
=yes
22187 echo "configure: failed program was" >&5
22190 rm -f conftest.o conftest.s
22193 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22194 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22195 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22197 cat >>confdefs.h
<<\_ACEOF
22198 #define HAVE_AS_MFCRF 1
22204 *-*-aix*) conftest_s
=' .machine "pwr5"
22207 *) conftest_s
=' .machine power5
22212 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22213 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22214 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 gcc_cv_as_powerpc_popcntb
=no
22218 if test $in_tree_gas = yes; then
22219 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22220 then gcc_cv_as_powerpc_popcntb
=yes
22222 elif test x
$gcc_cv_as != x
; then
22223 echo "$conftest_s" > conftest.s
22224 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; }
22231 gcc_cv_as_powerpc_popcntb
=yes
22233 echo "configure: failed program was" >&5
22236 rm -f conftest.o conftest.s
22239 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22240 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22241 if test $gcc_cv_as_powerpc_popcntb = yes; then
22243 cat >>confdefs.h
<<\_ACEOF
22244 #define HAVE_AS_POPCNTB 1
22250 *-*-aix*) conftest_s
=' .machine "pwr5x"
22253 *) conftest_s
=' .machine power5
22258 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22259 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22260 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 gcc_cv_as_powerpc_fprnd
=no
22264 if test $in_tree_gas = yes; then
22265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22266 then gcc_cv_as_powerpc_fprnd
=yes
22268 elif test x
$gcc_cv_as != x
; then
22269 echo "$conftest_s" > conftest.s
22270 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; }
22277 gcc_cv_as_powerpc_fprnd
=yes
22279 echo "configure: failed program was" >&5
22282 rm -f conftest.o conftest.s
22285 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22286 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22287 if test $gcc_cv_as_powerpc_fprnd = yes; then
22289 cat >>confdefs.h
<<\_ACEOF
22290 #define HAVE_AS_FPRND 1
22296 *-*-aix*) conftest_s
=' .machine "pwr6"
22299 *) conftest_s
=' .machine power6
22304 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22305 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22306 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 gcc_cv_as_powerpc_mfpgpr
=no
22310 if test $in_tree_gas = yes; then
22311 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22312 then gcc_cv_as_powerpc_mfpgpr
=yes
22314 elif test x
$gcc_cv_as != x
; then
22315 echo "$conftest_s" > conftest.s
22316 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }
22323 gcc_cv_as_powerpc_mfpgpr
=yes
22325 echo "configure: failed program was" >&5
22328 rm -f conftest.o conftest.s
22331 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22332 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22333 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22335 cat >>confdefs.h
<<\_ACEOF
22336 #define HAVE_AS_MFPGPR 1
22342 *-*-aix*) conftest_s
=' .csect .text[PR]
22344 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22348 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22349 *) conftest_s
=' .text
22351 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22354 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22355 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22356 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 gcc_cv_as_powerpc_rel16
=no
22360 if test $in_tree_gas = yes; then
22361 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22362 then gcc_cv_as_powerpc_rel16
=yes
22364 elif test x
$gcc_cv_as != x
; then
22365 echo "$conftest_s" > conftest.s
22366 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; }
22373 gcc_cv_as_powerpc_rel16
=yes
22375 echo "configure: failed program was" >&5
22378 rm -f conftest.o conftest.s
22381 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22382 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22383 if test $gcc_cv_as_powerpc_rel16 = yes; then
22385 cat >>confdefs.h
<<\_ACEOF
22386 #define HAVE_AS_REL16 1
22392 *-*-aix*) conftest_s
=' .machine "pwr6"
22395 *) conftest_s
=' .machine power6
22400 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22401 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22402 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22405 gcc_cv_as_powerpc_cmpb
=no
22406 if test $in_tree_gas = yes; then
22407 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22408 then gcc_cv_as_powerpc_cmpb
=yes
22410 elif test x
$gcc_cv_as != x
; then
22411 echo "$conftest_s" > conftest.s
22412 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414 (eval $ac_try) 2>&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; }
22419 gcc_cv_as_powerpc_cmpb
=yes
22421 echo "configure: failed program was" >&5
22424 rm -f conftest.o conftest.s
22427 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22428 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22429 if test $gcc_cv_as_powerpc_cmpb = yes; then
22431 cat >>confdefs.h
<<\_ACEOF
22432 #define HAVE_AS_CMPB 1
22438 *-*-aix*) conftest_s
=' .machine "pwr6"
22441 *) conftest_s
=' .machine power6
22446 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22447 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22448 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22451 gcc_cv_as_powerpc_dfp
=no
22452 if test $in_tree_gas = yes; then
22453 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22454 then gcc_cv_as_powerpc_dfp
=yes
22456 elif test x
$gcc_cv_as != x
; then
22457 echo "$conftest_s" > conftest.s
22458 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }
22465 gcc_cv_as_powerpc_dfp
=yes
22467 echo "configure: failed program was" >&5
22470 rm -f conftest.o conftest.s
22473 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22474 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22475 if test $gcc_cv_as_powerpc_dfp = yes; then
22477 cat >>confdefs.h
<<\_ACEOF
22478 #define HAVE_AS_DFP 1
22483 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22484 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22485 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22488 gcc_cv_as_powerpc_gnu_attribute
=no
22489 if test $in_tree_gas = yes; then
22490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22491 then gcc_cv_as_powerpc_gnu_attribute
=yes
22493 elif test x
$gcc_cv_as != x
; then
22494 echo '.gnu_attribute 4,1' > conftest.s
22495 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }
22502 gcc_cv_as_powerpc_gnu_attribute
=yes
22504 echo "configure: failed program was" >&5
22507 rm -f conftest.o conftest.s
22510 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22511 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22512 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22514 cat >>confdefs.h
<<\_ACEOF
22515 #define HAVE_AS_GNU_ATTRIBUTE 1
22522 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22523 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22524 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 gcc_cv_as_mips_explicit_relocs
=no
22528 if test $in_tree_gas = yes; then
22529 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22530 then gcc_cv_as_mips_explicit_relocs
=yes
22532 elif test x
$gcc_cv_as != x
; then
22533 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
22534 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536 (eval $ac_try) 2>&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }
22541 gcc_cv_as_mips_explicit_relocs
=yes
22543 echo "configure: failed program was" >&5
22546 rm -f conftest.o conftest.s
22549 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22550 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22551 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22552 if test x
$target_cpu_default = x
22553 then target_cpu_default
=MASK_EXPLICIT_RELOCS
22554 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22557 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22558 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22559 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22562 gcc_cv_as_mips_no_shared
=no
22563 if test $in_tree_gas = yes; then
22564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22565 then gcc_cv_as_mips_no_shared
=yes
22567 elif test x
$gcc_cv_as != x
; then
22568 echo 'nop' > conftest.s
22569 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }
22576 gcc_cv_as_mips_no_shared
=yes
22578 echo "configure: failed program was" >&5
22581 rm -f conftest.o conftest.s
22584 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22585 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22586 if test $gcc_cv_as_mips_no_shared = yes; then
22588 cat >>confdefs.h
<<\_ACEOF
22589 #define HAVE_AS_NO_SHARED 1
22594 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22595 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22596 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22599 gcc_cv_as_mips_gnu_attribute
=no
22600 if test $in_tree_gas = yes; then
22601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22602 then gcc_cv_as_mips_gnu_attribute
=yes
22604 elif test x
$gcc_cv_as != x
; then
22605 echo '.gnu_attribute 4,1' > conftest.s
22606 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608 (eval $ac_try) 2>&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); }; }
22613 gcc_cv_as_mips_gnu_attribute
=yes
22615 echo "configure: failed program was" >&5
22618 rm -f conftest.o conftest.s
22621 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22622 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22623 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22625 cat >>confdefs.h
<<\_ACEOF
22626 #define HAVE_AS_GNU_ATTRIBUTE 1
22631 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22632 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22633 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 gcc_cv_as_mips_dtprelword
=no
22637 if test $in_tree_gas = yes; then
22638 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22639 then gcc_cv_as_mips_dtprelword
=yes
22641 elif test x
$gcc_cv_as != x
; then
22642 echo '.section .tdata,"awT",@progbits
22646 .dtprelword x+0x8000' > conftest.s
22647 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22649 (eval $ac_try) 2>&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); }; }
22654 gcc_cv_as_mips_dtprelword
=yes
22656 echo "configure: failed program was" >&5
22659 rm -f conftest.o conftest.s
22662 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22663 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22664 if test $gcc_cv_as_mips_dtprelword = yes; then
22666 cat >>confdefs.h
<<\_ACEOF
22667 #define HAVE_AS_DTPRELWORD 1
22674 # Mips and HP-UX need the GNU assembler.
22675 # Linux on IA64 might be able to use the Intel assembler.
22678 mips
*-*-* |
*-*-hpux* )
22679 if test x
$gas_flag = xyes \
22680 ||
test x
"$host" != x
"$build" \
22681 ||
test ! -x "$gcc_cv_as" \
22682 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
22685 echo "*** This configuration requires the GNU assembler" >&2
22691 # ??? Not all targets support dwarf2 debug_line, even within a version
22692 # of gas. Moreover, we need to emit a valid instruction to trigger any
22693 # info to the output file. So, as supported targets are added to gas 2.11,
22694 # add some instruction here to (also) show we expect this might work.
22695 # ??? Once 2.11 is released, probably need to add first known working
22696 # version to the per-target configury.
22698 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
22699 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
22700 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
22703 ia64
*-*-* | s390
*-*-*)
22710 if test x
"$insn" != x
; then
22712 .file 1 \"conftest.s\"
22715 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22716 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22717 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 gcc_cv_as_dwarf2_debug_line
=no
22721 if test $in_tree_gas = yes; then
22722 if test $in_tree_gas_is_elf = yes \
22723 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22724 then gcc_cv_as_dwarf2_debug_line
=yes
22726 elif test x
$gcc_cv_as != x
; then
22727 echo "$conftest_s" > conftest.s
22728 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22730 (eval $ac_try) 2>&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; }
22735 if test x
$gcc_cv_objdump != x \
22736 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
22737 |
grep debug_line
> /dev
/null
2>&1; then
22738 gcc_cv_as_dwarf2_debug_line
=yes
22741 echo "configure: failed program was" >&5
22744 rm -f conftest.o conftest.s
22747 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22748 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22751 # The .debug_line file table must be in the exact order that
22752 # we specified the files, since these indices are also used
22753 # by DW_AT_decl_file. Approximate this test by testing if
22754 # the assembler bitches if the same index is assigned twice.
22755 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22756 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22757 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22758 echo $ECHO_N "(cached) $ECHO_C" >&6
22760 gcc_cv_as_dwarf2_file_buggy
=no
22761 if test x
$gcc_cv_as != x
; then
22762 echo ' .file 1 "foo.s"
22763 .file 1 "bar.s"' > conftest.s
22764 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }
22771 gcc_cv_as_dwarf2_file_buggy
=yes
22773 echo "configure: failed program was" >&5
22776 rm -f conftest.o conftest.s
22779 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22780 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22783 if test $gcc_cv_as_dwarf2_debug_line = yes \
22784 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
22786 cat >>confdefs.h
<<\_ACEOF
22787 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22792 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22793 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22794 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22797 gcc_cv_as_gdwarf2_flag
=no
22798 if test $in_tree_gas = yes; then
22799 if test $in_tree_gas_is_elf = yes \
22800 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22801 then gcc_cv_as_gdwarf2_flag
=yes
22803 elif test x
$gcc_cv_as != x
; then
22804 echo "$insn" > conftest.s
22805 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }
22812 gcc_cv_as_gdwarf2_flag
=yes
22814 echo "configure: failed program was" >&5
22817 rm -f conftest.o conftest.s
22820 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22821 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22822 if test $gcc_cv_as_gdwarf2_flag = yes; then
22824 cat >>confdefs.h
<<\_ACEOF
22825 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22830 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22831 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22832 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22835 gcc_cv_as_gstabs_flag
=no
22836 if test $in_tree_gas = yes; then
22837 if test $in_tree_gas_is_elf = yes \
22838 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22839 then gcc_cv_as_gstabs_flag
=yes
22841 elif test x
$gcc_cv_as != x
; then
22842 echo "$insn" > conftest.s
22843 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845 (eval $ac_try) 2>&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; }
22850 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22851 # and warns about it, but still exits successfully. So check for
22853 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855 (eval $ac_try) 2>&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }
22860 else gcc_cv_as_gstabs_flag
=yes
22863 echo "configure: failed program was" >&5
22866 rm -f conftest.o conftest.s
22869 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22870 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22871 if test $gcc_cv_as_gstabs_flag = yes; then
22873 cat >>confdefs.h
<<\_ACEOF
22874 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22879 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22880 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22881 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22882 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 gcc_cv_as_debug_prefix_map_flag
=no
22885 if test $in_tree_gas = yes; then
22886 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22887 then gcc_cv_as_debug_prefix_map_flag
=yes
22889 elif test x
$gcc_cv_as != x
; then
22890 echo "$insn" > conftest.s
22891 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893 (eval $ac_try) 2>&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); }; }
22898 gcc_cv_as_debug_prefix_map_flag
=yes
22900 echo "configure: failed program was" >&5
22903 rm -f conftest.o conftest.s
22906 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22907 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22908 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22910 cat >>confdefs.h
<<\_ACEOF
22911 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22917 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22918 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22919 if test "${gcc_cv_as_line_zero+set}" = set; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22922 gcc_cv_as_line_zero
=no
22923 if test $in_tree_gas = yes; then
22924 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22925 then gcc_cv_as_line_zero
=yes
22927 elif test "x$gcc_cv_as" != x
; then
22928 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22929 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; } &&
22935 test "x`cat conftest.out`" = x
22937 gcc_cv_as_line_zero
=yes
22939 echo "configure: failed program was" >&5
22941 echo "configure: error output was" >&5
22942 cat conftest.out
>&5
22944 rm -f conftest.o conftest.s conftest.out
22947 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
22948 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
22949 if test "x$gcc_cv_as_line_zero" = xyes
; then
22951 cat >>confdefs.h
<<\_ACEOF
22952 #define HAVE_AS_LINE_ZERO 1
22957 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
22958 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
22959 gcc_cv_ld_ro_rw_mix
=unknown
22960 if test $in_tree_ld = yes ; then
22961 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 \
22962 && test $in_tree_ld_is_elf = yes; then
22963 gcc_cv_ld_ro_rw_mix
=read-write
22965 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22966 echo '.section myfoosect, "a"' > conftest1.s
22967 echo '.section myfoosect, "aw"' > conftest2.s
22968 echo '.byte 1' >> conftest2.s
22969 echo '.section myfoosect, "a"' > conftest3.s
22970 echo '.byte 0' >> conftest3.s
22971 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22972 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22973 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22974 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22975 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22976 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22977 | sed -e '/myfoosect/!d' -e N`
22978 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22979 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22980 gcc_cv_ld_ro_rw_mix
=read-only
22982 gcc_cv_ld_ro_rw_mix
=read-write
22986 rm -f conftest.
* conftest
[123].
*
22988 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22990 cat >>confdefs.h
<<\_ACEOF
22991 #define HAVE_LD_RO_RW_SECTION_MIXING 1
22995 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
22996 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
22998 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
22999 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23000 gcc_cv_ld_eh_frame_hdr
=no
23001 if test $in_tree_ld = yes ; then
23002 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 \
23003 && test $in_tree_ld_is_elf = yes; then
23004 gcc_cv_ld_eh_frame_hdr
=yes
23006 elif test x
$gcc_cv_ld != x
; then
23007 # Check if linker supports --eh-frame-hdr option
23008 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
23009 gcc_cv_ld_eh_frame_hdr
=yes
23013 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
23015 cat >>confdefs.h
<<\_ACEOF
23016 #define HAVE_LD_EH_FRAME_HDR 1
23020 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23021 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23023 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23024 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23026 if test $in_tree_ld = yes ; then
23027 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 \
23028 && test $in_tree_ld_is_elf = yes; then
23031 elif test x
$gcc_cv_ld != x
; then
23032 # Check if linker supports -pie option
23033 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
23037 if test x
"$gcc_cv_ld_pie" = xyes
; then
23039 cat >>confdefs.h
<<\_ACEOF
23040 #define HAVE_LD_PIE 1
23044 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23045 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23047 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23048 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23049 gcc_cv_ld_eh_gc_sections
=no
23050 if test $in_tree_ld = yes ; then
23051 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 \
23052 && test $in_tree_ld_is_elf = yes; then
23053 gcc_cv_ld_eh_gc_sections
=yes
23055 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23056 cat > conftest.s
<<EOF
23059 .type _start, @function
23062 .size _start, .-_start
23063 .section .text.foo,"ax",@progbits
23064 .type foo, @function
23068 .section .gcc_except_table.foo,"a",@progbits
23071 .section .eh_frame,"a",@progbits
23074 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23075 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23076 |
grep "gc-sections option ignored" > /dev
/null
; then
23077 gcc_cv_ld_eh_gc_sections
=no
23078 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23079 gcc_cv_ld_eh_gc_sections
=yes
23080 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23081 if test x
$gcc_cv_as_comdat_group != xyes
; then
23082 gcc_cv_ld_eh_gc_sections
=no
23083 cat > conftest.s
<<EOF
23086 .type _start, @function
23089 .size _start, .-_start
23090 .section .gnu.linkonce.t.foo,"ax",@progbits
23091 .type foo, @function
23095 .section .gcc_except_table.foo,"a",@progbits
23098 .section .eh_frame,"a",@progbits
23101 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23102 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23103 |
grep "gc-sections option ignored" > /dev
/null
; then
23104 gcc_cv_ld_eh_gc_sections
=no
23105 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23106 gcc_cv_ld_eh_gc_sections
=yes
23112 rm -f conftest.s conftest.o conftest
23116 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23117 gcc_cv_ld_eh_gc_sections
=no
23120 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
23122 cat >>confdefs.h
<<\_ACEOF
23123 #define HAVE_LD_EH_GC_SECTIONS 1
23127 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23128 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23134 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23135 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23136 if test "${gcc_cv_ld_as_needed+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23139 gcc_cv_ld_as_needed
=no
23140 if test $in_tree_ld = yes ; then
23141 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 \
23142 && test $in_tree_ld_is_elf = yes; then
23143 gcc_cv_ld_as_needed
=yes
23145 elif test x
$gcc_cv_ld != x
; then
23146 # Check if linker supports --as-needed and --no-as-needed options
23147 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
23148 gcc_cv_ld_as_needed
=yes
23153 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23154 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23155 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
23157 cat >>confdefs.h
<<\_ACEOF
23158 #define HAVE_LD_AS_NEEDED 1
23163 case "$target:$tm_file" in
23164 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
23165 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23166 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23167 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 gcc_cv_ld_no_dot_syms
=no
23171 if test $in_tree_ld = yes ; then
23172 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
23173 gcc_cv_ld_no_dot_syms
=yes
23175 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
23176 cat > conftest1.s
<<EOF
23180 cat > conftest2.s
<<EOF
23181 .section ".opd","aw"
23184 .type foo,@function
23186 .quad .LEfoo,.TOC.@tocbase,0
23192 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23193 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23194 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
23195 gcc_cv_ld_no_dot_syms
=yes
23197 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23201 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23202 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23203 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
23205 cat >>confdefs.h
<<\_ACEOF
23206 #define HAVE_LD_NO_DOT_SYMS 1
23213 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23214 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23215 if test "${gcc_cv_ld_sysroot+set}" = set; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 gcc_cv_ld_sysroot
=no
23219 if test $in_tree_ld = yes ; then
23220 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
23221 gcc_cv_ld_sysroot
=yes
23223 elif test x
$gcc_cv_ld != x
; then
23224 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
23225 gcc_cv_ld_sysroot
=yes
23229 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23230 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23231 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
23233 cat >>confdefs.h
<<\_ACEOF
23234 #define HAVE_LD_SYSROOT 1
23239 if test x
$with_sysroot = x
&& test x
$host = x
$target \
23240 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23241 && test "$prefix" != "NONE"; then
23243 cat >>confdefs.h
<<_ACEOF
23244 #define PREFIX_INCLUDE_DIR "$prefix/include"
23249 # Test for stack protector support in target C library.
23250 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23251 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23252 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23255 gcc_cv_libc_provides_ssp
=no
23258 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23259 if test "x$with_sysroot" = x
; then
23260 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23261 elif test "x$with_build_sysroot" != "x"; then
23262 glibc_header_dir
="${with_build_sysroot}/usr/include"
23263 elif test "x$with_sysroot" = xyes
; then
23264 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23266 glibc_header_dir
="${with_sysroot}/usr/include"
23269 glibc_header_dir
=/usr
/include
23271 # glibc 2.4 and later provides __stack_chk_fail and
23272 # either __stack_chk_guard, or TLS access to stack guard canary.
23273 if test -f $glibc_header_dir/features.h \
23274 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23275 $glibc_header_dir/features.h
> /dev
/null
; then
23276 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23277 $glibc_header_dir/features.h
> /dev
/null
; then
23278 gcc_cv_libc_provides_ssp
=yes
23279 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23280 $glibc_header_dir/features.h
> /dev
/null \
23281 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23282 $glibc_header_dir/features.h
> /dev
/null
; then
23283 gcc_cv_libc_provides_ssp
=yes
23284 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23285 $glibc_header_dir/features.h
> /dev
/null
&& \
23286 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
23287 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23288 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
23289 gcc_cv_libc_provides_ssp
=yes
23294 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23295 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23296 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23299 cat >conftest.
$ac_ext <<_ACEOF
23302 cat confdefs.h
>>conftest.
$ac_ext
23303 cat >>conftest.
$ac_ext <<_ACEOF
23304 /* end confdefs.h. */
23305 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23307 #define __stack_chk_fail innocuous___stack_chk_fail
23309 /* System header to define __stub macros and hopefully few prototypes,
23310 which can conflict with char __stack_chk_fail (); below.
23311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23312 <limits.h> exists even on freestanding compilers. */
23315 # include <limits.h>
23317 # include <assert.h>
23320 #undef __stack_chk_fail
23322 /* Override any gcc2 internal prototype to avoid an error. */
23327 /* We use char because int might match the return type of a gcc2
23328 builtin and then its argument prototype would still apply. */
23329 char __stack_chk_fail ();
23330 /* The GNU C library defines this for functions which it implements
23331 to always fail with ENOSYS. Some functions are actually named
23332 something starting with __ and the normal name is an alias. */
23333 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23336 char (*f) () = __stack_chk_fail;
23345 return f != __stack_chk_fail;
23350 rm -f conftest.
$ac_objext conftest
$ac_exeext
23351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23352 (eval $ac_link) 2>conftest.er1
23354 grep -v '^ *+' conftest.er1
>conftest.err
23356 cat conftest.err
>&5
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } &&
23359 { ac_try
='test -z "$ac_c_werror_flag"
23360 || test ! -s conftest.err'
23361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362 (eval $ac_try) 2>&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); }; } &&
23366 { ac_try
='test -s conftest$ac_exeext'
23367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368 (eval $ac_try) 2>&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_cv_func___stack_chk_fail
=yes
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.
$ac_ext >&5
23377 ac_cv_func___stack_chk_fail
=no
23379 rm -f conftest.err conftest.
$ac_objext \
23380 conftest
$ac_exeext conftest.
$ac_ext
23382 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23383 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23384 if test $ac_cv_func___stack_chk_fail = yes; then
23385 gcc_cv_libc_provides_ssp
=yes
23387 echo "no __stack_chk_fail on this target"
23391 *) gcc_cv_libc_provides_ssp
=no
;;
23394 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23395 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23397 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
23399 cat >>confdefs.h
<<\_ACEOF
23400 #define TARGET_LIBC_PROVIDES_SSP 1
23405 # Check if TFmode long double should be used by default or not.
23406 # Some glibc targets used DFmode long double, but with glibc 2.4
23407 # and later they can use TFmode.
23409 powerpc
*-*-linux* | \
23410 powerpc
*-*-gnu* | \
23411 sparc
*-*-linux* | \
23415 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23416 if test "${with_long_double_128+set}" = set; then
23417 withval
="$with_long_double_128"
23418 gcc_cv_target_ldbl128
="$with_long_double_128"
23420 gcc_cv_target_ldbl128
=no
23421 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23422 if test "x$with_sysroot" = x
; then
23423 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23424 elif test "x$with_build_sysroot" != "x"; then
23425 glibc_header_dir
="${with_build_sysroot}/usr/include"
23426 elif test "x$with_sysroot" = xyes
; then
23427 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23429 glibc_header_dir
="${with_sysroot}/usr/include"
23432 glibc_header_dir
=/usr
/include
23434 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23435 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
23436 && gcc_cv_target_ldbl128
=yes
23441 if test x
$gcc_cv_target_ldbl128 = xyes
; then
23443 cat >>confdefs.h
<<\_ACEOF
23444 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23449 # Find out what GC implementation we want, or may, use.
23451 # Check whether --with-gc or --without-gc was given.
23452 if test "${with_gc+set}" = set; then
23461 cat >>confdefs.h
<<\_ACEOF
23467 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23468 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23469 { (exit 1); exit 1; }; }
23476 echo "Using $GGC for garbage collection."
23478 # Use the system's zlib library.
23480 zlibinc
="-I\$(srcdir)/../zlib"
23482 # Check whether --with-system-zlib or --without-system-zlib was given.
23483 if test "${with_system_zlib+set}" = set; then
23484 withval
="$with_system_zlib"
23493 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23494 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23495 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23496 if test "${enable_maintainer_mode+set}" = set; then
23497 enableval
="$enable_maintainer_mode"
23498 maintainer_mode
=$enableval
23503 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23504 echo "${ECHO_T}$maintainer_mode" >&6
23506 if test "$maintainer_mode" = "yes"; then
23516 # Make empty files to contain the specs and options for each language.
23517 # Then add #include lines to for a compiler that has specs and/or options.
23523 # These (without "all_") are set in each config-lang.in.
23524 # `language' must be a single word so is spelled singularly.
23527 all_outputs
='Makefile gccbug libada-mk'
23528 # List of language makefile fragments.
23529 all_lang_makefrags
=
23530 # List of language subdirectory makefiles. Deprecated.
23531 all_lang_makefiles
=
23532 # Additional files for gengtype
23533 all_gtfiles
="$target_gtfiles"
23535 # These are the languages that are set in --enable-languages,
23536 # and are available in the GCC tree.
23537 all_selected_languages
=
23539 # Add the language fragments.
23540 # Languages are added via two mechanisms. Some information must be
23541 # recorded in makefile variables, these are defined in config-lang.in.
23542 # We accumulate them and plug them into the main Makefile.
23543 # The other mechanism is a set of hooks for each of the main targets
23544 # like `clean', `install', etc.
23546 language_hooks
="Make-hooks"
23548 for lang
in ${srcdir}/*/config-lang.
in
23550 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23552 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23553 if test "x$lang_alias" = x
23555 echo "$lang doesn't set \$language." 1>&2
23558 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23559 subdirs
="$subdirs $subdir"
23561 # $gcc_subdir is where the gcc integration files are to be found
23562 # for a language, both for internal compiler purposes (compiler
23563 # sources implementing front-end to GCC tree converters), and for
23564 # build infrastructure purposes (Make-lang.in, etc.)
23566 # This will be <subdir> (relative to $srcdir) if a line like
23567 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23568 # is found in <langdir>/config-lang.in, and will remain <langdir>
23571 # Except for the language alias (fetched above), the regular
23572 # "config-lang.in" contents are always retrieved from $gcc_subdir,
23573 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23574 # only this and the language alias.
23576 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
23577 if [ "$gcc_subdir" = "" ]; then
23578 gcc_subdir
="$subdir"
23581 case ",$enable_languages," in
23583 all_selected_languages
="$all_selected_languages $lang_alias"
23584 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
23585 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23596 .
${srcdir}/$gcc_subdir/config-lang.
in
23597 if test "x$language" = x
23599 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23604 case ",$enable_languages," in
23605 *,$lang_alias,*) ;;
23607 for i
in $subdir_requires; do
23608 test -f "${srcdir}/$i/config-lang.in" && continue
23616 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23617 if test -f $srcdir/$gcc_subdir/lang.opt
; then
23618 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23620 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
23621 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23623 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
23624 then all_lang_makefiles
="$gcc_subdir/Makefile"
23626 all_languages
="$all_languages $language"
23627 all_compilers
="$all_compilers $compilers"
23628 all_outputs
="$all_outputs $outputs"
23629 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
23632 # Pick up gtfiles for c
23634 .
${srcdir}/c-config-lang.
in
23635 all_gtfiles
="$all_gtfiles [c] $gtfiles"
23638 for language
in $all_selected_languages
23640 check_languages
="$check_languages check-$language"
23643 # We link each language in with a set of hooks, reached indirectly via
23644 # lang.${target}. Only do so for selected languages.
23648 target_list
="all.cross start.encap rest.encap tags \
23649 install-common install-man install-info install-pdf dvi pdf \
23650 html uninstall info man srcextra srcman srcinfo \
23651 mostlyclean clean distclean maintainer-clean"
23653 for t
in $target_list
23656 for lang
in $all_selected_languages
23660 echo "lang.$t: $x" >> Make-hooks
23669 echo "dir ." > .gdbinit
23670 echo "dir ${srcdir}" >> .gdbinit
23671 if test x
$gdb_needs_out_file_path = xyes
23673 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23675 if test "x$subdirs" != x
; then
23678 echo "dir ${srcdir}/$s" >> .gdbinit
23681 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23683 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23687 # Find a directory in which to install a shared libgcc.
23689 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23690 if test "${enable_version_specific_runtime_libs+set}" = set; then
23691 enableval
="$enable_version_specific_runtime_libs"
23696 # Check whether --with-slibdir or --without-slibdir was given.
23697 if test "${with_slibdir+set}" = set; then
23698 withval
="$with_slibdir"
23699 slibdir
="$with_slibdir"
23701 if test "${enable_version_specific_runtime_libs+set}" = set; then
23702 slibdir
='$(libsubdir)'
23703 elif test "$host" != "$target"; then
23704 slibdir
='$(build_tooldir)/lib'
23706 slibdir
='$(libdir)'
23712 # Check whether --with-datarootdir or --without-datarootdir was given.
23713 if test "${with_datarootdir+set}" = set; then
23714 withval
="$with_datarootdir"
23715 datarootdir
="\${prefix}/$with_datarootdir"
23717 datarootdir
='$(prefix)/share'
23722 # Check whether --with-docdir or --without-docdir was given.
23723 if test "${with_docdir+set}" = set; then
23724 withval
="$with_docdir"
23725 docdir
="\${prefix}/$with_docdir"
23727 docdir
='$(datarootdir)'
23732 # Check whether --with-htmldir or --without-htmldir was given.
23733 if test "${with_htmldir+set}" = set; then
23734 withval
="$with_htmldir"
23735 htmldir
="\${prefix}/$with_htmldir"
23737 htmldir
='$(docdir)'
23741 # Substitute configuration variables
23799 if test x
${build} = x
${host} ; then
23800 if test x
${host} = x
${target} ; then
23801 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23803 echo "Links are now set up to build a cross-compiler" 1>&2
23804 echo " from ${host} to ${target}." 1>&2
23807 if test x
${host} = x
${target} ; then
23808 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23809 echo " for ${target}." 1>&2
23811 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23812 echo " from ${host} to ${target}." 1>&2
23819 # Configure the subdirectories
23820 # AC_CONFIG_SUBDIRS($subdirs)
23822 # Create the Makefile
23823 # and configure language subdirectories
23824 ac_config_files
="$ac_config_files $all_outputs"
23827 ac_config_commands
="$ac_config_commands default"
23829 cat >confcache
<<\_ACEOF
23830 # This file is a shell script that caches the results of configure
23831 # tests run on this system so they can be shared between configure
23832 # scripts and configure runs, see configure's option --config-cache.
23833 # It is not useful on other systems. If it contains results you don't
23834 # want to keep, you may remove or edit it.
23836 # config.status only pays attention to the cache file if you give it
23837 # the --recheck option to rerun configure.
23839 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23840 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23841 # following values.
23845 # The following way of writing the cache mishandles newlines in values,
23846 # but we know of no workaround that is simple, portable, and efficient.
23847 # So, don't put newlines in cache variables' values.
23848 # Ultrix sh set writes to stderr and can't be redirected directly,
23849 # and sets the high bit in the cache file unless we assign to the vars.
23852 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23854 # `set' does not quote correctly, so add quotes (double-quote
23855 # substitution turns \\\\ into \\, and sed turns \\ into \).
23858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23861 # `set' quotes correctly as required by POSIX, so do not add quotes.
23863 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23870 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23872 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23874 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23875 if test -w $cache_file; then
23876 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23877 cat confcache
>$cache_file
23879 echo "not updating unwritable cache $cache_file"
23884 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23885 # Let make expand exec_prefix.
23886 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23888 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23889 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23890 # trailing colons and then remove the whole line if VPATH becomes empty
23891 # (actually we leave an empty line to preserve line numbers).
23892 if test "x$srcdir" = x.
; then
23893 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23894 s/:*\$(srcdir):*/:/;
23895 s/:*\${srcdir}:*/:/;
23897 s/^\([^=]*=[ ]*\):*/\1/;
23903 DEFS
=-DHAVE_CONFIG_H
23907 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23908 # 1. Remove the extension, and $U if already installed.
23909 ac_i
=`echo "$ac_i" |
23910 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23912 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23913 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23915 LIBOBJS
=$ac_libobjs
23917 LTLIBOBJS
=$ac_ltlibobjs
23921 : ${CONFIG_STATUS=./config.status}
23922 ac_clean_files_save
=$ac_clean_files
23923 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23924 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23925 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23926 cat >$CONFIG_STATUS <<_ACEOF
23928 # Generated by $as_me.
23929 # Run this file to recreate the current configuration.
23930 # Compiler output produced by configure, useful for debugging
23931 # configure, is in config.log if it exists.
23934 ac_cs_recheck=false
23936 SHELL=\${CONFIG_SHELL-$SHELL}
23939 cat >>$CONFIG_STATUS <<\_ACEOF
23940 ## --------------------- ##
23941 ## M4sh Initialization. ##
23942 ## --------------------- ##
23944 # Be Bourne compatible
23945 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23948 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23949 # is contrary to our usage. Disable this feature.
23950 alias -g '${1+"$@"}'='"$@"'
23951 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23954 DUALCASE
=1; export DUALCASE
# for MKS sh
23956 # Support unset when possible.
23957 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23964 # Work around bugs in pre-3.0 UWIN ksh.
23965 $as_unset ENV MAIL MAILPATH
23972 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23973 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23974 LC_TELEPHONE LC_TIME
23976 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23977 eval $as_var=C
; export $as_var
23983 # Required to use basename.
23984 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23990 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23991 as_basename
=basename
23997 # Name of the executable.
23998 as_me
=`$as_basename "$0" ||
23999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24000 X"$0" : 'X\(//\)$' \| \
24001 X"$0" : 'X\(/\)$' \| \
24002 . : '\(.\)' 2>/dev/null ||
24004 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24005 /^X\/\(\/\/\)$/{ s//\1/; q; }
24006 /^X\/\(\/\).*/{ s//\1/; q; }
24010 # PATH needs CR, and LINENO needs CR and PATH.
24011 # Avoid depending upon Character Ranges.
24012 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24013 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24014 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24015 as_cr_digits
='0123456789'
24016 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24018 # The user is always right.
24019 if test "${PATH_SEPARATOR+set}" != set; then
24020 echo "#! /bin/sh" >conf$$.sh
24021 echo "exit 0" >>conf$$.sh
24023 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24032 as_lineno_1
=$LINENO
24033 as_lineno_2
=$LINENO
24034 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
24035 test "x$as_lineno_1" != "x$as_lineno_2" &&
24036 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
24037 # Find who we are. Look in the path if we contain no path at all
24040 *[\\/]* ) as_myself
=$0 ;;
24041 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24042 for as_dir
in $PATH
24045 test -z "$as_dir" && as_dir
=.
24046 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24051 # We did not find ourselves, most probably we were run as `sh COMMAND'
24052 # in which case we are not to be found in the path.
24053 if test "x$as_myself" = x
; then
24056 if test ! -f "$as_myself"; then
24057 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24058 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24059 { (exit 1); exit 1; }; }
24061 case $CONFIG_SHELL in
24063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24064 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
24067 test -z "$as_dir" && as_dir
=.
24068 for as_base
in sh bash ksh sh5
; do
24071 if ("$as_dir/$as_base" -c '
24072 as_lineno_1=$LINENO
24073 as_lineno_2=$LINENO
24074 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24075 test "x$as_lineno_1" != "x$as_lineno_2" &&
24076 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
24077 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
24078 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
24079 CONFIG_SHELL
=$as_dir/$as_base
24080 export CONFIG_SHELL
24081 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24089 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24090 # uniformly replaced by the line number. The first 'sed' inserts a
24091 # line-number line before each line; the second 'sed' does the real
24092 # work. The second script uses 'N' to pair each line-number line
24093 # with the numbered line, and appends trailing '-' during
24094 # substitution so that $LINENO is not a special case at line end.
24095 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24096 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24097 sed '=' <$as_myself |
24102 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24105 s,^['$as_cr_digits']*\n,,
24106 ' >$as_me.lineno
&&
24107 chmod +x
$as_me.lineno ||
24108 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24109 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24110 { (exit 1); exit 1; }; }
24112 # Don't try to exec as it changes $[0], causing all sort of problems
24113 # (the dirname of $[0] is not the place where we might find the
24114 # original and so on. Autoconf is especially sensible to this).
24116 # Exit status is that of the last command.
24121 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24122 *c
*,-n*) ECHO_N
= ECHO_C
='
24124 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
24125 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
24128 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24134 rm -f conf$$ conf$$.exe conf$$.
file
24136 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24137 # We could just check for DJGPP; but this test a) works b) is more generic
24138 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24139 if test -f conf$$.exe
; then
24140 # Don't use ln at all; we don't have any links
24145 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24150 rm -f conf$$ conf$$.exe conf$$.
file
24152 if mkdir
-p .
2>/dev
/null
; then
24155 test -d .
/-p && rmdir .
/-p
24159 as_executable_p
="test -f"
24161 # Sed expression to map a string onto a valid CPP name.
24162 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24164 # Sed expression to map a string onto a valid variable name.
24165 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24169 # We need space, tab and new line, in precisely that order.
24179 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24180 # report actual input values of CONFIG_FILES etc. instead of their
24181 # values after options handling. Logging --version etc. is OK.
24185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24186 ## Running $as_me. ##
24191 This file was extended by $as_me, which was
24192 generated by GNU Autoconf 2.59. Invocation command line was
24194 CONFIG_FILES = $CONFIG_FILES
24195 CONFIG_HEADERS = $CONFIG_HEADERS
24196 CONFIG_LINKS = $CONFIG_LINKS
24197 CONFIG_COMMANDS = $CONFIG_COMMANDS
24201 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24205 # Files that config.status was made for.
24206 if test -n "$ac_config_files"; then
24207 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24210 if test -n "$ac_config_headers"; then
24211 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24214 if test -n "$ac_config_links"; then
24215 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24218 if test -n "$ac_config_commands"; then
24219 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24222 cat >>$CONFIG_STATUS <<\_ACEOF
24225 \`$as_me' instantiates files from templates according to the
24226 current configuration.
24228 Usage: $0 [OPTIONS] [FILE]...
24230 -h, --help print this help, then exit
24231 -V, --version print version number, then exit
24232 -q, --quiet do not print progress messages
24233 -d, --debug don't remove temporary files
24234 --recheck update $as_me by reconfiguring in the same conditions
24235 --file=FILE[:TEMPLATE]
24236 instantiate the configuration file FILE
24237 --header=FILE[:TEMPLATE]
24238 instantiate the configuration header FILE
24240 Configuration files:
24243 Configuration headers:
24246 Configuration commands:
24249 Report bugs to <bug-autoconf@gnu.org>."
24252 cat >>$CONFIG_STATUS <<_ACEOF
24255 configured by $0, generated by GNU Autoconf 2.59,
24256 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24258 Copyright (C) 2003 Free Software Foundation, Inc.
24259 This config.status script is free software; the Free Software Foundation
24260 gives unlimited permission to copy, distribute and modify it."
24264 cat >>$CONFIG_STATUS <<\_ACEOF
24265 # If no file are specified by the user, then we need to provide default
24266 # value. By we need to know if files were specified by the user.
24272 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
24273 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
24281 *) # This is not an option, so the user has probably given explicit
24284 ac_need_defaults
=false
;;
24288 # Handling of the options.
24290 cat >>$CONFIG_STATUS <<\_ACEOF
24291 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24293 --version |
--vers* |
-V )
24294 echo "$ac_cs_version"; exit 0 ;;
24296 # Conflict between --help and --header
24297 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24298 Try \`$0 --help' for more information." >&5
24299 echo "$as_me: error: ambiguous option: $1
24300 Try \`$0 --help' for more information." >&2;}
24301 { (exit 1); exit 1; }; };;
24302 --help |
--hel |
-h )
24303 echo "$ac_cs_usage"; exit 0 ;;
24304 --debug |
--d* |
-d )
24306 --file |
--fil |
--fi |
--f )
24308 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24309 ac_need_defaults
=false
;;
24310 --header |
--heade |
--head |
--hea )
24312 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24313 ac_need_defaults
=false
;;
24314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24315 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24318 # This is an error.
24319 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24320 Try \`$0 --help' for more information." >&5
24321 echo "$as_me: error: unrecognized option: $1
24322 Try \`$0 --help' for more information." >&2;}
24323 { (exit 1); exit 1; }; } ;;
24325 *) ac_config_targets
="$ac_config_targets $1" ;;
24331 ac_configure_extra_args
=
24333 if $ac_cs_silent; then
24335 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24339 cat >>$CONFIG_STATUS <<_ACEOF
24340 if \$ac_cs_recheck; then
24341 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24342 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24347 cat >>$CONFIG_STATUS <<_ACEOF
24349 # INIT-COMMANDS section.
24358 cat >>$CONFIG_STATUS <<\_ACEOF
24359 for ac_config_target
in $ac_config_targets
24361 case "$ac_config_target" in
24362 # Handling of arguments.
24363 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
24364 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24365 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
24366 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
24367 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24368 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
24369 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24370 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24371 { (exit 1); exit 1; }; };;
24375 # If the user did not use the arguments to specify the items to instantiate,
24376 # then the envvar interface is used. Set only those that are not.
24377 # We use the long form for the default assignment because of an extremely
24378 # bizarre bug on SunOS 4.1.3.
24379 if $ac_need_defaults; then
24380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24381 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24382 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24385 # Have a temporary directory for convenience. Make it in the build tree
24386 # simply because there is no reason to put it here, and in addition,
24387 # creating and moving files from /tmp can sometimes cause problems.
24388 # Create a temporary directory, and hook for its removal unless debugging.
24391 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24392 trap '{ (exit 1); exit 1; }' 1 2 13 15
24395 # Create a (secure) tmp directory for tmp files.
24398 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24399 test -n "$tmp" && test -d "$tmp"
24402 tmp
=.
/confstat$$
-$RANDOM
24403 (umask 077 && mkdir
$tmp)
24406 echo "$me: cannot create a temporary directory in ." >&2
24407 { (exit 1); exit 1; }
24412 cat >>$CONFIG_STATUS <<_ACEOF
24415 # CONFIG_FILES section.
24418 # No need to generate the scripts if there are no CONFIG_FILES.
24419 # This happens for instance when ./config.status config.h
24420 if test -n "\$CONFIG_FILES"; then
24421 # Protect against being on the right side of a sed subst in config.status.
24422 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24423 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24424 s,@SHELL@,$SHELL,;t t
24425 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24426 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24427 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24428 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24429 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24430 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24431 s,@exec_prefix@,$exec_prefix,;t t
24432 s,@prefix@,$prefix,;t t
24433 s,@program_transform_name@,$program_transform_name,;t t
24434 s,@bindir@,$bindir,;t t
24435 s,@sbindir@,$sbindir,;t t
24436 s,@libexecdir@,$libexecdir,;t t
24437 s,@datadir@,$datadir,;t t
24438 s,@sysconfdir@,$sysconfdir,;t t
24439 s,@sharedstatedir@,$sharedstatedir,;t t
24440 s,@localstatedir@,$localstatedir,;t t
24441 s,@libdir@,$libdir,;t t
24442 s,@includedir@,$includedir,;t t
24443 s,@oldincludedir@,$oldincludedir,;t t
24444 s,@infodir@,$infodir,;t t
24445 s,@mandir@,$mandir,;t t
24446 s,@build_alias@,$build_alias,;t t
24447 s,@host_alias@,$host_alias,;t t
24448 s,@target_alias@,$target_alias,;t t
24449 s,@DEFS@,$DEFS,;t t
24450 s,@ECHO_C@,$ECHO_C,;t t
24451 s,@ECHO_N@,$ECHO_N,;t t
24452 s,@ECHO_T@,$ECHO_T,;t t
24453 s,@LIBS@,$LIBS,;t t
24454 s,@build@,$build,;t t
24455 s,@build_cpu@,$build_cpu,;t t
24456 s,@build_vendor@,$build_vendor,;t t
24457 s,@build_os@,$build_os,;t t
24458 s,@host@,$host,;t t
24459 s,@host_cpu@,$host_cpu,;t t
24460 s,@host_vendor@,$host_vendor,;t t
24461 s,@host_os@,$host_os,;t t
24462 s,@target@,$target,;t t
24463 s,@target_cpu@,$target_cpu,;t t
24464 s,@target_vendor@,$target_vendor,;t t
24465 s,@target_os@,$target_os,;t t
24466 s,@target_noncanonical@,$target_noncanonical,;t t
24467 s,@build_libsubdir@,$build_libsubdir,;t t
24468 s,@build_subdir@,$build_subdir,;t t
24469 s,@host_subdir@,$host_subdir,;t t
24470 s,@target_subdir@,$target_subdir,;t t
24471 s,@GENINSRC@,$GENINSRC,;t t
24473 s,@CFLAGS@,$CFLAGS,;t t
24474 s,@LDFLAGS@,$LDFLAGS,;t t
24475 s,@CPPFLAGS@,$CPPFLAGS,;t t
24476 s,@ac_ct_CC@,$ac_ct_CC,;t t
24477 s,@EXEEXT@,$EXEEXT,;t t
24478 s,@OBJEXT@,$OBJEXT,;t t
24479 s,@GNATBIND@,$GNATBIND,;t t
24480 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24481 s,@GNATMAKE@,$GNATMAKE,;t t
24482 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24483 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24484 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24486 s,@EGREP@,$EGREP,;t t
24487 s,@loose_warn@,$loose_warn,;t t
24488 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
24489 s,@strict_warn@,$strict_warn,;t t
24490 s,@warn_cflags@,$warn_cflags,;t t
24491 s,@nocommon_flag@,$nocommon_flag,;t t
24492 s,@TREEBROWSER@,$TREEBROWSER,;t t
24493 s,@valgrind_path@,$valgrind_path,;t t
24494 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24495 s,@valgrind_command@,$valgrind_command,;t t
24496 s,@coverage_flags@,$coverage_flags,;t t
24497 s,@enable_multilib@,$enable_multilib,;t t
24498 s,@enable_decimal_float@,$enable_decimal_float,;t t
24499 s,@enable_fixed_point@,$enable_fixed_point,;t t
24500 s,@enable_shared@,$enable_shared,;t t
24501 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24502 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24503 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24504 s,@onestep@,$onestep,;t t
24505 s,@PKGVERSION@,$PKGVERSION,;t t
24506 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24507 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24508 s,@datarootdir@,$datarootdir,;t t
24509 s,@docdir@,$docdir,;t t
24510 s,@htmldir@,$htmldir,;t t
24511 s,@SET_MAKE@,$SET_MAKE,;t t
24513 s,@LN_S@,$LN_S,;t t
24515 s,@RANLIB@,$RANLIB,;t t
24516 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24517 s,@ranlib_flags@,$ranlib_flags,;t t
24518 s,@INSTALL@,$INSTALL,;t t
24519 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24520 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24521 s,@make_compare_target@,$make_compare_target,;t t
24522 s,@have_mktemp_command@,$have_mktemp_command,;t t
24523 s,@MAKEINFO@,$MAKEINFO,;t t
24524 s,@BUILD_INFO@,$BUILD_INFO,;t t
24525 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24526 s,@FLEX@,$FLEX,;t t
24527 s,@BISON@,$BISON,;t t
24530 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24531 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24532 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24533 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24534 s,@LIBICONV@,$LIBICONV,;t t
24535 s,@LTLIBICONV@,$LTLIBICONV,;t t
24536 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24537 s,@manext@,$manext,;t t
24538 s,@objext@,$objext,;t t
24539 s,@gthread_flags@,$gthread_flags,;t t
24540 s,@extra_modes_file@,$extra_modes_file,;t t
24541 s,@extra_opt_files@,$extra_opt_files,;t t
24542 s,@USE_NLS@,$USE_NLS,;t t
24543 s,@LIBINTL@,$LIBINTL,;t t
24544 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24545 s,@INCINTL@,$INCINTL,;t t
24546 s,@XGETTEXT@,$XGETTEXT,;t t
24547 s,@GMSGFMT@,$GMSGFMT,;t t
24548 s,@POSUB@,$POSUB,;t t
24549 s,@CATALOGS@,$CATALOGS,;t t
24550 s,@DATADIRNAME@,$DATADIRNAME,;t t
24551 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24552 s,@GENCAT@,$GENCAT,;t t
24553 s,@CATOBJEXT@,$CATOBJEXT,;t t
24554 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24555 s,@CROSS@,$CROSS,;t t
24557 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24558 s,@inhibit_libc@,$inhibit_libc,;t t
24559 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24560 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24561 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24562 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24563 s,@collect2@,$collect2,;t t
24564 s,@LIBTOOL@,$LIBTOOL,;t t
24566 s,@FGREP@,$FGREP,;t t
24567 s,@GREP@,$GREP,;t t
24569 s,@DUMPBIN@,$DUMPBIN,;t t
24570 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24571 s,@ac_ct_AR@,$ac_ct_AR,;t t
24572 s,@STRIP@,$STRIP,;t t
24573 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24574 s,@lt_ECHO@,$lt_ECHO,;t t
24575 s,@objdir@,$objdir,;t t
24576 s,@enable_fast_install@,$enable_fast_install,;t t
24577 s,@gcc_cv_as@,$gcc_cv_as,;t t
24578 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24579 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24580 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24581 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24582 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24583 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24584 s,@libgcc_visibility@,$libgcc_visibility,;t t
24586 s,@zlibdir@,$zlibdir,;t t
24587 s,@zlibinc@,$zlibinc,;t t
24588 s,@MAINT@,$MAINT,;t t
24589 s,@gcc_tooldir@,$gcc_tooldir,;t t
24590 s,@dollar@,$dollar,;t t
24591 s,@slibdir@,$slibdir,;t t
24592 s,@subdirs@,$subdirs,;t t
24593 s,@srcdir@,$srcdir,;t t
24594 s,@all_compilers@,$all_compilers,;t t
24595 s,@all_gtfiles@,$all_gtfiles,;t t
24596 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24597 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24598 s,@all_languages@,$all_languages,;t t
24599 s,@all_selected_languages@,$all_selected_languages,;t t
24600 s,@build_exeext@,$build_exeext,;t t
24601 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24602 s,@build_xm_file_list@,$build_xm_file_list,;t t
24603 s,@build_xm_include_list@,$build_xm_include_list,;t t
24604 s,@build_xm_defines@,$build_xm_defines,;t t
24605 s,@build_file_translate@,$build_file_translate,;t t
24606 s,@check_languages@,$check_languages,;t t
24607 s,@cpp_install_dir@,$cpp_install_dir,;t t
24608 s,@xmake_file@,$xmake_file,;t t
24609 s,@tmake_file@,$tmake_file,;t t
24610 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24611 s,@extra_headers_list@,$extra_headers_list,;t t
24612 s,@extra_objs@,$extra_objs,;t t
24613 s,@extra_parts@,$extra_parts,;t t
24614 s,@extra_passes@,$extra_passes,;t t
24615 s,@extra_programs@,$extra_programs,;t t
24616 s,@float_h_file@,$float_h_file,;t t
24617 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24618 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24619 s,@host_exeext@,$host_exeext,;t t
24620 s,@host_xm_file_list@,$host_xm_file_list,;t t
24621 s,@host_xm_include_list@,$host_xm_include_list,;t t
24622 s,@host_xm_defines@,$host_xm_defines,;t t
24623 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24624 s,@install@,$install,;t t
24625 s,@lang_opt_files@,$lang_opt_files,;t t
24626 s,@lang_specs_files@,$lang_specs_files,;t t
24627 s,@lang_tree_files@,$lang_tree_files,;t t
24628 s,@local_prefix@,$local_prefix,;t t
24629 s,@md_file@,$md_file,;t t
24630 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24631 s,@out_file@,$out_file,;t t
24632 s,@out_object_file@,$out_object_file,;t t
24633 s,@thread_file@,$thread_file,;t t
24634 s,@tm_file_list@,$tm_file_list,;t t
24635 s,@tm_include_list@,$tm_include_list,;t t
24636 s,@tm_defines@,$tm_defines,;t t
24637 s,@tm_p_file_list@,$tm_p_file_list,;t t
24638 s,@tm_p_include_list@,$tm_p_include_list,;t t
24639 s,@xm_file_list@,$xm_file_list,;t t
24640 s,@xm_include_list@,$xm_include_list,;t t
24641 s,@xm_defines@,$xm_defines,;t t
24642 s,@c_target_objs@,$c_target_objs,;t t
24643 s,@cxx_target_objs@,$cxx_target_objs,;t t
24644 s,@target_cpu_default@,$target_cpu_default,;t t
24645 s,@GMPLIBS@,$GMPLIBS,;t t
24646 s,@GMPINC@,$GMPINC,;t t
24647 s,@LIBOBJS@,$LIBOBJS,;t t
24648 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24649 /@language_hooks@/r $language_hooks
24650 s,@language_hooks@,,;t t
24655 cat >>$CONFIG_STATUS <<\_ACEOF
24656 # Split the substitutions into bite-sized pieces for seds with
24657 # small command number limits, like on Digital OSF/1 and HP-UX.
24658 ac_max_sed_lines
=48
24659 ac_sed_frag
=1 # Number of current file.
24660 ac_beg
=1 # First line for current file.
24661 ac_end
=$ac_max_sed_lines # Line after last line for current file.
24664 while $ac_more_lines; do
24665 if test $ac_beg -gt 1; then
24666 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24668 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24670 if test ! -s $tmp/subs.frag
; then
24671 ac_more_lines
=false
24673 # The purpose of the label and of the branching condition is to
24674 # speed up the sed processing (if there are no `@' at all, there
24675 # is no need to browse any of the substitutions).
24676 # These are the two extra sed commands mentioned above.
24678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
24679 if test -z "$ac_sed_cmds"; then
24680 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
24682 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24684 ac_sed_frag
=`expr $ac_sed_frag + 1`
24686 ac_end
=`expr $ac_end + $ac_max_sed_lines`
24689 if test -z "$ac_sed_cmds"; then
24692 fi # test -n "$CONFIG_FILES"
24695 cat >>$CONFIG_STATUS <<\_ACEOF
24696 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
24697 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24699 - |
*:- |
*:-:* ) # input from stdin
24701 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24702 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24703 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24704 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24705 * ) ac_file_in
=$ac_file.
in ;;
24708 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24709 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24711 X"$ac_file" : 'X\(//\)[^/]' \| \
24712 X"$ac_file" : 'X\(//\)$' \| \
24713 X"$ac_file" : 'X\(/\)' \| \
24714 . : '\(.\)' 2>/dev/null ||
24716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24718 /^X\(\/\/\)$/{ s//\1/; q; }
24719 /^X\(\/\).*/{ s//\1/; q; }
24721 { if $as_mkdir_p; then
24726 while test ! -d "$as_dir"; do
24727 as_dirs
="$as_dir $as_dirs"
24728 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24730 X"$as_dir" : 'X\(//\)[^/]' \| \
24731 X"$as_dir" : 'X\(//\)$' \| \
24732 X"$as_dir" : 'X\(/\)' \| \
24733 . : '\(.\)' 2>/dev/null ||
24735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24737 /^X\(\/\/\)$/{ s//\1/; q; }
24738 /^X\(\/\).*/{ s//\1/; q; }
24741 test ! -n "$as_dirs" || mkdir
$as_dirs
24742 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24743 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24744 { (exit 1); exit 1; }; }; }
24748 if test "$ac_dir" != .
; then
24749 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24750 # A "../" for each directory in $ac_dir_suffix.
24751 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24753 ac_dir_suffix
= ac_top_builddir
=
24757 .
) # No --srcdir option. We are building in place.
24759 if test -z "$ac_top_builddir"; then
24762 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24764 [\\/]* | ?
:[\\/]* ) # Absolute path.
24765 ac_srcdir
=$srcdir$ac_dir_suffix;
24766 ac_top_srcdir
=$srcdir ;;
24767 *) # Relative path.
24768 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24769 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24772 # Do not use `cd foo && pwd` to compute absolute paths, because
24773 # the directories may not exist.
24775 .
) ac_abs_builddir
="$ac_dir";;
24778 .
) ac_abs_builddir
=`pwd`;;
24779 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24780 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24783 case $ac_abs_builddir in
24784 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24786 case ${ac_top_builddir}.
in
24787 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24788 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24789 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24792 case $ac_abs_builddir in
24793 .
) ac_abs_srcdir
=$ac_srcdir;;
24796 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24797 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24798 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24801 case $ac_abs_builddir in
24802 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24804 case $ac_top_srcdir in
24805 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24806 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24807 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24813 if test x
"$ac_file" != x-
; then
24814 { echo "$as_me:$LINENO: creating $ac_file" >&5
24815 echo "$as_me: creating $ac_file" >&6;}
24818 # Let's still pretend it is `configure' which instantiates (i.e., don't
24819 # use $as_me), people would be surprised to read:
24820 # /* config.h. Generated by config.status. */
24821 if test x
"$ac_file" = x-
; then
24824 configure_input
="$ac_file. "
24826 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24827 sed 's,.*/,,'` by configure."
24829 # First look for the input files in the build tree, otherwise in the
24831 ac_file_inputs
=`IFS=:
24832 for f in $ac_file_in; do
24834 -) echo $tmp/stdin ;;
24836 # Absolute (can't be DOS-style, as IFS=:)
24837 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24838 echo "$as_me: error: cannot find input file: $f" >&2;}
24839 { (exit 1); exit 1; }; }
24842 if test -f "$f"; then
24845 elif test -f "$srcdir/$f"; then
24850 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24851 echo "$as_me: error: cannot find input file: $f" >&2;}
24852 { (exit 1); exit 1; }; }
24855 done` ||
{ (exit 1); exit 1; }
24857 cat >>$CONFIG_STATUS <<_ACEOF
24861 cat >>$CONFIG_STATUS <<\_ACEOF
24863 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24864 s
,@configure_input@
,$configure_input,;t t
24865 s
,@srcdir@
,$ac_srcdir,;t t
24866 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24867 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24868 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24869 s
,@builddir@
,$ac_builddir,;t t
24870 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24871 s
,@top_builddir@
,$ac_top_builddir,;t t
24872 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24873 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24875 if test x"$ac_file" != x-; then
24876 mv $tmp/out $ac_file
24882 # Run the commands associated with the file.
24884 as ) chmod +x as ;;
24885 collect-ld ) chmod +x collect-ld ;;
24886 nm ) chmod +x nm ;;
24890 cat >>$CONFIG_STATUS <<\_ACEOF
24893 # CONFIG_HEADER section.
24896 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24897 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24899 # ac_d sets the value in "#define NAME VALUE" lines.
24900 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24901 ac_dB
='[ ].*$,\1#\2'
24904 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24905 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24906 ac_uB
='$,\1#\2define\3'
24910 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24913 - |
*:- |
*:-:* ) # input from stdin
24915 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24916 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24917 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24918 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24919 * ) ac_file_in
=$ac_file.
in ;;
24922 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24923 echo "$as_me: creating $ac_file" >&6;}
24925 # First look for the input files in the build tree, otherwise in the
24927 ac_file_inputs
=`IFS=:
24928 for f in $ac_file_in; do
24930 -) echo $tmp/stdin ;;
24932 # Absolute (can't be DOS-style, as IFS=:)
24933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24934 echo "$as_me: error: cannot find input file: $f" >&2;}
24935 { (exit 1); exit 1; }; }
24936 # Do quote $f, to prevent DOS paths from being IFS'd.
24939 if test -f "$f"; then
24942 elif test -f "$srcdir/$f"; then
24947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24948 echo "$as_me: error: cannot find input file: $f" >&2;}
24949 { (exit 1); exit 1; }; }
24952 done` ||
{ (exit 1); exit 1; }
24953 # Remove the trailing spaces.
24954 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24958 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24959 # `conftest.undefs', that substitutes the proper values into
24960 # config.h.in to produce config.h. The first handles `#define'
24961 # templates, and the second `#undef' templates.
24962 # And first: Protect against being on the right side of a sed subst in
24963 # config.status. Protect against being in an unquoted here document
24964 # in config.status.
24965 rm -f conftest.defines conftest.undefs
24966 # Using a here document instead of a string reduces the quoting nightmare.
24967 # Putting comments in sed scripts is not portable.
24969 # `end' is used to avoid that the second main sed command (meant for
24970 # 0-ary CPP macros) applies to n-ary macro definitions.
24971 # See the Autoconf documentation for `clear'.
24972 cat >confdef2sed.
sed <<\_ACEOF
24977 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24979 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24982 # If some macros were called several times there might be several times
24983 # the same #defines, which is useless. Nevertheless, we may not want to
24984 # sort them, since we want the *last* AC-DEFINE to be honored.
24985 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24986 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24987 rm -f confdef2sed.sed
24989 # This sed command replaces #undef with comments. This is necessary, for
24990 # example, in the case of _POSIX_SOURCE, which is predefined and required
24991 # on some systems where configure will not decide to define it.
24992 cat >>conftest.undefs <<\_ACEOF
24993 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24996 # Break up conftest.defines because some shells have a limit on the size
24997 # of here documents, and old seds have small limits too (100 cmds).
24998 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24999 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25000 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25001 echo ' :' >>$CONFIG_STATUS
25002 rm -f conftest.tail
25003 while grep . conftest.defines >/dev/null
25005 # Write a limited-size here document to $tmp/defines.sed.
25006 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25007 # Speed up: don't consider the non `#define' lines.
25008 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25009 # Work around the forget-to-reset-the-flag bug.
25010 echo 't clr' >>$CONFIG_STATUS
25011 echo ': clr' >>$CONFIG_STATUS
25012 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
25014 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25016 mv $tmp/out $tmp/in
25018 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
25019 rm -f conftest.defines
25020 mv conftest.
tail conftest.defines
25022 rm -f conftest.defines
25023 echo ' fi # grep' >>$CONFIG_STATUS
25024 echo >>$CONFIG_STATUS
25026 # Break up conftest.undefs because some shells have a limit on the size
25027 # of here documents, and old seds have small limits too (100 cmds).
25028 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25029 rm -f conftest.
tail
25030 while grep . conftest.undefs
>/dev
/null
25032 # Write a limited-size here document to $tmp/undefs.sed.
25033 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25034 # Speed up: don't consider the non
`#undef'
25035 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25036 # Work around the forget-to-reset-the-flag bug.
25037 echo 't clr' >>$CONFIG_STATUS
25038 echo ': clr' >>$CONFIG_STATUS
25039 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25041 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25043 mv $tmp/out $tmp/in
25045 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25046 rm -f conftest.undefs
25047 mv conftest.tail conftest.undefs
25049 rm -f conftest.undefs
25051 cat >>$CONFIG_STATUS <<\_ACEOF
25052 # Let's still pretend it is `configure
' which instantiates (i.e., don't
25053 # use $as_me), people would be surprised to read:
25054 # /* config.h. Generated by config.status. */
25055 if test x
"$ac_file" = x-
; then
25056 echo "/* Generated by configure. */" >$tmp/config.h
25058 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25060 cat $tmp/in >>$tmp/config.h
25062 if test x
"$ac_file" != x-
; then
25063 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
25064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25065 echo "$as_me: $ac_file is unchanged" >&6;}
25067 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25069 X"$ac_file" : 'X\(//\)[^/]' \| \
25070 X"$ac_file" : 'X\(//\)$' \| \
25071 X"$ac_file" : 'X\(/\)' \| \
25072 . : '\(.\)' 2>/dev/null ||
25074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25076 /^X\(\/\/\)$/{ s//\1/; q; }
25077 /^X\(\/\).*/{ s//\1/; q; }
25079 { if $as_mkdir_p; then
25084 while test ! -d "$as_dir"; do
25085 as_dirs
="$as_dir $as_dirs"
25086 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25088 X"$as_dir" : 'X\(//\)[^/]' \| \
25089 X"$as_dir" : 'X\(//\)$' \| \
25090 X"$as_dir" : 'X\(/\)' \| \
25091 . : '\(.\)' 2>/dev/null ||
25093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25095 /^X\(\/\/\)$/{ s//\1/; q; }
25096 /^X\(\/\).*/{ s//\1/; q; }
25099 test ! -n "$as_dirs" || mkdir
$as_dirs
25100 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25102 { (exit 1); exit 1; }; }; }
25105 mv $tmp/config.h
$ac_file
25109 rm -f $tmp/config.h
25113 cat >>$CONFIG_STATUS <<\_ACEOF
25116 # CONFIG_COMMANDS section.
25118 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
25119 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
25120 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25121 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
25122 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25123 X"$ac_dest" : 'X\(//\)[^/]' \| \
25124 X"$ac_dest" : 'X\(//\)$' \| \
25125 X"$ac_dest" : 'X\(/\)' \| \
25126 . : '\(.\)' 2>/dev/null ||
25128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25130 /^X\(\/\/\)$/{ s//\1/; q; }
25131 /^X\(\/\).*/{ s//\1/; q; }
25133 { if $as_mkdir_p; then
25138 while test ! -d "$as_dir"; do
25139 as_dirs
="$as_dir $as_dirs"
25140 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25142 X"$as_dir" : 'X\(//\)[^/]' \| \
25143 X"$as_dir" : 'X\(//\)$' \| \
25144 X"$as_dir" : 'X\(/\)' \| \
25145 . : '\(.\)' 2>/dev/null ||
25147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25149 /^X\(\/\/\)$/{ s//\1/; q; }
25150 /^X\(\/\).*/{ s//\1/; q; }
25153 test ! -n "$as_dirs" || mkdir
$as_dirs
25154 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25155 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25156 { (exit 1); exit 1; }; }; }
25160 if test "$ac_dir" != .
; then
25161 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25162 # A "../" for each directory in $ac_dir_suffix.
25163 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25165 ac_dir_suffix
= ac_top_builddir
=
25169 .
) # No --srcdir option. We are building in place.
25171 if test -z "$ac_top_builddir"; then
25174 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
25176 [\\/]* | ?
:[\\/]* ) # Absolute path.
25177 ac_srcdir
=$srcdir$ac_dir_suffix;
25178 ac_top_srcdir
=$srcdir ;;
25179 *) # Relative path.
25180 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
25181 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
25184 # Do not use `cd foo && pwd` to compute absolute paths, because
25185 # the directories may not exist.
25187 .
) ac_abs_builddir
="$ac_dir";;
25190 .
) ac_abs_builddir
=`pwd`;;
25191 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
25192 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
25195 case $ac_abs_builddir in
25196 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25198 case ${ac_top_builddir}.
in
25199 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
25200 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25201 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
25204 case $ac_abs_builddir in
25205 .
) ac_abs_srcdir
=$ac_srcdir;;
25208 .
) ac_abs_srcdir
=$ac_abs_builddir;;
25209 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
25210 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
25213 case $ac_abs_builddir in
25214 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
25216 case $ac_top_srcdir in
25217 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
25218 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
25219 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
25224 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25225 echo "$as_me: executing $ac_dest commands" >&6;}
25228 case ${CONFIG_HEADERS} in
25229 *auto-host.h
:config.
in*)
25232 # Make sure all the subdirs exist.
25233 for d
in $subdirs doc build
25235 test -d $d || mkdir
$d
25242 cat >>$CONFIG_STATUS <<\_ACEOF
25244 { (exit 0); exit 0; }
25246 chmod +x
$CONFIG_STATUS
25247 ac_clean_files
=$ac_clean_files_save
25250 # configure is writing to config.log, and then calls config.status.
25251 # config.status does its own redirection, appending to config.log.
25252 # Unfortunately, on DOS this fails, as config.log is still kept open
25253 # by configure, so config.status won't be able to write to it; its
25254 # output is simply discarded. So we exec the FD to /dev/null,
25255 # effectively closing config.log, so it can be properly (re)opened and
25256 # appended to by config.status. When coming back to configure, we
25257 # need to make the FD available again.
25258 if test "$no_create" != yes; then
25260 ac_config_status_args
=
25261 test "$silent" = yes &&
25262 ac_config_status_args
="$ac_config_status_args --quiet"
25264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25267 # would make configure fail if this is the last instruction.
25268 $ac_cs_success ||
{ (exit 1); exit 1; }