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 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 CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC STMP_FIXPROTO collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 fortran_target_objs target_cpu_default GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC LIBOBJS LTLIBOBJS'
462 ac_subst_files
='language_hooks'
465 # Initialize some variables set by options.
467 ac_init_version
=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name
=s
,x
,x
,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir
='${exec_prefix}/bin'
491 sbindir
='${exec_prefix}/sbin'
492 libexecdir
='${exec_prefix}/libexec'
493 datadir
='${prefix}/share'
494 sysconfdir
='${prefix}/etc'
495 sharedstatedir
='${prefix}/com'
496 localstatedir
='${prefix}/var'
497 libdir
='${exec_prefix}/lib'
498 includedir
='${prefix}/include'
499 oldincludedir
='/usr/include'
500 infodir
='${prefix}/info'
501 mandir
='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
521 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
524 -build |
--build |
--buil |
--bui |
--bu)
525 ac_prev
=build_alias
;;
526 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
527 build_alias
=$ac_optarg ;;
529 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
530 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
531 ac_prev
=cache_file
;;
532 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
533 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
534 cache_file
=$ac_optarg ;;
537 cache_file
=config.cache
;;
539 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
541 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
543 datadir
=$ac_optarg ;;
545 -disable-* |
--disable-*)
546 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* |
--enable-*)
555 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
568 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
569 |
--exec |
--exe |
--ex)
570 ac_prev
=exec_prefix
;;
571 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
572 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
573 |
--exec=* |
--exe=* |
--ex=*)
574 exec_prefix
=$ac_optarg ;;
576 -gas |
--gas |
--ga |
--g)
577 # Obsolete; use --with-gas.
580 -help |
--help |
--hel |
--he |
-h)
582 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
583 ac_init_help
=recursive
;;
584 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
585 ac_init_help
=short
;;
587 -host |
--host |
--hos |
--ho)
588 ac_prev
=host_alias
;;
589 -host=* |
--host=* |
--hos=* |
--ho=*)
590 host_alias
=$ac_optarg ;;
592 -includedir |
--includedir |
--includedi |
--included |
--include \
593 |
--includ |
--inclu |
--incl |
--inc)
594 ac_prev
=includedir
;;
595 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
596 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
597 includedir
=$ac_optarg ;;
599 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
601 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
602 infodir
=$ac_optarg ;;
604 -libdir |
--libdir |
--libdi |
--libd)
606 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
609 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
610 |
--libexe |
--libex |
--libe)
611 ac_prev
=libexecdir
;;
612 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
613 |
--libexe=* |
--libex=* |
--libe=*)
614 libexecdir
=$ac_optarg ;;
616 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
617 |
--localstate |
--localstat |
--localsta |
--localst \
618 |
--locals |
--local |
--loca |
--loc |
--lo)
619 ac_prev
=localstatedir
;;
620 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
621 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
622 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
623 localstatedir
=$ac_optarg ;;
625 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
627 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
631 # Obsolete; use --without-fp.
634 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
635 |
--no-cr |
--no-c |
-n)
638 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
639 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
642 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
643 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
644 |
--oldin |
--oldi |
--old |
--ol |
--o)
645 ac_prev
=oldincludedir
;;
646 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
647 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
648 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
649 oldincludedir
=$ac_optarg ;;
651 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
653 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
656 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
657 |
--program-pre |
--program-pr |
--program-p)
658 ac_prev
=program_prefix
;;
659 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
660 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
661 program_prefix
=$ac_optarg ;;
663 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
664 |
--program-suf |
--program-su |
--program-s)
665 ac_prev
=program_suffix
;;
666 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
667 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
668 program_suffix
=$ac_optarg ;;
670 -program-transform-name |
--program-transform-name \
671 |
--program-transform-nam |
--program-transform-na \
672 |
--program-transform-n |
--program-transform- \
673 |
--program-transform |
--program-transfor \
674 |
--program-transfo |
--program-transf \
675 |
--program-trans |
--program-tran \
676 |
--progr-tra |
--program-tr |
--program-t)
677 ac_prev
=program_transform_name
;;
678 -program-transform-name=* |
--program-transform-name=* \
679 |
--program-transform-nam=* |
--program-transform-na=* \
680 |
--program-transform-n=* |
--program-transform-=* \
681 |
--program-transform=* |
--program-transfor=* \
682 |
--program-transfo=* |
--program-transf=* \
683 |
--program-trans=* |
--program-tran=* \
684 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
685 program_transform_name
=$ac_optarg ;;
687 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
688 |
-silent |
--silent |
--silen |
--sile |
--sil)
691 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
693 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
695 sbindir
=$ac_optarg ;;
697 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
698 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
699 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
701 ac_prev
=sharedstatedir
;;
702 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
703 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
704 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
706 sharedstatedir
=$ac_optarg ;;
708 -site |
--site |
--sit)
710 -site=* |
--site=* |
--sit=*)
713 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
715 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
718 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
719 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
720 ac_prev
=sysconfdir
;;
721 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
722 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
723 sysconfdir
=$ac_optarg ;;
725 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
726 ac_prev
=target_alias
;;
727 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
728 target_alias
=$ac_optarg ;;
730 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
733 -version |
--version |
--versio |
--versi |
--vers |
-V)
737 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package
=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* |
--without-*)
750 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package
=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
763 |
--x-incl |
--x-inc |
--x-in |
--x-i)
764 ac_prev
=x_includes
;;
765 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
766 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
767 x_includes
=$ac_optarg ;;
769 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
770 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
771 ac_prev
=x_libraries
;;
772 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
773 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
774 x_libraries
=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var
in exec_prefix prefix
811 eval ac_val
=$
`echo $ac_var`
813 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val
=$
`echo $ac_var`
825 [\\/$
]* | ?
:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x
; then
840 if test "x$build_alias" = x
; then
841 cross_compiling
=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
852 test "$silent" = yes && exec 6>/dev
/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted
=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir
=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted
=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set
=${build_alias+set}
892 ac_env_build_alias_value
=$build_alias
893 ac_cv_env_build_alias_set
=${build_alias+set}
894 ac_cv_env_build_alias_value
=$build_alias
895 ac_env_host_alias_set
=${host_alias+set}
896 ac_env_host_alias_value
=$host_alias
897 ac_cv_env_host_alias_set
=${host_alias+set}
898 ac_cv_env_host_alias_value
=$host_alias
899 ac_env_target_alias_set
=${target_alias+set}
900 ac_env_target_alias_value
=$target_alias
901 ac_cv_env_target_alias_set
=${target_alias+set}
902 ac_cv_env_target_alias_value
=$target_alias
903 ac_env_CC_set
=${CC+set}
905 ac_cv_env_CC_set
=${CC+set}
906 ac_cv_env_CC_value
=$CC
907 ac_env_CFLAGS_set
=${CFLAGS+set}
908 ac_env_CFLAGS_value
=$CFLAGS
909 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value
=$CFLAGS
911 ac_env_LDFLAGS_set
=${LDFLAGS+set}
912 ac_env_LDFLAGS_value
=$LDFLAGS
913 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value
=$LDFLAGS
915 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value
=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
919 ac_env_CPP_set
=${CPP+set}
920 ac_env_CPP_value
=$CPP
921 ac_cv_env_CPP_set
=${CPP+set}
922 ac_cv_env_CPP_value
=$CPP
923 ac_env_GMPLIBS_set
=${GMPLIBS+set}
924 ac_env_GMPLIBS_value
=$GMPLIBS
925 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
926 ac_cv_env_GMPLIBS_value
=$GMPLIBS
927 ac_env_GMPINC_set
=${GMPINC+set}
928 ac_env_GMPINC_value
=$GMPINC
929 ac_cv_env_GMPINC_set
=${GMPINC+set}
930 ac_cv_env_GMPINC_value
=$GMPINC
931 ac_env_PPLLIBS_set
=${PPLLIBS+set}
932 ac_env_PPLLIBS_value
=$PPLLIBS
933 ac_cv_env_PPLLIBS_set
=${PPLLIBS+set}
934 ac_cv_env_PPLLIBS_value
=$PPLLIBS
935 ac_env_PPLINC_set
=${PPLINC+set}
936 ac_env_PPLINC_value
=$PPLINC
937 ac_cv_env_PPLINC_set
=${PPLINC+set}
938 ac_cv_env_PPLINC_value
=$PPLINC
939 ac_env_CLOOGLIBS_set
=${CLOOGLIBS+set}
940 ac_env_CLOOGLIBS_value
=$CLOOGLIBS
941 ac_cv_env_CLOOGLIBS_set
=${CLOOGLIBS+set}
942 ac_cv_env_CLOOGLIBS_value
=$CLOOGLIBS
943 ac_env_CLOOGINC_set
=${CLOOGINC+set}
944 ac_env_CLOOGINC_value
=$CLOOGINC
945 ac_cv_env_CLOOGINC_set
=${CLOOGINC+set}
946 ac_cv_env_CLOOGINC_value
=$CLOOGINC
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1014 --build=BUILD configure
for building on BUILD
[guessed
]
1015 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1016 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1026 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1027 --enable-generated-files-in-srcdir
1028 put copies of generated files
in source dir
1029 intended
for creating
source tarballs
for users
1030 without texinfo bison or flex.
1031 --enable-werror-always enable -Werror despite compiler version
1032 --enable-checking=LIST
1033 enable expensive run-time checks. With LIST
,
1034 enable only specific categories of checks.
1035 Categories are
: yes,no
,all
,none
,release.
1036 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1037 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1038 --enable-coverage=LEVEL
1039 enable compiler
's code coverage collection.
1040 Use to measure compiler performance and locate
1041 unused parts of the compiler. With LEVEL, specify
1042 optimization. Values are opt, noopt,
1044 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1045 --enable-multilib enable library support for multiple ABIs
1046 --enable-__cxa_atexit enable __cxa_atexit for C++
1047 --enable-decimal-float={no,yes,bid,dpd}
1048 enable decimal float extension to C. Selecting 'bid
'
1049 or 'dpd
' choses which decimal floating point format
1051 --enable-fixed-point enable fixed-point arithmetic extension to C
1052 --enable-threads enable thread usage for target GCC
1053 --enable-threads=LIB use LIB thread package for target GCC
1054 --enable-tls enable or disable generation of tls code
1055 overriding the assembler check for tls support
1056 --enable-objc-gc enable the use of Boehm's garbage collector with
1057 the GNU Objective-C runtime
1058 --disable-shared don
't provide a shared libgcc
1059 --enable-intermodule build the compiler in one step
1060 --enable-languages=LIST specify which front-ends to build
1061 --disable-rpath do not hardcode runtime library paths
1062 --enable-initfini-array use .init_array/.fini_array sections
1063 --enable-sjlj-exceptions
1064 arrange to use setjmp/longjmp exception handling
1065 --enable-secureplt enable -msecure-plt by default for PowerPC
1066 --enable-cld enable -mcld by default for 32bit x86
1067 --disable-win32-registry
1068 disable lookup of installation paths in the
1069 Registry on Windows hosts
1070 --enable-win32-registry enable registry lookup (default)
1071 --enable-win32-registry=KEY
1072 use KEY instead of GCC version as the last portion
1074 --enable-shared[=PKGS]
1075 build shared libraries [default=yes]
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-fast-install[=PKGS]
1079 optimize for fast installation [default=yes]
1080 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --enable-maintainer-mode
1082 enable make rules and dependencies not useful
1083 (and sometimes confusing) to the casual installer
1084 --enable-version-specific-runtime-libs
1085 specify that runtime libraries should be
1086 installed in a compiler-specific directory
1089 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1090 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1091 --with-build-libsubdir=DIR Directory where to find libraries for build system
1092 --with-local-prefix=DIR specifies directory to put local include
1093 --with-gxx-include-dir=DIR
1094 specifies directory to put g++ header files
1095 --with-cpp-install-dir=DIR
1096 install the user visible C preprocessor in DIR
1097 (relative to PREFIX) as well as PREFIX/bin
1098 --with-gnu-ld arrange to work with GNU ld.
1099 --with-ld arrange to use the specified ld (full pathname)
1100 --with-demangler-in-ld try to use demangler in GNU ld.
1101 --with-gnu-as arrange to work with GNU as
1102 --with-as arrange to use the specified as (full pathname)
1103 --with-stabs arrange to use stabs instead of host debug format
1104 --with-dwarf2 force the default debug format to be DWARF 2
1105 --with-build-sysroot=sysroot
1106 use sysroot as the system root during the build
1107 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1108 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1109 --with-bugurl=URL Direct users to URL to report a bug
1110 --with-gnu-ld assume the C compiler uses GNU ld default=no
1111 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1112 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1113 --with-system-libunwind use installed libunwind
1114 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1116 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1117 --with-long-double-128 Use
128-bit long double by default.
1118 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1120 --with-system-zlib use installed libz
1121 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1122 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
1123 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
1124 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
1126 Some influential environment variables
:
1127 CC C compiler
command
1128 CFLAGS C compiler flags
1129 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1130 nonstandard directory
<lib dir
>
1131 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1132 headers
in a nonstandard directory
<include dir
>
1134 GMPLIBS How to link GMP
1135 GMPINC How to
find GMP include files
1136 PPLLIBS How to link PPL
1137 PPLINC How to
find PPL include files
1138 CLOOGLIBS How to link CLOOG
1139 CLOOGINC How to
find CLOOG include files
1141 Use these variables to override the choices made by
`configure' or to help
1142 it to find libraries and programs with nonstandard names/locations.
1147 if test "$ac_init_help" = "recursive"; then
1148 # If there are subdirs, report their specific --help.
1150 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1151 test -d $ac_dir || continue
1154 if test "$ac_dir" != .; then
1155 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1156 # A "../" for each directory in $ac_dir_suffix.
1157 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1159 ac_dir_suffix= ac_top_builddir=
1163 .) # No --srcdir option. We are building in place.
1165 if test -z "$ac_top_builddir"; then
1168 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1170 [\\/]* | ?:[\\/]* ) # Absolute path.
1171 ac_srcdir=$srcdir$ac_dir_suffix;
1172 ac_top_srcdir=$srcdir ;;
1174 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1175 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1178 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1179 # the directories may not exist.
1181 .) ac_abs_builddir="$ac_dir";;
1184 .) ac_abs_builddir=`pwd`;;
1185 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1186 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1189 case $ac_abs_builddir in
1190 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1192 case ${ac_top_builddir}. in
1193 .) ac_abs_top_builddir=$ac_abs_builddir;;
1194 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1195 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1198 case $ac_abs_builddir in
1199 .) ac_abs_srcdir=$ac_srcdir;;
1202 .) ac_abs_srcdir=$ac_abs_builddir;;
1203 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1204 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1207 case $ac_abs_builddir in
1208 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1210 case $ac_top_srcdir in
1211 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1212 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1213 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1218 # Check for guested configure; otherwise get Cygnus style configure.
1219 if test -f $ac_srcdir/configure.gnu; then
1221 $SHELL $ac_srcdir/configure.gnu --help=recursive
1222 elif test -f $ac_srcdir/configure; then
1224 $SHELL $ac_srcdir/configure --help=recursive
1225 elif test -f $ac_srcdir/configure.ac ||
1226 test -f $ac_srcdir/configure.in; then
1228 $ac_configure --help
1230 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1236 test -n "$ac_init_help" && exit 0
1237 if $ac_init_version; then
1240 Copyright (C) 2003 Free Software Foundation, Inc.
1241 This configure script is free software; the Free Software Foundation
1242 gives unlimited permission to copy, distribute and modify it.
1248 This file contains any messages produced by compilers while
1249 running configure, to aid debugging if configure makes a mistake.
1251 It was created by $as_me, which was
1252 generated by GNU Autoconf 2.59. Invocation command line was
1263 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1264 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1265 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1266 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1267 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1269 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1270 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1272 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1273 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1274 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1275 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1276 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1277 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1278 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286 test -z "$as_dir" && as_dir=.
1287 echo "PATH: $as_dir"
1302 # Keep a trace of the command line.
1303 # Strip out --no-create and --no-recursion so they do not pile up.
1304 # Strip out --silent because we don't want to record it for future runs.
1305 # Also quote any args containing shell meta-characters.
1306 # Make two passes to allow for proper duplicate-argument suppression.
1311 ac_must_keep_next=false
1317 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1319 | -silent | --silent | --silen | --sile | --sil)
1321 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1322 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1325 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1327 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1328 if test $ac_must_keep_next = true; then
1329 ac_must_keep_next=false # Got value, back to normal.
1332 *=* | --config-cache | -C | -disable-* | --disable-* \
1333 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1334 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1335 | -with-* | --with-* | -without-* | --without-* | --x)
1336 case "$ac_configure_args0 " in
1337 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1340 -* ) ac_must_keep_next=true ;;
1343 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1344 # Get rid of the leading space.
1350 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1351 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1353 # When interrupted or exit'd, cleanup temporary files, and complete
1354 # config.log. We remove comments because anyway the quotes in there
1355 # would cause problems or look ugly.
1356 # WARNING: Be sure not to use single quotes in there, as some shells,
1357 # such as our DU 5.0 friend, will then `close
' the trap.
1358 trap 'exit_status
=$?
1359 # Save into config.log some information that might help in debugging.
1364 ## ---------------- ##
1365 ## Cache variables. ##
1366 ## ---------------- ##
1369 # The following way of writing the cache mishandles newlines in values,
1372 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1375 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1380 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1387 ## ----------------- ##
1388 ## Output variables. ##
1389 ## ----------------- ##
1392 for ac_var
in $ac_subst_vars
1394 eval ac_val
=$
`echo $ac_var`
1395 echo "$ac_var='"'"'$ac_val'"'"'"
1399 if test -n "$ac_subst_files"; then
1406 for ac_var
in $ac_subst_files
1408 eval ac_val
=$
`echo $ac_var`
1409 echo "$ac_var='"'"'$ac_val'"'"'"
1414 if test -s confdefs.h
; then
1421 sed "/^$/d" confdefs.h |
sort
1424 test "$ac_signal" != 0 &&
1425 echo "$as_me: caught signal $ac_signal"
1426 echo "$as_me: exit $exit_status"
1428 rm -f core
*.core
&&
1429 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1432 for ac_signal in 1 2 13 15; do
1433 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1437 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1438 rm -rf conftest* confdefs.h
1439 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1442 # Predefined preprocessor variables.
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_NAME "$PACKAGE_NAME"
1449 cat >>confdefs.h <<_ACEOF
1450 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1454 cat >>confdefs.h <<_ACEOF
1455 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1459 cat >>confdefs.h <<_ACEOF
1460 #define PACKAGE_STRING "$PACKAGE_STRING"
1464 cat >>confdefs.h <<_ACEOF
1465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1469 # Let the site file select an alternate cache file if it wants to.
1470 # Prefer explicitly selected file to automatically selected ones.
1471 if test -z "$CONFIG_SITE"; then
1472 if test "x$prefix" != xNONE; then
1473 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1475 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1478 for ac_site_file in $CONFIG_SITE; do
1479 if test -r "$ac_site_file"; then
1480 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1481 echo "$as_me: loading site script $ac_site_file" >&6;}
1482 sed 's
/^
/|
/' "$ac_site_file" >&5
1487 if test -r "$cache_file"; then
1488 # Some versions of bash will fail to source /dev/null (special
1489 # files actually), so we avoid doing that.
1490 if test -f "$cache_file"; then
1491 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1492 echo "$as_me: loading cache $cache_file" >&6;}
1494 [\\/]* | ?:[\\/]* ) . $cache_file;;
1495 *) . ./$cache_file;;
1499 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1500 echo "$as_me: creating cache $cache_file" >&6;}
1504 # Check that the precious variables saved in the cache have kept the same
1506 ac_cache_corrupted=false
1507 for ac_var in `(set) 2>&1 |
1508 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1510 eval ac_new_set=\$ac_env_${ac_var}_set
1511 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1512 eval ac_new_val="\$ac_env_${ac_var}_value"
1513 case $ac_old_set,$ac_new_set in
1515 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1516 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1517 ac_cache_corrupted=: ;;
1519 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1520 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1521 ac_cache_corrupted=: ;;
1524 if test "x$ac_old_val" != "x$ac_new_val"; then
1525 # differences in whitespace do not lead to failure.
1526 ac_old_val_w=`echo x $ac_old_val`
1527 ac_new_val_w=`echo x $ac_new_val`
1528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1529 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1530 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1531 ac_cache_corrupted=:
1533 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1534 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1535 eval $ac_var=\$ac_old_val
1537 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1538 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1539 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1540 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1543 # Pass precious variables to config.status.
1544 if test "$ac_new_set" = set; then
1546 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1547 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1548 *) ac_arg=$ac_var=$ac_new_val ;;
1550 case " $ac_configure_args " in
1551 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1552 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1556 if $ac_cache_corrupted; then
1557 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1558 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1559 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1560 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1561 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1562 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1563 { (exit 1); exit 1; }; }
1567 ac_cpp='$CPP $CPPFLAGS'
1568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1594 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1597 gcc_version=`cat $srcdir/BASE-VER
`
1599 # Determine the host, build, and target systems
1601 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1602 if test -f $ac_dir/install-sh; then
1604 ac_install_sh="$ac_aux_dir/install-sh -c"
1606 elif test -f $ac_dir/install.sh; then
1608 ac_install_sh="$ac_aux_dir/install.sh -c"
1610 elif test -f $ac_dir/shtool; then
1612 ac_install_sh="$ac_aux_dir/shtool install -c"
1616 if test -z "$ac_aux_dir"; then
1617 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1618 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1619 { (exit 1); exit 1; }; }
1621 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1622 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1623 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1625 # Make sure we can run config.sub.
1626 $ac_config_sub sun4 >/dev/null 2>&1 ||
1627 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1628 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1629 { (exit 1); exit 1; }; }
1631 echo "$as_me:$LINENO: checking build system type" >&5
1632 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1633 if test "${ac_cv_build+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 ac_cv_build_alias=$build_alias
1637 test -z "$ac_cv_build_alias" &&
1638 ac_cv_build_alias=`$ac_config_guess`
1639 test -z "$ac_cv_build_alias" &&
1640 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1641 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1642 { (exit 1); exit 1; }; }
1643 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1644 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1645 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1646 { (exit 1); exit 1; }; }
1649 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1650 echo "${ECHO_T}$ac_cv_build" >&6
1652 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657 echo "$as_me:$LINENO: checking host system type" >&5
1658 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1659 if test "${ac_cv_host+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 ac_cv_host_alias=$host_alias
1663 test -z "$ac_cv_host_alias" &&
1664 ac_cv_host_alias=$ac_cv_build_alias
1665 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1666 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1667 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1668 { (exit 1); exit 1; }; }
1671 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1672 echo "${ECHO_T}$ac_cv_host" >&6
1674 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1675 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1676 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1679 echo "$as_me:$LINENO: checking target system type" >&5
1680 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1681 if test "${ac_cv_target+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 ac_cv_target_alias=$target_alias
1685 test "x$ac_cv_target_alias" = "x" &&
1686 ac_cv_target_alias=$ac_cv_host_alias
1687 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1688 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1689 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1690 { (exit 1); exit 1; }; }
1693 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1694 echo "${ECHO_T}$ac_cv_target" >&6
1695 target=$ac_cv_target
1696 target_cpu=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1697 target_vendor=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1698 target_os=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1701 # The aliases save the names the user supplied, while $host etc.
1702 # will get canonicalized.
1703 test -n "$target_alias" &&
1704 test "$program_prefix$program_suffix$program_transform_name" = \
1706 program_prefix=${target_alias}-
1708 # Determine the noncanonical target name, for directory use.
1709 case ${build_alias} in
1710 "") build_noncanonical=${build} ;;
1711 *) build_noncanonical=${build_alias} ;;
1714 case ${host_alias} in
1715 "") host_noncanonical=${build_noncanonical} ;;
1716 *) host_noncanonical=${host_alias} ;;
1719 case ${target_alias} in
1720 "") target_noncanonical=${host_noncanonical} ;;
1721 *) target_noncanonical=${target_alias} ;;
1727 # Determine the target- and build-specific subdirectories
1729 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1730 # have matching libraries, they should use host libraries: Makefile.tpl
1731 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1732 # However, they still use the build modules, because the corresponding
1733 # host modules (e.g. bison) are only built for the host when bootstrap
1735 # - build_subdir is where we find build modules, and never changes.
1736 # - build_libsubdir is where we find build libraries, and can be overridden.
1738 # Prefix 'build-' so this never conflicts with target_subdir.
1739 build_subdir="build-${build_noncanonical}"
1741 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1742 if test "${with_build_libsubdir+set}" = set; then
1743 withval="$with_build_libsubdir"
1744 build_libsubdir="$withval"
1746 build_libsubdir="$build_subdir"
1748 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1749 if ( test $srcdir = . && test -d gcc ) \
1750 || test -d $srcdir/../host-${host_noncanonical}; then
1751 host_subdir="host-${host_noncanonical}"
1756 target_subdir=${target_noncanonical}
1759 # Set program_transform_name
1760 test "$program_prefix" != NONE &&
1761 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762 # Use a double $ so make ignores it.
1763 test "$program_suffix" != NONE &&
1764 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765 # Double any \ or $. echo might interpret backslashes.
1766 # By default was `s
,x
,x
', remove it if useless.
1767 cat <<\_ACEOF >conftest.sed
1768 s/[\\$]/&&/g;s/;s,x,x,$//
1770 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1774 # Check for bogus environment variables.
1775 # Test if LIBRARY_PATH contains the notation for the current directory
1776 # since this would lead to problems installing/building glibc.
1777 # LIBRARY_PATH contains the current directory if one of the following
1779 # - one of the terminals (":" and ";") is the first or last sign
1780 # - two terminals occur directly after each other
1781 # - the path contains an element with a dot in it
1782 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1783 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1784 case ${LIBRARY_PATH} in
1785 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1786 library_path_setting="contains current directory"
1789 library_path_setting="ok"
1792 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1793 echo "${ECHO_T}$library_path_setting" >&6
1794 if test "$library_path_setting" != "ok"; then
1795 { { echo "$as_me:$LINENO: error:
1796 *** LIBRARY_PATH shouldn't contain the current directory when
1797 *** building gcc. Please change the environment variable
1798 *** and run configure again.
" >&5
1799 echo "$as_me: error
:
1800 *** LIBRARY_PATH shouldn
't contain the current directory when
1801 *** building gcc. Please change the environment variable
1802 *** and run configure again." >&2;}
1803 { (exit 1); exit 1; }; }
1806 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1807 # since this would lead to problems installing/building glibc.
1808 # GCC_EXEC_PREFIX contains the current directory if one of the following
1810 # - one of the terminals (":" and ";") is the first or last sign
1811 # - two terminals occur directly after each other
1812 # - the path contains an element with a dot in it
1813 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1814 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1815 case ${GCC_EXEC_PREFIX} in
1816 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1817 gcc_exec_prefix_setting="contains current directory"
1820 gcc_exec_prefix_setting="ok"
1823 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1824 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1825 if test "$gcc_exec_prefix_setting" != "ok"; then
1826 { { echo "$as_me:$LINENO: error:
1827 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1828 *** building gcc. Please change the environment variable
1829 *** and run configure again.
" >&5
1830 echo "$as_me: error
:
1831 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
1832 *** building gcc. Please change the environment variable
1833 *** and run configure again." >&2;}
1834 { (exit 1); exit 1; }; }
1841 # Specify the local prefix
1844 # Check whether --with-local-prefix or --without-local-prefix was given.
1845 if test "${with_local_prefix+set}" = set; then
1846 withval="$with_local_prefix"
1847 case "${withval}" in
1848 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1849 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1850 { (exit 1); exit 1; }; } ;;
1852 *) local_prefix=$with_local_prefix ;;
1856 # Default local prefix if it is empty
1857 if test x$local_prefix = x; then
1858 local_prefix=/usr/local
1861 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
1862 # passed in by the toplevel make and thus we'd get different behavior
1863 # depending on where we built the sources.
1864 gcc_gxx_include_dir
=
1865 # Specify the g++ header file directory
1867 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1868 if test "${with_gxx_include_dir+set}" = set; then
1869 withval
="$with_gxx_include_dir"
1870 case "${withval}" in
1871 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1872 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1873 { (exit 1); exit 1; }; } ;;
1875 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1879 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1880 if test x
${gcc_gxx_include_dir} = x
; then
1881 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1882 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1884 libstdcxx_incdir
='include/c++/$(version)'
1885 if test x
$host != x
$target; then
1886 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1888 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1893 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1894 if test "${with_cpp_install_dir+set}" = set; then
1895 withval
="$with_cpp_install_dir"
1896 if test x
$withval = xyes
; then
1897 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1898 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1899 { (exit 1); exit 1; }; }
1900 elif test x
$withval != xno
; then
1901 cpp_install_dir
=$withval
1905 # We would like to our source tree to be readonly. However when releases or
1906 # pre-releases are generated, the flex/bison generated files as well as the
1907 # various formats of manuals need to be included along with the rest of the
1908 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1911 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1912 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1913 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1914 if test "${enable_generated_files_in_srcdir+set}" = set; then
1915 enableval
="$enable_generated_files_in_srcdir"
1916 generated_files_in_srcdir
=$enableval
1918 generated_files_in_srcdir
=no
1921 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1922 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1924 if test "$generated_files_in_srcdir" = "yes"; then
1931 # -------------------
1932 # Find default linker
1933 # -------------------
1937 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1938 if test "${with_gnu_ld+set}" = set; then
1939 withval
="$with_gnu_ld"
1940 gnu_ld_flag
="$with_gnu_ld"
1945 # With pre-defined ld
1947 # Check whether --with-ld or --without-ld was given.
1948 if test "${with_ld+set}" = set; then
1950 DEFAULT_LINKER
="$with_ld"
1952 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1953 if test ! -x "$DEFAULT_LINKER"; then
1954 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1955 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1956 { (exit 1); exit 1; }; }
1957 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1961 cat >>confdefs.h
<<_ACEOF
1962 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1967 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1969 cat >>confdefs.h
<<_ACEOF
1970 #define HAVE_GNU_LD $gnu_ld
1974 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1975 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1976 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1977 if test x
"$gnu_ld_flag" = x
"no"; then
1978 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1979 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1981 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1982 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 # With demangler in GNU ld
1991 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1992 if test "${with_demangler_in_ld+set}" = set; then
1993 withval
="$with_demangler_in_ld"
1994 demangler_in_ld
="$with_demangler_in_ld"
1999 # ----------------------
2000 # Find default assembler
2001 # ----------------------
2005 # Check whether --with-gnu-as or --without-gnu-as was given.
2006 if test "${with_gnu_as+set}" = set; then
2007 withval
="$with_gnu_as"
2008 gas_flag
="$with_gnu_as"
2014 # Check whether --with-as or --without-as was given.
2015 if test "${with_as+set}" = set; then
2017 DEFAULT_ASSEMBLER
="$with_as"
2019 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2020 if test ! -x "$DEFAULT_ASSEMBLER"; then
2021 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2022 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2023 { (exit 1); exit 1; }; }
2024 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2028 cat >>confdefs.h
<<_ACEOF
2029 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2034 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2036 cat >>confdefs.h
<<_ACEOF
2037 #define HAVE_GNU_AS $gnu_as
2041 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2042 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2043 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2044 if test x
"$gas_flag" = x
"no"; then
2045 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2046 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2048 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2049 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2060 # If a non-executable a.out is present (e.g. created by GNU as above even if
2061 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2062 # file, even when creating an executable, so an execution test fails.
2063 # Remove possible default executable files to avoid this.
2065 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2066 # Autoconf includes it.
2067 rm -f a.out a.exe b.out
2069 # Find the native compiler
2071 ac_cpp
='$CPP $CPPFLAGS'
2072 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2073 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2074 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2075 if test -n "$ac_tool_prefix"; then
2076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2077 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC
="$CC" # Let the user override the test.
2086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir
=.
2091 for ac_exec_ext
in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 if test -n "$CC"; then
2104 echo "$as_me:$LINENO: result: $CC" >&5
2105 echo "${ECHO_T}$CC" >&6
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2112 if test -z "$ac_cv_prog_CC"; then
2114 # Extract the first word of "gcc", so it can be a program name with args.
2115 set dummy gcc
; ac_word
=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir
=.
2129 for ac_exec_ext
in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CC
="gcc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2154 if test -z "$CC"; then
2155 if test -n "$ac_tool_prefix"; then
2156 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2157 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC
="$CC" # Let the user override the test.
2166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2170 test -z "$as_dir" && as_dir
=.
2171 for ac_exec_ext
in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 if test -n "$CC"; then
2184 echo "$as_me:$LINENO: result: $CC" >&5
2185 echo "${ECHO_T}$CC" >&6
2187 echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2192 if test -z "$ac_cv_prog_CC"; then
2194 # Extract the first word of "cc", so it can be a program name with args.
2195 set dummy cc
; ac_word
=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$ac_ct_CC"; then
2202 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir
=.
2209 for ac_exec_ext
in '' $ac_executable_extensions; do
2210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211 ac_cv_prog_ac_ct_CC
="cc"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 echo "${ECHO_T}$ac_ct_CC" >&6
2225 echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2235 if test -z "$CC"; then
2236 # Extract the first word of "cc", so it can be a program name with args.
2237 set dummy cc
; ac_word
=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC
="$CC" # Let the user override the test.
2247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir
=.
2252 for ac_exec_ext
in '' $ac_executable_extensions; do
2253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2255 ac_prog_rejected
=yes
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 if test $ac_prog_rejected = yes; then
2266 # We found a bogon in the path, so make sure we never use it.
2267 set dummy
$ac_cv_prog_CC
2269 if test $# != 0; then
2270 # We chose a different compiler from the bogus one.
2271 # However, it has the same basename, so the bogon will be chosen
2272 # first if we set CC to just the basename; use the full file name.
2274 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2280 if test -n "$CC"; then
2281 echo "$as_me:$LINENO: result: $CC" >&5
2282 echo "${ECHO_T}$CC" >&6
2284 echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2289 if test -z "$CC"; then
2290 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC
="$CC" # Let the user override the test.
2303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir
=.
2308 for ac_exec_ext
in '' $ac_executable_extensions; do
2309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 if test -n "$CC"; then
2321 echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6
2324 echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2328 test -n "$CC" && break
2331 if test -z "$CC"; then
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy
$ac_prog; ac_word
=$2
2337 echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$ac_ct_CC"; then
2343 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir
=.
2350 for ac_exec_ext
in '' $ac_executable_extensions; do
2351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352 ac_cv_prog_ac_ct_CC
="$ac_prog"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2362 if test -n "$ac_ct_CC"; then
2363 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2364 echo "${ECHO_T}$ac_ct_CC" >&6
2366 echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6
2370 test -n "$ac_ct_CC" && break
2379 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2380 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: no acceptable C compiler found in \$PATH
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }; }
2387 # Provide some information about the compiler.
2388 echo "$as_me:$LINENO:" \
2389 "checking for C compiler version" >&5
2390 ac_compiler
=`set X $ac_compile; echo $2`
2391 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2392 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }
2396 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2397 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }
2401 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2402 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }
2407 cat >conftest.
$ac_ext <<_ACEOF
2410 cat confdefs.h
>>conftest.
$ac_ext
2411 cat >>conftest.
$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2422 ac_clean_files_save
=$ac_clean_files
2423 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2424 # Try to create an executable without -o first, disregard a.out.
2425 # It will help us diagnose broken compilers, and finding out an intuition
2427 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2428 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2429 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2431 (eval $ac_link_default) 2>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; then
2435 # Find the output, starting from the most likely. This scheme is
2436 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2439 # Be careful to initialize this variable, since it used to be cached.
2440 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2442 # b.out is created by i960 compilers.
2443 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2445 test -f "$ac_file" ||
continue
2447 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2450 # This is the source file.
2453 # We found the default executable, but exeext='' is most
2457 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2458 # FIXME: I believe we export ac_cv_exeext for Libtool,
2459 # but it would be cool to find out if it's true. Does anybody
2460 # maintain Libtool? --akim.
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.
$ac_ext >&5
2471 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2472 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2474 See \`config.log' for more details." >&5
2475 echo "$as_me: error: C compiler cannot create executables
2476 See \`config.log' for more details." >&2;}
2477 { (exit 77); exit 77; }; }; }
2480 ac_exeext
=$ac_cv_exeext
2481 echo "$as_me:$LINENO: result: $ac_file" >&5
2482 echo "${ECHO_T}$ac_file" >&6
2484 # Check the compiler produces executables we can run. If not, either
2485 # the compiler is broken, or we cross compile.
2486 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2487 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2488 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2489 # If not cross compiling, check that we can run a simple program.
2490 if test "$cross_compiling" != yes; then
2491 if { ac_try
='./$ac_file'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2499 if test "$cross_compiling" = maybe
; then
2502 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2503 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2505 If you meant to cross compile, use \`--host'.
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: cannot run C compiled programs.
2508 If you meant to cross compile, use \`--host'.
2509 See \`config.log' for more details." >&2;}
2510 { (exit 1); exit 1; }; }; }
2514 echo "$as_me:$LINENO: result: yes" >&5
2515 echo "${ECHO_T}yes" >&6
2517 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2518 ac_clean_files
=$ac_clean_files_save
2519 # Check the compiler produces executables we can run. If not, either
2520 # the compiler is broken, or we cross compile.
2521 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2522 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2523 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2524 echo "${ECHO_T}$cross_compiling" >&6
2526 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2527 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2529 (eval $ac_link) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2535 # work properly (i.e., refer to `conftest.exe'), while it won't with
2537 for ac_file
in conftest.exe conftest conftest.
*; do
2538 test -f "$ac_file" ||
continue
2540 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2541 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2549 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2551 See \`config.log' for more details." >&5
2552 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2553 See \`config.log' for more details." >&2;}
2554 { (exit 1); exit 1; }; }; }
2557 rm -f conftest
$ac_cv_exeext
2558 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2559 echo "${ECHO_T}$ac_cv_exeext" >&6
2561 rm -f conftest.
$ac_ext
2562 EXEEXT
=$ac_cv_exeext
2564 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2565 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2566 if test "${ac_cv_objext+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 cat >conftest.
$ac_ext <<_ACEOF
2572 cat confdefs.h
>>conftest.
$ac_ext
2573 cat >>conftest.
$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2584 rm -f conftest.o conftest.obj
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2592 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2593 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.
$ac_ext >&5
2601 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2602 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }; }
2610 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2612 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613 echo "${ECHO_T}$ac_cv_objext" >&6
2614 OBJEXT
=$ac_cv_objext
2616 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.
$ac_ext <<_ACEOF
2624 cat confdefs.h
>>conftest.
$ac_ext
2625 cat >>conftest.
$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2639 rm -f conftest.
$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2643 grep -v '^ *+' conftest.er1
>conftest.err
2645 cat conftest.err
>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try
='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try
='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.
$ac_ext >&5
2668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2669 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2672 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2673 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2674 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2675 ac_test_CFLAGS
=${CFLAGS+set}
2676 ac_save_CFLAGS
=$CFLAGS
2678 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2679 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2680 if test "${ac_cv_prog_cc_g+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 cat >conftest.
$ac_ext <<_ACEOF
2686 cat confdefs.h
>>conftest.
$ac_ext
2687 cat >>conftest.
$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.
$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2702 grep -v '^ *+' conftest.er1
>conftest.err
2704 cat conftest.err
>&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try
='test -z "$ac_c_werror_flag"
2708 || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try
='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.
$ac_ext >&5
2727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2729 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2731 if test "$ac_test_CFLAGS" = set; then
2732 CFLAGS
=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734 if test "$GCC" = yes; then
2740 if test "$GCC" = yes; then
2746 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2747 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2748 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 ac_cv_prog_cc_stdc
=no
2753 cat >conftest.
$ac_ext <<_ACEOF
2756 cat confdefs.h
>>conftest.
$ac_ext
2757 cat >>conftest.
$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2777 s = g (p, va_arg (v,int));
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2783 function prototypes and stuff, but not '\xHH' hex character constants.
2784 These don't provoke an error unfortunately, instead are silently treated
2785 as 'x'. The following induces an error, until -std1 is added to get
2786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2787 array size at least. It's necessary to write '\x00'==0 to get something
2788 that's true only with -std1. */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791 int test (int i, double x);
2792 struct s1 {int (*f) (int a);};
2793 struct s2 {int (*f) (double a);};
2794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2805 # Don't try gcc -ansi; that turns off useful extensions and
2806 # breaks some systems' header files.
2807 # AIX -qlanglvl=ansi
2808 # Ultrix and OSF/1 -std1
2809 # HP-UX 10.20 and later -Ae
2810 # HP-UX older versions -Aa -D_HPUX_SOURCE
2811 # SVR4 -Xc -D__EXTENSIONS__
2812 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2814 CC
="$ac_save_CC $ac_arg"
2815 rm -f conftest.
$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>conftest.er1
2819 grep -v '^ *+' conftest.er1
>conftest.err
2821 cat conftest.err
>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try
='test -z "$ac_c_werror_flag"
2825 || test ! -s conftest.err'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; } &&
2831 { ac_try
='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_cv_prog_cc_stdc
=$ac_arg
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.
$ac_ext >&5
2844 rm -f conftest.err conftest.
$ac_objext
2846 rm -f conftest.
$ac_ext conftest.
$ac_objext
2851 case "x$ac_cv_prog_cc_stdc" in
2853 echo "$as_me:$LINENO: result: none needed" >&5
2854 echo "${ECHO_T}none needed" >&6 ;;
2856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2858 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2861 # Some people use a C++ compiler to compile C. Since we use `exit',
2862 # in C++ we need to declare it. In case someone uses the same compiler
2863 # for both compiling C and C++ we need to have the C++ compiler decide
2864 # the declaration of exit, since it's the most demanding environment.
2865 cat >conftest.
$ac_ext <<_ACEOF
2870 rm -f conftest.
$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2874 grep -v '^ *+' conftest.er1
>conftest.err
2876 cat conftest.err
>&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try
='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try
='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 for ac_declaration
in \
2894 'extern "C" void std::exit (int) throw (); using std::exit;' \
2895 'extern "C" void std::exit (int); using std::exit;' \
2896 'extern "C" void exit (int) throw ();' \
2897 'extern "C" void exit (int);' \
2900 cat >conftest.
$ac_ext <<_ACEOF
2903 cat confdefs.h
>>conftest.
$ac_ext
2904 cat >>conftest.
$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2916 rm -f conftest.
$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1
>conftest.err
2922 cat conftest.err
>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try
='test -z "$ac_c_werror_flag"
2926 || test ! -s conftest.err'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try
='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.
$ac_ext >&5
2945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2946 cat >conftest.
$ac_ext <<_ACEOF
2949 cat confdefs.h
>>conftest.
$ac_ext
2950 cat >>conftest.
$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2961 rm -f conftest.
$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963 (eval $ac_compile) 2>conftest.er1
2965 grep -v '^ *+' conftest.er1
>conftest.err
2967 cat conftest.err
>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try
='test -z "$ac_c_werror_flag"
2971 || test ! -s conftest.err'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try
='test -s conftest.$ac_objext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.
$ac_ext >&5
2989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2992 if test -n "$ac_declaration"; then
2993 echo '#ifdef __cplusplus' >>confdefs.h
2994 echo $ac_declaration >>confdefs.h
2995 echo '#endif' >>confdefs.h
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.
$ac_ext >&5
3003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3005 ac_cpp
='$CPP $CPPFLAGS'
3006 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3010 if test "x$CC" != xcc
; then
3011 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3012 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3014 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3015 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3017 set dummy
$CC; ac_cc
=`echo $2 |
3018 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3019 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 cat >conftest.
$ac_ext <<_ACEOF
3025 cat confdefs.h
>>conftest.
$ac_ext
3026 cat >>conftest.
$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3037 # Make sure it works both with $CC and with simple cc.
3038 # We do the test twice because some compilers refuse to overwrite an
3039 # existing .o file with -o, though they will create one.
3040 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3041 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); };
3052 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3053 if test "x$CC" != xcc
; then
3054 # Test first that cc exists at all.
3055 if { ac_try
='cc -c conftest.$ac_ext >&5'
3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3062 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); };
3076 # cc exists but doesn't like -o.
3077 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3082 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3087 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3088 echo "$as_me:$LINENO: result: yes" >&5
3089 echo "${ECHO_T}yes" >&6
3091 echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3094 cat >>confdefs.h
<<\_ACEOF
3095 #define NO_MINUS_C_MINUS_O 1
3100 # expand $ac_aux_dir to an absolute path
3101 am_aux_dir
=`cd $ac_aux_dir && pwd`
3103 # FIXME: we rely on the cache variable name because
3104 # there is no other way.
3106 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3107 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3108 # Losing compiler, so override with the script.
3109 # FIXME: It is wrong to rewrite CC.
3110 # But if we don't then we get into trouble of one sort or another.
3111 # A longer-term fix would be to have automake use am__CC in this case,
3112 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3113 CC
="$am_aux_dir/compile $CC"
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3121 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3122 echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 if test -n "$GNATBIND"; then
3128 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir
=.
3135 for ac_exec_ext
in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 GNATBIND
=$ac_cv_prog_GNATBIND
3147 if test -n "$GNATBIND"; then
3148 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3149 echo "${ECHO_T}$GNATBIND" >&6
3151 echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3156 if test -z "$ac_cv_prog_GNATBIND"; then
3157 ac_ct_GNATBIND
=$GNATBIND
3158 # Extract the first word of "gnatbind", so it can be a program name with args.
3159 set dummy gnatbind
; ac_word
=$2
3160 echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 if test -n "$ac_ct_GNATBIND"; then
3166 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3172 test -z "$as_dir" && as_dir
=.
3173 for ac_exec_ext
in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3185 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3186 if test -n "$ac_ct_GNATBIND"; then
3187 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3188 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3194 GNATBIND
=$ac_ct_GNATBIND
3196 GNATBIND
="$ac_cv_prog_GNATBIND"
3199 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3201 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 if test -n "$GNATMAKE"; then
3208 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
3210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir
=.
3215 for ac_exec_ext
in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 GNATMAKE
=$ac_cv_prog_GNATMAKE
3227 if test -n "$GNATMAKE"; then
3228 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3229 echo "${ECHO_T}$GNATMAKE" >&6
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3236 if test -z "$ac_cv_prog_GNATMAKE"; then
3237 ac_ct_GNATMAKE
=$GNATMAKE
3238 # Extract the first word of "gnatmake", so it can be a program name with args.
3239 set dummy gnatmake
; ac_word
=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 if test -n "$ac_ct_GNATMAKE"; then
3246 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
3248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir
=.
3253 for ac_exec_ext
in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE
="no"
3265 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
3266 if test -n "$ac_ct_GNATMAKE"; then
3267 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3268 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3270 echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3274 GNATMAKE
=$ac_ct_GNATMAKE
3276 GNATMAKE
="$ac_cv_prog_GNATMAKE"
3279 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3280 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3281 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 cat >conftest.adb
<<EOF
3285 procedure conftest is begin null; end conftest;
3287 acx_cv_cc_gcc_supports_ada
=no
3288 # There is a bug in old released versions of GCC which causes the
3289 # driver to exit successfully when the appropriate language module
3290 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3291 # Therefore we must check for the error message as well as an
3292 # unsuccessful exit.
3293 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3294 # given a .adb file, but produce no object file. So we must check
3295 # if an object file was really produced to guard against this.
3296 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3297 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
3298 acx_cv_cc_gcc_supports_ada
=yes
3302 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3303 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3305 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
3312 # autoconf is lame and doesn't give us any substitution variable for this.
3313 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3314 NO_MINUS_C_MINUS_O
=yes
3316 OUTPUT_OPTION
='-o $@'
3321 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3322 # optimizations to be activated explicitly by the toplevel.
3324 */prev-gcc
/xgcc
*) ;;
3325 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3329 # -------------------------
3330 # Check C compiler features
3331 # -------------------------
3335 ac_cpp
='$CPP $CPPFLAGS'
3336 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3339 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3340 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3341 # On Suns, sometimes $CPP names a directory.
3342 if test -n "$CPP" && test -d "$CPP"; then
3345 if test -z "$CPP"; then
3346 if test "${ac_cv_prog_CPP+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 # Double quotes because CPP needs to be expanded
3350 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3353 for ac_c_preproc_warn_flag
in '' yes
3355 # Use a header file that comes with gcc, so configuring glibc
3356 # with a fresh cross-compiler works.
3357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358 # <limits.h> exists even on freestanding compilers.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp. "Syntax error" is here to catch this case.
3361 cat >conftest.
$ac_ext <<_ACEOF
3364 cat confdefs.h
>>conftest.
$ac_ext
3365 cat >>conftest.
$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3368 # include <limits.h>
3370 # include <assert.h>
3374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3377 grep -v '^ *+' conftest.er1
>conftest.err
3379 cat conftest.err
>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev
/null
; then
3382 if test -s conftest.err
; then
3383 ac_cpp_err
=$ac_c_preproc_warn_flag
3384 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3391 if test -z "$ac_cpp_err"; then
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.
$ac_ext >&5
3397 # Broken: fails on valid input.
3400 rm -f conftest.err conftest.
$ac_ext
3402 # OK, works on sane cases. Now check whether non-existent headers
3403 # can be detected and how.
3404 cat >conftest.
$ac_ext <<_ACEOF
3407 cat confdefs.h
>>conftest.
$ac_ext
3408 cat >>conftest.
$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 #include <ac_nonexistent.h>
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3415 grep -v '^ *+' conftest.er1
>conftest.err
3417 cat conftest.err
>&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev
/null
; then
3420 if test -s conftest.err
; then
3421 ac_cpp_err
=$ac_c_preproc_warn_flag
3422 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3429 if test -z "$ac_cpp_err"; then
3430 # Broken: success on invalid input.
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.
$ac_ext >&5
3436 # Passes both tests.
3440 rm -f conftest.err conftest.
$ac_ext
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.
$ac_ext
3445 if $ac_preproc_ok; then
3457 echo "$as_me:$LINENO: result: $CPP" >&5
3458 echo "${ECHO_T}$CPP" >&6
3460 for ac_c_preproc_warn_flag
in '' yes
3462 # Use a header file that comes with gcc, so configuring glibc
3463 # with a fresh cross-compiler works.
3464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465 # <limits.h> exists even on freestanding compilers.
3466 # On the NeXT, cc -E runs the code through the compiler's parser,
3467 # not just through cpp. "Syntax error" is here to catch this case.
3468 cat >conftest.
$ac_ext <<_ACEOF
3471 cat confdefs.h
>>conftest.
$ac_ext
3472 cat >>conftest.
$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3475 # include <limits.h>
3477 # include <assert.h>
3481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3482 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3484 grep -v '^ *+' conftest.er1
>conftest.err
3486 cat conftest.err
>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev
/null
; then
3489 if test -s conftest.err
; then
3490 ac_cpp_err
=$ac_c_preproc_warn_flag
3491 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3498 if test -z "$ac_cpp_err"; then
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.
$ac_ext >&5
3504 # Broken: fails on valid input.
3507 rm -f conftest.err conftest.
$ac_ext
3509 # OK, works on sane cases. Now check whether non-existent headers
3510 # can be detected and how.
3511 cat >conftest.
$ac_ext <<_ACEOF
3514 cat confdefs.h
>>conftest.
$ac_ext
3515 cat >>conftest.
$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3520 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3522 grep -v '^ *+' conftest.er1
>conftest.err
3524 cat conftest.err
>&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev
/null
; then
3527 if test -s conftest.err
; then
3528 ac_cpp_err
=$ac_c_preproc_warn_flag
3529 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3536 if test -z "$ac_cpp_err"; then
3537 # Broken: success on invalid input.
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.
$ac_ext >&5
3543 # Passes both tests.
3547 rm -f conftest.err conftest.
$ac_ext
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.err conftest.
$ac_ext
3552 if $ac_preproc_ok; then
3555 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3556 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3558 See \`config.log' for more details." >&5
3559 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&2;}
3561 { (exit 1); exit 1; }; }; }
3565 ac_cpp
='$CPP $CPPFLAGS'
3566 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3571 echo "$as_me:$LINENO: checking for egrep" >&5
3572 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3573 if test "${ac_cv_prog_egrep+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3577 then ac_cv_prog_egrep
='grep -E'
3578 else ac_cv_prog_egrep
='egrep'
3581 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3582 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3583 EGREP
=$ac_cv_prog_egrep
3586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3588 if test "${ac_cv_header_stdc+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 cat >conftest.
$ac_ext <<_ACEOF
3594 cat confdefs.h
>>conftest.
$ac_ext
3595 cat >>conftest.
$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3610 rm -f conftest.
$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>conftest.er1
3614 grep -v '^ *+' conftest.er1
>conftest.err
3616 cat conftest.err
>&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try
='test -z "$ac_c_werror_flag"
3620 || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try
='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_cv_header_stdc
=yes
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.
$ac_ext >&5
3637 ac_cv_header_stdc
=no
3639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3641 if test $ac_cv_header_stdc = yes; then
3642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653 $EGREP "memchr" >/dev
/null
2>&1; then
3656 ac_cv_header_stdc
=no
3662 if test $ac_cv_header_stdc = yes; then
3663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3664 cat >conftest.
$ac_ext <<_ACEOF
3667 cat confdefs.h
>>conftest.
$ac_ext
3668 cat >>conftest.
$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 $EGREP "free" >/dev
/null
2>&1; then
3677 ac_cv_header_stdc
=no
3683 if test $ac_cv_header_stdc = yes; then
3684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3685 if test "$cross_compiling" = yes; then
3688 cat >conftest.
$ac_ext <<_ACEOF
3691 cat confdefs.h
>>conftest.
$ac_ext
3692 cat >>conftest.
$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3695 #if ((' ' & 0x0FF) == 0x020)
3696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3699 # define ISLOWER(c) \
3700 (('a' <= (c) && (c) <= 'i') \
3701 || ('j' <= (c) && (c) <= 'r') \
3702 || ('s' <= (c) && (c) <= 'z'))
3703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3711 for (i = 0; i < 256; i++)
3712 if (XOR (islower (i), ISLOWER (i))
3713 || toupper (i) != TOUPPER (i))
3718 rm -f conftest
$ac_exeext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3720 (eval $ac_link) 2>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3731 echo "$as_me: program exited with status $ac_status" >&5
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3736 ac_cv_header_stdc
=no
3738 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3742 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3743 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3744 if test $ac_cv_header_stdc = yes; then
3746 cat >>confdefs.h
<<\_ACEOF
3747 #define STDC_HEADERS 1
3752 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3762 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3763 inttypes.h stdint.h unistd.h
3765 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3766 echo "$as_me:$LINENO: checking for $ac_header" >&5
3767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 cat >conftest.
$ac_ext <<_ACEOF
3774 cat confdefs.h
>>conftest.
$ac_ext
3775 cat >>conftest.
$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3777 $ac_includes_default
3779 #include <$ac_header>
3781 rm -f conftest.
$ac_objext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3783 (eval $ac_compile) 2>conftest.er1
3785 grep -v '^ *+' conftest.er1
>conftest.err
3787 cat conftest.err
>&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } &&
3790 { ac_try
='test -z "$ac_c_werror_flag"
3791 || test ! -s conftest.err'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; } &&
3797 { ac_try
='test -s conftest.$ac_objext'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 eval "$as_ac_Header=yes"
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.
$ac_ext >&5
3808 eval "$as_ac_Header=no"
3810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3815 cat >>confdefs.h
<<_ACEOF
3816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3825 if test "${ac_cv_header_minix_config_h+set}" = set; then
3826 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3827 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3828 if test "${ac_cv_header_minix_config_h+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3832 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3834 # Is the header compilable?
3835 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3836 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3837 cat >conftest.
$ac_ext <<_ACEOF
3840 cat confdefs.h
>>conftest.
$ac_ext
3841 cat >>conftest.
$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 $ac_includes_default
3844 #include <minix/config.h>
3846 rm -f conftest.
$ac_objext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848 (eval $ac_compile) 2>conftest.er1
3850 grep -v '^ *+' conftest.er1
>conftest.err
3852 cat conftest.err
>&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try
='test -z "$ac_c_werror_flag"
3856 || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try
='test -s conftest.$ac_objext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 ac_header_compiler
=yes
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.
$ac_ext >&5
3873 ac_header_compiler
=no
3875 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3877 echo "${ECHO_T}$ac_header_compiler" >&6
3879 # Is the header present?
3880 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3881 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3882 cat >conftest.
$ac_ext <<_ACEOF
3885 cat confdefs.h
>>conftest.
$ac_ext
3886 cat >>conftest.
$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 #include <minix/config.h>
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3893 grep -v '^ *+' conftest.er1
>conftest.err
3895 cat conftest.err
>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev
/null
; then
3898 if test -s conftest.err
; then
3899 ac_cpp_err
=$ac_c_preproc_warn_flag
3900 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3907 if test -z "$ac_cpp_err"; then
3908 ac_header_preproc
=yes
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.
$ac_ext >&5
3913 ac_header_preproc
=no
3915 rm -f conftest.err conftest.
$ac_ext
3916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3917 echo "${ECHO_T}$ac_header_preproc" >&6
3919 # So? What about this header?
3920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3922 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3923 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3925 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3926 ac_header_preproc
=yes
3929 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3930 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3931 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3932 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3933 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3934 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3936 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3938 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3940 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3943 ## ------------------------------------------ ##
3944 ## Report this to the AC_PACKAGE_NAME lists. ##
3945 ## ------------------------------------------ ##
3948 sed "s/^/$as_me: WARNING: /" >&2
3951 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3952 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3953 if test "${ac_cv_header_minix_config_h+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 ac_cv_header_minix_config_h
=$ac_header_preproc
3958 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3959 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3962 if test $ac_cv_header_minix_config_h = yes; then
3969 if test "$MINIX" = yes; then
3971 cat >>confdefs.h
<<\_ACEOF
3972 #define _POSIX_SOURCE 1
3976 cat >>confdefs.h
<<\_ACEOF
3977 #define _POSIX_1_SOURCE 2
3981 cat >>confdefs.h
<<\_ACEOF
3989 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3990 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3991 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 cat >conftest.
$ac_ext <<_ACEOF
3997 cat confdefs.h
>>conftest.
$ac_ext
3998 cat >>conftest.
$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4001 # define __EXTENSIONS__ 1
4002 $ac_includes_default
4011 rm -f conftest.
$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4015 grep -v '^ *+' conftest.er1
>conftest.err
4017 cat conftest.err
>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try
='test -z "$ac_c_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try
='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 ac_cv_safe_to_define___extensions__
=yes
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.
$ac_ext >&5
4038 ac_cv_safe_to_define___extensions__
=no
4040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4042 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4043 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4044 test $ac_cv_safe_to_define___extensions__ = yes &&
4045 cat >>confdefs.h
<<\_ACEOF
4046 #define __EXTENSIONS__ 1
4049 cat >>confdefs.h
<<\_ACEOF
4050 #define _ALL_SOURCE 1
4053 cat >>confdefs.h
<<\_ACEOF
4054 #define _GNU_SOURCE 1
4057 cat >>confdefs.h
<<\_ACEOF
4058 #define _POSIX_PTHREAD_SEMANTICS 1
4061 cat >>confdefs.h
<<\_ACEOF
4062 #define _TANDEM_SOURCE 1
4067 ac_cpp
='$CPP $CPPFLAGS'
4068 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4071 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4073 # On Suns, sometimes $CPP names a directory.
4074 if test -n "$CPP" && test -d "$CPP"; then
4077 if test -z "$CPP"; then
4078 if test "${ac_cv_prog_CPP+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 # Double quotes because CPP needs to be expanded
4082 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4085 for ac_c_preproc_warn_flag
in '' yes
4087 # Use a header file that comes with gcc, so configuring glibc
4088 # with a fresh cross-compiler works.
4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090 # <limits.h> exists even on freestanding compilers.
4091 # On the NeXT, cc -E runs the code through the compiler's parser,
4092 # not just through cpp. "Syntax error" is here to catch this case.
4093 cat >conftest.
$ac_ext <<_ACEOF
4096 cat confdefs.h
>>conftest.
$ac_ext
4097 cat >>conftest.
$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4100 # include <limits.h>
4102 # include <assert.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
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.
$ac_ext >&5
4129 # Broken: fails on valid input.
4132 rm -f conftest.err conftest.
$ac_ext
4134 # OK, works on sane cases. Now check whether non-existent headers
4135 # can be detected and how.
4136 cat >conftest.
$ac_ext <<_ACEOF
4139 cat confdefs.h
>>conftest.
$ac_ext
4140 cat >>conftest.
$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <ac_nonexistent.h>
4144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4145 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4147 grep -v '^ *+' conftest.er1
>conftest.err
4149 cat conftest.err
>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } >/dev
/null
; then
4152 if test -s conftest.err
; then
4153 ac_cpp_err
=$ac_c_preproc_warn_flag
4154 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4161 if test -z "$ac_cpp_err"; then
4162 # Broken: success on invalid input.
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.
$ac_ext >&5
4168 # Passes both tests.
4172 rm -f conftest.err conftest.
$ac_ext
4175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4176 rm -f conftest.err conftest.
$ac_ext
4177 if $ac_preproc_ok; then
4189 echo "$as_me:$LINENO: result: $CPP" >&5
4190 echo "${ECHO_T}$CPP" >&6
4192 for ac_c_preproc_warn_flag
in '' yes
4194 # Use a header file that comes with gcc, so configuring glibc
4195 # with a fresh cross-compiler works.
4196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197 # <limits.h> exists even on freestanding compilers.
4198 # On the NeXT, cc -E runs the code through the compiler's parser,
4199 # not just through cpp. "Syntax error" is here to catch this case.
4200 cat >conftest.
$ac_ext <<_ACEOF
4203 cat confdefs.h
>>conftest.
$ac_ext
4204 cat >>conftest.
$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4207 # include <limits.h>
4209 # include <assert.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
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.
$ac_ext >&5
4236 # Broken: fails on valid input.
4239 rm -f conftest.err conftest.
$ac_ext
4241 # OK, works on sane cases. Now check whether non-existent headers
4242 # can be detected and how.
4243 cat >conftest.
$ac_ext <<_ACEOF
4246 cat confdefs.h
>>conftest.
$ac_ext
4247 cat >>conftest.
$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 #include <ac_nonexistent.h>
4251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4252 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4254 grep -v '^ *+' conftest.er1
>conftest.err
4256 cat conftest.err
>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } >/dev
/null
; then
4259 if test -s conftest.err
; then
4260 ac_cpp_err
=$ac_c_preproc_warn_flag
4261 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4268 if test -z "$ac_cpp_err"; then
4269 # Broken: success on invalid input.
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.
$ac_ext >&5
4275 # Passes both tests.
4279 rm -f conftest.err conftest.
$ac_ext
4282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283 rm -f conftest.err conftest.
$ac_ext
4284 if $ac_preproc_ok; then
4287 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4288 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4290 See \`config.log' for more details." >&5
4291 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log' for more details." >&2;}
4293 { (exit 1); exit 1; }; }; }
4297 ac_cpp
='$CPP $CPPFLAGS'
4298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4302 echo "$as_me:$LINENO: checking for inline" >&5
4303 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4304 if test "${ac_cv_c_inline+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 for ac_kw
in inline __inline__ __inline
; do
4309 cat >conftest.
$ac_ext <<_ACEOF
4312 cat confdefs.h
>>conftest.
$ac_ext
4313 cat >>conftest.
$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4317 static $ac_kw foo_t static_foo () {return 0; }
4318 $ac_kw foo_t foo () {return 0; }
4322 rm -f conftest.
$ac_objext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>conftest.er1
4326 grep -v '^ *+' conftest.er1
>conftest.err
4328 cat conftest.err
>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try
='test -z "$ac_c_werror_flag"
4332 || test ! -s conftest.err'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; } &&
4338 { ac_try
='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_c_inline
=$ac_kw; break
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.
$ac_ext >&5
4350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4354 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4355 echo "${ECHO_T}$ac_cv_c_inline" >&6
4358 case $ac_cv_c_inline in
4361 case $ac_cv_c_inline in
4363 *) ac_val
=$ac_cv_c_inline;;
4365 cat >>confdefs.h
<<_ACEOF
4367 #define inline $ac_val
4374 # sizeof(char) is 1 by definition.
4375 echo "$as_me:$LINENO: checking for void *" >&5
4376 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4377 if test "${ac_cv_type_void_p+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 cat >conftest.
$ac_ext <<_ACEOF
4383 cat confdefs.h
>>conftest.
$ac_ext
4384 cat >>conftest.
$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 $ac_includes_default
4392 if (sizeof (void *))
4398 rm -f conftest.
$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>conftest.er1
4402 grep -v '^ *+' conftest.er1
>conftest.err
4404 cat conftest.err
>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try
='test -z "$ac_c_werror_flag"
4408 || test ! -s conftest.err'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; } &&
4414 { ac_try
='test -s conftest.$ac_objext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_type_void_p
=yes
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.
$ac_ext >&5
4425 ac_cv_type_void_p
=no
4427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4429 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4430 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4432 echo "$as_me:$LINENO: checking size of void *" >&5
4433 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4434 if test "${ac_cv_sizeof_void_p+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test "$ac_cv_type_void_p" = yes; then
4438 # The cast to unsigned long works around a bug in the HP C Compiler
4439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4441 # This bug is HP SR number 8606223364.
4442 if test "$cross_compiling" = yes; then
4443 # Depending upon the size, compute the lo and hi bounds.
4444 cat >conftest.
$ac_ext <<_ACEOF
4447 cat confdefs.h
>>conftest.
$ac_ext
4448 cat >>conftest.
$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 $ac_includes_default
4454 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4461 rm -f conftest.
$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
4467 cat conftest.err
>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try
='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try
='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4485 cat >conftest.
$ac_ext <<_ACEOF
4488 cat confdefs.h
>>conftest.
$ac_ext
4489 cat >>conftest.
$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 $ac_includes_default
4495 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4502 rm -f conftest.
$ac_objext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>conftest.er1
4506 grep -v '^ *+' conftest.er1
>conftest.err
4508 cat conftest.err
>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try
='test -z "$ac_c_werror_flag"
4512 || test ! -s conftest.err'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; } &&
4518 { ac_try
='test -s conftest.$ac_objext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_hi
=$ac_mid; break
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.
$ac_ext >&5
4529 ac_lo
=`expr $ac_mid + 1`
4530 if test $ac_lo -le $ac_mid; then
4534 ac_mid
=`expr 2 '*' $ac_mid + 1`
4536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.
$ac_ext >&5
4542 cat >conftest.
$ac_ext <<_ACEOF
4545 cat confdefs.h
>>conftest.
$ac_ext
4546 cat >>conftest.
$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 $ac_includes_default
4552 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4559 rm -f conftest.
$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>conftest.er1
4563 grep -v '^ *+' conftest.er1
>conftest.err
4565 cat conftest.err
>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try
='test -z "$ac_c_werror_flag"
4569 || test ! -s conftest.err'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try
='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4583 cat >conftest.
$ac_ext <<_ACEOF
4586 cat confdefs.h
>>conftest.
$ac_ext
4587 cat >>conftest.
$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4593 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4600 rm -f conftest.
$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4604 grep -v '^ *+' conftest.er1
>conftest.err
4606 cat conftest.err
>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try
='test -z "$ac_c_werror_flag"
4610 || test ! -s conftest.err'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try
='test -s conftest.$ac_objext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_lo
=$ac_mid; break
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.
$ac_ext >&5
4627 ac_hi
=`expr '(' $ac_mid ')' - 1`
4628 if test $ac_mid -le $ac_hi; then
4632 ac_mid
=`expr 2 '*' $ac_mid`
4634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.
$ac_ext >&5
4642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4645 # Binary search between lo and hi bounds.
4646 while test "x$ac_lo" != "x$ac_hi"; do
4647 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4648 cat >conftest.
$ac_ext <<_ACEOF
4651 cat confdefs.h
>>conftest.
$ac_ext
4652 cat >>conftest.
$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 $ac_includes_default
4658 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4665 rm -f conftest.
$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>conftest.er1
4669 grep -v '^ *+' conftest.er1
>conftest.err
4671 cat conftest.err
>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try
='test -z "$ac_c_werror_flag"
4675 || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try
='test -s conftest.$ac_objext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.
$ac_ext >&5
4692 ac_lo
=`expr '(' $ac_mid ')' + 1`
4694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4697 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
4698 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4699 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4701 See \`config.log' for more details." >&5
4702 echo "$as_me: error: cannot compute sizeof (void *), 77
4703 See \`config.log' for more details." >&2;}
4704 { (exit 1); exit 1; }; }; } ;;
4707 if test "$cross_compiling" = yes; then
4708 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4709 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4711 See \`config.log' for more details." >&5
4712 echo "$as_me: error: cannot run test program while cross compiling
4713 See \`config.log' for more details." >&2;}
4714 { (exit 1); exit 1; }; }; }
4716 cat >conftest.
$ac_ext <<_ACEOF
4719 cat confdefs.h
>>conftest.
$ac_ext
4720 cat >>conftest.
$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 $ac_includes_default
4723 long longval () { return (long) (sizeof (void *)); }
4724 unsigned long ulongval () { return (long) (sizeof (void *)); }
4731 FILE *f = fopen ("conftest.val", "w");
4734 if (((long) (sizeof (void *))) < 0)
4736 long i = longval ();
4737 if (i != ((long) (sizeof (void *))))
4739 fprintf (f, "%ld\n", i);
4743 unsigned long i = ulongval ();
4744 if (i != ((long) (sizeof (void *))))
4746 fprintf (f, "%lu\n", i);
4748 exit (ferror (f) || fclose (f) != 0);
4754 rm -f conftest
$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756 (eval $ac_link) 2>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 ac_cv_sizeof_void_p
=`cat conftest.val`
4767 echo "$as_me: program exited with status $ac_status" >&5
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.
$ac_ext >&5
4772 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4773 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4775 See \`config.log' for more details." >&5
4776 echo "$as_me: error: cannot compute sizeof (void *), 77
4777 See \`config.log' for more details." >&2;}
4778 { (exit 1); exit 1; }; }; }
4780 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4785 ac_cv_sizeof_void_p
=0
4788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4789 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4790 cat >>confdefs.h
<<_ACEOF
4791 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4795 echo "$as_me:$LINENO: checking for short" >&5
4796 echo $ECHO_N "checking for short... $ECHO_C" >&6
4797 if test "${ac_cv_type_short+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 cat >conftest.
$ac_ext <<_ACEOF
4803 cat confdefs.h
>>conftest.
$ac_ext
4804 cat >>conftest.
$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 $ac_includes_default
4818 rm -f conftest.
$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>conftest.er1
4822 grep -v '^ *+' conftest.er1
>conftest.err
4824 cat conftest.err
>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
4827 { ac_try
='test -z "$ac_c_werror_flag"
4828 || test ! -s conftest.err'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; } &&
4834 { ac_try
='test -s conftest.$ac_objext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 ac_cv_type_short
=yes
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.
$ac_ext >&5
4847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4849 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4850 echo "${ECHO_T}$ac_cv_type_short" >&6
4852 echo "$as_me:$LINENO: checking size of short" >&5
4853 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4854 if test "${ac_cv_sizeof_short+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 if test "$ac_cv_type_short" = yes; then
4858 # The cast to unsigned long works around a bug in the HP C Compiler
4859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4861 # This bug is HP SR number 8606223364.
4862 if test "$cross_compiling" = yes; then
4863 # Depending upon the size, compute the lo and hi bounds.
4864 cat >conftest.
$ac_ext <<_ACEOF
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 $ac_includes_default
4874 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4881 rm -f conftest.
$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1
>conftest.err
4887 cat conftest.err
>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try
='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try
='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4905 cat >conftest.
$ac_ext <<_ACEOF
4908 cat confdefs.h
>>conftest.
$ac_ext
4909 cat >>conftest.
$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 $ac_includes_default
4915 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4922 rm -f conftest.
$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>conftest.er1
4926 grep -v '^ *+' conftest.er1
>conftest.err
4928 cat conftest.err
>&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try
='test -z "$ac_c_werror_flag"
4932 || test ! -s conftest.err'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; } &&
4938 { ac_try
='test -s conftest.$ac_objext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_hi
=$ac_mid; break
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.
$ac_ext >&5
4949 ac_lo
=`expr $ac_mid + 1`
4950 if test $ac_lo -le $ac_mid; then
4954 ac_mid
=`expr 2 '*' $ac_mid + 1`
4956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.
$ac_ext >&5
4962 cat >conftest.
$ac_ext <<_ACEOF
4965 cat confdefs.h
>>conftest.
$ac_ext
4966 cat >>conftest.
$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 $ac_includes_default
4972 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4979 rm -f conftest.
$ac_objext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981 (eval $ac_compile) 2>conftest.er1
4983 grep -v '^ *+' conftest.er1
>conftest.err
4985 cat conftest.err
>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try
='test -z "$ac_c_werror_flag"
4989 || test ! -s conftest.err'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; } &&
4995 { ac_try
='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5003 cat >conftest.
$ac_ext <<_ACEOF
5006 cat confdefs.h
>>conftest.
$ac_ext
5007 cat >>conftest.
$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 $ac_includes_default
5013 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5020 rm -f conftest.
$ac_objext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022 (eval $ac_compile) 2>conftest.er1
5024 grep -v '^ *+' conftest.er1
>conftest.err
5026 cat conftest.err
>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try
='test -z "$ac_c_werror_flag"
5030 || test ! -s conftest.err'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try
='test -s conftest.$ac_objext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_lo
=$ac_mid; break
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.
$ac_ext >&5
5047 ac_hi
=`expr '(' $ac_mid ')' - 1`
5048 if test $ac_mid -le $ac_hi; then
5052 ac_mid
=`expr 2 '*' $ac_mid`
5054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.
$ac_ext >&5
5062 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5065 # Binary search between lo and hi bounds.
5066 while test "x$ac_lo" != "x$ac_hi"; do
5067 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5068 cat >conftest.
$ac_ext <<_ACEOF
5071 cat confdefs.h
>>conftest.
$ac_ext
5072 cat >>conftest.
$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 $ac_includes_default
5078 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5085 rm -f conftest.
$ac_objext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087 (eval $ac_compile) 2>conftest.er1
5089 grep -v '^ *+' conftest.er1
>conftest.err
5091 cat conftest.err
>&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try
='test -z "$ac_c_werror_flag"
5095 || test ! -s conftest.err'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try
='test -s conftest.$ac_objext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.
$ac_ext >&5
5112 ac_lo
=`expr '(' $ac_mid ')' + 1`
5114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5117 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5118 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5119 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: cannot compute sizeof (short), 77
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }; } ;;
5127 if test "$cross_compiling" = yes; then
5128 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5129 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5130 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5131 See \`config.log' for more details." >&5
5132 echo "$as_me: error: cannot run test program while cross compiling
5133 See \`config.log' for more details." >&2;}
5134 { (exit 1); exit 1; }; }; }
5136 cat >conftest.
$ac_ext <<_ACEOF
5139 cat confdefs.h
>>conftest.
$ac_ext
5140 cat >>conftest.
$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 $ac_includes_default
5143 long longval () { return (long) (sizeof (short)); }
5144 unsigned long ulongval () { return (long) (sizeof (short)); }
5151 FILE *f = fopen ("conftest.val", "w");
5154 if (((long) (sizeof (short))) < 0)
5156 long i = longval ();
5157 if (i != ((long) (sizeof (short))))
5159 fprintf (f, "%ld\n", i);
5163 unsigned long i = ulongval ();
5164 if (i != ((long) (sizeof (short))))
5166 fprintf (f, "%lu\n", i);
5168 exit (ferror (f) || fclose (f) != 0);
5174 rm -f conftest
$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 ac_cv_sizeof_short
=`cat conftest.val`
5187 echo "$as_me: program exited with status $ac_status" >&5
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.
$ac_ext >&5
5192 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5193 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5194 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5195 See \`config.log' for more details." >&5
5196 echo "$as_me: error: cannot compute sizeof (short), 77
5197 See \`config.log' for more details." >&2;}
5198 { (exit 1); exit 1; }; }; }
5200 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5205 ac_cv_sizeof_short
=0
5208 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5209 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5210 cat >>confdefs.h
<<_ACEOF
5211 #define SIZEOF_SHORT $ac_cv_sizeof_short
5215 echo "$as_me:$LINENO: checking for int" >&5
5216 echo $ECHO_N "checking for int... $ECHO_C" >&6
5217 if test "${ac_cv_type_int+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 cat >conftest.
$ac_ext <<_ACEOF
5223 cat confdefs.h
>>conftest.
$ac_ext
5224 cat >>conftest.
$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 $ac_includes_default
5238 rm -f conftest.
$ac_objext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>conftest.er1
5242 grep -v '^ *+' conftest.er1
>conftest.err
5244 cat conftest.err
>&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } &&
5247 { ac_try
='test -z "$ac_c_werror_flag"
5248 || test ! -s conftest.err'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; } &&
5254 { ac_try
='test -s conftest.$ac_objext'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.
$ac_ext >&5
5267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5269 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5270 echo "${ECHO_T}$ac_cv_type_int" >&6
5272 echo "$as_me:$LINENO: checking size of int" >&5
5273 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5274 if test "${ac_cv_sizeof_int+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 if test "$ac_cv_type_int" = yes; then
5278 # The cast to unsigned long works around a bug in the HP C Compiler
5279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5281 # This bug is HP SR number 8606223364.
5282 if test "$cross_compiling" = yes; then
5283 # Depending upon the size, compute the lo and hi bounds.
5284 cat >conftest.
$ac_ext <<_ACEOF
5287 cat confdefs.h
>>conftest.
$ac_ext
5288 cat >>conftest.
$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5290 $ac_includes_default
5294 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5301 rm -f conftest.
$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5305 grep -v '^ *+' conftest.er1
>conftest.err
5307 cat conftest.err
>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try
='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try
='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5325 cat >conftest.
$ac_ext <<_ACEOF
5328 cat confdefs.h
>>conftest.
$ac_ext
5329 cat >>conftest.
$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 $ac_includes_default
5335 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5342 rm -f conftest.
$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>conftest.er1
5346 grep -v '^ *+' conftest.er1
>conftest.err
5348 cat conftest.err
>&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try
='test -z "$ac_c_werror_flag"
5352 || test ! -s conftest.err'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; } &&
5358 { ac_try
='test -s conftest.$ac_objext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5364 ac_hi
=$ac_mid; break
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.
$ac_ext >&5
5369 ac_lo
=`expr $ac_mid + 1`
5370 if test $ac_lo -le $ac_mid; then
5374 ac_mid
=`expr 2 '*' $ac_mid + 1`
5376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.
$ac_ext >&5
5382 cat >conftest.
$ac_ext <<_ACEOF
5385 cat confdefs.h
>>conftest.
$ac_ext
5386 cat >>conftest.
$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5392 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5399 rm -f conftest.
$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>conftest.er1
5403 grep -v '^ *+' conftest.er1
>conftest.err
5405 cat conftest.err
>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try
='test -z "$ac_c_werror_flag"
5409 || test ! -s conftest.err'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; } &&
5415 { ac_try
='test -s conftest.$ac_objext'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5423 cat >conftest.
$ac_ext <<_ACEOF
5426 cat confdefs.h
>>conftest.
$ac_ext
5427 cat >>conftest.
$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 $ac_includes_default
5433 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5440 rm -f conftest.
$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>conftest.er1
5444 grep -v '^ *+' conftest.er1
>conftest.err
5446 cat conftest.err
>&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try
='test -z "$ac_c_werror_flag"
5450 || test ! -s conftest.err'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try
='test -s conftest.$ac_objext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_lo
=$ac_mid; break
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.
$ac_ext >&5
5467 ac_hi
=`expr '(' $ac_mid ')' - 1`
5468 if test $ac_mid -le $ac_hi; then
5472 ac_mid
=`expr 2 '*' $ac_mid`
5474 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.
$ac_ext >&5
5482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5485 # Binary search between lo and hi bounds.
5486 while test "x$ac_lo" != "x$ac_hi"; do
5487 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5488 cat >conftest.
$ac_ext <<_ACEOF
5491 cat confdefs.h
>>conftest.
$ac_ext
5492 cat >>conftest.
$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 $ac_includes_default
5498 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5505 rm -f conftest.
$ac_objext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5507 (eval $ac_compile) 2>conftest.er1
5509 grep -v '^ *+' conftest.er1
>conftest.err
5511 cat conftest.err
>&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } &&
5514 { ac_try
='test -z "$ac_c_werror_flag"
5515 || test ! -s conftest.err'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try
='test -s conftest.$ac_objext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.
$ac_ext >&5
5532 ac_lo
=`expr '(' $ac_mid ')' + 1`
5534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5537 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5538 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5539 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5541 See \`config.log' for more details." >&5
5542 echo "$as_me: error: cannot compute sizeof (int), 77
5543 See \`config.log' for more details." >&2;}
5544 { (exit 1); exit 1; }; }; } ;;
5547 if test "$cross_compiling" = yes; then
5548 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5549 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5551 See \`config.log' for more details." >&5
5552 echo "$as_me: error: cannot run test program while cross compiling
5553 See \`config.log' for more details." >&2;}
5554 { (exit 1); exit 1; }; }; }
5556 cat >conftest.
$ac_ext <<_ACEOF
5559 cat confdefs.h
>>conftest.
$ac_ext
5560 cat >>conftest.
$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 $ac_includes_default
5563 long longval () { return (long) (sizeof (int)); }
5564 unsigned long ulongval () { return (long) (sizeof (int)); }
5571 FILE *f = fopen ("conftest.val", "w");
5574 if (((long) (sizeof (int))) < 0)
5576 long i = longval ();
5577 if (i != ((long) (sizeof (int))))
5579 fprintf (f, "%ld\n", i);
5583 unsigned long i = ulongval ();
5584 if (i != ((long) (sizeof (int))))
5586 fprintf (f, "%lu\n", i);
5588 exit (ferror (f) || fclose (f) != 0);
5594 rm -f conftest
$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_sizeof_int
=`cat conftest.val`
5607 echo "$as_me: program exited with status $ac_status" >&5
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.
$ac_ext >&5
5612 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5613 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5615 See \`config.log' for more details." >&5
5616 echo "$as_me: error: cannot compute sizeof (int), 77
5617 See \`config.log' for more details." >&2;}
5618 { (exit 1); exit 1; }; }; }
5620 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5629 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5630 cat >>confdefs.h
<<_ACEOF
5631 #define SIZEOF_INT $ac_cv_sizeof_int
5635 echo "$as_me:$LINENO: checking for long" >&5
5636 echo $ECHO_N "checking for long... $ECHO_C" >&6
5637 if test "${ac_cv_type_long+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 cat >conftest.
$ac_ext <<_ACEOF
5643 cat confdefs.h
>>conftest.
$ac_ext
5644 cat >>conftest.
$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 $ac_includes_default
5658 rm -f conftest.
$ac_objext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>conftest.er1
5662 grep -v '^ *+' conftest.er1
>conftest.err
5664 cat conftest.err
>&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try
='test -z "$ac_c_werror_flag"
5668 || test ! -s conftest.err'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; } &&
5674 { ac_try
='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.
$ac_ext >&5
5687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5689 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5690 echo "${ECHO_T}$ac_cv_type_long" >&6
5692 echo "$as_me:$LINENO: checking size of long" >&5
5693 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5694 if test "${ac_cv_sizeof_long+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 if test "$ac_cv_type_long" = yes; then
5698 # The cast to unsigned long works around a bug in the HP C Compiler
5699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5701 # This bug is HP SR number 8606223364.
5702 if test "$cross_compiling" = yes; then
5703 # Depending upon the size, compute the lo and hi bounds.
5704 cat >conftest.
$ac_ext <<_ACEOF
5707 cat confdefs.h
>>conftest.
$ac_ext
5708 cat >>conftest.
$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 $ac_includes_default
5714 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5721 rm -f conftest.
$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
5725 grep -v '^ *+' conftest.er1
>conftest.err
5727 cat conftest.err
>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try
='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try
='test -s conftest.$ac_objext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5745 cat >conftest.
$ac_ext <<_ACEOF
5748 cat confdefs.h
>>conftest.
$ac_ext
5749 cat >>conftest.
$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 $ac_includes_default
5755 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5762 rm -f conftest.
$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5766 grep -v '^ *+' conftest.er1
>conftest.err
5768 cat conftest.err
>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try
='test -z "$ac_c_werror_flag"
5772 || test ! -s conftest.err'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try
='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_hi
=$ac_mid; break
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.
$ac_ext >&5
5789 ac_lo
=`expr $ac_mid + 1`
5790 if test $ac_lo -le $ac_mid; then
5794 ac_mid
=`expr 2 '*' $ac_mid + 1`
5796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.
$ac_ext >&5
5802 cat >conftest.
$ac_ext <<_ACEOF
5805 cat confdefs.h
>>conftest.
$ac_ext
5806 cat >>conftest.
$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 $ac_includes_default
5812 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5819 rm -f conftest.
$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>conftest.er1
5823 grep -v '^ *+' conftest.er1
>conftest.err
5825 cat conftest.err
>&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try
='test -z "$ac_c_werror_flag"
5829 || test ! -s conftest.err'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; } &&
5835 { ac_try
='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5843 cat >conftest.
$ac_ext <<_ACEOF
5846 cat confdefs.h
>>conftest.
$ac_ext
5847 cat >>conftest.
$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5849 $ac_includes_default
5853 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5860 rm -f conftest.
$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5864 grep -v '^ *+' conftest.er1
>conftest.err
5866 cat conftest.err
>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try
='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try
='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_lo
=$ac_mid; break
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5887 ac_hi
=`expr '(' $ac_mid ')' - 1`
5888 if test $ac_mid -le $ac_hi; then
5892 ac_mid
=`expr 2 '*' $ac_mid`
5894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.
$ac_ext >&5
5902 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5905 # Binary search between lo and hi bounds.
5906 while test "x$ac_lo" != "x$ac_hi"; do
5907 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5908 cat >conftest.
$ac_ext <<_ACEOF
5911 cat confdefs.h
>>conftest.
$ac_ext
5912 cat >>conftest.
$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 $ac_includes_default
5918 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5925 rm -f conftest.
$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927 (eval $ac_compile) 2>conftest.er1
5929 grep -v '^ *+' conftest.er1
>conftest.err
5931 cat conftest.err
>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try
='test -z "$ac_c_werror_flag"
5935 || test ! -s conftest.err'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try
='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.
$ac_ext >&5
5952 ac_lo
=`expr '(' $ac_mid ')' + 1`
5954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5957 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5958 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5959 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot compute sizeof (long), 77
5963 See \`config.log' for more details." >&2;}
5964 { (exit 1); exit 1; }; }; } ;;
5967 if test "$cross_compiling" = yes; then
5968 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5969 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5971 See \`config.log' for more details." >&5
5972 echo "$as_me: error: cannot run test program while cross compiling
5973 See \`config.log' for more details." >&2;}
5974 { (exit 1); exit 1; }; }; }
5976 cat >conftest.
$ac_ext <<_ACEOF
5979 cat confdefs.h
>>conftest.
$ac_ext
5980 cat >>conftest.
$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5983 long longval () { return (long) (sizeof (long)); }
5984 unsigned long ulongval () { return (long) (sizeof (long)); }
5991 FILE *f = fopen ("conftest.val", "w");
5994 if (((long) (sizeof (long))) < 0)
5996 long i = longval ();
5997 if (i != ((long) (sizeof (long))))
5999 fprintf (f, "%ld\n", i);
6003 unsigned long i = ulongval ();
6004 if (i != ((long) (sizeof (long))))
6006 fprintf (f, "%lu\n", i);
6008 exit (ferror (f) || fclose (f) != 0);
6014 rm -f conftest
$ac_exeext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6016 (eval $ac_link) 2>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_sizeof_long
=`cat conftest.val`
6027 echo "$as_me: program exited with status $ac_status" >&5
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.
$ac_ext >&5
6032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6033 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6035 See \`config.log' for more details." >&5
6036 echo "$as_me: error: cannot compute sizeof (long), 77
6037 See \`config.log' for more details." >&2;}
6038 { (exit 1); exit 1; }; }; }
6040 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6048 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6049 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6050 cat >>confdefs.h
<<_ACEOF
6051 #define SIZEOF_LONG $ac_cv_sizeof_long
6055 echo "$as_me:$LINENO: checking for long long" >&5
6056 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6057 if test "${ac_cv_type_long_long+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 cat >conftest.
$ac_ext <<_ACEOF
6063 cat confdefs.h
>>conftest.
$ac_ext
6064 cat >>conftest.
$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6070 if ((long long *) 0)
6072 if (sizeof (long long))
6078 rm -f conftest.
$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080 (eval $ac_compile) 2>conftest.er1
6082 grep -v '^ *+' conftest.er1
>conftest.err
6084 cat conftest.err
>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try
='test -z "$ac_c_werror_flag"
6088 || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try
='test -s conftest.$ac_objext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_type_long_long
=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.
$ac_ext >&5
6105 ac_cv_type_long_long
=no
6107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6109 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6110 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6111 if test $ac_cv_type_long_long = yes; then
6113 cat >>confdefs.h
<<_ACEOF
6114 #define HAVE_LONG_LONG 1
6117 echo "$as_me:$LINENO: checking for long long" >&5
6118 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6119 if test "${ac_cv_type_long_long+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
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 if ((long long *) 0)
6134 if (sizeof (long long))
6140 rm -f conftest.
$ac_objext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>conftest.er1
6144 grep -v '^ *+' conftest.er1
>conftest.err
6146 cat conftest.err
>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } &&
6149 { ac_try
='test -z "$ac_c_werror_flag"
6150 || test ! -s conftest.err'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; } &&
6156 { ac_try
='test -s conftest.$ac_objext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_type_long_long
=yes
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6167 ac_cv_type_long_long
=no
6169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6171 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6172 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6174 echo "$as_me:$LINENO: checking size of long long" >&5
6175 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6176 if test "${ac_cv_sizeof_long_long+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 if test "$ac_cv_type_long_long" = yes; then
6180 # The cast to unsigned long works around a bug in the HP C Compiler
6181 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6182 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6183 # This bug is HP SR number 8606223364.
6184 if test "$cross_compiling" = yes; then
6185 # Depending upon the size, compute the lo and hi bounds.
6186 cat >conftest.
$ac_ext <<_ACEOF
6189 cat confdefs.h
>>conftest.
$ac_ext
6190 cat >>conftest.
$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6196 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6203 rm -f conftest.
$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6207 grep -v '^ *+' conftest.er1
>conftest.err
6209 cat conftest.err
>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try
='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try
='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6227 cat >conftest.
$ac_ext <<_ACEOF
6230 cat confdefs.h
>>conftest.
$ac_ext
6231 cat >>conftest.
$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 $ac_includes_default
6237 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6244 rm -f conftest.
$ac_objext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>conftest.er1
6248 grep -v '^ *+' conftest.er1
>conftest.err
6250 cat conftest.err
>&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try
='test -z "$ac_c_werror_flag"
6254 || test ! -s conftest.err'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; } &&
6260 { ac_try
='test -s conftest.$ac_objext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_hi
=$ac_mid; break
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.
$ac_ext >&5
6271 ac_lo
=`expr $ac_mid + 1`
6272 if test $ac_lo -le $ac_mid; then
6276 ac_mid
=`expr 2 '*' $ac_mid + 1`
6278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.
$ac_ext >&5
6284 cat >conftest.
$ac_ext <<_ACEOF
6287 cat confdefs.h
>>conftest.
$ac_ext
6288 cat >>conftest.
$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 $ac_includes_default
6294 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6301 rm -f conftest.
$ac_objext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>conftest.er1
6305 grep -v '^ *+' conftest.er1
>conftest.err
6307 cat conftest.err
>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try
='test -z "$ac_c_werror_flag"
6311 || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try
='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6325 cat >conftest.
$ac_ext <<_ACEOF
6328 cat confdefs.h
>>conftest.
$ac_ext
6329 cat >>conftest.
$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6335 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6342 rm -f conftest.
$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1
>conftest.err
6348 cat conftest.err
>&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try
='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try
='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_lo
=$ac_mid; break
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.
$ac_ext >&5
6369 ac_hi
=`expr '(' $ac_mid ')' - 1`
6370 if test $ac_mid -le $ac_hi; then
6374 ac_mid
=`expr 2 '*' $ac_mid`
6376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.
$ac_ext >&5
6384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6387 # Binary search between lo and hi bounds.
6388 while test "x$ac_lo" != "x$ac_hi"; do
6389 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
6400 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6407 rm -f conftest.
$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>conftest.er1
6411 grep -v '^ *+' conftest.er1
>conftest.err
6413 cat conftest.err
>&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try
='test -z "$ac_c_werror_flag"
6417 || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try
='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.
$ac_ext >&5
6434 ac_lo
=`expr '(' $ac_mid ')' + 1`
6436 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6439 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6440 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6441 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6443 See \`config.log' for more details." >&5
6444 echo "$as_me: error: cannot compute sizeof (long long), 77
6445 See \`config.log' for more details." >&2;}
6446 { (exit 1); exit 1; }; }; } ;;
6449 if test "$cross_compiling" = yes; then
6450 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6451 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6452 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6453 See \`config.log' for more details." >&5
6454 echo "$as_me: error: cannot run test program while cross compiling
6455 See \`config.log' for more details." >&2;}
6456 { (exit 1); exit 1; }; }; }
6458 cat >conftest.
$ac_ext <<_ACEOF
6461 cat confdefs.h
>>conftest.
$ac_ext
6462 cat >>conftest.
$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 $ac_includes_default
6465 long longval () { return (long) (sizeof (long long)); }
6466 unsigned long ulongval () { return (long) (sizeof (long long)); }
6473 FILE *f = fopen ("conftest.val", "w");
6476 if (((long) (sizeof (long long))) < 0)
6478 long i = longval ();
6479 if (i != ((long) (sizeof (long long))))
6481 fprintf (f, "%ld\n", i);
6485 unsigned long i = ulongval ();
6486 if (i != ((long) (sizeof (long long))))
6488 fprintf (f, "%lu\n", i);
6490 exit (ferror (f) || fclose (f) != 0);
6496 rm -f conftest
$ac_exeext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498 (eval $ac_link) 2>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6507 ac_cv_sizeof_long_long
=`cat conftest.val`
6509 echo "$as_me: program exited with status $ac_status" >&5
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.
$ac_ext >&5
6514 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6515 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6517 See \`config.log' for more details." >&5
6518 echo "$as_me: error: cannot compute sizeof (long long), 77
6519 See \`config.log' for more details." >&2;}
6520 { (exit 1); exit 1; }; }; }
6522 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6527 ac_cv_sizeof_long_long
=0
6530 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6531 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6532 cat >>confdefs.h
<<_ACEOF
6533 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6539 echo "$as_me:$LINENO: checking for __int64" >&5
6540 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6541 if test "${ac_cv_type___int64+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 cat >conftest.
$ac_ext <<_ACEOF
6547 cat confdefs.h
>>conftest.
$ac_ext
6548 cat >>conftest.
$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 $ac_includes_default
6556 if (sizeof (__int64))
6562 rm -f conftest.
$ac_objext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564 (eval $ac_compile) 2>conftest.er1
6566 grep -v '^ *+' conftest.er1
>conftest.err
6568 cat conftest.err
>&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try
='test -z "$ac_c_werror_flag"
6572 || test ! -s conftest.err'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; } &&
6578 { ac_try
='test -s conftest.$ac_objext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 ac_cv_type___int64
=yes
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.
$ac_ext >&5
6589 ac_cv_type___int64
=no
6591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6593 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6594 echo "${ECHO_T}$ac_cv_type___int64" >&6
6595 if test $ac_cv_type___int64 = yes; then
6597 cat >>confdefs.h
<<_ACEOF
6598 #define HAVE___INT64 1
6601 echo "$as_me:$LINENO: checking for __int64" >&5
6602 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6603 if test "${ac_cv_type___int64+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 cat >conftest.
$ac_ext <<_ACEOF
6609 cat confdefs.h
>>conftest.
$ac_ext
6610 cat >>conftest.
$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6612 $ac_includes_default
6618 if (sizeof (__int64))
6624 rm -f conftest.
$ac_objext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626 (eval $ac_compile) 2>conftest.er1
6628 grep -v '^ *+' conftest.er1
>conftest.err
6630 cat conftest.err
>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try
='test -z "$ac_c_werror_flag"
6634 || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try
='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_type___int64
=yes
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.
$ac_ext >&5
6651 ac_cv_type___int64
=no
6653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6655 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6656 echo "${ECHO_T}$ac_cv_type___int64" >&6
6658 echo "$as_me:$LINENO: checking size of __int64" >&5
6659 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6660 if test "${ac_cv_sizeof___int64+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 if test "$ac_cv_type___int64" = yes; then
6664 # The cast to unsigned long works around a bug in the HP C Compiler
6665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6667 # This bug is HP SR number 8606223364.
6668 if test "$cross_compiling" = yes; then
6669 # Depending upon the size, compute the lo and hi bounds.
6670 cat >conftest.
$ac_ext <<_ACEOF
6673 cat confdefs.h
>>conftest.
$ac_ext
6674 cat >>conftest.
$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 $ac_includes_default
6680 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6687 rm -f conftest.
$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>conftest.er1
6691 grep -v '^ *+' conftest.er1
>conftest.err
6693 cat conftest.err
>&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try
='test -z "$ac_c_werror_flag"
6697 || test ! -s conftest.err'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; } &&
6703 { ac_try
='test -s conftest.$ac_objext'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6711 cat >conftest.
$ac_ext <<_ACEOF
6714 cat confdefs.h
>>conftest.
$ac_ext
6715 cat >>conftest.
$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 $ac_includes_default
6721 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6728 rm -f conftest.
$ac_objext
6729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730 (eval $ac_compile) 2>conftest.er1
6732 grep -v '^ *+' conftest.er1
>conftest.err
6734 cat conftest.err
>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } &&
6737 { ac_try
='test -z "$ac_c_werror_flag"
6738 || test ! -s conftest.err'
6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); }; } &&
6744 { ac_try
='test -s conftest.$ac_objext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 ac_hi
=$ac_mid; break
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.
$ac_ext >&5
6755 ac_lo
=`expr $ac_mid + 1`
6756 if test $ac_lo -le $ac_mid; then
6760 ac_mid
=`expr 2 '*' $ac_mid + 1`
6762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.
$ac_ext >&5
6768 cat >conftest.
$ac_ext <<_ACEOF
6771 cat confdefs.h
>>conftest.
$ac_ext
6772 cat >>conftest.
$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 $ac_includes_default
6778 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6785 rm -f conftest.
$ac_objext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6787 (eval $ac_compile) 2>conftest.er1
6789 grep -v '^ *+' conftest.er1
>conftest.err
6791 cat conftest.err
>&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } &&
6794 { ac_try
='test -z "$ac_c_werror_flag"
6795 || test ! -s conftest.err'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; } &&
6801 { ac_try
='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6809 cat >conftest.
$ac_ext <<_ACEOF
6812 cat confdefs.h
>>conftest.
$ac_ext
6813 cat >>conftest.
$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 $ac_includes_default
6819 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6826 rm -f conftest.
$ac_objext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>conftest.er1
6830 grep -v '^ *+' conftest.er1
>conftest.err
6832 cat conftest.err
>&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try
='test -z "$ac_c_werror_flag"
6836 || test ! -s conftest.err'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; } &&
6842 { ac_try
='test -s conftest.$ac_objext'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 ac_lo
=$ac_mid; break
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.
$ac_ext >&5
6853 ac_hi
=`expr '(' $ac_mid ')' - 1`
6854 if test $ac_mid -le $ac_hi; then
6858 ac_mid
=`expr 2 '*' $ac_mid`
6860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.
$ac_ext >&5
6868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6871 # Binary search between lo and hi bounds.
6872 while test "x$ac_lo" != "x$ac_hi"; do
6873 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6874 cat >conftest.
$ac_ext <<_ACEOF
6877 cat confdefs.h
>>conftest.
$ac_ext
6878 cat >>conftest.
$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 $ac_includes_default
6884 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6891 rm -f conftest.
$ac_objext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893 (eval $ac_compile) 2>conftest.er1
6895 grep -v '^ *+' conftest.er1
>conftest.err
6897 cat conftest.err
>&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try
='test -z "$ac_c_werror_flag"
6901 || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try
='test -s conftest.$ac_objext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.
$ac_ext >&5
6918 ac_lo
=`expr '(' $ac_mid ')' + 1`
6920 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6923 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6924 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6925 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6927 See \`config.log' for more details." >&5
6928 echo "$as_me: error: cannot compute sizeof (__int64), 77
6929 See \`config.log' for more details." >&2;}
6930 { (exit 1); exit 1; }; }; } ;;
6933 if test "$cross_compiling" = yes; then
6934 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6935 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6936 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6937 See \`config.log' for more details." >&5
6938 echo "$as_me: error: cannot run test program while cross compiling
6939 See \`config.log' for more details." >&2;}
6940 { (exit 1); exit 1; }; }; }
6942 cat >conftest.
$ac_ext <<_ACEOF
6945 cat confdefs.h
>>conftest.
$ac_ext
6946 cat >>conftest.
$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6949 long longval () { return (long) (sizeof (__int64)); }
6950 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6957 FILE *f = fopen ("conftest.val", "w");
6960 if (((long) (sizeof (__int64))) < 0)
6962 long i = longval ();
6963 if (i != ((long) (sizeof (__int64))))
6965 fprintf (f, "%ld\n", i);
6969 unsigned long i = ulongval ();
6970 if (i != ((long) (sizeof (__int64))))
6972 fprintf (f, "%lu\n", i);
6974 exit (ferror (f) || fclose (f) != 0);
6980 rm -f conftest
$ac_exeext
6981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982 (eval $ac_link) 2>&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_cv_sizeof___int64
=`cat conftest.val`
6993 echo "$as_me: program exited with status $ac_status" >&5
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.
$ac_ext >&5
6998 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6999 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7001 See \`config.log' for more details." >&5
7002 echo "$as_me: error: cannot compute sizeof (__int64), 77
7003 See \`config.log' for more details." >&2;}
7004 { (exit 1); exit 1; }; }; }
7006 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7011 ac_cv_sizeof___int64
=0
7014 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7015 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7016 cat >>confdefs.h
<<_ACEOF
7017 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7024 # ---------------------
7025 # Warnings and checking
7026 # ---------------------
7028 # Check $CC warning features (if it's GCC).
7029 # We want to use -pedantic, but we don't want warnings about
7032 # * overlong strings
7033 # So, we only use -pedantic if we can disable those warnings.
7036 save_CFLAGS
="$CFLAGS"
7037 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
7038 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7040 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7041 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7042 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 cat >conftest.
$ac_ext <<_ACEOF
7049 cat confdefs.h
>>conftest.
$ac_ext
7050 cat >>conftest.
$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7061 rm -f conftest.
$ac_objext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>conftest.er1
7065 grep -v '^ *+' conftest.er1
>conftest.err
7067 cat conftest.err
>&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } &&
7070 { ac_try
='test -z "$ac_c_werror_flag"
7071 || test ! -s conftest.err'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; } &&
7077 { ac_try
='test -s conftest.$ac_objext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 eval "$as_acx_Woption=yes"
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.
$ac_ext >&5
7088 eval "$as_acx_Woption=no"
7090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7093 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7094 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7095 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7096 loose_warn
="$loose_warn${loose_warn:+ }$option"
7100 CFLAGS
="$save_CFLAGS"
7103 save_CFLAGS
="$CFLAGS"
7104 for option
in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
7105 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7107 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7108 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7109 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 cat >conftest.
$ac_ext <<_ACEOF
7116 cat confdefs.h
>>conftest.
$ac_ext
7117 cat >>conftest.
$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7128 rm -f conftest.
$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>conftest.er1
7132 grep -v '^ *+' conftest.er1
>conftest.err
7134 cat conftest.err
>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try
='test -z "$ac_c_werror_flag"
7138 || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try
='test -s conftest.$ac_objext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 eval "$as_acx_Woption=yes"
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.
$ac_ext >&5
7155 eval "$as_acx_Woption=no"
7157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7162 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7163 strict_warn
="$strict_warn${strict_warn:+ }$option"
7167 CFLAGS
="$save_CFLAGS"
7169 if test "$GCC" = yes; then
7170 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7171 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7172 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 save_CFLAGS
="$CFLAGS"
7176 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7177 cat >conftest.
$ac_ext <<_ACEOF
7180 cat confdefs.h
>>conftest.
$ac_ext
7181 cat >>conftest.
$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7192 rm -f conftest.
$ac_objext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7194 (eval $ac_compile) 2>conftest.er1
7196 grep -v '^ *+' conftest.er1
>conftest.err
7198 cat conftest.err
>&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try
='test -z "$ac_c_werror_flag"
7202 || test ! -s conftest.err'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; } &&
7208 { ac_try
='test -s conftest.$ac_objext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.
$ac_ext >&5
7219 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
7221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7222 CFLAGS
="$save_CFLAGS"
7224 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7225 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7226 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7227 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7234 # Check whether --enable-werror-always or --disable-werror-always was given.
7235 if test "${enable_werror_always+set}" = set; then
7236 enableval
="$enable_werror_always"
7239 enable_werror_always
=no
7241 if test $enable_werror_always = yes; then
7242 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7248 # The above macros do nothing if the compiler is not GCC. However, the
7249 # Makefile has more goo to add other flags, so this variabl is used to
7250 # enables warnings only for GCC.
7252 if test "x$GCC" = "xyes"; then
7253 warn_cflags
='$(GCC_WARN_CFLAGS)'
7257 # Enable expensive internal checks
7259 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7263 # Check whether --enable-checking or --disable-checking was given.
7264 if test "${enable_checking+set}" = set; then
7265 enableval
="$enable_checking"
7266 ac_checking_flags
="${enableval}"
7269 # Determine the default checks.
7270 if test x
$is_release = x
; then
7271 ac_checking_flags
=yes
7273 ac_checking_flags
=release
7276 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7277 for check
in release
$ac_checking_flags
7280 # these set all the flags to specific states
7281 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7282 ac_fold_checking
= ; ac_gc_checking
=1 ;
7283 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7284 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7285 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7286 ac_types_checking
=1 ;;
7287 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7288 ac_fold_checking
= ; ac_gc_checking
= ;
7289 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7290 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7291 ac_tree_checking
= ; ac_valgrind_checking
= ;
7292 ac_types_checking
= ;;
7293 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7294 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7295 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7296 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7297 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7298 ac_types_checking
=1 ;;
7299 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7300 ac_fold_checking
= ; ac_gc_checking
= ;
7301 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7302 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7303 ac_tree_checking
= ; ac_valgrind_checking
= ;
7304 ac_types_checking
= ;;
7305 # these enable particular checks
7306 assert
) ac_assert_checking
=1 ;;
7307 df
) ac_df_checking
=1 ;;
7308 fold) ac_fold_checking
=1 ;;
7309 gc
) ac_gc_checking
=1 ;;
7310 gcac
) ac_gc_always_collect
=1 ;;
7311 gimple
) ac_gimple_checking
=1 ;;
7312 misc
) ac_checking
=1 ;;
7313 rtl
) ac_rtl_checking
=1 ;;
7314 rtlflag
) ac_rtlflag_checking
=1 ;;
7315 runtime
) ac_runtime_checking
=1 ;;
7316 tree
) ac_tree_checking
=1 ;;
7317 types
) ac_types_checking
=1 ;;
7318 valgrind
) ac_valgrind_checking
=1 ;;
7319 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7320 echo "$as_me: error: unknown check category $check" >&2;}
7321 { (exit 1); exit 1; }; } ;;
7327 if test x
$ac_checking != x
; then
7329 cat >>confdefs.h
<<\_ACEOF
7330 #define ENABLE_CHECKING 1
7333 nocommon_flag
=-fno-common
7336 if test x
$ac_df_checking != x
; then
7338 cat >>confdefs.h
<<\_ACEOF
7339 #define ENABLE_DF_CHECKING 1
7343 if test x
$ac_assert_checking != x
; then
7345 cat >>confdefs.h
<<\_ACEOF
7346 #define ENABLE_ASSERT_CHECKING 1
7350 if test x
$ac_gimple_checking != x
; then
7352 cat >>confdefs.h
<<\_ACEOF
7353 #define ENABLE_GIMPLE_CHECKING 1
7358 if test x
$ac_runtime_checking != x
; then
7360 cat >>confdefs.h
<<\_ACEOF
7361 #define ENABLE_RUNTIME_CHECKING 1
7365 if test x
$ac_tree_checking != x
; then
7367 cat >>confdefs.h
<<\_ACEOF
7368 #define ENABLE_TREE_CHECKING 1
7371 TREEBROWSER
=tree-browser.o
7373 if test x
$ac_types_checking != x
; then
7375 cat >>confdefs.h
<<\_ACEOF
7376 #define ENABLE_TYPES_CHECKING 1
7381 if test x
$ac_rtl_checking != x
; then
7383 cat >>confdefs.h
<<\_ACEOF
7384 #define ENABLE_RTL_CHECKING 1
7388 if test x
$ac_rtlflag_checking != x
; then
7390 cat >>confdefs.h
<<\_ACEOF
7391 #define ENABLE_RTL_FLAG_CHECKING 1
7395 if test x
$ac_gc_checking != x
; then
7397 cat >>confdefs.h
<<\_ACEOF
7398 #define ENABLE_GC_CHECKING 1
7402 if test x
$ac_gc_always_collect != x
; then
7404 cat >>confdefs.h
<<\_ACEOF
7405 #define ENABLE_GC_ALWAYS_COLLECT 1
7409 if test x
$ac_fold_checking != x
; then
7411 cat >>confdefs.h
<<\_ACEOF
7412 #define ENABLE_FOLD_CHECKING 1
7416 valgrind_path_defines
=
7419 if test "${ac_cv_header_valgrind_h+set}" = set; then
7420 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7421 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7422 if test "${ac_cv_header_valgrind_h+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7426 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7428 # Is the header compilable?
7429 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7430 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7431 cat >conftest.
$ac_ext <<_ACEOF
7434 cat confdefs.h
>>conftest.
$ac_ext
7435 cat >>conftest.
$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 $ac_includes_default
7438 #include <valgrind.h>
7440 rm -f conftest.
$ac_objext
7441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7442 (eval $ac_compile) 2>conftest.er1
7444 grep -v '^ *+' conftest.er1
>conftest.err
7446 cat conftest.err
>&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } &&
7449 { ac_try
='test -z "$ac_c_werror_flag"
7450 || test ! -s conftest.err'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; } &&
7456 { ac_try
='test -s conftest.$ac_objext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_header_compiler
=yes
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.
$ac_ext >&5
7467 ac_header_compiler
=no
7469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7471 echo "${ECHO_T}$ac_header_compiler" >&6
7473 # Is the header present?
7474 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7475 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7476 cat >conftest.
$ac_ext <<_ACEOF
7479 cat confdefs.h
>>conftest.
$ac_ext
7480 cat >>conftest.
$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482 #include <valgrind.h>
7484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7485 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7487 grep -v '^ *+' conftest.er1
>conftest.err
7489 cat conftest.err
>&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } >/dev
/null
; then
7492 if test -s conftest.err
; then
7493 ac_cpp_err
=$ac_c_preproc_warn_flag
7494 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7501 if test -z "$ac_cpp_err"; then
7502 ac_header_preproc
=yes
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.
$ac_ext >&5
7507 ac_header_preproc
=no
7509 rm -f conftest.err conftest.
$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7511 echo "${ECHO_T}$ac_header_preproc" >&6
7513 # So? What about this header?
7514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7516 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7517 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7519 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7520 ac_header_preproc
=yes
7523 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7524 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7525 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7526 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7528 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7530 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7532 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7534 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7537 ## ------------------------------------------ ##
7538 ## Report this to the AC_PACKAGE_NAME lists. ##
7539 ## ------------------------------------------ ##
7542 sed "s/^/$as_me: WARNING: /" >&2
7545 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7546 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7547 if test "${ac_cv_header_valgrind_h+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_cv_header_valgrind_h
=$ac_header_preproc
7552 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7553 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7556 if test $ac_cv_header_valgrind_h = yes; then
7564 if test x
$ac_valgrind_checking != x
; then
7565 # It is certainly possible that there's valgrind but no valgrind.h.
7566 # GCC relies on making annotations so we must have both.
7567 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7568 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7569 cat >conftest.
$ac_ext <<_ACEOF
7572 cat confdefs.h
>>conftest.
$ac_ext
7573 cat >>conftest.
$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 #include <valgrind/memcheck.h>
7576 #ifndef VALGRIND_DISCARD
7577 #error VALGRIND_DISCARD not defined
7580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7581 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7583 grep -v '^ *+' conftest.er1
>conftest.err
7585 cat conftest.err
>&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } >/dev
/null
; then
7588 if test -s conftest.err
; then
7589 ac_cpp_err
=$ac_c_preproc_warn_flag
7590 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7597 if test -z "$ac_cpp_err"; then
7598 gcc_cv_header_valgrind_memcheck_h
=yes
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.
$ac_ext >&5
7603 gcc_cv_header_valgrind_memcheck_h
=no
7605 rm -f conftest.err conftest.
$ac_ext
7606 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7607 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7608 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7609 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7610 cat >conftest.
$ac_ext <<_ACEOF
7613 cat confdefs.h
>>conftest.
$ac_ext
7614 cat >>conftest.
$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include <memcheck.h>
7617 #ifndef VALGRIND_DISCARD
7618 #error VALGRIND_DISCARD not defined
7621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7622 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7624 grep -v '^ *+' conftest.er1
>conftest.err
7626 cat conftest.err
>&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } >/dev
/null
; then
7629 if test -s conftest.err
; then
7630 ac_cpp_err
=$ac_c_preproc_warn_flag
7631 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7638 if test -z "$ac_cpp_err"; then
7639 gcc_cv_header_memcheck_h
=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 gcc_cv_header_memcheck_h
=no
7646 rm -f conftest.err conftest.
$ac_ext
7647 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7648 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7650 # Prepare PATH_SEPARATOR.
7651 # The user is always right.
7652 if test "${PATH_SEPARATOR+set}" != set; then
7653 echo "#! /bin/sh" >conf$$.sh
7654 echo "exit 0" >>conf$$.sh
7656 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7664 # Find out how to test for executable files. Don't use a zero-byte file,
7665 # as systems may use methods other than mode bits to determine executability.
7666 cat >conf$$.
file <<_ASEOF
7670 chmod +x conf$$.
file
7671 if test -x conf$$.
file >/dev
/null
2>&1; then
7672 ac_executable_p
="test -x"
7674 ac_executable_p
="test -f"
7678 # Extract the first word of "valgrind", so it can be a program name with args.
7679 set dummy valgrind
; ac_word
=$2
7680 echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682 if test "${ac_cv_path_valgrind_path+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 case "$valgrind_path" in
7687 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7690 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7691 for ac_dir
in $PATH; do
7693 test -z "$ac_dir" && ac_dir
=.
7694 for ac_exec_ext
in '' $ac_executable_extensions; do
7695 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7696 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7697 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7707 valgrind_path
="$ac_cv_path_valgrind_path"
7708 if test -n "$valgrind_path"; then
7709 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7710 echo "${ECHO_T}$valgrind_path" >&6
7712 echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7716 if test "x$valgrind_path" = "x" \
7717 ||
(test $have_valgrind_h = no \
7718 && test $gcc_cv_header_memcheck_h = no \
7719 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7720 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7721 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7722 { (exit 1); exit 1; }; }
7724 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7725 valgrind_command
="$valgrind_path -q"
7727 cat >>confdefs.h
<<\_ACEOF
7728 #define ENABLE_VALGRIND_CHECKING 1
7731 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7733 cat >>confdefs.h
<<\_ACEOF
7734 #define HAVE_VALGRIND_MEMCHECK_H 1
7738 if test $gcc_cv_header_memcheck_h = yes; then
7740 cat >>confdefs.h
<<\_ACEOF
7741 #define HAVE_MEMCHECK_H 1
7749 # Enable code coverage collection
7750 # Check whether --enable-coverage or --disable-coverage was given.
7751 if test "${enable_coverage+set}" = set; then
7752 enableval
="$enable_coverage"
7753 case "${enableval}" in
7755 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7758 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7761 # a.k.a. --disable-coverage
7765 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7766 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7767 { (exit 1); exit 1; }; }
7775 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7776 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7777 enableval
="$enable_gather_detailed_mem_stats"
7780 enable_gather_detailed_mem_stats
=no
7782 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7784 cat >>confdefs.h
<<\_ACEOF
7785 #define GATHER_STATISTICS 1
7790 # -------------------------------
7791 # Miscenalleous configure options
7792 # -------------------------------
7796 # Check whether --with-stabs or --without-stabs was given.
7797 if test "${with_stabs+set}" = set; then
7798 withval
="$with_stabs"
7804 # Determine whether or not multilibs are enabled.
7805 # Check whether --enable-multilib or --disable-multilib was given.
7806 if test "${enable_multilib+set}" = set; then
7807 enableval
="$enable_multilib"
7814 # Enable __cxa_atexit for C++.
7815 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7816 if test "${enable___cxa_atexit+set}" = set; then
7817 enableval
="$enable___cxa_atexit"
7821 # Enable C extension for decimal float if target supports it.
7822 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7823 if test "${enable_decimal_float+set}" = set; then
7824 enableval
="$enable_decimal_float"
7826 case $enable_decimal_float in
7827 yes | no | bid | dpd
) ;;
7828 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7829 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7830 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7831 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7832 { (exit 1); exit 1; }; } ;;
7838 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7839 enable_decimal_float
=yes
7842 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7843 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7844 enable_decimal_float
=no
7850 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7852 cat >>confdefs.h
<<_ACEOF
7853 #define ENABLE_DECIMAL_FLOAT $dfp
7857 # x86's use BID format instead of DPD
7858 case x
$enable_decimal_float in
7861 i?
86*-*-linux* | x86_64
*-*-linux*)
7862 enable_decimal_float
=bid
7865 enable_decimal_float
=dpd
7870 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7871 # dependency on libdecnumber.
7872 enable_decimal_float
=dpd
7877 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7879 cat >>confdefs.h
<<_ACEOF
7880 #define ENABLE_DECIMAL_BID_FORMAT $bid
7884 # Enable C extension for fixed-point arithmetic.
7885 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7886 if test "${enable_fixed_point+set}" = set; then
7887 enableval
="$enable_fixed_point"
7896 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7897 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7898 enable_fixed_point
=no
7901 enable_fixed_point
=yes
7906 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7907 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7908 enable_fixed_point
=no
7915 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7917 cat >>confdefs.h
<<_ACEOF
7918 #define ENABLE_FIXED_POINT $fixedpoint
7923 # Pass with no value to take the default
7924 # Pass with a value to specify a thread package
7925 # Check whether --enable-threads or --disable-threads was given.
7926 if test "${enable_threads+set}" = set; then
7927 enableval
="$enable_threads"
7933 # Check whether --enable-tls or --disable-tls was given.
7934 if test "${enable_tls+set}" = set; then
7935 enableval
="$enable_tls"
7939 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7940 Valid choices are 'yes' and 'no'." >&5
7941 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7942 Valid choices are 'yes' and 'no'." >&2;}
7943 { (exit 1); exit 1; }; } ;;
7950 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7951 if test "${enable_objc_gc+set}" = set; then
7952 enableval
="$enable_objc_gc"
7953 if test x
$enable_objc_gc = xno
; then
7963 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7964 if test "${with_dwarf2+set}" = set; then
7965 withval
="$with_dwarf2"
7966 dwarf2
="$with_dwarf2"
7971 # Check whether --enable-shared or --disable-shared was given.
7972 if test "${enable_shared+set}" = set; then
7973 enableval
="$enable_shared"
7975 case $enable_shared in
7979 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7980 for pkg
in $enableval; do
7981 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7995 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7996 if test "${with_build_sysroot+set}" = set; then
7997 withval
="$with_build_sysroot"
8002 # Check whether --with-sysroot or --without-sysroot was given.
8003 if test "${with_sysroot+set}" = set; then
8004 withval
="$with_sysroot"
8006 case ${with_sysroot} in
8007 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8008 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
8011 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8012 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8014 if test "x$prefix" = xNONE
; then
8015 test_prefix
=/usr
/local
8019 if test "x$exec_prefix" = xNONE
; then
8020 test_exec_prefix
=$test_prefix
8022 test_exec_prefix
=$exec_prefix
8024 case ${TARGET_SYSTEM_ROOT} in
8025 "${test_prefix}"|
"${test_prefix}/"*|\
8026 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
8027 '${prefix}'|
'${prefix}/'*|\
8028 '${exec_prefix}'|
'${exec_prefix}/'*)
8029 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8030 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8037 TARGET_SYSTEM_ROOT_DEFINE
=
8038 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
8045 # Build with intermodule optimisations
8046 # Check whether --enable-intermodule or --disable-intermodule was given.
8047 if test "${enable_intermodule+set}" = set; then
8048 enableval
="$enable_intermodule"
8049 case ${enable_intermodule} in
8050 yes) onestep
="-onestep";;
8060 # Check whether --with-pkgversion or --without-pkgversion was given.
8061 if test "${with_pkgversion+set}" = set; then
8062 withval
="$with_pkgversion"
8064 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8065 echo "$as_me: error: package version not specified" >&2;}
8066 { (exit 1); exit 1; }; } ;;
8068 *) PKGVERSION
="($withval) " ;;
8078 # Check whether --with-bugurl or --without-bugurl was given.
8079 if test "${with_bugurl+set}" = set; then
8080 withval
="$with_bugurl"
8082 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8083 echo "$as_me: error: bug URL not specified" >&2;}
8084 { (exit 1); exit 1; }; } ;;
8087 *) BUGURL
="$withval"
8091 BUGURL
="http://gcc.gnu.org/bugs.html"
8100 REPORT_BUGS_TO
="<$BUGURL>"
8101 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8108 # Sanity check enable_languages in case someone does not run the toplevel
8109 # configure # script.
8110 # Check whether --enable-languages or --disable-languages was given.
8111 if test "${enable_languages+set}" = set; then
8112 enableval
="$enable_languages"
8113 case ,${enable_languages}, in
8115 # go safe -- we cannot be much sure without the toplevel
8117 # analysis of which target libs are present and usable
8121 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8122 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8123 { (exit 1); exit 1; }; }
8128 enable_languages
=c
,${enable_languages}
8135 # Used by documentation targets
8140 # -------------------------
8141 # Checks for other programs
8142 # -------------------------
8144 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8145 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8146 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 cat >conftest.
make <<\_ACEOF
8152 @
echo 'ac_maketemp="$(MAKE)"'
8154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8156 if test -n "$ac_maketemp"; then
8157 eval ac_cv_prog_make_
${ac_make}_set
=yes
8159 eval ac_cv_prog_make_
${ac_make}_set
=no
8163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8164 echo "$as_me:$LINENO: result: yes" >&5
8165 echo "${ECHO_T}yes" >&6
8168 echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6
8170 SET_MAKE
="MAKE=${MAKE-make}"
8174 # Find some useful tools
8175 for ac_prog
in gawk mawk nawk
awk
8177 # Extract the first word of "$ac_prog", so it can be a program name with args.
8178 set dummy
$ac_prog; ac_word
=$2
8179 echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181 if test "${ac_cv_prog_AWK+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 if test -n "$AWK"; then
8185 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8191 test -z "$as_dir" && as_dir
=.
8192 for ac_exec_ext
in '' $ac_executable_extensions; do
8193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_AWK
="$ac_prog"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 if test -n "$AWK"; then
8205 echo "$as_me:$LINENO: result: $AWK" >&5
8206 echo "${ECHO_T}$AWK" >&6
8208 echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6
8212 test -n "$AWK" && break
8215 # We need awk to create options.c and options.h.
8216 # Bail out if it's missing.
8218 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8219 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8220 { (exit 1); exit 1; }; } ;;
8223 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8224 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8225 if test "${gcc_cv_prog_LN_S+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 rm -f conftestdata_t
8229 echo >conftestdata_f
8230 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8232 gcc_cv_prog_LN_S
="ln -s"
8234 if ln conftestdata_f conftestdata_t
2>/dev
/null
8238 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8240 gcc_cv_prog_LN_S
="cp -p"
8246 rm -f conftestdata_f conftestdata_t
8249 LN_S
="$gcc_cv_prog_LN_S"
8250 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8251 echo "$as_me:$LINENO: result: yes" >&5
8252 echo "${ECHO_T}yes" >&6
8254 if test "$gcc_cv_prog_LN_S" = "ln"; then
8255 echo "$as_me:$LINENO: result: no, using ln" >&5
8256 echo "${ECHO_T}no, using ln" >&6
8258 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8259 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8263 echo "$as_me:$LINENO: checking whether ln works" >&5
8264 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8265 if test "${acx_cv_prog_LN+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 rm -f conftestdata_t
8269 echo >conftestdata_f
8270 if ln conftestdata_f conftestdata_t
2>/dev
/null
8276 rm -f conftestdata_f conftestdata_t
8279 if test $acx_cv_prog_LN = no
; then
8281 echo "$as_me:$LINENO: result: no, using $LN" >&5
8282 echo "${ECHO_T}no, using $LN" >&6
8284 LN
="$acx_cv_prog_LN"
8285 echo "$as_me:$LINENO: result: yes" >&5
8286 echo "${ECHO_T}yes" >&6
8289 if test -n "$ac_tool_prefix"; then
8290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8291 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8292 echo "$as_me:$LINENO: checking for $ac_word" >&5
8293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8294 if test "${ac_cv_prog_RANLIB+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 if test -n "$RANLIB"; then
8298 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8304 test -z "$as_dir" && as_dir
=.
8305 for ac_exec_ext
in '' $ac_executable_extensions; do
8306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 RANLIB
=$ac_cv_prog_RANLIB
8317 if test -n "$RANLIB"; then
8318 echo "$as_me:$LINENO: result: $RANLIB" >&5
8319 echo "${ECHO_T}$RANLIB" >&6
8321 echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6
8326 if test -z "$ac_cv_prog_RANLIB"; then
8327 ac_ct_RANLIB
=$RANLIB
8328 # Extract the first word of "ranlib", so it can be a program name with args.
8329 set dummy ranlib
; ac_word
=$2
8330 echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 if test -n "$ac_ct_RANLIB"; then
8336 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir
=.
8343 for ac_exec_ext
in '' $ac_executable_extensions; do
8344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8355 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8356 if test -n "$ac_ct_RANLIB"; then
8357 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8358 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8360 echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6
8364 RANLIB
=$ac_ct_RANLIB
8366 RANLIB
="$ac_cv_prog_RANLIB"
8371 # By default, the Darwin ranlib will not treat common symbols as
8372 # definitions when building the archive table of contents. Other
8373 # ranlibs do that; pass an option to the Darwin ranlib that makes
8374 # it behave similarly.
8382 # Find a good install program. We prefer a C program (faster),
8383 # so one script is as good as another. But avoid the broken or
8384 # incompatible versions:
8385 # SysV /etc/install, /usr/sbin/install
8386 # SunOS /usr/etc/install
8387 # IRIX /sbin/install
8389 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8390 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8391 # ./install, which can be erroneously created by make from ./install.sh.
8392 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8393 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8394 if test -z "$INSTALL"; then
8395 if test "${ac_cv_path_install+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8399 for ac_dir
in $PATH; do
8400 # Account for people who put trailing slashes in PATH elements.
8402 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8404 # OSF1 and SCO ODT 3.0 have their own names for install.
8405 for ac_prog
in ginstall scoinst
install; do
8406 if test -f $ac_dir/$ac_prog; then
8407 if test $ac_prog = install &&
8408 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8409 # AIX install. It has an incompatible calling convention.
8410 # OSF/1 installbsd also uses dspmsg, but is usable.
8413 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8424 if test "${ac_cv_path_install+set}" = set; then
8425 INSTALL
="$ac_cv_path_install"
8427 # As a last resort, use the slow shell script. We don't cache a
8428 # path for INSTALL within a source directory, because that will
8429 # break other packages using the cache if that directory is
8430 # removed, or if the path is relative.
8431 INSTALL
="$ac_install_sh"
8434 echo "$as_me:$LINENO: result: $INSTALL" >&5
8435 echo "${ECHO_T}$INSTALL" >&6
8437 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8438 # It thinks the first close brace ends the variable substitution.
8439 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8441 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8444 # See if cmp has --ignore-initial.
8445 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8446 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8447 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 gcc_cv_prog_cmp_skip
=slowcompare
8453 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8454 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8457 gcc_cv_prog_cmp_skip
=gnucompare
8460 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8461 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8462 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8465 gcc_cv_prog_cmp_skip
=fastcompare
8472 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8473 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8474 make_compare_target
=$gcc_cv_prog_cmp_skip
8478 # See if we have the mktemp command.
8479 # Extract the first word of "mktemp", so it can be a program name with args.
8480 set dummy mktemp
; ac_word
=$2
8481 echo "$as_me:$LINENO: checking for $ac_word" >&5
8482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8483 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 if test -n "$have_mktemp_command"; then
8487 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8493 test -z "$as_dir" && as_dir
=.
8494 for ac_exec_ext
in '' $ac_executable_extensions; do
8495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8496 ac_cv_prog_have_mktemp_command
="yes"
8497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8506 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8507 if test -n "$have_mktemp_command"; then
8508 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8509 echo "${ECHO_T}$have_mktemp_command" >&6
8511 echo "$as_me:$LINENO: result: no" >&5
8512 echo "${ECHO_T}no" >&6
8516 # See if makeinfo has been installed and is modern enough
8517 # that we can use it.
8519 # Extract the first word of "makeinfo", so it can be a program name with args.
8520 set dummy makeinfo
; ac_word
=$2
8521 echo "$as_me:$LINENO: checking for $ac_word" >&5
8522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8523 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 if test -n "$MAKEINFO"; then
8527 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8533 test -z "$as_dir" && as_dir
=.
8534 for ac_exec_ext
in '' $ac_executable_extensions; do
8535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8536 ac_cv_prog_MAKEINFO
="makeinfo"
8537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 MAKEINFO
=$ac_cv_prog_MAKEINFO
8546 if test -n "$MAKEINFO"; then
8547 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8548 echo "${ECHO_T}$MAKEINFO" >&6
8550 echo "$as_me:$LINENO: result: no" >&5
8551 echo "${ECHO_T}no" >&6
8554 if test -n "$MAKEINFO"; then
8555 # Found it, now check the version.
8556 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8557 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8558 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8562 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8564 case $ac_prog_version in
8565 '') gcc_cv_prog_makeinfo_modern
=no
;;
8566 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8567 *) gcc_cv_prog_makeinfo_modern
=no
;;
8571 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8572 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8574 gcc_cv_prog_makeinfo_modern
=no
8576 if test $gcc_cv_prog_makeinfo_modern = no
; then
8577 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8580 if test $gcc_cv_prog_makeinfo_modern = no
; then
8581 { echo "$as_me:$LINENO: WARNING:
8582 *** Makeinfo is missing or too old.
8583 *** Info documentation will not be built." >&5
8584 echo "$as_me: WARNING:
8585 *** Makeinfo is missing or too old.
8586 *** Info documentation will not be built." >&2;}
8593 # Is pod2man recent enough to regenerate manpages?
8594 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8595 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8596 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8597 echo "$as_me:$LINENO: result: yes" >&5
8598 echo "${ECHO_T}yes" >&6
8599 GENERATED_MANPAGES
=generated-manpages
8601 echo "$as_me:$LINENO: result: no" >&5
8602 echo "${ECHO_T}no" >&6
8607 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8612 # Extract the first word of "$ac_prog", so it can be a program name with args.
8613 set dummy
$ac_prog; ac_word
=$2
8614 echo "$as_me:$LINENO: checking for $ac_word" >&5
8615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8616 if test "${ac_cv_prog_FLEX+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 if test -n "$FLEX"; then
8620 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8626 test -z "$as_dir" && as_dir
=.
8627 for ac_exec_ext
in '' $ac_executable_extensions; do
8628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_FLEX
="$ac_prog"
8630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 FLEX
=$ac_cv_prog_FLEX
8639 if test -n "$FLEX"; then
8640 echo "$as_me:$LINENO: result: $FLEX" >&5
8641 echo "${ECHO_T}$FLEX" >&6
8643 echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6
8647 test -n "$FLEX" && break
8649 test -n "$FLEX" || FLEX
="$MISSING flex"
8653 for ac_prog
in bison
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy
$ac_prog; ac_word
=$2
8657 echo "$as_me:$LINENO: checking for $ac_word" >&5
8658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8659 if test "${ac_cv_prog_BISON+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 if test -n "$BISON"; then
8663 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8669 test -z "$as_dir" && as_dir
=.
8670 for ac_exec_ext
in '' $ac_executable_extensions; do
8671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_prog_BISON
="$ac_prog"
8673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 BISON
=$ac_cv_prog_BISON
8682 if test -n "$BISON"; then
8683 echo "$as_me:$LINENO: result: $BISON" >&5
8684 echo "${ECHO_T}$BISON" >&6
8686 echo "$as_me:$LINENO: result: no" >&5
8687 echo "${ECHO_T}no" >&6
8690 test -n "$BISON" && break
8692 test -n "$BISON" || BISON
="$MISSING bison"
8695 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8696 # check for build == host before using them.
8699 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8700 && test -d ..
/binutils
; then
8701 NM
='$(objdir)/../binutils/nm-new'
8703 # Extract the first word of "nm", so it can be a program name with args.
8704 set dummy nm
; ac_word
=$2
8705 echo "$as_me:$LINENO: checking for $ac_word" >&5
8706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8707 if test "${ac_cv_prog_NM+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 if test -n "$NM"; then
8711 ac_cv_prog_NM
="$NM" # Let the user override the test.
8713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8717 test -z "$as_dir" && as_dir
=.
8718 for ac_exec_ext
in '' $ac_executable_extensions; do
8719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8727 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8731 if test -n "$NM"; then
8732 echo "$as_me:$LINENO: result: $NM" >&5
8733 echo "${ECHO_T}$NM" >&6
8735 echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6
8742 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8743 && test -d ..
/binutils
; then
8744 AR
='$(objdir)/../binutils/ar'
8746 # Extract the first word of "ar", so it can be a program name with args.
8747 set dummy
ar; ac_word
=$2
8748 echo "$as_me:$LINENO: checking for $ac_word" >&5
8749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8750 if test "${ac_cv_prog_AR+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 if test -n "$AR"; then
8754 ac_cv_prog_AR
="$AR" # Let the user override the test.
8756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8760 test -z "$as_dir" && as_dir
=.
8761 for ac_exec_ext
in '' $ac_executable_extensions; do
8762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8774 if test -n "$AR"; then
8775 echo "$as_me:$LINENO: result: $AR" >&5
8776 echo "${ECHO_T}$AR" >&6
8778 echo "$as_me:$LINENO: result: no" >&5
8779 echo "${ECHO_T}no" >&6
8785 # --------------------
8786 # Checks for C headers
8787 # --------------------
8789 # Need to reject headers which give warnings, so that the -Werror bootstrap
8790 # works later. *sigh* This needs to come before all header checks.
8792 ac_c_preproc_warn_flag
=yes
8794 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8796 if test "${ac_cv_header_stdc+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 cat >conftest.
$ac_ext <<_ACEOF
8802 cat confdefs.h
>>conftest.
$ac_ext
8803 cat >>conftest.
$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8818 rm -f conftest.
$ac_objext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820 (eval $ac_compile) 2>conftest.er1
8822 grep -v '^ *+' conftest.er1
>conftest.err
8824 cat conftest.err
>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try
='test -z "$ac_c_werror_flag"
8828 || test ! -s conftest.err'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try
='test -s conftest.$ac_objext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 ac_cv_header_stdc
=yes
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.
$ac_ext >&5
8845 ac_cv_header_stdc
=no
8847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8849 if test $ac_cv_header_stdc = yes; then
8850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8851 cat >conftest.
$ac_ext <<_ACEOF
8854 cat confdefs.h
>>conftest.
$ac_ext
8855 cat >>conftest.
$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8861 $EGREP "memchr" >/dev
/null
2>&1; then
8864 ac_cv_header_stdc
=no
8870 if test $ac_cv_header_stdc = yes; then
8871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8872 cat >conftest.
$ac_ext <<_ACEOF
8875 cat confdefs.h
>>conftest.
$ac_ext
8876 cat >>conftest.
$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8882 $EGREP "free" >/dev
/null
2>&1; then
8885 ac_cv_header_stdc
=no
8891 if test $ac_cv_header_stdc = yes; then
8892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8893 if test "$cross_compiling" = yes; then
8896 cat >conftest.
$ac_ext <<_ACEOF
8899 cat confdefs.h
>>conftest.
$ac_ext
8900 cat >>conftest.
$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8903 #if ((' ' & 0x0FF) == 0x020)
8904 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8905 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8907 # define ISLOWER(c) \
8908 (('a' <= (c) && (c) <= 'i') \
8909 || ('j' <= (c) && (c) <= 'r') \
8910 || ('s' <= (c) && (c) <= 'z'))
8911 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8919 for (i = 0; i < 256; i++)
8920 if (XOR (islower (i), ISLOWER (i))
8921 || toupper (i) != TOUPPER (i))
8926 rm -f conftest
$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928 (eval $ac_link) 2>&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8939 echo "$as_me: program exited with status $ac_status" >&5
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.
$ac_ext >&5
8944 ac_cv_header_stdc
=no
8946 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8951 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8952 if test $ac_cv_header_stdc = yes; then
8954 cat >>confdefs.h
<<\_ACEOF
8955 #define STDC_HEADERS 1
8960 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8961 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8962 if test "${ac_cv_header_time+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 cat >conftest.
$ac_ext <<_ACEOF
8968 cat confdefs.h
>>conftest.
$ac_ext
8969 cat >>conftest.
$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 #include <sys/types.h>
8972 #include <sys/time.h>
8978 if ((struct tm *) 0)
8984 rm -f conftest.
$ac_objext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8986 (eval $ac_compile) 2>conftest.er1
8988 grep -v '^ *+' conftest.er1
>conftest.err
8990 cat conftest.err
>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try
='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try
='test -s conftest.$ac_objext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_header_time
=yes
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.
$ac_ext >&5
9011 ac_cv_header_time
=no
9013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9015 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9016 echo "${ECHO_T}$ac_cv_header_time" >&6
9017 if test $ac_cv_header_time = yes; then
9019 cat >>confdefs.h
<<\_ACEOF
9020 #define TIME_WITH_SYS_TIME 1
9025 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9026 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9027 if test "${gcc_cv_header_string+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 cat >conftest.
$ac_ext <<_ACEOF
9033 cat confdefs.h
>>conftest.
$ac_ext
9034 cat >>conftest.
$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9037 #include <strings.h>
9046 rm -f conftest.
$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>conftest.er1
9050 grep -v '^ *+' conftest.er1
>conftest.err
9052 cat conftest.err
>&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try
='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try
='test -s conftest.$ac_objext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 gcc_cv_header_string
=yes
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.
$ac_ext >&5
9073 gcc_cv_header_string
=no
9075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9077 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9078 echo "${ECHO_T}$gcc_cv_header_string" >&6
9079 if test $gcc_cv_header_string = yes; then
9081 cat >>confdefs.h
<<\_ACEOF
9082 #define STRING_WITH_STRINGS 1
9087 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9088 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9089 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 cat >conftest.
$ac_ext <<_ACEOF
9095 cat confdefs.h
>>conftest.
$ac_ext
9096 cat >>conftest.
$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 #include <sys/types.h>
9099 #include <sys/wait.h>
9101 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9104 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9112 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9117 rm -f conftest.
$ac_objext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9119 (eval $ac_compile) 2>conftest.er1
9121 grep -v '^ *+' conftest.er1
>conftest.err
9123 cat conftest.err
>&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try
='test -z "$ac_c_werror_flag"
9127 || test ! -s conftest.err'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try
='test -s conftest.$ac_objext'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; }; then
9139 ac_cv_header_sys_wait_h
=yes
9141 echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.
$ac_ext >&5
9144 ac_cv_header_sys_wait_h
=no
9146 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9149 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9150 if test $ac_cv_header_sys_wait_h = yes; then
9152 cat >>confdefs.h
<<\_ACEOF
9153 #define HAVE_SYS_WAIT_H 1
9180 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9181 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9182 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
9183 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9185 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186 echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 cat >conftest.
$ac_ext <<_ACEOF
9194 cat confdefs.h
>>conftest.
$ac_ext
9195 cat >>conftest.
$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 #include <$ac_header>
9199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9202 grep -v '^ *+' conftest.er1
>conftest.err
9204 cat conftest.err
>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev
/null
; then
9207 if test -s conftest.err
; then
9208 ac_cpp_err
=$ac_c_preproc_warn_flag
9209 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9216 if test -z "$ac_cpp_err"; then
9217 eval "$as_ac_Header=yes"
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.
$ac_ext >&5
9222 eval "$as_ac_Header=no"
9224 rm -f conftest.err conftest.
$ac_ext
9226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9229 cat >>confdefs.h
<<_ACEOF
9230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9237 # Check for thread headers.
9238 echo "$as_me:$LINENO: checking for thread.h" >&5
9239 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9240 if test "${ac_cv_header_thread_h+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 cat >conftest.
$ac_ext <<_ACEOF
9246 cat confdefs.h
>>conftest.
$ac_ext
9247 cat >>conftest.
$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9252 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9254 grep -v '^ *+' conftest.er1
>conftest.err
9256 cat conftest.err
>&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } >/dev
/null
; then
9259 if test -s conftest.err
; then
9260 ac_cpp_err
=$ac_c_preproc_warn_flag
9261 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9268 if test -z "$ac_cpp_err"; then
9269 ac_cv_header_thread_h
=yes
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.
$ac_ext >&5
9274 ac_cv_header_thread_h
=no
9276 rm -f conftest.err conftest.
$ac_ext
9278 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9279 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9280 if test $ac_cv_header_thread_h = yes; then
9286 echo "$as_me:$LINENO: checking for pthread.h" >&5
9287 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9288 if test "${ac_cv_header_pthread_h+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 cat >conftest.
$ac_ext <<_ACEOF
9294 cat confdefs.h
>>conftest.
$ac_ext
9295 cat >>conftest.
$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 #include <pthread.h>
9299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9300 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9302 grep -v '^ *+' conftest.er1
>conftest.err
9304 cat conftest.err
>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } >/dev
/null
; then
9307 if test -s conftest.err
; then
9308 ac_cpp_err
=$ac_c_preproc_warn_flag
9309 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9316 if test -z "$ac_cpp_err"; then
9317 ac_cv_header_pthread_h
=yes
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.
$ac_ext >&5
9322 ac_cv_header_pthread_h
=no
9324 rm -f conftest.err conftest.
$ac_ext
9326 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9327 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9328 if test $ac_cv_header_pthread_h = yes; then
9335 # These tests can't be done till we know if we have limits.h.
9336 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9337 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9338 if test "${gcc_cv_decl_char_bit+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 cat >conftest.
$ac_ext <<_ACEOF
9344 cat confdefs.h
>>conftest.
$ac_ext
9345 cat >>conftest.
$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 #ifdef HAVE_LIMITS_H
9354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9355 $EGREP "found" >/dev
/null
2>&1; then
9356 gcc_cv_decl_char_bit
=yes
9358 gcc_cv_decl_char_bit
=no
9364 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9365 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9366 if test $gcc_cv_decl_char_bit = no
; then
9367 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9368 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9369 if test "${gcc_cv_c_nbby+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 while test $i -lt 65; do
9375 cat >conftest.
$ac_ext <<_ACEOF
9378 cat confdefs.h
>>conftest.
$ac_ext
9379 cat >>conftest.
$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9386 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9387 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9393 rm -f conftest.
$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>conftest.er1
9397 grep -v '^ *+' conftest.er1
>conftest.err
9399 cat conftest.err
>&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try
='test -z "$ac_c_werror_flag"
9403 || test ! -s conftest.err'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; } &&
9409 { ac_try
='test -s conftest.$ac_objext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 gcc_cv_c_nbby
=$i; break
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.
$ac_ext >&5
9421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9424 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9427 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9428 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9429 if test $gcc_cv_c_nbby = failed
; then
9430 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9431 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9432 { (exit 1); exit 1; }; }
9435 cat >>confdefs.h
<<_ACEOF
9436 #define CHAR_BIT $gcc_cv_c_nbby
9441 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9442 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9443 if test "${ac_cv_c_bigendian+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 # See if sys/param.h defines the BYTE_ORDER macro.
9447 cat >conftest.
$ac_ext <<_ACEOF
9450 cat confdefs.h
>>conftest.
$ac_ext
9451 cat >>conftest.
$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 #include <sys/types.h>
9454 #include <sys/param.h>
9459 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9467 rm -f conftest.
$ac_objext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9469 (eval $ac_compile) 2>conftest.er1
9471 grep -v '^ *+' conftest.er1
>conftest.err
9473 cat conftest.err
>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try
='test -z "$ac_c_werror_flag"
9477 || test ! -s conftest.err'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try
='test -s conftest.$ac_objext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 # It does; now see whether it defined to BIG_ENDIAN or not.
9490 cat >conftest.
$ac_ext <<_ACEOF
9493 cat confdefs.h
>>conftest.
$ac_ext
9494 cat >>conftest.
$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 #include <sys/types.h>
9497 #include <sys/param.h>
9502 #if BYTE_ORDER != BIG_ENDIAN
9510 rm -f conftest.
$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512 (eval $ac_compile) 2>conftest.er1
9514 grep -v '^ *+' conftest.er1
>conftest.err
9516 cat conftest.err
>&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try
='test -z "$ac_c_werror_flag"
9520 || test ! -s conftest.err'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try
='test -s conftest.$ac_objext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_cv_c_bigendian
=yes
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.
$ac_ext >&5
9537 ac_cv_c_bigendian
=no
9539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.
$ac_ext >&5
9544 # It does not; compile a test program.
9545 if test "$cross_compiling" = yes; then
9546 # try to guess the endianness by grepping values into an object file
9547 ac_cv_c_bigendian
=unknown
9548 cat >conftest.
$ac_ext <<_ACEOF
9551 cat confdefs.h
>>conftest.
$ac_ext
9552 cat >>conftest.
$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9555 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9556 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9557 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9558 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9559 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9563 _ascii (); _ebcdic ();
9568 rm -f conftest.
$ac_objext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9570 (eval $ac_compile) 2>conftest.er1
9572 grep -v '^ *+' conftest.er1
>conftest.err
9574 cat conftest.err
>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } &&
9577 { ac_try
='test -z "$ac_c_werror_flag"
9578 || test ! -s conftest.err'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; } &&
9584 { ac_try
='test -s conftest.$ac_objext'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9591 ac_cv_c_bigendian
=yes
9593 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9594 if test "$ac_cv_c_bigendian" = unknown
; then
9595 ac_cv_c_bigendian
=no
9597 # finding both strings is unlikely to happen, but who knows?
9598 ac_cv_c_bigendian
=unknown
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.
$ac_ext >&5
9606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9608 cat >conftest.
$ac_ext <<_ACEOF
9611 cat confdefs.h
>>conftest.
$ac_ext
9612 cat >>conftest.
$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9617 /* Are we little or big endian? From Harbison&Steele. */
9621 char c[sizeof (long)];
9624 exit (u.c[sizeof (long) - 1] == 1);
9627 rm -f conftest
$ac_exeext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629 (eval $ac_link) 2>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_c_bigendian
=no
9640 echo "$as_me: program exited with status $ac_status" >&5
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.
$ac_ext >&5
9645 ac_cv_c_bigendian
=yes
9647 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9653 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9654 case $ac_cv_c_bigendian in
9657 cat >>confdefs.h
<<\_ACEOF
9658 #define WORDS_BIGENDIAN 1
9664 { { echo "$as_me:$LINENO: error: unknown endianness
9665 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9666 echo "$as_me: error: unknown endianness
9667 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9668 { (exit 1); exit 1; }; } ;;
9677 # These libraries may be used by collect2.
9678 # We may need a special search path to get them linked.
9679 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9680 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9681 if test "${gcc_cv_collect2_libs+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 for libs
in '' -lld -lmld \
9686 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9687 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9690 cat >conftest.
$ac_ext <<_ACEOF
9693 cat confdefs.h
>>conftest.
$ac_ext
9694 cat >>conftest.
$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9697 /* Override any gcc2 internal prototype to avoid an error. */
9701 /* We use char because int might match the return type of a gcc2
9702 builtin and then its argument prototype would still apply. */
9712 rm -f conftest.
$ac_objext conftest
$ac_exeext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714 (eval $ac_link) 2>conftest.er1
9716 grep -v '^ *+' conftest.er1
>conftest.err
9718 cat conftest.err
>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try
='test -z "$ac_c_werror_flag"
9722 || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try
='test -s conftest$ac_exeext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 gcc_cv_collect2_libs
="$libs"; break
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.
$ac_ext >&5
9740 rm -f conftest.err conftest.
$ac_objext \
9741 conftest
$ac_exeext conftest.
$ac_ext
9744 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9746 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9747 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9748 case $gcc_cv_collect2_libs in
9750 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9754 # When building Ada code on Alpha, we need exc_resume which is usually in
9755 # -lexc. So test for it.
9758 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9759 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9760 if test "${ac_cv_search_exc_resume+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 ac_func_search_save_LIBS
=$LIBS
9764 ac_cv_search_exc_resume
=no
9765 cat >conftest.
$ac_ext <<_ACEOF
9768 cat confdefs.h
>>conftest.
$ac_ext
9769 cat >>conftest.
$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9772 /* Override any gcc2 internal prototype to avoid an error. */
9776 /* We use char because int might match the return type of a gcc2
9777 builtin and then its argument prototype would still apply. */
9787 rm -f conftest.
$ac_objext conftest
$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1
>conftest.err
9793 cat conftest.err
>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try
='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try
='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_search_exc_resume
="none required"
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.
$ac_ext >&5
9815 rm -f conftest.err conftest.
$ac_objext \
9816 conftest
$ac_exeext conftest.
$ac_ext
9817 if test "$ac_cv_search_exc_resume" = no
; then
9818 for ac_lib
in exc
; do
9819 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9820 cat >conftest.
$ac_ext <<_ACEOF
9823 cat confdefs.h
>>conftest.
$ac_ext
9824 cat >>conftest.
$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9827 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9842 rm -f conftest.
$ac_objext conftest
$ac_exeext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844 (eval $ac_link) 2>conftest.er1
9846 grep -v '^ *+' conftest.er1
>conftest.err
9848 cat conftest.err
>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try
='test -z "$ac_c_werror_flag"
9852 || test ! -s conftest.err'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; } &&
9858 { ac_try
='test -s conftest$ac_exeext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_search_exc_resume
="-l$ac_lib"
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.
$ac_ext >&5
9871 rm -f conftest.err conftest.
$ac_objext \
9872 conftest
$ac_exeext conftest.
$ac_ext
9875 LIBS
=$ac_func_search_save_LIBS
9877 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9878 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9879 if test "$ac_cv_search_exc_resume" != no
; then
9880 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9888 # Some systems put ldexp and frexp in libm instead of libc; assume
9889 # they're both in the same place. jcf-dump needs them.
9892 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9893 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9894 if test "${ac_cv_search_ldexp+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 ac_func_search_save_LIBS
=$LIBS
9898 ac_cv_search_ldexp
=no
9899 cat >conftest.
$ac_ext <<_ACEOF
9902 cat confdefs.h
>>conftest.
$ac_ext
9903 cat >>conftest.
$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9906 /* Override any gcc2 internal prototype to avoid an error. */
9910 /* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9921 rm -f conftest.
$ac_objext conftest
$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>conftest.er1
9925 grep -v '^ *+' conftest.er1
>conftest.err
9927 cat conftest.err
>&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try
='test -z "$ac_c_werror_flag"
9931 || test ! -s conftest.err'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try
='test -s conftest$ac_exeext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_search_ldexp
="none required"
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.
$ac_ext >&5
9949 rm -f conftest.err conftest.
$ac_objext \
9950 conftest
$ac_exeext conftest.
$ac_ext
9951 if test "$ac_cv_search_ldexp" = no
; then
9953 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9954 cat >conftest.
$ac_ext <<_ACEOF
9957 cat confdefs.h
>>conftest.
$ac_ext
9958 cat >>conftest.
$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9961 /* Override any gcc2 internal prototype to avoid an error. */
9965 /* We use char because int might match the return type of a gcc2
9966 builtin and then its argument prototype would still apply. */
9976 rm -f conftest.
$ac_objext conftest
$ac_exeext
9977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978 (eval $ac_link) 2>conftest.er1
9980 grep -v '^ *+' conftest.er1
>conftest.err
9982 cat conftest.err
>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try
='test -z "$ac_c_werror_flag"
9986 || test ! -s conftest.err'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try
='test -s conftest$ac_exeext'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_search_ldexp
="-l$ac_lib"
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.
$ac_ext >&5
10005 rm -f conftest.err conftest.
$ac_objext \
10006 conftest
$ac_exeext conftest.
$ac_ext
10009 LIBS
=$ac_func_search_save_LIBS
10011 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10012 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10013 if test "$ac_cv_search_ldexp" != no
; then
10014 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
10022 # Use <inttypes.h> only if it exists,
10023 # doesn't clash with <sys/types.h>, and declares intmax_t.
10024 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10025 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10026 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 cat >conftest.
$ac_ext <<_ACEOF
10032 cat confdefs.h
>>conftest.
$ac_ext
10033 cat >>conftest.
$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 #include <sys/types.h>
10036 #include <inttypes.h>
10045 rm -f conftest.
$ac_objext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>conftest.er1
10049 grep -v '^ *+' conftest.er1
>conftest.err
10051 cat conftest.err
>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try
='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try
='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 gcc_cv_header_inttypes_h
=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.
$ac_ext >&5
10072 gcc_cv_header_inttypes_h
=no
10074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10077 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10078 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10079 if test $gcc_cv_header_inttypes_h = yes; then
10081 cat >>confdefs.h
<<\_ACEOF
10082 #define HAVE_INTTYPES_H 1
10122 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
10123 sysconf strsignal getrusage nl_langinfo \
10124 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10125 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
10127 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10128 echo "$as_me:$LINENO: checking for $ac_func" >&5
10129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10130 if eval "test \"\${$as_ac_var+set}\" = set"; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 cat >conftest.
$ac_ext <<_ACEOF
10136 cat confdefs.h
>>conftest.
$ac_ext
10137 cat >>conftest.
$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10141 #define $ac_func innocuous_$ac_func
10143 /* System header to define __stub macros and hopefully few prototypes,
10144 which can conflict with char $ac_func (); below.
10145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10146 <limits.h> exists even on freestanding compilers. */
10149 # include <limits.h>
10151 # include <assert.h>
10156 /* Override any gcc2 internal prototype to avoid an error. */
10161 /* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10164 /* The GNU C library defines this for functions which it implements
10165 to always fail with ENOSYS. Some functions are actually named
10166 something starting with __ and the normal name is an alias. */
10167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10170 char (*f) () = $ac_func;
10179 return f != $ac_func;
10184 rm -f conftest.
$ac_objext conftest
$ac_exeext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186 (eval $ac_link) 2>conftest.er1
10188 grep -v '^ *+' conftest.er1
>conftest.err
10190 cat conftest.err
>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try
='test -z "$ac_c_werror_flag"
10194 || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; } &&
10200 { ac_try
='test -s conftest$ac_exeext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 eval "$as_ac_var=yes"
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.
$ac_ext >&5
10211 eval "$as_ac_var=no"
10213 rm -f conftest.err conftest.
$ac_objext \
10214 conftest
$ac_exeext conftest.
$ac_ext
10216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10218 if test `eval echo '${'$as_ac_var'}'` = yes; then
10219 cat >>confdefs.h
<<_ACEOF
10220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10227 if test x
$ac_cv_func_mbstowcs = xyes
; then
10228 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10229 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10230 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 if test "$cross_compiling" = yes; then
10234 gcc_cv_func_mbstowcs_works
=yes
10236 cat >conftest.
$ac_ext <<_ACEOF
10239 cat confdefs.h
>>conftest.
$ac_ext
10240 cat >>conftest.
$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 #include <stdlib.h>
10245 mbstowcs(0, "", 0);
10249 rm -f conftest
$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 gcc_cv_func_mbstowcs_works
=yes
10262 echo "$as_me: program exited with status $ac_status" >&5
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.
$ac_ext >&5
10266 ( exit $ac_status )
10267 gcc_cv_func_mbstowcs_works
=no
10269 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10272 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10273 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10274 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10276 cat >>confdefs.h
<<\_ACEOF
10277 #define HAVE_WORKING_MBSTOWCS 1
10283 echo "$as_me:$LINENO: checking for ssize_t" >&5
10284 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10285 if test "${ac_cv_type_ssize_t+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 cat >conftest.
$ac_ext <<_ACEOF
10291 cat confdefs.h
>>conftest.
$ac_ext
10292 cat >>conftest.
$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 $ac_includes_default
10300 if (sizeof (ssize_t))
10306 rm -f conftest.
$ac_objext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10308 (eval $ac_compile) 2>conftest.er1
10310 grep -v '^ *+' conftest.er1
>conftest.err
10312 cat conftest.err
>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try
='test -z "$ac_c_werror_flag"
10316 || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try
='test -s conftest.$ac_objext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 ac_cv_type_ssize_t
=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.
$ac_ext >&5
10333 ac_cv_type_ssize_t
=no
10335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10337 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10338 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10339 if test $ac_cv_type_ssize_t = yes; then
10343 cat >>confdefs.h
<<_ACEOF
10344 #define ssize_t int
10349 echo "$as_me:$LINENO: checking for caddr_t" >&5
10350 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10351 if test "${ac_cv_type_caddr_t+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 cat >conftest.
$ac_ext <<_ACEOF
10357 cat confdefs.h
>>conftest.
$ac_ext
10358 cat >>conftest.
$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10360 $ac_includes_default
10366 if (sizeof (caddr_t))
10372 rm -f conftest.
$ac_objext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>conftest.er1
10376 grep -v '^ *+' conftest.er1
>conftest.err
10378 cat conftest.err
>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try
='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try
='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_type_caddr_t
=yes
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.
$ac_ext >&5
10399 ac_cv_type_caddr_t
=no
10401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10403 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10404 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10405 if test $ac_cv_type_caddr_t = yes; then
10409 cat >>confdefs.h
<<_ACEOF
10410 #define caddr_t char *
10416 # Try to determine the array type of the second argument of getgroups
10417 # for the target system (int or gid_t).
10418 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10419 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10420 if test "${ac_cv_type_uid_t+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 cat >conftest.
$ac_ext <<_ACEOF
10426 cat confdefs.h
>>conftest.
$ac_ext
10427 cat >>conftest.
$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <sys/types.h>
10432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10433 $EGREP "uid_t" >/dev
/null
2>&1; then
10434 ac_cv_type_uid_t
=yes
10436 ac_cv_type_uid_t
=no
10441 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10442 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10443 if test $ac_cv_type_uid_t = no
; then
10445 cat >>confdefs.h
<<\_ACEOF
10450 cat >>confdefs.h
<<\_ACEOF
10456 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10457 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10458 if test "${ac_cv_type_getgroups+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 if test "$cross_compiling" = yes; then
10462 ac_cv_type_getgroups
=cross
10464 cat >conftest.
$ac_ext <<_ACEOF
10467 cat confdefs.h
>>conftest.
$ac_ext
10468 cat >>conftest.
$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10470 /* Thanks to Mike Rendell for this test. */
10471 #include <sys/types.h>
10474 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10479 gid_t gidset[NGID];
10481 union { gid_t gval; long lval; } val;
10484 for (i = 0; i < NGID; i++)
10485 gidset[i] = val.gval;
10486 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10488 /* Exit non-zero if getgroups seems to require an array of ints. This
10489 happens when gid_t is short but getgroups modifies an array of ints. */
10490 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10493 rm -f conftest
$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 ac_cv_type_getgroups
=gid_t
10506 echo "$as_me: program exited with status $ac_status" >&5
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.
$ac_ext >&5
10510 ( exit $ac_status )
10511 ac_cv_type_getgroups
=int
10513 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10515 if test $ac_cv_type_getgroups = cross
; then
10516 cat >conftest.
$ac_ext <<_ACEOF
10519 cat confdefs.h
>>conftest.
$ac_ext
10520 cat >>conftest.
$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 #include <unistd.h>
10525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10526 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
10527 ac_cv_type_getgroups
=gid_t
10529 ac_cv_type_getgroups
=int
10535 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10536 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10538 cat >>confdefs.h
<<_ACEOF
10539 #define GETGROUPS_T $ac_cv_type_getgroups
10543 if test "${target}" = "${build}"; then
10544 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
10546 case "${target}" in
10547 # This condition may need some tweaking. It should include all
10548 # targets where the array type of the second argument of getgroups
10549 # is int and the type of gid_t is not equivalent to int.
10550 *-*-sunos* |
*-*-ultrix*)
10551 TARGET_GETGROUPS_T
=int
10554 TARGET_GETGROUPS_T
=gid_t
10561 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10562 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10563 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 cat >conftest.
$ac_ext <<_ACEOF
10569 cat confdefs.h
>>conftest.
$ac_ext
10570 cat >>conftest.
$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <sys/mman.h>
10574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10575 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10577 grep -v '^ *+' conftest.er1
>conftest.err
10579 cat conftest.err
>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } >/dev
/null
; then
10582 if test -s conftest.err
; then
10583 ac_cpp_err
=$ac_c_preproc_warn_flag
10584 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10591 if test -z "$ac_cpp_err"; then
10592 ac_cv_header_sys_mman_h
=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.
$ac_ext >&5
10597 ac_cv_header_sys_mman_h
=no
10599 rm -f conftest.err conftest.
$ac_ext
10601 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10602 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10603 if test $ac_cv_header_sys_mman_h = yes; then
10604 gcc_header_sys_mman_h
=yes
10606 gcc_header_sys_mman_h
=no
10609 echo "$as_me:$LINENO: checking for mmap" >&5
10610 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10611 if test "${ac_cv_func_mmap+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 cat >conftest.
$ac_ext <<_ACEOF
10617 cat confdefs.h
>>conftest.
$ac_ext
10618 cat >>conftest.
$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10622 #define mmap innocuous_mmap
10624 /* System header to define __stub macros and hopefully few prototypes,
10625 which can conflict with char mmap (); below.
10626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10627 <limits.h> exists even on freestanding compilers. */
10630 # include <limits.h>
10632 # include <assert.h>
10637 /* Override any gcc2 internal prototype to avoid an error. */
10642 /* We use char because int might match the return type of a gcc2
10643 builtin and then its argument prototype would still apply. */
10645 /* The GNU C library defines this for functions which it implements
10646 to always fail with ENOSYS. Some functions are actually named
10647 something starting with __ and the normal name is an alias. */
10648 #if defined (__stub_mmap) || defined (__stub___mmap)
10651 char (*f) () = mmap;
10665 rm -f conftest.
$ac_objext conftest
$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>conftest.er1
10669 grep -v '^ *+' conftest.er1
>conftest.err
10671 cat conftest.err
>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } &&
10674 { ac_try
='test -z "$ac_c_werror_flag"
10675 || test ! -s conftest.err'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; } &&
10681 { ac_try
='test -s conftest$ac_exeext'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_cv_func_mmap
=yes
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.
$ac_ext >&5
10694 rm -f conftest.err conftest.
$ac_objext \
10695 conftest
$ac_exeext conftest.
$ac_ext
10697 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10698 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10699 if test $ac_cv_func_mmap = yes; then
10705 if test "$gcc_header_sys_mman_h" != yes \
10706 ||
test "$gcc_func_mmap" != yes; then
10707 gcc_cv_func_mmap_file
=no
10708 gcc_cv_func_mmap_dev_zero
=no
10709 gcc_cv_func_mmap_anon
=no
10711 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10712 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10713 if test "${gcc_cv_func_mmap_file+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 # Add a system to this blacklist if
10717 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10718 # memory area containing the same data that you'd get if you applied
10719 # read() to the same fd. The only system known to have a problem here
10720 # is VMS, where text files have record structure.
10723 gcc_cv_func_mmap_file
=no
;;
10725 gcc_cv_func_mmap_file
=yes;;
10728 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10729 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10730 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10731 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10732 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 # Add a system to this blacklist if it has mmap() but /dev/zero
10736 # does not exist, or if mmapping /dev/zero does not give anonymous
10737 # zeroed pages with both the following properties:
10738 # 1. If you map N consecutive pages in with one call, and then
10739 # unmap any subset of those pages, the pages that were not
10740 # explicitly unmapped remain accessible.
10741 # 2. If you map two adjacent blocks of memory and then unmap them
10742 # both at once, they must both go away.
10743 # Systems known to be in this category are Windows (all variants),
10746 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10747 gcc_cv_func_mmap_dev_zero
=no
;;
10749 gcc_cv_func_mmap_dev_zero
=yes;;
10752 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10753 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10755 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10756 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10757 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10758 if test "${gcc_cv_decl_map_anon+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 cat >conftest.
$ac_ext <<_ACEOF
10764 cat confdefs.h
>>conftest.
$ac_ext
10765 cat >>conftest.
$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 #include <sys/types.h>
10768 #include <sys/mman.h>
10769 #include <unistd.h>
10771 #ifndef MAP_ANONYMOUS
10772 #define MAP_ANONYMOUS MAP_ANON
10778 int n = MAP_ANONYMOUS;
10783 rm -f conftest.
$ac_objext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10785 (eval $ac_compile) 2>conftest.er1
10787 grep -v '^ *+' conftest.er1
>conftest.err
10789 cat conftest.err
>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try
='test -z "$ac_c_werror_flag"
10793 || test ! -s conftest.err'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try
='test -s conftest.$ac_objext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 gcc_cv_decl_map_anon
=yes
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.
$ac_ext >&5
10810 gcc_cv_decl_map_anon
=no
10812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10814 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10815 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10817 if test $gcc_cv_decl_map_anon = no
; then
10818 gcc_cv_func_mmap_anon
=no
10820 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10821 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10822 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10826 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10827 # doesn't give anonymous zeroed pages with the same properties listed
10828 # above for use of /dev/zero.
10829 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10831 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10832 gcc_cv_func_mmap_anon
=no
;;
10834 gcc_cv_func_mmap_anon
=yes;;
10837 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10838 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10842 if test $gcc_cv_func_mmap_file = yes; then
10844 cat >>confdefs.h
<<\_ACEOF
10845 #define HAVE_MMAP_FILE 1
10849 if test $gcc_cv_func_mmap_dev_zero = yes; then
10851 cat >>confdefs.h
<<\_ACEOF
10852 #define HAVE_MMAP_DEV_ZERO 1
10856 if test $gcc_cv_func_mmap_anon = yes; then
10858 cat >>confdefs.h
<<\_ACEOF
10859 #define HAVE_MMAP_ANON 1
10867 # Under VMS, vfork works very differently than on Unix. The standard test
10868 # won't work, and it isn't easily adaptable. It makes more sense to
10870 ac_cv_func_vfork_works
=yes
10873 echo "$as_me:$LINENO: checking for pid_t" >&5
10874 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10875 if test "${ac_cv_type_pid_t+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 cat >conftest.
$ac_ext <<_ACEOF
10881 cat confdefs.h
>>conftest.
$ac_ext
10882 cat >>conftest.
$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 $ac_includes_default
10890 if (sizeof (pid_t))
10896 rm -f conftest.
$ac_objext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10898 (eval $ac_compile) 2>conftest.er1
10900 grep -v '^ *+' conftest.er1
>conftest.err
10902 cat conftest.err
>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try
='test -z "$ac_c_werror_flag"
10906 || test ! -s conftest.err'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try
='test -s conftest.$ac_objext'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 ac_cv_type_pid_t
=yes
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.
$ac_ext >&5
10923 ac_cv_type_pid_t
=no
10925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10927 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10928 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10929 if test $ac_cv_type_pid_t = yes; then
10933 cat >>confdefs.h
<<_ACEOF
10941 for ac_header
in unistd.h vfork.h
10943 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10944 echo "$as_me:$LINENO: checking for $ac_header" >&5
10945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 cat >conftest.
$ac_ext <<_ACEOF
10952 cat confdefs.h
>>conftest.
$ac_ext
10953 cat >>conftest.
$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 #include <$ac_header>
10957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10958 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10960 grep -v '^ *+' conftest.er1
>conftest.err
10962 cat conftest.err
>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } >/dev
/null
; then
10965 if test -s conftest.err
; then
10966 ac_cpp_err
=$ac_c_preproc_warn_flag
10967 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10974 if test -z "$ac_cpp_err"; then
10975 eval "$as_ac_Header=yes"
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.
$ac_ext >&5
10980 eval "$as_ac_Header=no"
10982 rm -f conftest.err conftest.
$ac_ext
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987 cat >>confdefs.h
<<_ACEOF
10988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10996 for ac_func
in fork vfork
10998 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10999 echo "$as_me:$LINENO: checking for $ac_func" >&5
11000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11001 if eval "test \"\${$as_ac_var+set}\" = set"; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 cat >conftest.
$ac_ext <<_ACEOF
11007 cat confdefs.h
>>conftest.
$ac_ext
11008 cat >>conftest.
$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11012 #define $ac_func innocuous_$ac_func
11014 /* System header to define __stub macros and hopefully few prototypes,
11015 which can conflict with char $ac_func (); below.
11016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11017 <limits.h> exists even on freestanding compilers. */
11020 # include <limits.h>
11022 # include <assert.h>
11027 /* Override any gcc2 internal prototype to avoid an error. */
11032 /* We use char because int might match the return type of a gcc2
11033 builtin and then its argument prototype would still apply. */
11035 /* The GNU C library defines this for functions which it implements
11036 to always fail with ENOSYS. Some functions are actually named
11037 something starting with __ and the normal name is an alias. */
11038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11041 char (*f) () = $ac_func;
11050 return f != $ac_func;
11055 rm -f conftest.
$ac_objext conftest
$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057 (eval $ac_link) 2>conftest.er1
11059 grep -v '^ *+' conftest.er1
>conftest.err
11061 cat conftest.err
>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try
='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try
='test -s conftest$ac_exeext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 eval "$as_ac_var=yes"
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.
$ac_ext >&5
11082 eval "$as_ac_var=no"
11084 rm -f conftest.err conftest.
$ac_objext \
11085 conftest
$ac_exeext conftest.
$ac_ext
11087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11089 if test `eval echo '${'$as_ac_var'}'` = yes; then
11090 cat >>confdefs.h
<<_ACEOF
11091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11097 if test "x$ac_cv_func_fork" = xyes
; then
11098 echo "$as_me:$LINENO: checking for working fork" >&5
11099 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11100 if test "${ac_cv_func_fork_works+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 if test "$cross_compiling" = yes; then
11104 ac_cv_func_fork_works
=cross
11106 cat >conftest.
$ac_ext <<_ACEOF
11107 /* By Ruediger Kuhlmann. */
11108 #include <sys/types.h>
11110 # include <unistd.h>
11112 /* Some systems only have a dummy stub for fork() */
11120 rm -f conftest
$ac_exeext
11121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11122 (eval $ac_link) 2>&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_func_fork_works
=yes
11133 echo "$as_me: program exited with status $ac_status" >&5
11134 echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.
$ac_ext >&5
11137 ( exit $ac_status )
11138 ac_cv_func_fork_works
=no
11140 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11143 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11144 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11147 ac_cv_func_fork_works
=$ac_cv_func_fork
11149 if test "x$ac_cv_func_fork_works" = xcross
; then
11151 *-*-amigaos* |
*-*-msdosdjgpp*)
11152 # Override, as these systems have only a dummy fork() stub
11153 ac_cv_func_fork_works
=no
11156 ac_cv_func_fork_works
=yes
11159 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11160 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11162 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11163 if test "x$ac_cv_func_vfork" = xyes
; then
11164 echo "$as_me:$LINENO: checking for working vfork" >&5
11165 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11166 if test "${ac_cv_func_vfork_works+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 if test "$cross_compiling" = yes; then
11170 ac_cv_func_vfork_works
=cross
11172 cat >conftest.
$ac_ext <<_ACEOF
11175 cat confdefs.h
>>conftest.
$ac_ext
11176 cat >>conftest.
$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 /* Thanks to Paul Eggert for this test. */
11180 #include <stdlib.h>
11181 #include <sys/types.h>
11182 #include <sys/stat.h>
11183 #include <sys/wait.h>
11185 # include <unistd.h>
11188 # include <vfork.h>
11190 /* On some sparc systems, changes by the child to local and incoming
11191 argument registers are propagated back to the parent. The compiler
11192 is told about this with #include <vfork.h>, but some compilers
11193 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11194 static variable whose address is put into a register that is
11195 clobbered by the vfork. */
11198 sparc_address_test (int arg)
11200 sparc_address_test (arg) int arg;
11203 static pid_t child;
11221 pid_t parent = getpid ();
11224 sparc_address_test (0);
11229 /* Here is another test for sparc vfork register problems. This
11230 test uses lots of local variables, at least as many local
11231 variables as main has allocated so far including compiler
11232 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11233 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11234 reuse the register of parent for one of the local variables,
11235 since it will think that parent can't possibly be used any more
11236 in this routine. Assigning to the local variable will thus
11237 munge parent in the parent process. */
11239 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11240 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11241 /* Convince the compiler that p..p7 are live; otherwise, it might
11242 use the same hardware register for all 8 local variables. */
11243 if (p != p1 || p != p2 || p != p3 || p != p4
11244 || p != p5 || p != p6 || p != p7)
11247 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11248 from child file descriptors. If the child closes a descriptor
11249 before it execs or exits, this munges the parent's descriptor
11250 as well. Test for this by closing stdout in the child. */
11251 _exit(close(fileno(stdout)) != 0);
11256 while (wait(&status) != child)
11259 /* Was there some problem with vforking? */
11262 /* Did the child fail? (This shouldn't happen.) */
11265 /* Did the vfork/compiler bug occur? */
11266 || parent != getpid()
11268 /* Did the file descriptor bug occur? */
11269 || fstat(fileno(stdout), &st) != 0
11274 rm -f conftest
$ac_exeext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276 (eval $ac_link) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_func_vfork_works
=yes
11287 echo "$as_me: program exited with status $ac_status" >&5
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.
$ac_ext >&5
11291 ( exit $ac_status )
11292 ac_cv_func_vfork_works
=no
11294 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11297 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11298 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11301 if test "x$ac_cv_func_fork_works" = xcross
; then
11302 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11303 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11304 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11307 if test "x$ac_cv_func_vfork_works" = xyes
; then
11309 cat >>confdefs.h
<<\_ACEOF
11310 #define HAVE_WORKING_VFORK 1
11315 cat >>confdefs.h
<<\_ACEOF
11320 if test "x$ac_cv_func_fork_works" = xyes
; then
11322 cat >>confdefs.h
<<\_ACEOF
11323 #define HAVE_WORKING_FORK 1
11330 if test "X$prefix" = "XNONE"; then
11331 acl_final_prefix
="$ac_default_prefix"
11333 acl_final_prefix
="$prefix"
11335 if test "X$exec_prefix" = "XNONE"; then
11336 acl_final_exec_prefix
='${prefix}'
11338 acl_final_exec_prefix
="$exec_prefix"
11340 acl_save_prefix
="$prefix"
11341 prefix
="$acl_final_prefix"
11342 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11343 prefix
="$acl_save_prefix"
11346 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11347 if test "${with_gnu_ld+set}" = set; then
11348 withval
="$with_gnu_ld"
11349 test "$withval" = no || with_gnu_ld
=yes
11353 # Prepare PATH_SEPARATOR.
11354 # The user is always right.
11355 if test "${PATH_SEPARATOR+set}" != set; then
11356 echo "#! /bin/sh" >conf$$.sh
11357 echo "exit 0" >>conf$$.sh
11359 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11367 if test "$GCC" = yes; then
11368 # Check if gcc -print-prog-name=ld gives a path.
11369 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11370 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11373 # gcc leaves a trailing carriage return which upsets mingw
11374 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11376 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11379 # Accept absolute paths.
11380 [\\/]* |
[A-Za-z
]:[\\/]*)
11381 re_direlt
='/[^/][^/]*/\.\./'
11382 # Canonicalize the path of ld
11383 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11384 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11385 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11387 test -z "$LD" && LD
="$ac_prog"
11390 # If it fails, then pretend we aren't using GCC.
11394 # If it is relative, then search for the first ld in PATH.
11395 with_gnu_ld
=unknown
11398 elif test "$with_gnu_ld" = yes; then
11399 echo "$as_me:$LINENO: checking for GNU ld" >&5
11400 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11402 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11403 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11405 if test "${acl_cv_path_LD+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 if test -z "$LD"; then
11409 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11410 for ac_dir
in $PATH; do
11411 test -z "$ac_dir" && ac_dir
=.
11412 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11413 acl_cv_path_LD
="$ac_dir/$ac_prog"
11414 # Check to see if the program is GNU ld. I'd rather use --version,
11415 # but apparently some GNU ld's only accept -v.
11416 # Break only if it was the GNU/non-GNU ld that we prefer.
11417 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11418 test "$with_gnu_ld" != no
&& break
11420 test "$with_gnu_ld" != yes && break
11426 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11430 LD
="$acl_cv_path_LD"
11431 if test -n "$LD"; then
11432 echo "$as_me:$LINENO: result: $LD" >&5
11433 echo "${ECHO_T}$LD" >&6
11435 echo "$as_me:$LINENO: result: no" >&5
11436 echo "${ECHO_T}no" >&6
11438 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11439 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11440 { (exit 1); exit 1; }; }
11441 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11442 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11443 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11447 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11448 acl_cv_prog_gnu_ld
=yes
11450 acl_cv_prog_gnu_ld
=no
11453 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11454 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11455 with_gnu_ld
=$acl_cv_prog_gnu_ld
11459 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11460 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11461 if test "${acl_cv_rpath+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11466 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11468 rm -f .
/conftest.sh
11472 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11473 echo "${ECHO_T}$acl_cv_rpath" >&6
11475 libext
="$acl_cv_libext"
11476 shlibext
="$acl_cv_shlibext"
11477 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11478 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11479 hardcode_direct
="$acl_cv_hardcode_direct"
11480 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11481 # Check whether --enable-rpath or --disable-rpath was given.
11482 if test "${enable_rpath+set}" = set; then
11483 enableval
="$enable_rpath"
11497 acl_save_prefix
="$prefix"
11498 prefix
="$acl_final_prefix"
11499 acl_save_exec_prefix
="$exec_prefix"
11500 exec_prefix
="$acl_final_exec_prefix"
11502 eval additional_includedir
=\"$includedir\"
11503 eval additional_libdir
=\"$libdir\"
11505 exec_prefix
="$acl_save_exec_prefix"
11506 prefix
="$acl_save_prefix"
11509 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11510 if test "${with_libiconv_prefix+set}" = set; then
11511 withval
="$with_libiconv_prefix"
11513 if test "X$withval" = "Xno"; then
11516 if test "X$withval" = "X"; then
11518 acl_save_prefix
="$prefix"
11519 prefix
="$acl_final_prefix"
11520 acl_save_exec_prefix
="$exec_prefix"
11521 exec_prefix
="$acl_final_exec_prefix"
11523 eval additional_includedir
=\"$includedir\"
11524 eval additional_libdir
=\"$libdir\"
11526 exec_prefix
="$acl_save_exec_prefix"
11527 prefix
="$acl_save_prefix"
11530 additional_includedir
="$withval/include"
11531 additional_libdir
="$withval/lib"
11541 names_already_handled
=
11542 names_next_round
='iconv '
11543 while test -n "$names_next_round"; do
11544 names_this_round
="$names_next_round"
11546 for name
in $names_this_round; do
11548 for n
in $names_already_handled; do
11549 if test "$n" = "$name"; then
11550 already_handled
=yes
11554 if test -z "$already_handled"; then
11555 names_already_handled
="$names_already_handled $name"
11556 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11557 eval value
=\"\
$HAVE_LIB$uppername\"
11558 if test -n "$value"; then
11559 if test "$value" = yes; then
11560 eval value
=\"\
$LIB$uppername\"
11561 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11562 eval value
=\"\
$LTLIB$uppername\"
11563 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11572 if test $use_additional = yes; then
11573 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11574 found_dir
="$additional_libdir"
11575 found_so
="$additional_libdir/lib$name.$shlibext"
11576 if test -f "$additional_libdir/lib$name.la"; then
11577 found_la
="$additional_libdir/lib$name.la"
11580 if test -f "$additional_libdir/lib$name.$libext"; then
11581 found_dir
="$additional_libdir"
11582 found_a
="$additional_libdir/lib$name.$libext"
11583 if test -f "$additional_libdir/lib$name.la"; then
11584 found_la
="$additional_libdir/lib$name.la"
11589 if test "X$found_dir" = "X"; then
11590 for x
in $LDFLAGS $LTLIBICONV; do
11592 acl_save_prefix
="$prefix"
11593 prefix
="$acl_final_prefix"
11594 acl_save_exec_prefix
="$exec_prefix"
11595 exec_prefix
="$acl_final_exec_prefix"
11597 exec_prefix
="$acl_save_exec_prefix"
11598 prefix
="$acl_save_prefix"
11602 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11603 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11605 found_so
="$dir/lib$name.$shlibext"
11606 if test -f "$dir/lib$name.la"; then
11607 found_la
="$dir/lib$name.la"
11610 if test -f "$dir/lib$name.$libext"; then
11612 found_a
="$dir/lib$name.$libext"
11613 if test -f "$dir/lib$name.la"; then
11614 found_la
="$dir/lib$name.la"
11620 if test "X$found_dir" != "X"; then
11625 if test "X$found_dir" != "X"; then
11626 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11627 if test "X$found_so" != "X"; then
11628 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11629 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11632 for x
in $ltrpathdirs; do
11633 if test "X$x" = "X$found_dir"; then
11638 if test -z "$haveit"; then
11639 ltrpathdirs
="$ltrpathdirs $found_dir"
11641 if test "$hardcode_direct" = yes; then
11642 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11644 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11645 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11647 for x
in $rpathdirs; do
11648 if test "X$x" = "X$found_dir"; then
11653 if test -z "$haveit"; then
11654 rpathdirs
="$rpathdirs $found_dir"
11658 for x
in $LDFLAGS $LIBICONV; do
11660 acl_save_prefix
="$prefix"
11661 prefix
="$acl_final_prefix"
11662 acl_save_exec_prefix
="$exec_prefix"
11663 exec_prefix
="$acl_final_exec_prefix"
11665 exec_prefix
="$acl_save_exec_prefix"
11666 prefix
="$acl_save_prefix"
11668 if test "X$x" = "X-L$found_dir"; then
11673 if test -z "$haveit"; then
11674 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11676 if test "$hardcode_minus_L" != no
; then
11677 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11679 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11685 if test "X$found_a" != "X"; then
11686 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11688 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11691 additional_includedir
=
11692 case "$found_dir" in
11694 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11695 additional_includedir
="$basedir/include"
11698 if test "X$additional_includedir" != "X"; then
11699 if test "X$additional_includedir" != "X/usr/include"; then
11701 if test "X$additional_includedir" = "X/usr/local/include"; then
11702 if test -n "$GCC"; then
11704 linux
*) haveit
=yes;;
11708 if test -z "$haveit"; then
11709 for x
in $CPPFLAGS $INCICONV; do
11711 acl_save_prefix
="$prefix"
11712 prefix
="$acl_final_prefix"
11713 acl_save_exec_prefix
="$exec_prefix"
11714 exec_prefix
="$acl_final_exec_prefix"
11716 exec_prefix
="$acl_save_exec_prefix"
11717 prefix
="$acl_save_prefix"
11719 if test "X$x" = "X-I$additional_includedir"; then
11724 if test -z "$haveit"; then
11725 if test -d "$additional_includedir"; then
11726 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11732 if test -n "$found_la"; then
11733 save_libdir
="$libdir"
11734 case "$found_la" in
11735 */* |
*\\*) .
"$found_la" ;;
11736 *) .
"./$found_la" ;;
11738 libdir
="$save_libdir"
11739 for dep
in $dependency_libs; do
11742 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11743 if test "X$additional_libdir" != "X/usr/lib"; then
11745 if test "X$additional_libdir" = "X/usr/local/lib"; then
11746 if test -n "$GCC"; then
11748 linux
*) haveit
=yes;;
11752 if test -z "$haveit"; then
11754 for x
in $LDFLAGS $LIBICONV; do
11756 acl_save_prefix
="$prefix"
11757 prefix
="$acl_final_prefix"
11758 acl_save_exec_prefix
="$exec_prefix"
11759 exec_prefix
="$acl_final_exec_prefix"
11761 exec_prefix
="$acl_save_exec_prefix"
11762 prefix
="$acl_save_prefix"
11764 if test "X$x" = "X-L$additional_libdir"; then
11769 if test -z "$haveit"; then
11770 if test -d "$additional_libdir"; then
11771 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11775 for x
in $LDFLAGS $LTLIBICONV; do
11777 acl_save_prefix
="$prefix"
11778 prefix
="$acl_final_prefix"
11779 acl_save_exec_prefix
="$exec_prefix"
11780 exec_prefix
="$acl_final_exec_prefix"
11782 exec_prefix
="$acl_save_exec_prefix"
11783 prefix
="$acl_save_prefix"
11785 if test "X$x" = "X-L$additional_libdir"; then
11790 if test -z "$haveit"; then
11791 if test -d "$additional_libdir"; then
11792 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11799 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11800 if test "$enable_rpath" != no
; then
11802 for x
in $rpathdirs; do
11803 if test "X$x" = "X$dir"; then
11808 if test -z "$haveit"; then
11809 rpathdirs
="$rpathdirs $dir"
11812 for x
in $ltrpathdirs; do
11813 if test "X$x" = "X$dir"; then
11818 if test -z "$haveit"; then
11819 ltrpathdirs
="$ltrpathdirs $dir"
11824 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11827 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11830 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11831 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11837 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11838 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11844 if test "X$rpathdirs" != "X"; then
11845 if test -n "$hardcode_libdir_separator"; then
11847 for found_dir
in $rpathdirs; do
11848 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11850 acl_save_libdir
="$libdir"
11852 eval flag
=\"$hardcode_libdir_flag_spec\"
11853 libdir
="$acl_save_libdir"
11854 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11856 for found_dir
in $rpathdirs; do
11857 acl_save_libdir
="$libdir"
11858 libdir
="$found_dir"
11859 eval flag
=\"$hardcode_libdir_flag_spec\"
11860 libdir
="$acl_save_libdir"
11861 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11865 if test "X$ltrpathdirs" != "X"; then
11866 for found_dir
in $ltrpathdirs; do
11867 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11877 am_save_CPPFLAGS
="$CPPFLAGS"
11879 for element
in $INCICONV; do
11881 for x
in $CPPFLAGS; do
11883 acl_save_prefix
="$prefix"
11884 prefix
="$acl_final_prefix"
11885 acl_save_exec_prefix
="$exec_prefix"
11886 exec_prefix
="$acl_final_exec_prefix"
11888 exec_prefix
="$acl_save_exec_prefix"
11889 prefix
="$acl_save_prefix"
11891 if test "X$x" = "X$element"; then
11896 if test -z "$haveit"; then
11897 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11902 echo "$as_me:$LINENO: checking for iconv" >&5
11903 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11904 if test "${am_cv_func_iconv+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 am_cv_func_iconv
="no, consider installing GNU libiconv"
11910 cat >conftest.
$ac_ext <<_ACEOF
11913 cat confdefs.h
>>conftest.
$ac_ext
11914 cat >>conftest.
$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11916 #include <stdlib.h>
11921 iconv_t cd = iconv_open("","");
11922 iconv(cd,NULL,NULL,NULL,NULL);
11928 rm -f conftest.
$ac_objext conftest
$ac_exeext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930 (eval $ac_link) 2>conftest.er1
11932 grep -v '^ *+' conftest.er1
>conftest.err
11934 cat conftest.err
>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try
='test -z "$ac_c_werror_flag"
11938 || test ! -s conftest.err'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try
='test -s conftest$ac_exeext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 am_cv_func_iconv
=yes
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.
$ac_ext >&5
11956 rm -f conftest.err conftest.
$ac_objext \
11957 conftest
$ac_exeext conftest.
$ac_ext
11958 if test "$am_cv_func_iconv" != yes; then
11959 am_save_LIBS
="$LIBS"
11960 LIBS
="$LIBS $LIBICONV"
11961 cat >conftest.
$ac_ext <<_ACEOF
11964 cat confdefs.h
>>conftest.
$ac_ext
11965 cat >>conftest.
$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 #include <stdlib.h>
11972 iconv_t cd = iconv_open("","");
11973 iconv(cd,NULL,NULL,NULL,NULL);
11979 rm -f conftest.
$ac_objext conftest
$ac_exeext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11981 (eval $ac_link) 2>conftest.er1
11983 grep -v '^ *+' conftest.er1
>conftest.err
11985 cat conftest.err
>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try
='test -z "$ac_c_werror_flag"
11989 || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try
='test -s conftest$ac_exeext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 am_cv_lib_iconv
=yes
12002 am_cv_func_iconv
=yes
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.
$ac_ext >&5
12008 rm -f conftest.err conftest.
$ac_objext \
12009 conftest
$ac_exeext conftest.
$ac_ext
12010 LIBS
="$am_save_LIBS"
12014 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12015 echo "${ECHO_T}$am_cv_func_iconv" >&6
12016 if test "$am_cv_func_iconv" = yes; then
12018 cat >>confdefs.h
<<\_ACEOF
12019 #define HAVE_ICONV 1
12023 if test "$am_cv_lib_iconv" = yes; then
12024 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12025 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12026 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12027 echo "${ECHO_T}$LIBICONV" >&6
12029 CPPFLAGS
="$am_save_CPPFLAGS"
12036 if test "$am_cv_func_iconv" = yes; then
12037 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12038 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12039 if test "${am_cv_proto_iconv+set}" = set; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 cat >conftest.
$ac_ext <<_ACEOF
12046 cat confdefs.h
>>conftest.
$ac_ext
12047 cat >>conftest.
$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12050 #include <stdlib.h>
12056 #if defined(__STDC__) || defined(__cplusplus)
12057 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12070 rm -f conftest.
$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>conftest.er1
12074 grep -v '^ *+' conftest.er1
>conftest.err
12076 cat conftest.err
>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try
='test -z "$ac_c_werror_flag"
12080 || test ! -s conftest.err'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try
='test -s conftest.$ac_objext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 am_cv_proto_iconv_arg1
=""
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.
$ac_ext >&5
12097 am_cv_proto_iconv_arg1
="const"
12099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12100 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);"
12103 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12104 echo "$as_me:$LINENO: result: ${ac_t:-
12105 }$am_cv_proto_iconv" >&5
12106 echo "${ECHO_T}${ac_t:-
12107 }$am_cv_proto_iconv" >&6
12109 cat >>confdefs.h
<<_ACEOF
12110 #define ICONV_CONST $am_cv_proto_iconv_arg1
12115 # Until we have in-tree GNU iconv:
12120 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12121 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12122 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 cat >conftest.
$ac_ext <<_ACEOF
12128 cat confdefs.h
>>conftest.
$ac_ext
12129 cat >>conftest.
$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 #include <locale.h>
12140 rm -f conftest.
$ac_objext conftest
$ac_exeext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12142 (eval $ac_link) 2>conftest.er1
12144 grep -v '^ *+' conftest.er1
>conftest.err
12146 cat conftest.err
>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try
='test -z "$ac_c_werror_flag"
12150 || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try
='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 am_cv_val_LC_MESSAGES
=yes
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.
$ac_ext >&5
12167 am_cv_val_LC_MESSAGES
=no
12169 rm -f conftest.err conftest.
$ac_objext \
12170 conftest
$ac_exeext conftest.
$ac_ext
12172 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12173 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12174 if test $am_cv_val_LC_MESSAGES = yes; then
12176 cat >>confdefs.h
<<\_ACEOF
12177 #define HAVE_LC_MESSAGES 1
12184 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12185 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12186 if test "${am_cv_langinfo_codeset+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 cat >conftest.
$ac_ext <<_ACEOF
12192 cat confdefs.h
>>conftest.
$ac_ext
12193 cat >>conftest.
$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12195 #include <langinfo.h>
12199 char* cs = nl_langinfo(CODESET);
12204 rm -f conftest.
$ac_objext conftest
$ac_exeext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206 (eval $ac_link) 2>conftest.er1
12208 grep -v '^ *+' conftest.er1
>conftest.err
12210 cat conftest.err
>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try
='test -z "$ac_c_werror_flag"
12214 || test ! -s conftest.err'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try
='test -s conftest$ac_exeext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 am_cv_langinfo_codeset
=yes
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.
$ac_ext >&5
12231 am_cv_langinfo_codeset
=no
12233 rm -f conftest.err conftest.
$ac_objext \
12234 conftest
$ac_exeext conftest.
$ac_ext
12237 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12238 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12239 if test $am_cv_langinfo_codeset = yes; then
12241 cat >>confdefs.h
<<\_ACEOF
12242 #define HAVE_LANGINFO_CODESET 1
12248 # We will need to find libiberty.h and ansidecl.h
12249 saved_CFLAGS
="$CFLAGS"
12250 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12290 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
12291 strsignal strstr strverscmp \
12292 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12293 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
12295 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12296 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12297 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12298 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 cat >conftest.
$ac_ext <<_ACEOF
12304 cat confdefs.h
>>conftest.
$ac_ext
12305 cat >>conftest.
$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12308 #define $ac_tr_decl 1
12310 #include "ansidecl.h"
12311 #include "system.h"
12317 char *(*pfn) = (char *(*)) $ac_func ;
12323 rm -f conftest.
$ac_objext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325 (eval $ac_compile) 2>conftest.er1
12327 grep -v '^ *+' conftest.er1
>conftest.err
12329 cat conftest.err
>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try
='test -z "$ac_c_werror_flag"
12333 || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try
='test -s conftest.$ac_objext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 eval "gcc_cv_have_decl_$ac_func=yes"
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.
$ac_ext >&5
12350 eval "gcc_cv_have_decl_$ac_func=no"
12352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12355 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12356 echo "$as_me:$LINENO: result: yes" >&5
12357 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12358 #define $ac_tr_decl 1
12362 echo "$as_me:$LINENO: result: no" >&5
12363 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12364 #define $ac_tr_decl 0
12375 for ac_func
in getrlimit setrlimit getrusage
12377 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12378 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12379 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12380 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 cat >conftest.
$ac_ext <<_ACEOF
12386 cat confdefs.h
>>conftest.
$ac_ext
12387 cat >>conftest.
$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12390 #define $ac_tr_decl 1
12392 #include "ansidecl.h"
12393 #include "system.h"
12394 #ifdef HAVE_SYS_RESOURCE_H
12395 #include <sys/resource.h>
12403 char *(*pfn) = (char *(*)) $ac_func ;
12409 rm -f conftest.
$ac_objext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12411 (eval $ac_compile) 2>conftest.er1
12413 grep -v '^ *+' conftest.er1
>conftest.err
12415 cat conftest.err
>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try
='test -z "$ac_c_werror_flag"
12419 || test ! -s conftest.err'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try
='test -s conftest.$ac_objext'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431 eval "gcc_cv_have_decl_$ac_func=yes"
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.
$ac_ext >&5
12436 eval "gcc_cv_have_decl_$ac_func=no"
12438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12441 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12442 echo "$as_me:$LINENO: result: yes" >&5
12443 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12444 #define $ac_tr_decl 1
12448 echo "$as_me:$LINENO: result: no" >&5
12449 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12450 #define $ac_tr_decl 0
12458 cat >conftest.
$ac_ext <<_ACEOF
12461 cat confdefs.h
>>conftest.
$ac_ext
12462 cat >>conftest.
$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12465 #include "ansidecl.h"
12466 #include "system.h"
12467 #ifdef HAVE_SYS_RESOURCE_H
12468 #include <sys/resource.h>
12479 rm -f conftest.
$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>conftest.er1
12483 grep -v '^ *+' conftest.er1
>conftest.err
12485 cat conftest.err
>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try
='test -z "$ac_c_werror_flag"
12489 || test ! -s conftest.err'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try
='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.
$ac_ext >&5
12507 cat >>confdefs.h
<<\_ACEOF
12508 #define rlim_t long
12512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12514 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12515 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12516 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12517 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12519 for ac_func
in ldgetname
12521 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12522 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12523 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12524 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 cat >conftest.
$ac_ext <<_ACEOF
12530 cat confdefs.h
>>conftest.
$ac_ext
12531 cat >>conftest.
$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 #define $ac_tr_decl 1
12536 #include "ansidecl.h"
12537 #include "system.h"
12538 #ifdef HAVE_LDFCN_H
12549 char *(*pfn) = (char *(*)) $ac_func ;
12555 rm -f conftest.
$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557 (eval $ac_compile) 2>conftest.er1
12559 grep -v '^ *+' conftest.er1
>conftest.err
12561 cat conftest.err
>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try
='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try
='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 eval "gcc_cv_have_decl_$ac_func=yes"
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.
$ac_ext >&5
12582 eval "gcc_cv_have_decl_$ac_func=no"
12584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12587 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12588 echo "$as_me:$LINENO: result: yes" >&5
12589 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12590 #define $ac_tr_decl 1
12594 echo "$as_me:$LINENO: result: no" >&5
12595 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12596 #define $ac_tr_decl 0
12605 for ac_func
in times
12607 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12608 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12609 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12610 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 cat >conftest.
$ac_ext <<_ACEOF
12616 cat confdefs.h
>>conftest.
$ac_ext
12617 cat >>conftest.
$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12620 #define $ac_tr_decl 1
12622 #include "ansidecl.h"
12623 #include "system.h"
12624 #ifdef HAVE_SYS_TIMES_H
12625 #include <sys/times.h>
12633 char *(*pfn) = (char *(*)) $ac_func ;
12639 rm -f conftest.
$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>conftest.er1
12643 grep -v '^ *+' conftest.er1
>conftest.err
12645 cat conftest.err
>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try
='test -z "$ac_c_werror_flag"
12649 || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try
='test -s conftest.$ac_objext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 eval "gcc_cv_have_decl_$ac_func=yes"
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.
$ac_ext >&5
12666 eval "gcc_cv_have_decl_$ac_func=no"
12668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12671 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12672 echo "$as_me:$LINENO: result: yes" >&5
12673 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12674 #define $ac_tr_decl 1
12678 echo "$as_me:$LINENO: result: no" >&5
12679 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12680 #define $ac_tr_decl 0
12689 for ac_func
in sigaltstack
12691 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12692 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12693 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12694 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 cat >conftest.
$ac_ext <<_ACEOF
12700 cat confdefs.h
>>conftest.
$ac_ext
12701 cat >>conftest.
$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12704 #define $ac_tr_decl 1
12706 #include "ansidecl.h"
12707 #include "system.h"
12708 #include <signal.h>
12715 char *(*pfn) = (char *(*)) $ac_func ;
12721 rm -f conftest.
$ac_objext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>conftest.er1
12725 grep -v '^ *+' conftest.er1
>conftest.err
12727 cat conftest.err
>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try
='test -z "$ac_c_werror_flag"
12731 || test ! -s conftest.err'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try
='test -s conftest.$ac_objext'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12743 eval "gcc_cv_have_decl_$ac_func=yes"
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.
$ac_ext >&5
12748 eval "gcc_cv_have_decl_$ac_func=no"
12750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12754 echo "$as_me:$LINENO: result: yes" >&5
12755 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12756 #define $ac_tr_decl 1
12760 echo "$as_me:$LINENO: result: no" >&5
12761 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12762 #define $ac_tr_decl 0
12770 # More time-related stuff.
12771 echo "$as_me:$LINENO: checking for struct tms" >&5
12772 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12773 if test "${ac_cv_struct_tms+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 cat >conftest.
$ac_ext <<_ACEOF
12780 cat confdefs.h
>>conftest.
$ac_ext
12781 cat >>conftest.
$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12784 #include "ansidecl.h"
12785 #include "system.h"
12786 #ifdef HAVE_SYS_TIMES_H
12787 #include <sys/times.h>
12798 rm -f conftest.
$ac_objext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800 (eval $ac_compile) 2>conftest.er1
12802 grep -v '^ *+' conftest.er1
>conftest.err
12804 cat conftest.err
>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try
='test -z "$ac_c_werror_flag"
12808 || test ! -s conftest.err'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try
='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_cv_struct_tms
=yes
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.
$ac_ext >&5
12825 ac_cv_struct_tms
=no
12827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12829 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12830 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12831 if test $ac_cv_struct_tms = yes; then
12833 cat >>confdefs.h
<<\_ACEOF
12834 #define HAVE_STRUCT_TMS 1
12839 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12840 # revisit after autoconf 2.50.
12841 echo "$as_me:$LINENO: checking for clock_t" >&5
12842 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12843 if test "${gcc_cv_type_clock_t+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12847 cat >conftest.
$ac_ext <<_ACEOF
12850 cat confdefs.h
>>conftest.
$ac_ext
12851 cat >>conftest.
$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12854 #include "ansidecl.h"
12855 #include "system.h"
12865 rm -f conftest.
$ac_objext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12867 (eval $ac_compile) 2>conftest.er1
12869 grep -v '^ *+' conftest.er1
>conftest.err
12871 cat conftest.err
>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try
='test -z "$ac_c_werror_flag"
12875 || test ! -s conftest.err'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try
='test -s conftest.$ac_objext'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 gcc_cv_type_clock_t
=yes
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.
$ac_ext >&5
12892 gcc_cv_type_clock_t
=no
12894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12896 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12897 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12898 if test $gcc_cv_type_clock_t = yes; then
12900 cat >>confdefs.h
<<\_ACEOF
12901 #define HAVE_CLOCK_T 1
12906 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12907 CFLAGS
="$saved_CFLAGS"
12909 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12910 if test "${enable_initfini_array+set}" = set; then
12911 enableval
="$enable_initfini_array"
12915 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12916 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12917 if test "${gcc_cv_initfini_array+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 if test "$cross_compiling" = yes; then
12921 gcc_cv_initfini_array
=no
12923 cat >conftest.
$ac_ext <<_ACEOF
12926 cat confdefs.h
>>conftest.
$ac_ext
12927 cat >>conftest.
$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12931 int main (void) { return x; }
12932 int foo (void) { x = 0; }
12933 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12935 rm -f conftest
$ac_exeext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937 (eval $ac_link) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; }; then
12946 gcc_cv_initfini_array
=yes
12948 echo "$as_me: program exited with status $ac_status" >&5
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.
$ac_ext >&5
12952 ( exit $ac_status )
12953 gcc_cv_initfini_array
=no
12955 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12958 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12959 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12960 enable_initfini_array
=$gcc_cv_initfini_array
12963 if test $enable_initfini_array = yes; then
12965 cat >>confdefs.h
<<\_ACEOF
12966 #define HAVE_INITFINI_ARRAY 1
12971 # mkdir takes a single argument on some systems.
12972 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12973 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12974 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 cat >conftest.
$ac_ext <<_ACEOF
12980 cat confdefs.h
>>conftest.
$ac_ext
12981 cat >>conftest.
$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12984 #include <sys/types.h>
12985 #ifdef HAVE_SYS_STAT_H
12986 # include <sys/stat.h>
12988 #ifdef HAVE_UNISTD_H
12989 # include <unistd.h>
12991 #ifdef HAVE_DIRECT_H
12992 # include <direct.h>
13002 rm -f conftest.
$ac_objext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13004 (eval $ac_compile) 2>conftest.er1
13006 grep -v '^ *+' conftest.er1
>conftest.err
13008 cat conftest.err
>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } &&
13011 { ac_try
='test -z "$ac_c_werror_flag"
13012 || test ! -s conftest.err'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try
='test -s conftest.$ac_objext'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 gcc_cv_mkdir_takes_one_arg
=no
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.
$ac_ext >&5
13029 gcc_cv_mkdir_takes_one_arg
=yes
13031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13033 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13034 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13035 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13037 cat >>confdefs.h
<<\_ACEOF
13038 #define MKDIR_TAKES_ONE_ARG 1
13050 # With Setjmp/Longjmp based exception handling.
13051 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13052 if test "${enable_sjlj_exceptions+set}" = set; then
13053 enableval
="$enable_sjlj_exceptions"
13056 if test $enableval != yes; then
13057 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13058 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13063 force_sjlj_exceptions
=yes
13067 force_sjlj_exceptions
=yes
13071 force_sjlj_exceptions
=no
13075 if test $force_sjlj_exceptions = yes; then
13076 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
13078 cat >>confdefs.h
<<_ACEOF
13079 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13084 # For platforms with the unwind ABI which includes an unwind library,
13085 # libunwind, we can choose to use the system libunwind.
13086 # config.gcc also contains tests of with_system_libunwind.
13089 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13090 if test "${with_system_libunwind+set}" = set; then
13091 withval
="$with_system_libunwind"
13094 # If system-libunwind was not specifically set, pick a default setting.
13095 if test x
$with_system_libunwind = x
; then
13097 ia64-
*-hpux*) with_system_libunwind
=yes ;;
13098 *) with_system_libunwind
=no
;;
13101 # Based on system-libunwind and target, do we have ipinfo?
13102 if test x
$with_system_libunwind = xyes
; then
13104 ia64-
*-*) have_unwind_getipinfo
=no
;;
13105 *) have_unwind_getipinfo
=yes ;;
13108 have_unwind_getipinfo
=yes
13111 if test x
$have_unwind_getipinfo = xyes
; then
13113 cat >>confdefs.h
<<\_ACEOF
13114 #define HAVE_GETIPINFO 1
13120 # --------------------------------------------------------
13121 # Build, host, and target specific configuration fragments
13122 # --------------------------------------------------------
13124 # Collect build-machine-specific information.
13125 .
${srcdir}/config.build
13127 # Collect host-machine-specific information.
13128 .
${srcdir}/config.
host
13132 # Collect target-machine-specific information.
13133 .
${srcdir}/config.gcc
13135 extra_objs
="${host_extra_objs} ${extra_objs}"
13136 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13138 # Default the target-machine variables that were not explicitly set.
13139 if test x
"$tm_file" = x
13140 then tm_file
=$cpu_type/$cpu_type.h
; fi
13142 if test x
"$extra_headers" = x
13143 then extra_headers
=; fi
13145 if test x
$md_file = x
13146 then md_file
=$cpu_type/$cpu_type.md
; fi
13148 if test x
$out_file = x
13149 then out_file
=$cpu_type/$cpu_type.c
; fi
13151 if test x
"$tmake_file" = x
13152 then tmake_file
=$cpu_type/t-
$cpu_type
13155 if test x
"$dwarf2" = xyes
13156 then tm_file
="$tm_file tm-dwarf2.h"
13159 # Say what files are being used for the output code and MD file.
13160 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13161 echo "Using \`$srcdir/config/$md_file' as machine description file."
13163 # If any of the xm_file variables contain nonexistent files, warn
13164 # about them and drop them.
13167 for x
in $build_xm_file; do
13168 if test -f $srcdir/config
/$x
13170 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13171 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13174 build_xm_file
="$bx"
13177 for x
in $host_xm_file; do
13178 if test -f $srcdir/config
/$x
13180 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13181 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13187 for x
in $xm_file; do
13188 if test -f $srcdir/config
/$x
13190 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13191 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13197 for f
in $tm_file; do
13200 if test $count = ax
; then
13201 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13203 echo "Using the following target machine macro files:"
13204 for f
in $tm_file; do
13205 echo " $srcdir/config/$f"
13209 if test x
$need_64bit_hwint = xyes
; then
13211 cat >>confdefs.h
<<\_ACEOF
13212 #define NEED_64BIT_HOST_WIDE_INT 1
13217 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13219 cat >>confdefs.h
<<\_ACEOF
13220 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13226 for f
in $host_xm_file; do
13229 if test $count = a
; then
13231 elif test $count = ax
; then
13232 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13234 echo "Using the following host machine macro files:"
13235 for f
in $host_xm_file; do
13236 echo " $srcdir/config/$f"
13239 echo "Using ${out_host_hook_obj} for host machine hooks."
13241 if test "$host_xm_file" != "$build_xm_file"; then
13243 for f
in $build_xm_file; do
13246 if test $count = a
; then
13248 elif test $count = ax
; then
13249 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13251 echo "Using the following build machine macro files:"
13252 for f
in $build_xm_file; do
13253 echo " $srcdir/config/$f"
13259 powerpc
*-*-darwin*)
13260 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13261 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13262 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 cat >conftest.
$ac_ext <<_ACEOF
13267 #include <sys/cdefs.h>
13268 #include <sys/signal.h>
13269 #include <ucontext.h>
13270 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13273 rm -f conftest.
$ac_objext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>conftest.er1
13277 grep -v '^ *+' conftest.er1
>conftest.err
13279 cat conftest.err
>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try
='test -z "$ac_c_werror_flag"
13283 || test ! -s conftest.err'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try
='test -s conftest.$ac_objext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 gcc_cv_mcontext_underscores
=no
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.
$ac_ext >&5
13300 gcc_cv_mcontext_underscores
=yes
13302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13304 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13305 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13306 if test $gcc_cv_mcontext_underscores = yes; then
13308 cat >>confdefs.h
<<\_ACEOF
13309 #define HAS_MCONTEXT_T_UNDERSCORES
13320 # Check if a valid thread package
13321 case ${enable_threads} in
13324 target_thread_file
='single'
13328 target_thread_file
='single'
13330 aix | dce | gnat | irix | posix | posix95 | rtems | \
13331 single | solaris | vxworks | win32 | mipssde
)
13332 target_thread_file
=${enable_threads}
13335 echo "${enable_threads} is an unknown thread package" 1>&2
13340 if test x
${thread_file} = x
; then
13341 # No thread file set by target-specific clauses in config.gcc,
13342 # so use file chosen by default logic above
13343 thread_file
=${target_thread_file}
13346 # Make gthr-default.h if we have a thread file.
13348 if test $thread_file != single
; then
13349 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13350 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
13351 rm -f gthr-default.h-t
13353 mv -f gthr-default.h-t gthr-default.h
13355 gthread_flags
=-DHAVE_GTHR_DEFAULT
13364 if test x
$enable___cxa_atexit = xyes || \
13365 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13366 if test x
$host = x
$target; then
13368 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13369 # keyed to flag_use_cxa_atexit
13374 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13375 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13376 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 cat >conftest.
$ac_ext <<_ACEOF
13382 cat confdefs.h
>>conftest.
$ac_ext
13383 cat >>conftest.
$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13387 #define __cxa_atexit innocuous___cxa_atexit
13389 /* System header to define __stub macros and hopefully few prototypes,
13390 which can conflict with char __cxa_atexit (); below.
13391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13392 <limits.h> exists even on freestanding compilers. */
13395 # include <limits.h>
13397 # include <assert.h>
13400 #undef __cxa_atexit
13402 /* Override any gcc2 internal prototype to avoid an error. */
13407 /* We use char because int might match the return type of a gcc2
13408 builtin and then its argument prototype would still apply. */
13409 char __cxa_atexit ();
13410 /* The GNU C library defines this for functions which it implements
13411 to always fail with ENOSYS. Some functions are actually named
13412 something starting with __ and the normal name is an alias. */
13413 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13416 char (*f) () = __cxa_atexit;
13425 return f != __cxa_atexit;
13430 rm -f conftest.
$ac_objext conftest
$ac_exeext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13432 (eval $ac_link) 2>conftest.er1
13434 grep -v '^ *+' conftest.er1
>conftest.err
13436 cat conftest.err
>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try
='test -z "$ac_c_werror_flag"
13440 || test ! -s conftest.err'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try
='test -s conftest$ac_exeext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 ac_cv_func___cxa_atexit
=yes
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.
$ac_ext >&5
13457 ac_cv_func___cxa_atexit
=no
13459 rm -f conftest.err conftest.
$ac_objext \
13460 conftest
$ac_exeext conftest.
$ac_ext
13462 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13463 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13464 if test $ac_cv_func___cxa_atexit = yes; then
13467 echo "__cxa_atexit can't be enabled on this target"
13473 # We can't check for __cxa_atexit when building a cross, so assume
13477 if test x
$use_cxa_atexit = xyes
; then
13479 cat >>confdefs.h
<<\_ACEOF
13480 #define DEFAULT_USE_CXA_ATEXIT 2
13486 # Look for a file containing extra machine modes.
13487 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13488 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13491 cat >>confdefs.h
<<_ACEOF
13492 #define EXTRA_MODES_FILE "config/$extra_modes"
13497 # Convert extra_options into a form suitable for Makefile use.
13499 for f
in $extra_options; do
13500 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13504 # auto-host.h is the file containing items generated by autoconf and is
13505 # the first file included by config.h.
13506 # If host=build, it is correct to have bconfig include auto-host.h
13507 # as well. If host!=build, we are in error and need to do more
13508 # work to find out the build config parameters.
13509 if test x
$host = x
$build
13511 build_auto
=auto-host.h
13513 # We create a subdir, then run autoconf in the subdir.
13514 # To prevent recursion we set host and build for the new
13515 # invocation of configure to the build for this invocation
13522 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13523 *) realsrcdir
=..
/${srcdir};;
13525 saved_CFLAGS
="${CFLAGS}"
13526 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13527 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13528 ${realsrcdir}/configure \
13529 --enable-languages=${enable_languages-all} \
13530 --target=$target_alias --host=$build_alias --build=$build_alias
13531 CFLAGS
="${saved_CFLAGS}"
13533 # We just finished tests for the build machine, so rename
13534 # the file auto-build.h in the gcc directory.
13535 mv auto-host.h ..
/auto-build.h
13538 build_auto
=auto-build.h
13542 tm_file
="${tm_file} defaults.h"
13543 tm_p_file
="${tm_p_file} tm-preds.h"
13544 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13545 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13546 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13547 # put this back in temporarily.
13548 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13554 # Compile in configure arguments.
13555 if test -f configargs.h
; then
13556 # Being re-configured.
13557 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13558 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13560 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13563 # Double all backslashes and backslash all quotes to turn
13564 # gcc_config_arguments into a C string.
13565 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13566 $gcc_config_arguments
13568 gcc_config_arguments_str
=`cat conftest.out`
13571 cat > configargs.h
<<EOF
13572 /* Generated automatically. */
13573 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13574 static const char thread_model[] = "$thread_file";
13576 static const struct {
13577 const char *name, *value;
13578 } configure_default_options[] = $configure_default_options;
13581 # Internationalization
13582 # If we haven't got the data from the intl directory,
13583 # assume NLS is disabled.
13592 if test -f ..
/intl
/config.intl
; then
13593 . ..
/intl
/config.intl
13595 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13596 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13597 if test x
"$USE_NLS" != xyes
; then
13598 echo "$as_me:$LINENO: result: no" >&5
13599 echo "${ECHO_T}no" >&6
13601 echo "$as_me:$LINENO: result: yes" >&5
13602 echo "${ECHO_T}yes" >&6
13604 cat >>confdefs.h
<<\_ACEOF
13605 #define ENABLE_NLS 1
13609 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13610 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13611 # Look for .po and .gmo files in the source directory.
13614 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13615 # If there aren't any .gmo files the shell will give us the
13616 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13618 case "$cat" in *\
**)
13621 # The quadruple backslash is collapsed to a double backslash
13622 # by the backticks, then collapsed again by the double quotes,
13623 # leaving us with one backslash in the sed expression (right
13624 # before the dot that mustn't act as a wildcard).
13625 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13626 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13627 # The user is allowed to set LINGUAS to a list of languages to
13628 # install catalogs for. If it's empty that means "all of them."
13629 if test "x$LINGUAS" = x
; then
13630 CATALOGS
="$CATALOGS $cat"
13631 XLINGUAS
="$XLINGUAS $lang"
13633 case "$LINGUAS" in *$lang*)
13634 CATALOGS
="$CATALOGS $cat"
13635 XLINGUAS
="$XLINGUAS $lang"
13640 LINGUAS
="$XLINGUAS"
13641 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13642 echo "${ECHO_T}$LINGUAS" >&6
13655 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13656 # -liconv on the link line twice.
13657 case "$LIBINTL" in *$LIBICONV*)
13661 # Check whether --enable-secureplt or --disable-secureplt was given.
13662 if test "${enable_secureplt+set}" = set; then
13663 enableval
="$enable_secureplt"
13667 # Check whether --enable-cld or --disable-cld was given.
13668 if test "${enable_cld+set}" = set; then
13669 enableval
="$enable_cld"
13675 # Windows32 Registry support for specifying GCC installation paths.
13676 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13677 if test "${enable_win32_registry+set}" = set; then
13678 enableval
="$enable_win32_registry"
13683 win32 | pe | cygwin
* | mingw32
* | uwin
*)
13684 if test "x$enable_win32_registry" != xno
; then
13685 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13686 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13687 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 ac_func_search_save_LIBS
=$LIBS
13691 ac_cv_search_RegOpenKeyExA
=no
13692 cat >conftest.
$ac_ext <<_ACEOF
13695 cat confdefs.h
>>conftest.
$ac_ext
13696 cat >>conftest.
$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13699 /* Override any gcc2 internal prototype to avoid an error. */
13703 /* We use char because int might match the return type of a gcc2
13704 builtin and then its argument prototype would still apply. */
13705 char RegOpenKeyExA ();
13714 rm -f conftest.
$ac_objext conftest
$ac_exeext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13716 (eval $ac_link) 2>conftest.er1
13718 grep -v '^ *+' conftest.er1
>conftest.err
13720 cat conftest.err
>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try
='test -z "$ac_c_werror_flag"
13724 || test ! -s conftest.err'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; } &&
13730 { ac_try
='test -s conftest$ac_exeext'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_cv_search_RegOpenKeyExA
="none required"
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.
$ac_ext >&5
13742 rm -f conftest.err conftest.
$ac_objext \
13743 conftest
$ac_exeext conftest.
$ac_ext
13744 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13745 for ac_lib
in advapi32
; do
13746 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13747 cat >conftest.
$ac_ext <<_ACEOF
13750 cat confdefs.h
>>conftest.
$ac_ext
13751 cat >>conftest.
$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13754 /* Override any gcc2 internal prototype to avoid an error. */
13758 /* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13760 char RegOpenKeyExA ();
13769 rm -f conftest.
$ac_objext conftest
$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771 (eval $ac_link) 2>conftest.er1
13773 grep -v '^ *+' conftest.er1
>conftest.err
13775 cat conftest.err
>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try
='test -z "$ac_c_werror_flag"
13779 || test ! -s conftest.err'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; } &&
13785 { ac_try
='test -s conftest$ac_exeext'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.
$ac_ext >&5
13798 rm -f conftest.err conftest.
$ac_objext \
13799 conftest
$ac_exeext conftest.
$ac_ext
13802 LIBS
=$ac_func_search_save_LIBS
13804 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13805 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13806 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13807 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13810 enable_win32_registry
=no
13815 if test "x$enable_win32_registry" != xno
; then
13817 cat >>confdefs.h
<<\_ACEOF
13818 #define ENABLE_WIN32_REGISTRY 1
13822 if test "x$enable_win32_registry" != xyes \
13823 && test "x$enable_win32_registry" != x
; then
13825 cat >>confdefs.h
<<_ACEOF
13826 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13834 # Get an absolute path to the GCC top-level source directory
13835 holddir
=`${PWDCMD-pwd}`
13837 topdir
=`${PWDCMD-pwd}`
13840 # Conditionalize the makefile for this host machine.
13842 for f
in ${host_xmake_file}
13844 if test -f ${srcdir}/config
/$f
13846 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13850 # Conditionalize the makefile for this target machine.
13852 for f
in ${tmake_file}
13854 if test -f ${srcdir}/config
/$f
13856 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13859 tmake_file
="${tmake_file_}"
13861 out_object_file
=`basename $out_file .c`.o
13863 tm_file_list
="options.h"
13864 tm_include_list
="options.h"
13865 for f
in $tm_file; do
13868 f
=`echo $f | sed 's/^..//'`
13869 tm_file_list
="${tm_file_list} $f"
13870 tm_include_list
="${tm_include_list} $f"
13873 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13874 tm_include_list
="${tm_include_list} $f"
13877 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13878 tm_include_list
="${tm_include_list} config/$f"
13885 for f
in $tm_p_file; do
13888 tm_p_file_list
="${tm_p_file_list} $f"
13889 tm_p_include_list
="${tm_p_include_list} $f"
13892 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13893 tm_p_include_list
="${tm_p_include_list} config/$f"
13899 for f
in $xm_file; do
13902 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13903 xm_include_list
="${xm_include_list} $f"
13906 xm_file_list
="${xm_file_list} $f"
13907 xm_include_list
="${xm_include_list} $f"
13910 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13911 xm_include_list
="${xm_include_list} config/$f"
13917 host_xm_include_list
=
13918 for f
in $host_xm_file; do
13921 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13922 host_xm_include_list
="${host_xm_include_list} $f"
13925 host_xm_file_list
="${host_xm_file_list} $f"
13926 host_xm_include_list
="${host_xm_include_list} $f"
13929 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13930 host_xm_include_list
="${host_xm_include_list} config/$f"
13935 build_xm_file_list
=
13936 for f
in $build_xm_file; do
13939 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13940 build_xm_include_list
="${build_xm_include_list} $f"
13942 auto-build.h | auto-host.h
)
13943 build_xm_file_list
="${build_xm_file_list} $f"
13944 build_xm_include_list
="${build_xm_include_list} $f"
13947 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13948 build_xm_include_list
="${build_xm_include_list} config/$f"
13953 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13954 # cross-compiler which does not use the native headers and libraries.
13955 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13958 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13960 if test "x$with_build_sysroot" != x
; then
13961 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13963 # This value is used, even on a native system, because
13964 # CROSS_SYSTEM_HEADER_DIR is just
13965 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13966 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13969 if test x
$host != x
$target
13971 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13973 SYSTEM_HEADER_DIR
=$build_system_header_dir
13974 case "$host","$target" in
13975 # Darwin crosses can use the host system's libraries and headers,
13976 # because of the fat library support. Of course, it must be the
13977 # same version of Darwin on both sides. Allow the user to
13978 # just say --target=foo-darwin without a version number to mean
13979 # "the version on this system".
13980 *-*-darwin*,*-*-darwin*)
13981 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13982 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13983 if test $hostos = $targetos -o $targetos = darwin
; then
13985 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13990 i?
86-*-*,x86_64-
*-* \
13991 | powerpc
*-*-*,powerpc64
*-*-*)
13992 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13994 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13995 SYSTEM_HEADER_DIR
=$build_system_header_dir
13998 # If this is a cross-compiler that does not
13999 # have its own set of headers then define
14002 # If this is using newlib, without having the headers available now,
14003 # then define inhibit_libc in LIBGCC2_CFLAGS.
14004 # This prevents libgcc2 from containing any code which requires libc
14006 : ${inhibit_libc=false}
14007 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
14008 test x
$with_newlib = xyes
; } &&
14009 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
14014 # When building gcc with a cross-compiler, we need to adjust things so
14015 # that the generator programs are still built with the native compiler.
14016 # Also, we cannot run fixincludes or fix-header.
14018 # These are the normal (build=host) settings:
14019 CC_FOR_BUILD
='$(CC)'
14020 BUILD_CFLAGS
='$(ALL_CFLAGS)'
14021 BUILD_LDFLAGS
='$(LDFLAGS)'
14022 STMP_FIXINC
=stmp-fixinc
14024 # Possibly disable fixproto, on a per-target basis.
14025 case ${use_fixproto} in
14030 STMP_FIXPROTO
=stmp-fixproto
14035 # And these apply if build != host, or we are generating coverage data
14036 if test x
$build != x
$host ||
test "x$coverage_flags" != x
14038 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14039 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
14041 if test "x$TARGET_SYSTEM_ROOT" = x
; then
14042 if test "x$STMP_FIXPROTO" != x
; then
14043 STMP_FIXPROTO
=stmp-install-fixproto
14048 # Expand extra_headers to include complete path.
14049 # This substitutes for lots of t-* files.
14050 extra_headers_list
=
14051 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14052 for file in ${extra_headers} ; do
14053 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14056 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14057 if test x
"$use_gcc_tgmath" = xyes
14058 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14061 # Define collect2 in Makefile.
14062 case $host_can_use_collect2 in
14064 *) collect2
='collect2$(exeext)' ;;
14068 # Add a definition of USE_COLLECT2 if system wants one.
14069 case $use_collect2 in
14070 no
) use_collect2
= ;;
14073 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
14074 xm_defines
="${xm_defines} USE_COLLECT2"
14075 case $host_can_use_collect2 in
14077 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14078 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14079 { (exit 1); exit 1; }; }
14085 # ---------------------------
14086 # Assembler & linker features
14087 # ---------------------------
14089 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14090 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14091 # However when ld-new is first executed from the build tree, libtool will
14092 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14093 # to the build tree. While doing this we need to use the previous-stage
14094 # linker, or we have an infinite loop. The presence of a shell script as
14095 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14096 # the gcc/collect-ld script. So we need to know how libtool works, or
14097 # exec-tool will fail.
14102 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
14103 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
14108 macro_version
='2.2.6'
14109 macro_revision
='1.3012'
14123 ltmain
="$ac_aux_dir/ltmain.sh"
14125 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14126 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14127 if test "${lt_cv_path_SED+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 # Loop through the user's path and test for sed and gsed.
14131 # Then use that list of sed's as ones to test for truncation.
14132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14133 for as_dir
in $PATH
14136 test -z "$as_dir" && as_dir
=.
14137 for lt_ac_prog
in sed gsed
; do
14138 for ac_exec_ext
in '' $ac_executable_extensions; do
14139 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14140 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14148 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14149 # along with /bin/sed that truncates output.
14150 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
14151 test ! -f $lt_ac_sed && continue
14152 cat /dev
/null
> conftest.
in
14154 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
14155 # Check for GNU sed and select it if it is found.
14156 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
14157 lt_cv_path_SED
=$lt_ac_sed
14161 cat conftest.
in conftest.
in >conftest.tmp
14162 mv conftest.tmp conftest.
in
14163 cp conftest.
in conftest.
nl
14165 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
14166 cmp -s conftest.out conftest.
nl ||
break
14167 # 10000 chars as input seems more than enough
14168 test $lt_ac_count -gt 10 && break
14169 lt_ac_count
=`expr $lt_ac_count + 1`
14170 if test $lt_ac_count -gt $lt_ac_max; then
14171 lt_ac_max
=$lt_ac_count
14172 lt_cv_path_SED
=$lt_ac_sed
14179 SED
=$lt_cv_path_SED
14181 echo "$as_me:$LINENO: result: $SED" >&5
14182 echo "${ECHO_T}$SED" >&6
14184 test -z "$SED" && SED
=sed
14185 Xsed
="$SED -e 1s/^X//"
14197 echo "$as_me:$LINENO: checking for fgrep" >&5
14198 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14199 if test "${ac_cv_prog_fgrep+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
14203 then ac_cv_prog_fgrep
='grep -F'
14204 else ac_cv_prog_fgrep
='fgrep'
14207 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14208 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14209 FGREP
=$ac_cv_prog_fgrep
14212 test -z "$GREP" && GREP
=grep
14232 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14233 if test "${with_gnu_ld+set}" = set; then
14234 withval
="$with_gnu_ld"
14235 test "$withval" = no || with_gnu_ld
=yes
14240 if test "$GCC" = yes; then
14241 # Check if gcc -print-prog-name=ld gives a path.
14242 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14243 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14246 # gcc leaves a trailing carriage return which upsets mingw
14247 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14249 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14252 # Accept absolute paths.
14254 re_direlt
='/[^/][^/]*/\.\./'
14255 # Canonicalize the pathname of ld
14256 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14257 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14258 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14260 test -z "$LD" && LD
="$ac_prog"
14263 # If it fails, then pretend we aren't using GCC.
14267 # If it is relative, then search for the first ld in PATH.
14268 with_gnu_ld
=unknown
14271 elif test "$with_gnu_ld" = yes; then
14272 echo "$as_me:$LINENO: checking for GNU ld" >&5
14273 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14275 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14276 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14278 if test "${lt_cv_path_LD+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 if test -z "$LD"; then
14282 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14283 for ac_dir
in $PATH; do
14285 test -z "$ac_dir" && ac_dir
=.
14286 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14287 lt_cv_path_LD
="$ac_dir/$ac_prog"
14288 # Check to see if the program is GNU ld. I'd rather use --version,
14289 # but apparently some variants of GNU ld only accept -v.
14290 # Break only if it was the GNU/non-GNU ld that we prefer.
14291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14292 *GNU
* |
*'with BFD'*)
14293 test "$with_gnu_ld" != no
&& break
14296 test "$with_gnu_ld" != yes && break
14303 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14307 LD
="$lt_cv_path_LD"
14308 if test -n "$LD"; then
14309 echo "$as_me:$LINENO: result: $LD" >&5
14310 echo "${ECHO_T}$LD" >&6
14312 echo "$as_me:$LINENO: result: no" >&5
14313 echo "${ECHO_T}no" >&6
14315 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14316 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14317 { (exit 1); exit 1; }; }
14318 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14319 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14320 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14324 case `$LD -v 2>&1 </dev/null` in
14325 *GNU
* |
*'with BFD'*)
14326 lt_cv_prog_gnu_ld
=yes
14329 lt_cv_prog_gnu_ld
=no
14333 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14334 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14335 with_gnu_ld
=$lt_cv_prog_gnu_ld
14345 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14346 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14347 if test "${lt_cv_path_NM+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 if test -n "$NM"; then
14351 # Let the user override the test.
14352 lt_cv_path_NM
="$NM"
14354 lt_nm_to_check
="${ac_tool_prefix}nm"
14355 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14356 lt_nm_to_check
="$lt_nm_to_check nm"
14358 for lt_tmp_nm
in $lt_nm_to_check; do
14359 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14360 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14362 test -z "$ac_dir" && ac_dir
=.
14363 tmp_nm
="$ac_dir/$lt_tmp_nm"
14364 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14365 # Check to see if the nm accepts a BSD-compat flag.
14366 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14367 # nm: unknown option "B" ignored
14368 # Tru64's nm complains that /dev/null is an invalid object file
14369 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14370 */dev
/null
* |
*'Invalid file or object type'*)
14371 lt_cv_path_NM
="$tmp_nm -B"
14375 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14377 lt_cv_path_NM
="$tmp_nm -p"
14381 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14382 continue # so that we can try to find one that supports BSD flags
14391 : ${lt_cv_path_NM=no}
14394 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14395 echo "${ECHO_T}$lt_cv_path_NM" >&6
14396 if test "$lt_cv_path_NM" != "no"; then
14397 NM
="$lt_cv_path_NM"
14399 # Didn't find any BSD compatible name lister, look for dumpbin.
14400 if test -n "$ac_tool_prefix"; then
14401 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14404 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14405 echo "$as_me:$LINENO: checking for $ac_word" >&5
14406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14407 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14410 if test -n "$DUMPBIN"; then
14411 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14414 for as_dir
in $PATH
14417 test -z "$as_dir" && as_dir
=.
14418 for ac_exec_ext
in '' $ac_executable_extensions; do
14419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14420 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14429 DUMPBIN
=$ac_cv_prog_DUMPBIN
14430 if test -n "$DUMPBIN"; then
14431 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14432 echo "${ECHO_T}$DUMPBIN" >&6
14434 echo "$as_me:$LINENO: result: no" >&5
14435 echo "${ECHO_T}no" >&6
14438 test -n "$DUMPBIN" && break
14441 if test -z "$DUMPBIN"; then
14442 ac_ct_DUMPBIN
=$DUMPBIN
14443 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14445 # Extract the first word of "$ac_prog", so it can be a program name with args.
14446 set dummy
$ac_prog; ac_word
=$2
14447 echo "$as_me:$LINENO: checking for $ac_word" >&5
14448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14449 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 if test -n "$ac_ct_DUMPBIN"; then
14453 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14456 for as_dir
in $PATH
14459 test -z "$as_dir" && as_dir
=.
14460 for ac_exec_ext
in '' $ac_executable_extensions; do
14461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14462 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14471 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14472 if test -n "$ac_ct_DUMPBIN"; then
14473 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14474 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14476 echo "$as_me:$LINENO: result: no" >&5
14477 echo "${ECHO_T}no" >&6
14480 test -n "$ac_ct_DUMPBIN" && break
14482 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
14484 DUMPBIN
=$ac_ct_DUMPBIN
14488 if test "$DUMPBIN" != ":"; then
14492 test -z "$NM" && NM
=nm
14499 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14500 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14501 if test "${lt_cv_nm_interface+set}" = set; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 lt_cv_nm_interface
="BSD nm"
14505 echo "int some_variable = 0;" > conftest.
$ac_ext
14506 (eval echo "\"\$as_me:14506: $ac_compile\"" >&5)
14507 (eval "$ac_compile" 2>conftest.err
)
14508 cat conftest.err
>&5
14509 (eval echo "\"\$as_me:14509: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14510 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14511 cat conftest.err
>&5
14512 (eval echo "\"\$as_me:14512: output\"" >&5)
14513 cat conftest.out
>&5
14514 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14515 lt_cv_nm_interface
="MS dumpbin"
14519 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14520 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14522 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14523 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14525 if test "$LN_S" = "ln -s"; then
14526 echo "$as_me:$LINENO: result: yes" >&5
14527 echo "${ECHO_T}yes" >&6
14529 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14530 echo "${ECHO_T}no, using $LN_S" >&6
14533 # find the maximum length of command line arguments
14534 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14535 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14536 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14544 # On DJGPP, this test can blow up pretty badly due to problems in libc
14545 # (any single argument exceeding 2000 bytes causes a buffer overrun
14546 # during glob expansion). Even if it were fixed, the result of this
14547 # check would be larger than it should be.
14548 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14552 # Under GNU Hurd, this test is not required because there is
14553 # no limit to the length of command line arguments.
14554 # Libtool will interpret -1 as no limit whatsoever
14555 lt_cv_sys_max_cmd_len
=-1;
14558 cygwin
* | mingw
* | cegcc
*)
14559 # On Win9x/ME, this test blows up -- it succeeds, but takes
14560 # about 5 minutes as the teststring grows exponentially.
14561 # Worse, since 9x/ME are not pre-emptively multitasking,
14562 # you end up with a "frozen" computer, even though with patience
14563 # the test eventually succeeds (with a max line length of 256k).
14564 # Instead, let's just punt: use the minimum linelength reported by
14565 # all of the supported platforms: 8192 (on NT/2K/XP).
14566 lt_cv_sys_max_cmd_len
=8192;
14570 # On AmigaOS with pdksh, this test takes hours, literally.
14571 # So we just punt and use a minimum line length of 8192.
14572 lt_cv_sys_max_cmd_len
=8192;
14575 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14576 # This has been around since 386BSD, at least. Likely further.
14577 if test -x /sbin
/sysctl
; then
14578 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14579 elif test -x /usr
/sbin
/sysctl
; then
14580 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14582 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14584 # And add a safety zone
14585 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14586 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14590 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14591 lt_cv_sys_max_cmd_len
=196608
14595 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14596 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14597 # nice to cause kernel panics so lets avoid the loop below.
14598 # First set a reasonable default.
14599 lt_cv_sys_max_cmd_len
=16384
14601 if test -x /sbin
/sysconfig
; then
14602 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14603 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14608 lt_cv_sys_max_cmd_len
=102400
14610 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14611 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14612 if test -n "$kargmax"; then
14613 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14615 lt_cv_sys_max_cmd_len
=32768
14619 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14620 if test -n "$lt_cv_sys_max_cmd_len"; then
14621 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14622 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14624 # Make teststring a little bigger before we do anything with it.
14625 # a 1K string should be a reasonable start.
14626 for i
in 1 2 3 4 5 6 7 8 ; do
14627 teststring
=$teststring$teststring
14629 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14630 # If test is not a shell built-in, we'll probably end up computing a
14631 # maximum length that is only half of the actual maximum length, but
14633 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14634 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
14635 test $i != 17 # 1/2 MB should be enough
14638 teststring
=$teststring$teststring
14640 # Only check the string length outside the loop.
14641 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14643 # Add a significant safety factor because C++ compilers can tack on
14644 # massive amounts of additional arguments before passing them to the
14645 # linker. It appears as though 1/2 is a usable value.
14646 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14653 if test -n $lt_cv_sys_max_cmd_len ; then
14654 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14655 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14657 echo "$as_me:$LINENO: result: none" >&5
14658 echo "${ECHO_T}none" >&6
14660 max_cmd_len
=$lt_cv_sys_max_cmd_len
14671 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14672 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14673 # Try some XSI features
14675 ( _lt_dummy
="a/b/c"
14676 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14678 && eval 'test $(( 1 + 1 )) -eq 2 \
14679 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14681 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
14682 echo "${ECHO_T}$xsi_shell" >&6
14685 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
14686 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
14688 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14690 && lt_shell_append=yes
14691 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
14692 echo "${ECHO_T}$lt_shell_append" >&6
14695 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14705 # test EBCDIC or ASCII
14706 case `echo X|tr X '\101'` in
14707 A) # ASCII based system
14708 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14709 lt_SP2NL='tr \040 \012'
14710 lt_NL2SP='tr \015\012 \040\040'
14712 *) # EBCDIC based system
14713 lt_SP2NL='tr \100 \n'
14714 lt_NL2SP='tr \r\n \100\100'
14726 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
14727 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
14728 if test "${lt_cv_ld_reload_flag+set}" = set; then
14729 echo $ECHO_N "(cached
) $ECHO_C" >&6
14731 lt_cv_ld_reload_flag='-r'
14733 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
14734 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14735 reload_flag=$lt_cv_ld_reload_flag
14736 case $reload_flag in
14738 *) reload_flag=" $reload_flag" ;;
14740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14743 if test "$GCC" = yes; then
14744 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14746 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14759 if test -n "$ac_tool_prefix"; then
14760 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14761 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14762 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14763 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14764 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14765 echo $ECHO_N "(cached
) $ECHO_C" >&6
14767 if test -n "$OBJDUMP"; then
14768 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14771 for as_dir in $PATH
14774 test -z "$as_dir" && as_dir=.
14775 for ac_exec_ext in '' $ac_executable_extensions; do
14776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14777 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14778 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14786 OBJDUMP=$ac_cv_prog_OBJDUMP
14787 if test -n "$OBJDUMP"; then
14788 echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
14789 echo "${ECHO_T}$OBJDUMP" >&6
14791 echo "$as_me:$LINENO: result
: no
" >&5
14792 echo "${ECHO_T}no
" >&6
14796 if test -z "$ac_cv_prog_OBJDUMP"; then
14797 ac_ct_OBJDUMP=$OBJDUMP
14798 # Extract the first word of "objdump
", so it can be a program name with args.
14799 set dummy objdump; ac_word=$2
14800 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14801 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14802 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14803 echo $ECHO_N "(cached
) $ECHO_C" >&6
14805 if test -n "$ac_ct_OBJDUMP"; then
14806 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14809 for as_dir in $PATH
14812 test -z "$as_dir" && as_dir=.
14813 for ac_exec_ext in '' $ac_executable_extensions; do
14814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14815 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14816 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14822 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false
"
14825 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14826 if test -n "$ac_ct_OBJDUMP"; then
14827 echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
14828 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
14830 echo "$as_me:$LINENO: result
: no
" >&5
14831 echo "${ECHO_T}no
" >&6
14834 OBJDUMP=$ac_ct_OBJDUMP
14836 OBJDUMP="$ac_cv_prog_OBJDUMP"
14839 test -z "$OBJDUMP" && OBJDUMP=objdump
14849 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
14850 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
14851 if test "${lt_cv_deplibs_check_method+set}" = set; then
14852 echo $ECHO_N "(cached
) $ECHO_C" >&6
14854 lt_cv_file_magic_cmd='$MAGIC_CMD'
14855 lt_cv_file_magic_test_file=
14856 lt_cv_deplibs_check_method='unknown'
14857 # Need to set the preceding variable on all platforms that support
14858 # interlibrary dependencies.
14859 # 'none' -- dependencies not supported.
14860 # `unknown' -- same as none, but documents that we really don't know.
14861 # 'pass_all' -- all dependencies passed with no checks.
14862 # 'test_compile' -- check by making test program.
14863 # 'file_magic [[regex]]' -- check by looking for files in library path
14864 # which responds to the $file_magic_cmd with a given extended regex.
14865 # If you have `file' or equivalent on your system and you're not sure
14866 # whether `pass_all' will *always* work, you probably want this one.
14870 lt_cv_deplibs_check_method=pass_all
14874 lt_cv_deplibs_check_method=pass_all
14878 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14879 lt_cv_file_magic_cmd='/usr/bin/file -L'
14880 lt_cv_file_magic_test_file=/shlib/libc.so
14884 # func_win32_libid is a shell function defined in ltmain.sh
14885 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14886 lt_cv_file_magic_cmd='func_win32_libid'
14890 # Base MSYS/MinGW do not provide the 'file' command needed by
14891 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14892 # unless we find 'file', for example because we are cross-compiling.
14893 if ( file / ) >/dev/null 2>&1; then
14894 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14895 lt_cv_file_magic_cmd='func_win32_libid'
14897 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14898 lt_cv_file_magic_cmd='$OBJDUMP -f'
14903 # use the weaker test based on 'objdump'. See mingw*.
14904 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14905 lt_cv_file_magic_cmd='$OBJDUMP -f'
14908 darwin* | rhapsody*)
14909 lt_cv_deplibs_check_method=pass_all
14912 freebsd* | dragonfly*)
14913 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14916 # Not sure whether the presence of OpenBSD here was a mistake.
14917 # Let's accept both of them until this is cleared up.
14918 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14919 lt_cv_file_magic_cmd=/usr/bin/file
14920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14924 lt_cv_deplibs_check_method=pass_all
14929 lt_cv_deplibs_check_method=pass_all
14932 hpux10.20* | hpux11*)
14933 lt_cv_file_magic_cmd=/usr/bin/file
14936 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14937 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14940 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]'
14941 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14945 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14951 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14955 irix5* | irix6* | nonstopux*)
14957 *-32|*"-32 ") libmagic=32-bit;;
14958 *-n32|*"-n32 ") libmagic=N32;;
14959 *-64|*"-64 ") libmagic=64-bit;;
14960 *) libmagic=never-match;;
14962 lt_cv_deplibs_check_method=pass_all
14965 # This must be Linux ELF.
14966 linux* | k*bsd*-gnu)
14967 lt_cv_deplibs_check_method=pass_all
14971 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14980 lt_cv_file_magic_cmd=/usr/bin/file
14981 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14985 lt_cv_deplibs_check_method=pass_all
14989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14996 osf3* | osf4* | osf5*)
14997 lt_cv_deplibs_check_method=pass_all
15001 lt_cv_deplibs_check_method=pass_all
15005 lt_cv_deplibs_check_method=pass_all
15008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15009 lt_cv_deplibs_check_method=pass_all
15013 case $host_vendor in
15015 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]'
15016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15019 lt_cv_deplibs_check_method=pass_all
15022 lt_cv_file_magic_cmd='/bin/file'
15023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15026 lt_cv_file_magic_cmd='/bin/file'
15027 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
15028 lt_cv_file_magic_test_file=/lib/libc.so
15031 lt_cv_deplibs_check_method=pass_all
15034 lt_cv_deplibs_check_method=pass_all
15040 lt_cv_deplibs_check_method=pass_all
15045 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
15046 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15047 file_magic_cmd=$lt_cv_file_magic_cmd
15048 deplibs_check_method=$lt_cv_deplibs_check_method
15049 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15062 if test -n "$ac_tool_prefix"; then
15063 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15064 set dummy ${ac_tool_prefix}ar; ac_word=$2
15065 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15066 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15067 if test "${ac_cv_prog_AR+set}" = set; then
15068 echo $ECHO_N "(cached
) $ECHO_C" >&6
15070 if test -n "$AR"; then
15071 ac_cv_prog_AR="$AR" # Let the user override the test.
15073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15074 for as_dir in $PATH
15077 test -z "$as_dir" && as_dir=.
15078 for ac_exec_ext in '' $ac_executable_extensions; do
15079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15080 ac_cv_prog_AR="${ac_tool_prefix}ar"
15081 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15090 if test -n "$AR"; then
15091 echo "$as_me:$LINENO: result
: $AR" >&5
15092 echo "${ECHO_T}$AR" >&6
15094 echo "$as_me:$LINENO: result
: no
" >&5
15095 echo "${ECHO_T}no
" >&6
15099 if test -z "$ac_cv_prog_AR"; then
15101 # Extract the first word of "ar", so it can be a program name with args.
15102 set dummy ar; ac_word=$2
15103 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15104 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15105 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15106 echo $ECHO_N "(cached
) $ECHO_C" >&6
15108 if test -n "$ac_ct_AR"; then
15109 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15115 test -z "$as_dir" && as_dir=.
15116 for ac_exec_ext in '' $ac_executable_extensions; do
15117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118 ac_cv_prog_ac_ct_AR="ar"
15119 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15125 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
15128 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15129 if test -n "$ac_ct_AR"; then
15130 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
15131 echo "${ECHO_T}$ac_ct_AR" >&6
15133 echo "$as_me:$LINENO: result
: no
" >&5
15134 echo "${ECHO_T}no
" >&6
15139 AR="$ac_cv_prog_AR"
15142 test -z "$AR" && AR=ar
15143 test -z "$AR_FLAGS" && AR_FLAGS=cru
15155 if test -n "$ac_tool_prefix"; then
15156 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15157 set dummy ${ac_tool_prefix}strip; ac_word=$2
15158 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15159 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15160 if test "${ac_cv_prog_STRIP+set}" = set; then
15161 echo $ECHO_N "(cached
) $ECHO_C" >&6
15163 if test -n "$STRIP"; then
15164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15167 for as_dir in $PATH
15170 test -z "$as_dir" && as_dir=.
15171 for ac_exec_ext in '' $ac_executable_extensions; do
15172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15173 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15174 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15182 STRIP=$ac_cv_prog_STRIP
15183 if test -n "$STRIP"; then
15184 echo "$as_me:$LINENO: result
: $STRIP" >&5
15185 echo "${ECHO_T}$STRIP" >&6
15187 echo "$as_me:$LINENO: result
: no
" >&5
15188 echo "${ECHO_T}no
" >&6
15192 if test -z "$ac_cv_prog_STRIP"; then
15194 # Extract the first word of "strip
", so it can be a program name with args.
15195 set dummy strip; ac_word=$2
15196 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15197 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15199 echo $ECHO_N "(cached
) $ECHO_C" >&6
15201 if test -n "$ac_ct_STRIP"; then
15202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15205 for as_dir in $PATH
15208 test -z "$as_dir" && as_dir=.
15209 for ac_exec_ext in '' $ac_executable_extensions; do
15210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15211 ac_cv_prog_ac_ct_STRIP="strip
"
15212 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15218 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15222 if test -n "$ac_ct_STRIP"; then
15223 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
15224 echo "${ECHO_T}$ac_ct_STRIP" >&6
15226 echo "$as_me:$LINENO: result
: no
" >&5
15227 echo "${ECHO_T}no
" >&6
15232 STRIP="$ac_cv_prog_STRIP"
15235 test -z "$STRIP" && STRIP=:
15242 if test -n "$ac_tool_prefix"; then
15243 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15245 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15246 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15247 if test "${ac_cv_prog_RANLIB+set}" = set; then
15248 echo $ECHO_N "(cached
) $ECHO_C" >&6
15250 if test -n "$RANLIB"; then
15251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $PATH
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15261 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15269 RANLIB=$ac_cv_prog_RANLIB
15270 if test -n "$RANLIB"; then
15271 echo "$as_me:$LINENO: result
: $RANLIB" >&5
15272 echo "${ECHO_T}$RANLIB" >&6
15274 echo "$as_me:$LINENO: result
: no
" >&5
15275 echo "${ECHO_T}no
" >&6
15279 if test -z "$ac_cv_prog_RANLIB"; then
15280 ac_ct_RANLIB=$RANLIB
15281 # Extract the first word of "ranlib
", so it can be a program name with args.
15282 set dummy ranlib; ac_word=$2
15283 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15284 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15286 echo $ECHO_N "(cached
) $ECHO_C" >&6
15288 if test -n "$ac_ct_RANLIB"; then
15289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15292 for as_dir in $PATH
15295 test -z "$as_dir" && as_dir=.
15296 for ac_exec_ext in '' $ac_executable_extensions; do
15297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15298 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15299 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15305 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15309 if test -n "$ac_ct_RANLIB"; then
15310 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
15311 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15313 echo "$as_me:$LINENO: result
: no
" >&5
15314 echo "${ECHO_T}no
" >&6
15317 RANLIB=$ac_ct_RANLIB
15319 RANLIB="$ac_cv_prog_RANLIB"
15322 test -z "$RANLIB" && RANLIB=:
15329 # Determine commands to create old-style static archives.
15330 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15331 old_postinstall_cmds='chmod 644 $oldlib'
15332 old_postuninstall_cmds=
15334 if test -n "$RANLIB"; then
15337 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15340 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15343 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15379 # If no C compiler was specified, use CC.
15382 # If no C compiler flags were specified, use CFLAGS.
15383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15385 # Allow CC to be a program name with arguments.
15389 # Check for command to grab the raw symbol name followed by C symbol from nm.
15390 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
15391 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
15392 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15393 echo $ECHO_N "(cached
) $ECHO_C" >&6
15396 # These are sane defaults that work on at least a few old systems.
15397 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15399 # Character class describing NM global symbol codes.
15400 symcode='[BCDEGRST]'
15402 # Regexp to match symbols that can be accessed directly from C.
15403 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15405 # Define system-specific variables.
15410 cygwin* | mingw* | pw32* | cegcc*)
15411 symcode='[ABCDGISTW]'
15414 if test "$host_cpu" = ia64; then
15415 symcode='[ABCDEGRST]'
15418 irix* | nonstopux*)
15419 symcode='[BCDEGRST]'
15422 symcode='[BCDEGQRST]'
15433 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15441 # If we're using GNU nm, then use its standard symbol codes.
15442 case `$NM -V 2>&1` in
15443 *GNU* | *'with BFD'*)
15444 symcode='[ABCDGIRSTW]' ;;
15447 # Transform an extracted symbol line into a proper C declaration.
15448 # Some systems (esp. on ia64) link data and code symbols differently,
15449 # so use this general approach.
15450 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15452 # Transform an extracted symbol line into symbol name and symbol address
15453 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15454 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
15456 # Handle CRLF in mingw tool chain
15460 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15464 # Try without a prefix underscore, then with it.
15465 for ac_symprfx in "" "_
"; do
15467 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15468 symxfrm="\\1 $ac_symprfx\\2 \\2"
15470 # Write the raw and C identifiers.
15471 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15472 # Fake it for dumpbin and say T for any non-static function
15473 # and D for any global variable.
15474 # Also find C++ and __fastcall symbols from MSVC++,
15475 # which start with @ or ?.
15476 lt_cv_sys_global_symbol_pipe="$AWK '"\
15477 " {last_section=section; section=\$ 3};"\
15478 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15479 " \$ 0!~/External *\|/{next};"\
15480 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15481 " {if(hide[section]) next};"\
15482 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15483 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15484 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15485 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15486 " ' prfx
=^
$ac_symprfx"
15488 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15491 # Check to see that the pipe works correctly.
15495 cat > conftest.$ac_ext <<_LT_EOF
15500 void nm_test_func(void);
15501 void nm_test_func(void){}
15505 int main(){nm_test_var='a';nm_test_func();return(0);}
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>&5
15511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15512 (exit $ac_status); }; then
15513 # Now try to grab the symbols.
15515 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
15516 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15519 (exit $ac_status); } && test -s "$nlist"; then
15520 # Try sorting and uniquifying the output.
15521 if sort "$nlist" | uniq > "$nlist"T; then
15522 mv -f "$nlist"T "$nlist"
15527 # Make sure that we snagged all the symbols we need.
15528 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15529 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15530 cat <<_LT_EOF > conftest.$ac_ext
15536 # Now generate the symbol file.
15537 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15539 cat <<_LT_EOF >> conftest.$ac_ext
15541 /* The mapping between symbol names and symbols. */
15546 lt__PROGRAM__LTX_preloaded_symbols[] =
15548 { "@PROGRAM@
", (void *) 0 },
15550 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15551 cat <<\_LT_EOF >> conftest.$ac_ext
15555 /* This works around a problem in FreeBSD linker */
15556 #ifdef FREEBSD_WORKAROUND
15557 static const void *lt_preloaded_setup() {
15558 return lt__PROGRAM__LTX_preloaded_symbols;
15566 # Now try linking the two files.
15567 mv conftest.$ac_objext conftstm.$ac_objext
15568 lt_save_LIBS="$LIBS"
15569 lt_save_CFLAGS="$CFLAGS"
15570 LIBS="conftstm.
$ac_objext"
15571 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15573 (eval $ac_link) 2>&5
15575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15576 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15579 LIBS="$lt_save_LIBS"
15580 CFLAGS="$lt_save_CFLAGS"
15582 echo "cannot
find nm_test_func
in $nlist" >&5
15585 echo "cannot
find nm_test_var
in $nlist" >&5
15588 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15591 echo "$progname: failed program was
:" >&5
15592 cat conftest.$ac_ext >&5
15594 rm -rf conftest* conftst*
15596 # Do not use the global_symbol_pipe unless it works.
15597 if test "$pipe_works" = yes; then
15600 lt_cv_sys_global_symbol_pipe=
15606 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15607 lt_cv_sys_global_symbol_to_cdecl=
15609 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15610 echo "$as_me:$LINENO: result
: failed
" >&5
15611 echo "${ECHO_T}failed
" >&6
15613 echo "$as_me:$LINENO: result
: ok
" >&5
15614 echo "${ECHO_T}ok
" >&6
15638 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15639 if test "${enable_libtool_lock+set}" = set; then
15640 enableval="$enable_libtool_lock"
15643 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15645 # Some flags need to be propagated to the compiler or linker for good
15649 # Find out which ABI we are using.
15650 echo 'int i;' > conftest.$ac_ext
15651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15652 (eval $ac_compile) 2>&5
15654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15655 (exit $ac_status); }; then
15656 case `/usr/bin/file conftest.$ac_objext` in
15658 HPUX_IA64_MODE="32"
15661 HPUX_IA64_MODE="64"
15668 # Find out which ABI we are using.
15669 echo '#line 15669 "configure
"' > conftest.$ac_ext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671 (eval $ac_compile) 2>&5
15673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15674 (exit $ac_status); }; then
15675 if test "$lt_cv_prog_gnu_ld" = yes; then
15676 case `/usr/bin/file conftest.$ac_objext` in
15678 LD="${LD-ld} -melf32bsmip"
15681 LD="${LD-ld} -melf32bmipn32"
15684 LD="${LD-ld} -melf64bmip"
15688 case `/usr/bin/file conftest.$ac_objext` in
15704 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15705 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15706 # Find out which ABI we are using.
15707 echo 'int i;' > conftest.$ac_ext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15709 (eval $ac_compile) 2>&5
15711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15712 (exit $ac_status); }; then
15713 case `/usr/bin/file conftest.o` in
15716 x86_64-*kfreebsd*-gnu)
15717 LD="${LD-ld} -m elf_i386_fbsd
"
15720 LD="${LD-ld} -m elf_i386
"
15722 ppc64-*linux*|powerpc64-*linux*)
15723 LD="${LD-ld} -m elf32ppclinux
"
15726 LD="${LD-ld} -m elf_s390
"
15729 LD="${LD-ld} -m elf32_sparc
"
15735 x86_64-*kfreebsd*-gnu)
15736 LD="${LD-ld} -m elf_x86_64_fbsd
"
15739 LD="${LD-ld} -m elf_x86_64
"
15741 ppc*-*linux*|powerpc*-*linux*)
15742 LD="${LD-ld} -m elf64ppc
"
15744 s390*-*linux*|s390*-*tpf*)
15745 LD="${LD-ld} -m elf64_s390
"
15748 LD="${LD-ld} -m elf64_sparc
"
15758 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15759 SAVE_CFLAGS="$CFLAGS"
15760 CFLAGS="$CFLAGS -belf"
15761 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
15762 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
15763 if test "${lt_cv_cc_needs_belf+set}" = set; then
15764 echo $ECHO_N "(cached
) $ECHO_C" >&6
15767 ac_cpp='$CPP $CPPFLAGS'
15768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15789 (eval $ac_link) 2>conftest.er1
15791 grep -v '^ *+' conftest.er1 >conftest.err
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -z "$ac_c_werror_flag"
15797 || test ! -s conftest.err'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15802 (exit $ac_status); }; } &&
15803 { ac_try='test -s conftest$ac_exeext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 lt_cv_cc_needs_belf=yes
15811 echo "$as_me: failed program was
:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 lt_cv_cc_needs_belf=no
15816 rm -f conftest.err conftest.$ac_objext \
15817 conftest$ac_exeext conftest.$ac_ext
15819 ac_cpp='$CPP $CPPFLAGS'
15820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15825 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
15826 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15827 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15828 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15829 CFLAGS="$SAVE_CFLAGS"
15833 # Find out which ABI we are using.
15834 echo 'int i;' > conftest.$ac_ext
15835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15836 (eval $ac_compile) 2>&5
15838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15839 (exit $ac_status); }; then
15840 case `/usr/bin/file conftest.o` in
15842 case $lt_cv_prog_gnu_ld in
15843 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15845 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15857 need_locks="$enable_libtool_lock"
15861 rhapsody* | darwin*)
15862 if test -n "$ac_tool_prefix"; then
15863 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15864 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15865 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15866 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15867 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
15868 echo $ECHO_N "(cached
) $ECHO_C" >&6
15870 if test -n "$DSYMUTIL"; then
15871 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15874 for as_dir in $PATH
15877 test -z "$as_dir" && as_dir=.
15878 for ac_exec_ext in '' $ac_executable_extensions; do
15879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15880 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15881 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15889 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15890 if test -n "$DSYMUTIL"; then
15891 echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
15892 echo "${ECHO_T}$DSYMUTIL" >&6
15894 echo "$as_me:$LINENO: result
: no
" >&5
15895 echo "${ECHO_T}no
" >&6
15899 if test -z "$ac_cv_prog_DSYMUTIL"; then
15900 ac_ct_DSYMUTIL=$DSYMUTIL
15901 # Extract the first word of "dsymutil
", so it can be a program name with args.
15902 set dummy dsymutil; ac_word=$2
15903 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15904 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15905 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
15906 echo $ECHO_N "(cached
) $ECHO_C" >&6
15908 if test -n "$ac_ct_DSYMUTIL"; then
15909 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912 for as_dir in $PATH
15915 test -z "$as_dir" && as_dir=.
15916 for ac_exec_ext in '' $ac_executable_extensions; do
15917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15918 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15919 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15925 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
15928 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15929 if test -n "$ac_ct_DSYMUTIL"; then
15930 echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
15931 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
15933 echo "$as_me:$LINENO: result
: no
" >&5
15934 echo "${ECHO_T}no
" >&6
15937 DSYMUTIL=$ac_ct_DSYMUTIL
15939 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15942 if test -n "$ac_tool_prefix"; then
15943 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15944 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15945 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15946 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15947 if test "${ac_cv_prog_NMEDIT+set}" = set; then
15948 echo $ECHO_N "(cached
) $ECHO_C" >&6
15950 if test -n "$NMEDIT"; then
15951 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15954 for as_dir in $PATH
15957 test -z "$as_dir" && as_dir=.
15958 for ac_exec_ext in '' $ac_executable_extensions; do
15959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15960 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15961 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15969 NMEDIT=$ac_cv_prog_NMEDIT
15970 if test -n "$NMEDIT"; then
15971 echo "$as_me:$LINENO: result
: $NMEDIT" >&5
15972 echo "${ECHO_T}$NMEDIT" >&6
15974 echo "$as_me:$LINENO: result
: no
" >&5
15975 echo "${ECHO_T}no
" >&6
15979 if test -z "$ac_cv_prog_NMEDIT"; then
15980 ac_ct_NMEDIT=$NMEDIT
15981 # Extract the first word of "nmedit
", so it can be a program name with args.
15982 set dummy nmedit; ac_word=$2
15983 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15984 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15985 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
15986 echo $ECHO_N "(cached
) $ECHO_C" >&6
15988 if test -n "$ac_ct_NMEDIT"; then
15989 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992 for as_dir in $PATH
15995 test -z "$as_dir" && as_dir=.
15996 for ac_exec_ext in '' $ac_executable_extensions; do
15997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15998 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15999 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16005 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
16008 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16009 if test -n "$ac_ct_NMEDIT"; then
16010 echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
16011 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
16013 echo "$as_me:$LINENO: result
: no
" >&5
16014 echo "${ECHO_T}no
" >&6
16017 NMEDIT=$ac_ct_NMEDIT
16019 NMEDIT="$ac_cv_prog_NMEDIT"
16022 if test -n "$ac_tool_prefix"; then
16023 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
16024 set dummy ${ac_tool_prefix}lipo; ac_word=$2
16025 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16026 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16027 if test "${ac_cv_prog_LIPO+set}" = set; then
16028 echo $ECHO_N "(cached
) $ECHO_C" >&6
16030 if test -n "$LIPO"; then
16031 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034 for as_dir in $PATH
16037 test -z "$as_dir" && as_dir=.
16038 for ac_exec_ext in '' $ac_executable_extensions; do
16039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16040 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
16041 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16049 LIPO=$ac_cv_prog_LIPO
16050 if test -n "$LIPO"; then
16051 echo "$as_me:$LINENO: result
: $LIPO" >&5
16052 echo "${ECHO_T}$LIPO" >&6
16054 echo "$as_me:$LINENO: result
: no
" >&5
16055 echo "${ECHO_T}no
" >&6
16059 if test -z "$ac_cv_prog_LIPO"; then
16061 # Extract the first word of "lipo
", so it can be a program name with args.
16062 set dummy lipo; ac_word=$2
16063 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16064 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16065 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
16066 echo $ECHO_N "(cached
) $ECHO_C" >&6
16068 if test -n "$ac_ct_LIPO"; then
16069 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16072 for as_dir in $PATH
16075 test -z "$as_dir" && as_dir=.
16076 for ac_exec_ext in '' $ac_executable_extensions; do
16077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16078 ac_cv_prog_ac_ct_LIPO="lipo
"
16079 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16085 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
16088 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16089 if test -n "$ac_ct_LIPO"; then
16090 echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
16091 echo "${ECHO_T}$ac_ct_LIPO" >&6
16093 echo "$as_me:$LINENO: result
: no
" >&5
16094 echo "${ECHO_T}no
" >&6
16099 LIPO="$ac_cv_prog_LIPO"
16102 if test -n "$ac_tool_prefix"; then
16103 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
16104 set dummy ${ac_tool_prefix}otool; ac_word=$2
16105 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16106 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16107 if test "${ac_cv_prog_OTOOL+set}" = set; then
16108 echo $ECHO_N "(cached
) $ECHO_C" >&6
16110 if test -n "$OTOOL"; then
16111 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16117 test -z "$as_dir" && as_dir=.
16118 for ac_exec_ext in '' $ac_executable_extensions; do
16119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16120 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16121 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16129 OTOOL=$ac_cv_prog_OTOOL
16130 if test -n "$OTOOL"; then
16131 echo "$as_me:$LINENO: result
: $OTOOL" >&5
16132 echo "${ECHO_T}$OTOOL" >&6
16134 echo "$as_me:$LINENO: result
: no
" >&5
16135 echo "${ECHO_T}no
" >&6
16139 if test -z "$ac_cv_prog_OTOOL"; then
16141 # Extract the first word of "otool
", so it can be a program name with args.
16142 set dummy otool; ac_word=$2
16143 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16144 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16145 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16146 echo $ECHO_N "(cached
) $ECHO_C" >&6
16148 if test -n "$ac_ct_OTOOL"; then
16149 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in $PATH
16155 test -z "$as_dir" && as_dir=.
16156 for ac_exec_ext in '' $ac_executable_extensions; do
16157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16158 ac_cv_prog_ac_ct_OTOOL="otool
"
16159 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16165 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16168 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16169 if test -n "$ac_ct_OTOOL"; then
16170 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
16171 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16173 echo "$as_me:$LINENO: result
: no
" >&5
16174 echo "${ECHO_T}no
" >&6
16179 OTOOL="$ac_cv_prog_OTOOL"
16182 if test -n "$ac_tool_prefix"; then
16183 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16184 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16185 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16186 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16187 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16188 echo $ECHO_N "(cached
) $ECHO_C" >&6
16190 if test -n "$OTOOL64"; then
16191 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16194 for as_dir in $PATH
16197 test -z "$as_dir" && as_dir=.
16198 for ac_exec_ext in '' $ac_executable_extensions; do
16199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16200 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16201 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16209 OTOOL64=$ac_cv_prog_OTOOL64
16210 if test -n "$OTOOL64"; then
16211 echo "$as_me:$LINENO: result
: $OTOOL64" >&5
16212 echo "${ECHO_T}$OTOOL64" >&6
16214 echo "$as_me:$LINENO: result
: no
" >&5
16215 echo "${ECHO_T}no
" >&6
16219 if test -z "$ac_cv_prog_OTOOL64"; then
16220 ac_ct_OTOOL64=$OTOOL64
16221 # Extract the first word of "otool64
", so it can be a program name with args.
16222 set dummy otool64; ac_word=$2
16223 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16224 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16225 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16226 echo $ECHO_N "(cached
) $ECHO_C" >&6
16228 if test -n "$ac_ct_OTOOL64"; then
16229 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232 for as_dir in $PATH
16235 test -z "$as_dir" && as_dir=.
16236 for ac_exec_ext in '' $ac_executable_extensions; do
16237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16238 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16239 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16245 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16248 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16249 if test -n "$ac_ct_OTOOL64"; then
16250 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
16251 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16253 echo "$as_me:$LINENO: result
: no
" >&5
16254 echo "${ECHO_T}no
" >&6
16257 OTOOL64=$ac_ct_OTOOL64
16259 OTOOL64="$ac_cv_prog_OTOOL64"
16288 echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
16289 echo $ECHO_N "checking
for -single_module linker flag...
$ECHO_C" >&6
16290 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16291 echo $ECHO_N "(cached
) $ECHO_C" >&6
16293 lt_cv_apple_cc_single_mod=no
16294 if test -z "${LT_MULTI_MODULE}"; then
16295 # By default we will add the -single_module flag. You can override
16296 # by either setting the environment variable LT_MULTI_MODULE
16297 # non-empty at configure time, or by adding -multi_module to the
16299 rm -rf libconftest.dylib*
16300 echo "int foo
(void
){return 1;}" > conftest.c
16301 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16302 -dynamiclib -Wl,-single_module conftest.c
" >&5
16303 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16304 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16306 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16307 lt_cv_apple_cc_single_mod=yes
16309 cat conftest.err >&5
16311 rm -rf libconftest.dylib*
16315 echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
16316 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16317 echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
16318 echo $ECHO_N "checking
for -exported_symbols_list linker flag...
$ECHO_C" >&6
16319 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16320 echo $ECHO_N "(cached
) $ECHO_C" >&6
16322 lt_cv_ld_exported_symbols_list=no
16323 save_LDFLAGS=$LDFLAGS
16324 echo "_main
" > conftest.sym
16325 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16326 cat >conftest.$ac_ext <<_ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16341 rm -f conftest.$ac_objext conftest$ac_exeext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16343 (eval $ac_link) 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -z "$ac_c_werror_flag"
16351 || test ! -s conftest.err'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest$ac_exeext'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 lt_cv_ld_exported_symbols_list=yes
16365 echo "$as_me: failed program was
:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16368 lt_cv_ld_exported_symbols_list=no
16370 rm -f conftest.err conftest.$ac_objext \
16371 conftest$ac_exeext conftest.$ac_ext
16372 LDFLAGS="$save_LDFLAGS"
16375 echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
16376 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16378 rhapsody* | darwin1.[012])
16379 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16381 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16382 darwin*) # darwin 5.x on
16383 # if running on 10.5 or later, the deployment target defaults
16384 # to the OS version, if on x86, and 10.4, the deployment
16385 # target defaults to 10.4. Don't you love it?
16386 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16387 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16388 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16390 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16392 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16396 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16397 _lt_dar_single_mod='$single_module'
16399 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16400 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16402 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16404 if test "$DSYMUTIL" != ":"; then
16405 _lt_dsymutil='~$DSYMUTIL $lib || :'
16413 for ac_header in dlfcn.h
16415 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16416 echo "$as_me:$LINENO: checking
for $ac_header" >&5
16417 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
16418 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
16419 echo $ECHO_N "(cached
) $ECHO_C" >&6
16421 cat >conftest.$ac_ext <<_ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 #include <$ac_header>
16429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
16430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16436 (exit $ac_status); } >/dev/null; then
16437 if test -s conftest.err; then
16438 ac_cpp_err=$ac_c_preproc_warn_flag
16439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16446 if test -z "$ac_cpp_err"; then
16447 eval "$as_ac_Header=yes"
16449 echo "$as_me: failed program was
:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16452 eval "$as_ac_Header=no
"
16454 rm -f conftest.err conftest.$ac_ext
16456 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
16457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16459 cat >>confdefs.h <<_ACEOF
16460 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16475 enable_win32_dll=no
16478 # Check whether --enable-shared or --disable-shared was given.
16479 if test "${enable_shared+set}" = set; then
16480 enableval="$enable_shared"
16481 p=${PACKAGE-default}
16483 yes) enable_shared=yes ;;
16484 no) enable_shared=no ;;
16487 # Look at the argument we got. We use all the common list separators.
16488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16489 for pkg in $enableval; do
16491 if test "X
$pkg" = "X
$p"; then
16509 # Check whether --enable-static or --disable-static was given.
16510 if test "${enable_static+set}" = set; then
16511 enableval="$enable_static"
16512 p=${PACKAGE-default}
16514 yes) enable_static=yes ;;
16515 no) enable_static=no ;;
16518 # Look at the argument we got. We use all the common list separators.
16519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16520 for pkg in $enableval; do
16522 if test "X
$pkg" = "X
$p"; then
16541 # Check whether --with-pic or --without-pic was given.
16542 if test "${with_pic+set}" = set; then
16543 withval="$with_pic"
16544 pic_mode="$withval"
16549 test -z "$pic_mode" && pic_mode=default
16557 # Check whether --enable-fast-install or --disable-fast-install was given.
16558 if test "${enable_fast_install+set}" = set; then
16559 enableval="$enable_fast_install"
16560 p=${PACKAGE-default}
16562 yes) enable_fast_install=yes ;;
16563 no) enable_fast_install=no ;;
16565 enable_fast_install=no
16566 # Look at the argument we got. We use all the common list separators.
16567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16568 for pkg in $enableval; do
16570 if test "X
$pkg" = "X
$p"; then
16571 enable_fast_install=yes
16578 enable_fast_install=yes
16590 # This can be used to rebuild libtool when needed
16591 LIBTOOL_DEPS="$ltmain"
16593 # Always use our own libtool.
16594 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16620 test -z "$LN_S" && LN_S="ln -s"
16635 if test -n "${ZSH_VERSION+set}" ; then
16636 setopt NO_GLOB_SUBST
16639 echo "$as_me:$LINENO: checking
for objdir
" >&5
16640 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6
16641 if test "${lt_cv_objdir+set}" = set; then
16642 echo $ECHO_N "(cached
) $ECHO_C" >&6
16644 rm -f .libs 2>/dev/null
16645 mkdir .libs 2>/dev/null
16646 if test -d .libs; then
16649 # MS-DOS does not allow filenames that begin with a dot.
16652 rmdir .libs 2>/dev/null
16654 echo "$as_me:$LINENO: result
: $lt_cv_objdir" >&5
16655 echo "${ECHO_T}$lt_cv_objdir" >&6
16656 objdir=$lt_cv_objdir
16662 cat >>confdefs.h <<_ACEOF
16663 #define LT_OBJDIR "$lt_cv_objdir/"
16684 # AIX sometimes has problems with the GCC collect2 program. For some
16685 # reason, if we set the COLLECT_NAMES environment variable, the problems
16686 # vanish in a puff of smoke.
16687 if test "X
${COLLECT_NAMES+set}" != Xset; then
16689 export COLLECT_NAMES
16694 # Sed substitution that helps us do robust quoting. It backslashifies
16695 # metacharacters that are still active within double-quoted strings.
16696 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16698 # Same as above, but do not quote variable references.
16699 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
16701 # Sed substitution to delay expansion of an escaped shell variable in a
16702 # double_quote_subst'ed string.
16703 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
16705 # Sed substitution to delay expansion of an escaped single quote.
16706 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
16708 # Sed substitution to avoid accidental globbing in evaled expressions
16709 no_glob_subst
='s/\*/\\\*/g'
16711 # Global variables:
16713 can_build_shared
=yes
16715 # All known linkers require a `.a' archive for static linking (except MSVC,
16716 # which needs '.lib').
16719 with_gnu_ld
="$lt_cv_prog_gnu_ld"
16722 old_CFLAGS
="$CFLAGS"
16724 # Set sane defaults for various variables
16725 test -z "$CC" && CC
=cc
16726 test -z "$LTCC" && LTCC
=$CC
16727 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
16728 test -z "$LD" && LD
=ld
16729 test -z "$ac_objext" && ac_objext
=o
16731 for cc_temp
in $compiler""; do
16733 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16734 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16739 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16742 # Only perform the check for file, if the check method requires it
16743 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
16744 case $deplibs_check_method in
16746 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16747 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16748 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16749 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16757 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16758 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16759 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16760 for ac_dir
in $ac_dummy; do
16762 test -z "$ac_dir" && ac_dir
=.
16763 if test -f $ac_dir/${ac_tool_prefix}file; then
16764 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
16765 if test -n "$file_magic_test_file"; then
16766 case $deplibs_check_method in
16768 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16769 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16770 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16771 $EGREP "$file_magic_regex" > /dev
/null
; then
16776 *** Warning: the command libtool uses to detect shared libraries,
16777 *** $file_magic_cmd, produces output that libtool cannot recognize.
16778 *** The result is that libtool may fail to recognize shared libraries
16779 *** as such. This will affect the creation of libtool libraries that
16780 *** depend on shared libraries, but programs linked with such libtool
16781 *** libraries will work regardless of this problem. Nevertheless, you
16782 *** may want to report the problem to your system manager and/or to
16783 *** bug-libtool@gnu.org
16793 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16798 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16799 if test -n "$MAGIC_CMD"; then
16800 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16801 echo "${ECHO_T}$MAGIC_CMD" >&6
16803 echo "$as_me:$LINENO: result: no" >&5
16804 echo "${ECHO_T}no" >&6
16811 if test -z "$lt_cv_path_MAGIC_CMD"; then
16812 if test -n "$ac_tool_prefix"; then
16813 echo "$as_me:$LINENO: checking for file" >&5
16814 echo $ECHO_N "checking for file... $ECHO_C" >&6
16815 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16823 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16824 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16825 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16826 for ac_dir
in $ac_dummy; do
16828 test -z "$ac_dir" && ac_dir
=.
16829 if test -f $ac_dir/file; then
16830 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
16831 if test -n "$file_magic_test_file"; then
16832 case $deplibs_check_method in
16834 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16835 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16836 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16837 $EGREP "$file_magic_regex" > /dev
/null
; then
16842 *** Warning: the command libtool uses to detect shared libraries,
16843 *** $file_magic_cmd, produces output that libtool cannot recognize.
16844 *** The result is that libtool may fail to recognize shared libraries
16845 *** as such. This will affect the creation of libtool libraries that
16846 *** depend on shared libraries, but programs linked with such libtool
16847 *** libraries will work regardless of this problem. Nevertheless, you
16848 *** may want to report the problem to your system manager and/or to
16849 *** bug-libtool@gnu.org
16859 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16864 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16865 if test -n "$MAGIC_CMD"; then
16866 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16867 echo "${ECHO_T}$MAGIC_CMD" >&6
16869 echo "$as_me:$LINENO: result: no" >&5
16870 echo "${ECHO_T}no" >&6
16883 # Use C for the default configuration in the libtool script
16887 ac_cpp
='$CPP $CPPFLAGS'
16888 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16889 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16890 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16893 # Source file extension for C test sources.
16896 # Object file extension for compiled C test sources.
16900 # Code to be used in simple compile tests
16901 lt_simple_compile_test_code
="int some_variable = 0;"
16903 # Code to be used in simple link tests
16904 lt_simple_link_test_code
='int main(){return(0);}'
16912 # If no C compiler was specified, use CC.
16915 # If no C compiler flags were specified, use CFLAGS.
16916 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16918 # Allow CC to be a program name with arguments.
16921 # Save the default compiler, since it gets overwritten when the other
16922 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16923 compiler_DEFAULT
=$CC
16925 # save warnings/boilerplate of simple test code
16926 ac_outfile
=conftest.
$ac_objext
16927 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16928 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16929 _lt_compiler_boilerplate
=`cat conftest.err`
16932 ac_outfile
=conftest.
$ac_objext
16933 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16934 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16935 _lt_linker_boilerplate
=`cat conftest.err`
16940 ## There is no encapsulation within the following macros, do not change
16941 ## the running order or otherwise move them around unless you know exactly
16942 ## what you are doing...
16943 if test -n "$compiler"; then
16945 lt_prog_compiler_no_builtin_flag
=
16947 if test "$GCC" = yes; then
16948 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
16950 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16951 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16952 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 lt_cv_prog_compiler_rtti_exceptions
=no
16956 ac_outfile
=conftest.
$ac_objext
16957 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16958 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16959 # Insert the option either (1) after the last *FLAGS variable, or
16960 # (2) before a word containing "conftest.", or (3) at the end.
16961 # Note that $ac_compile itself does not contain backslashes and begins
16962 # with a dollar sign (not a hyphen), so the echo should work correctly.
16963 # The option is referenced via a variable to avoid confusing sed.
16964 lt_compile
=`echo "$ac_compile" | $SED \
16965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16967 -e 's:$: $lt_compiler_flag:'`
16968 (eval echo "\"\$as_me:16968: $lt_compile\"" >&5)
16969 (eval "$lt_compile" 2>conftest.err
)
16971 cat conftest.err
>&5
16972 echo "$as_me:16972: \$? = $ac_status" >&5
16973 if (exit $ac_status) && test -s "$ac_outfile"; then
16974 # The compiler can only warn and ignore the option if not recognized
16975 # So say no if there are warnings other than the usual output.
16976 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16977 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16978 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16979 lt_cv_prog_compiler_rtti_exceptions
=yes
16985 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16986 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16988 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16989 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17001 lt_prog_compiler_wl
=
17002 lt_prog_compiler_pic
=
17003 lt_prog_compiler_static
=
17005 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17006 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17008 if test "$GCC" = yes; then
17009 lt_prog_compiler_wl
='-Wl,'
17010 lt_prog_compiler_static
='-static'
17014 # All AIX code is PIC.
17015 if test "$host_cpu" = ia64
; then
17016 # AIX 5 now supports IA64 processor
17017 lt_prog_compiler_static
='-Bstatic'
17024 # see comment about AmigaOS4 .so support
17025 lt_prog_compiler_pic
='-fPIC'
17028 # FIXME: we need at least 68020 code to build shared libraries, but
17029 # adding the `-m68020' flag to GCC prevents building anything better,
17031 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
17036 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
17037 # PIC is the default for these OSes.
17040 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
17041 # This hack is so that the source file can tell whether it is being
17042 # built for inclusion in a dll (and should export symbols for example).
17043 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17044 # (--disable-auto-import) libraries
17045 lt_prog_compiler_pic
='-DDLL_EXPORT'
17048 darwin
* | rhapsody
*)
17049 # PIC is the default on this platform
17050 # Common symbols not allowed in MH_DYLIB files
17051 lt_prog_compiler_pic
='-fno-common'
17055 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17056 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17057 # sets the default TLS model and affects inlining.
17063 lt_prog_compiler_pic
='-fPIC'
17069 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17070 # Instead, we relocate shared libraries at runtime.
17074 # Just because we use GCC doesn't mean we suddenly get shared libraries
17075 # on systems that don't support them.
17076 lt_prog_compiler_can_build_shared
=no
17081 # QNX uses GNU C++, but need to define -shared option too, otherwise
17082 # it will coredump.
17083 lt_prog_compiler_pic
='-fPIC -shared'
17087 if test -d /usr
/nec
; then
17088 lt_prog_compiler_pic
=-Kconform_pic
17093 lt_prog_compiler_pic
='-fPIC'
17097 # PORTME Check for flag to pass linker flags through the system compiler.
17100 lt_prog_compiler_wl
='-Wl,'
17101 if test "$host_cpu" = ia64
; then
17102 # AIX 5 now supports IA64 processor
17103 lt_prog_compiler_static
='-Bstatic'
17105 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
17109 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
17110 # This hack is so that the source file can tell whether it is being
17111 # built for inclusion in a dll (and should export symbols for example).
17112 lt_prog_compiler_pic
='-DDLL_EXPORT'
17115 hpux9
* | hpux10
* | hpux11
*)
17116 lt_prog_compiler_wl
='-Wl,'
17117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17118 # not for PA HP-UX.
17124 lt_prog_compiler_pic
='+Z'
17127 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17128 lt_prog_compiler_static
='${wl}-a ${wl}archive'
17131 irix5
* | irix6
* | nonstopux
*)
17132 lt_prog_compiler_wl
='-Wl,'
17133 # PIC (with -KPIC) is the default.
17134 lt_prog_compiler_static
='-non_shared'
17137 linux
* | k
*bsd
*-gnu)
17138 case $cc_basename in
17139 # old Intel for x86_64 which still supported -KPIC.
17141 lt_prog_compiler_wl
='-Wl,'
17142 lt_prog_compiler_pic
='-KPIC'
17143 lt_prog_compiler_static
='-static'
17145 # icc used to be incompatible with GCC.
17146 # ICC 10 doesn't accept -KPIC any more.
17148 lt_prog_compiler_wl
='-Wl,'
17149 lt_prog_compiler_pic
='-fPIC'
17150 lt_prog_compiler_static
='-static'
17152 # Lahey Fortran 8.1.
17154 lt_prog_compiler_wl
='-Wl,'
17155 lt_prog_compiler_pic
='--shared'
17156 lt_prog_compiler_static
='--static'
17158 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
17159 # Portland Group compilers (*not* the Pentium gcc compiler,
17160 # which looks to be a dead project)
17161 lt_prog_compiler_wl
='-Wl,'
17162 lt_prog_compiler_pic
='-fpic'
17163 lt_prog_compiler_static
='-Bstatic'
17166 lt_prog_compiler_wl
='-Wl,'
17167 # All Alpha code is PIC.
17168 lt_prog_compiler_static
='-non_shared'
17171 # IBM XL C 8.0/Fortran 10.1 on PPC
17172 lt_prog_compiler_wl
='-Wl,'
17173 lt_prog_compiler_pic
='-qpic'
17174 lt_prog_compiler_static
='-qstaticlink'
17177 case `$CC -V 2>&1 | sed 5q` in
17180 lt_prog_compiler_pic
='-KPIC'
17181 lt_prog_compiler_static
='-Bstatic'
17182 lt_prog_compiler_wl
='-Wl,'
17185 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17186 lt_prog_compiler_pic
='-KPIC'
17187 lt_prog_compiler_static
='-Bstatic'
17188 lt_prog_compiler_wl
=''
17196 lt_prog_compiler_pic
='-KPIC'
17197 lt_prog_compiler_static
='-Bstatic'
17201 # QNX uses GNU C++, but need to define -shared option too, otherwise
17202 # it will coredump.
17203 lt_prog_compiler_pic
='-fPIC -shared'
17206 osf3
* | osf4
* | osf5
*)
17207 lt_prog_compiler_wl
='-Wl,'
17208 # All OSF/1 code is PIC.
17209 lt_prog_compiler_static
='-non_shared'
17213 lt_prog_compiler_static
='-non_shared'
17217 lt_prog_compiler_pic
='-KPIC'
17218 lt_prog_compiler_static
='-Bstatic'
17219 case $cc_basename in
17220 f77
* | f90
* | f95
*)
17221 lt_prog_compiler_wl
='-Qoption ld ';;
17223 lt_prog_compiler_wl
='-Wl,';;
17228 lt_prog_compiler_wl
='-Qoption ld '
17229 lt_prog_compiler_pic
='-PIC'
17230 lt_prog_compiler_static
='-Bstatic'
17233 sysv4 | sysv4.2uw2
* | sysv4.3
*)
17234 lt_prog_compiler_wl
='-Wl,'
17235 lt_prog_compiler_pic
='-KPIC'
17236 lt_prog_compiler_static
='-Bstatic'
17240 if test -d /usr
/nec
;then
17241 lt_prog_compiler_pic
='-Kconform_pic'
17242 lt_prog_compiler_static
='-Bstatic'
17246 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17247 lt_prog_compiler_wl
='-Wl,'
17248 lt_prog_compiler_pic
='-KPIC'
17249 lt_prog_compiler_static
='-Bstatic'
17253 lt_prog_compiler_wl
='-Wl,'
17254 lt_prog_compiler_can_build_shared
=no
17258 lt_prog_compiler_pic
='-pic'
17259 lt_prog_compiler_static
='-Bstatic'
17263 lt_prog_compiler_can_build_shared
=no
17269 # For platforms which do not support PIC, -DPIC is meaningless:
17271 lt_prog_compiler_pic
=
17274 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
17277 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17278 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17286 # Check to make sure the PIC flag actually works.
17288 if test -n "$lt_prog_compiler_pic"; then
17289 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17290 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17291 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 lt_cv_prog_compiler_pic_works
=no
17295 ac_outfile
=conftest.
$ac_objext
17296 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17297 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
17298 # Insert the option either (1) after the last *FLAGS variable, or
17299 # (2) before a word containing "conftest.", or (3) at the end.
17300 # Note that $ac_compile itself does not contain backslashes and begins
17301 # with a dollar sign (not a hyphen), so the echo should work correctly.
17302 # The option is referenced via a variable to avoid confusing sed.
17303 lt_compile
=`echo "$ac_compile" | $SED \
17304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17306 -e 's:$: $lt_compiler_flag:'`
17307 (eval echo "\"\$as_me:17307: $lt_compile\"" >&5)
17308 (eval "$lt_compile" 2>conftest.err
)
17310 cat conftest.err
>&5
17311 echo "$as_me:17311: \$? = $ac_status" >&5
17312 if (exit $ac_status) && test -s "$ac_outfile"; then
17313 # The compiler can only warn and ignore the option if not recognized
17314 # So say no if there are warnings other than the usual output.
17315 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17316 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17317 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17318 lt_cv_prog_compiler_pic_works
=yes
17324 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17325 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
17327 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
17328 case $lt_prog_compiler_pic in
17330 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
17333 lt_prog_compiler_pic
=
17334 lt_prog_compiler_can_build_shared
=no
17345 # Check to make sure the static flag actually works.
17347 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
17348 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17349 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17350 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 lt_cv_prog_compiler_static_works
=no
17354 save_LDFLAGS
="$LDFLAGS"
17355 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17356 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17357 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17358 # The linker can only warn and ignore the option if not recognized
17359 # So say no if there are warnings
17360 if test -s conftest.err
; then
17361 # Append any errors to the config.log.
17362 cat conftest.err
1>&5
17363 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17364 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17365 if diff conftest.exp conftest.er2
>/dev
/null
; then
17366 lt_cv_prog_compiler_static_works
=yes
17369 lt_cv_prog_compiler_static_works
=yes
17373 LDFLAGS
="$save_LDFLAGS"
17376 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17377 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
17379 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
17382 lt_prog_compiler_static
=
17391 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17392 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17393 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17396 lt_cv_prog_compiler_c_o
=no
17397 $RM -r conftest
2>/dev
/null
17401 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17403 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17404 # Insert the option either (1) after the last *FLAGS variable, or
17405 # (2) before a word containing "conftest.", or (3) at the end.
17406 # Note that $ac_compile itself does not contain backslashes and begins
17407 # with a dollar sign (not a hyphen), so the echo should work correctly.
17408 lt_compile
=`echo "$ac_compile" | $SED \
17409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17411 -e 's:$: $lt_compiler_flag:'`
17412 (eval echo "\"\$as_me:17412: $lt_compile\"" >&5)
17413 (eval "$lt_compile" 2>out
/conftest.err
)
17415 cat out
/conftest.err
>&5
17416 echo "$as_me:17416: \$? = $ac_status" >&5
17417 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17419 # The compiler can only warn and ignore the option if not recognized
17420 # So say no if there are warnings
17421 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17422 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17423 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17424 lt_cv_prog_compiler_c_o
=yes
17429 # SGI C++ compiler will create directory out/ii_files/ for
17430 # template instantiation
17431 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
17432 $RM out
/* && rmdir out
17438 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17439 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17446 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17447 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17448 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 lt_cv_prog_compiler_c_o
=no
17452 $RM -r conftest
2>/dev
/null
17456 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17458 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17459 # Insert the option either (1) after the last *FLAGS variable, or
17460 # (2) before a word containing "conftest.", or (3) at the end.
17461 # Note that $ac_compile itself does not contain backslashes and begins
17462 # with a dollar sign (not a hyphen), so the echo should work correctly.
17463 lt_compile
=`echo "$ac_compile" | $SED \
17464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17466 -e 's:$: $lt_compiler_flag:'`
17467 (eval echo "\"\$as_me:17467: $lt_compile\"" >&5)
17468 (eval "$lt_compile" 2>out
/conftest.err
)
17470 cat out
/conftest.err
>&5
17471 echo "$as_me:17471: \$? = $ac_status" >&5
17472 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17474 # The compiler can only warn and ignore the option if not recognized
17475 # So say no if there are warnings
17476 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17477 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17478 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17479 lt_cv_prog_compiler_c_o
=yes
17484 # SGI C++ compiler will create directory out/ii_files/ for
17485 # template instantiation
17486 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
17487 $RM out
/* && rmdir out
17493 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17494 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17499 hard_links
="nottested"
17500 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
17501 # do not overwrite the value of need_locks provided by the user
17502 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17503 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17506 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17508 ln conftest.a conftest.b
2>&5 || hard_links
=no
17509 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17510 echo "$as_me:$LINENO: result: $hard_links" >&5
17511 echo "${ECHO_T}$hard_links" >&6
17512 if test "$hard_links" = no
; then
17513 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17514 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17526 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17527 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17530 allow_undefined_flag
=
17531 always_export_symbols
=no
17533 archive_expsym_cmds
=
17534 compiler_needs_object
=no
17535 enable_shared_with_static_runtimes
=no
17536 export_dynamic_flag_spec
=
17537 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17538 hardcode_automatic
=no
17540 hardcode_direct_absolute
=no
17541 hardcode_libdir_flag_spec
=
17542 hardcode_libdir_flag_spec_ld
=
17543 hardcode_libdir_separator
=
17544 hardcode_minus_L
=no
17545 hardcode_shlibpath_var
=unsupported
17547 link_all_deplibs
=unknown
17549 module_expsym_cmds
=
17550 old_archive_from_new_cmds
=
17551 old_archive_from_expsyms_cmds
=
17552 thread_safe_flag_spec
=
17553 whole_archive_flag_spec
=
17554 # include_expsyms should be a list of space-separated symbols to be *always*
17555 # included in the symbol list
17557 # exclude_expsyms can be an extended regexp of symbols to exclude
17558 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17559 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17560 # as well as any symbol that contains `d'.
17561 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17562 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17563 # platforms (ab)use it in PIC code, but their linkers get confused if
17564 # the symbol is explicitly referenced. Since portable code cannot
17565 # rely on this symbol name, it's probably fine to never include it in
17566 # preloaded symbol tables.
17567 # Exclude shared library initialization/finalization symbols.
17568 extract_expsyms_cmds
=
17571 cygwin
* | mingw
* | pw32
* | cegcc
*)
17572 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17573 # When not using gcc, we currently assume that we are using
17574 # Microsoft Visual C++.
17575 if test "$GCC" != yes; then
17580 # we just hope/assume this is gcc and not c89 (= MSVC++)
17589 if test "$with_gnu_ld" = yes; then
17590 # If archive_cmds runs LD, not CC, wlarc should be empty
17593 # Set some defaults for GNU ld with shared library support. These
17594 # are reset later if shared libraries are not supported. Putting them
17595 # here allows them to be overridden if necessary.
17596 runpath_var
=LD_RUN_PATH
17597 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17598 export_dynamic_flag_spec
='${wl}--export-dynamic'
17599 # ancient GNU ld didn't support --whole-archive et. al.
17600 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
17601 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17603 whole_archive_flag_spec
=
17605 supports_anon_versioning
=no
17606 case `$LD -v 2>&1` in
17607 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17608 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17609 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17610 *\
2.11.
*) ;; # other 2.11 versions
17611 *) supports_anon_versioning
=yes ;;
17614 # See if GNU ld supports shared libraries.
17617 # On AIX/PPC, the GNU linker is very broken
17618 if test "$host_cpu" != ia64
; then
17622 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17623 *** to be unable to reliably create shared libraries on AIX.
17624 *** Therefore, libtool is disabling shared libraries support. If you
17625 *** really care for shared libraries, you may want to modify your PATH
17626 *** so that a non-GNU linker is found, and then restart.
17635 # see comment about AmigaOS4 .so support
17636 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17637 archive_expsym_cmds
=''
17640 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)'
17641 hardcode_libdir_flag_spec
='-L$libdir'
17642 hardcode_minus_L
=yes
17648 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17649 allow_undefined_flag
=unsupported
17650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17651 # support --undefined. This deserves some investigation. FIXME
17652 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17658 cygwin
* | mingw
* | pw32
* | cegcc
*)
17659 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17660 # as there is no search path for DLLs.
17661 hardcode_libdir_flag_spec
='-L$libdir'
17662 allow_undefined_flag
=unsupported
17663 always_export_symbols
=no
17664 enable_shared_with_static_runtimes
=yes
17665 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17667 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17668 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17669 # If the export-symbols file already is a .def file (1st line
17670 # is EXPORTS), use it as is; otherwise, prepend...
17671 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17672 cp $export_symbols $output_objdir/$soname.def;
17674 echo EXPORTS > $output_objdir/$soname.def;
17675 cat $export_symbols >> $output_objdir/$soname.def;
17677 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17685 hardcode_shlibpath_var
=no
17686 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17687 export_dynamic_flag_spec
='${wl}-E'
17688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17689 # Instead, shared libraries are loaded at an image base (0x10000000 by
17690 # default) and relocated if they conflict, which is a slow very memory
17691 # consuming and fragmenting process. To avoid this, we pick a random,
17692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17694 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17695 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'
17698 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
17700 if test "$host_os" = linux-dietlibc
; then
17701 case $cc_basename in
17702 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17705 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17706 && test "$tmp_diet" = no
17709 tmp_sharedflag
='-shared'
17710 case $cc_basename,$host_cpu in
17711 pgcc
*) # Portland Group C compiler
17712 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'
17713 tmp_addflag
=' $pic_flag'
17715 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17716 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'
17717 tmp_addflag
=' $pic_flag -Mnomain' ;;
17718 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17719 tmp_addflag
=' -i_dynamic' ;;
17720 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17721 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17722 ifc
* | ifort
*) # Intel Fortran compiler
17723 tmp_addflag
=' -nofor_main' ;;
17724 lf95
*) # Lahey Fortran 8.1
17725 whole_archive_flag_spec
=
17726 tmp_sharedflag
='--shared' ;;
17727 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17728 tmp_sharedflag
='-qmkshrobj'
17731 case `$CC -V 2>&1 | sed 5q` in
17732 *Sun\ C
*) # Sun C 5.9
17733 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'
17734 compiler_needs_object
=yes
17735 tmp_sharedflag
='-G' ;;
17736 *Sun\ F
*) # Sun Fortran 8.3
17737 tmp_sharedflag
='-G' ;;
17739 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17741 if test "x$supports_anon_versioning" = xyes
; then
17742 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17744 echo "local: *; };" >> $output_objdir/$libname.ver~
17745 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17748 case $cc_basename in
17750 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17751 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17752 hardcode_libdir_flag_spec
=
17753 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17754 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17755 if test "x$supports_anon_versioning" = xyes
; then
17756 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17758 echo "local: *; };" >> $output_objdir/$libname.ver~
17759 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17769 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17770 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17773 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17774 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17779 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17783 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17784 *** create shared libraries on Solaris systems. Therefore, libtool
17785 *** is disabling shared libraries support. We urge you to upgrade GNU
17786 *** binutils to release 2.9.1 or newer. Another option is to modify
17787 *** your PATH or compiler configuration so that the native linker is
17788 *** used, and then restart.
17791 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17792 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17793 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17799 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17800 case `$LD -v 2>&1` in
17801 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17805 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17806 *** reliably create shared libraries on SCO systems. Therefore, libtool
17807 *** is disabling shared libraries support. We urge you to upgrade GNU
17808 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17809 *** your PATH or compiler configuration so that the native linker is
17810 *** used, and then restart.
17815 # For security reasons, it is highly recommended that you always
17816 # use absolute paths for naming shared libraries, and exclude the
17817 # DT_RUNPATH tag from executables and libraries. But doing so
17818 # requires that you compile everything twice, which is a pain.
17819 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17820 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17821 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17822 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17831 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17833 hardcode_direct
=yes
17834 hardcode_shlibpath_var
=no
17838 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17839 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17840 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17847 if test "$ld_shlibs" = no
; then
17849 hardcode_libdir_flag_spec
=
17850 export_dynamic_flag_spec
=
17851 whole_archive_flag_spec
=
17854 # PORTME fill in a description of your system's linker (not GNU ld)
17857 allow_undefined_flag
=unsupported
17858 always_export_symbols
=yes
17859 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'
17860 # Note: this linker hardcodes the directories in LIBPATH if there
17861 # are no directories specified by -L.
17862 hardcode_minus_L
=yes
17863 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17864 # Neither direct hardcoding nor static linking is supported with a
17866 hardcode_direct
=unsupported
17871 if test "$host_cpu" = ia64
; then
17872 # On IA64, the linker does run time linking by default, so we don't
17873 # have to do anything special.
17874 aix_use_runtimelinking
=no
17875 exp_sym_flag
='-Bexport'
17878 # If we're using GNU nm, then we don't want the "-C" option.
17879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17880 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17881 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'
17883 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'
17885 aix_use_runtimelinking
=no
17887 # Test if we are trying to use run time linking or normal
17888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17889 # need to do runtime linking.
17890 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17891 for ld_flag
in $LDFLAGS; do
17892 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17893 aix_use_runtimelinking
=yes
17900 exp_sym_flag
='-bexport'
17901 no_entry_flag
='-bnoentry'
17904 # When large executables or shared objects are built, AIX ld can
17905 # have problems creating the table of contents. If linking a library
17906 # or program results in "error TOC overflow" add -mminimal-toc to
17907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17911 hardcode_direct
=yes
17912 hardcode_direct_absolute
=yes
17913 hardcode_libdir_separator
=':'
17914 link_all_deplibs
=yes
17915 file_list_spec
='${wl}-f,'
17917 if test "$GCC" = yes; then
17918 case $host_os in aix4.
[012]|aix4.
[012].
*)
17919 # We only want to do this on AIX 4.2 and lower, the check
17920 # below for broken collect2 doesn't work under 4.3+
17921 collect2name
=`${CC} -print-prog-name=collect2`
17922 if test -f "$collect2name" &&
17923 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17925 # We have reworked collect2
17928 # We have old collect2
17929 hardcode_direct
=unsupported
17930 # It fails to find uninstalled libraries when the uninstalled
17931 # path is not listed in the libpath. Setting hardcode_minus_L
17932 # to unsupported forces relinking
17933 hardcode_minus_L
=yes
17934 hardcode_libdir_flag_spec
='-L$libdir'
17935 hardcode_libdir_separator
=
17939 shared_flag
='-shared'
17940 if test "$aix_use_runtimelinking" = yes; then
17941 shared_flag
="$shared_flag "'${wl}-G'
17945 if test "$host_cpu" = ia64
; then
17946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17947 # chokes on -Wl,-G. The following line is correct:
17950 if test "$aix_use_runtimelinking" = yes; then
17951 shared_flag
='${wl}-G'
17953 shared_flag
='${wl}-bM:SRE'
17958 export_dynamic_flag_spec
='${wl}-bexpall'
17959 # It seems that -bexpall does not export symbols beginning with
17960 # underscore (_), so it is better to generate a list of symbols to export.
17961 always_export_symbols
=yes
17962 if test "$aix_use_runtimelinking" = yes; then
17963 # Warning - without using the other runtime loading flags (-brtl),
17964 # -berok will link without error, but may produce a broken library.
17965 allow_undefined_flag
='-berok'
17966 # Determine the default libpath from the value encoded in an
17967 # empty executable.
17968 cat >conftest.
$ac_ext <<_ACEOF
17971 cat confdefs.h
>>conftest.
$ac_ext
17972 cat >>conftest.
$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17983 rm -f conftest.
$ac_objext conftest
$ac_exeext
17984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17985 (eval $ac_link) 2>conftest.er1
17987 grep -v '^ *+' conftest.er1
>conftest.err
17989 cat conftest.err
>&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try
='test -z "$ac_c_werror_flag"
17993 || test ! -s conftest.err'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try
='test -s conftest$ac_exeext'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18006 lt_aix_libpath_sed
='
18007 /Import File Strings/,/^$/ {
18013 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18014 # Check for a 64-bit object if we didn't find anything.
18015 if test -z "$aix_libpath"; then
18016 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.
$ac_ext >&5
18023 rm -f conftest.err conftest.
$ac_objext \
18024 conftest
$ac_exeext conftest.
$ac_ext
18025 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18027 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18028 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"
18030 if test "$host_cpu" = ia64
; then
18031 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
18032 allow_undefined_flag
="-z nodefs"
18033 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"
18035 # Determine the default libpath from the value encoded in an
18036 # empty executable.
18037 cat >conftest.
$ac_ext <<_ACEOF
18040 cat confdefs.h
>>conftest.
$ac_ext
18041 cat >>conftest.
$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18052 rm -f conftest.
$ac_objext conftest
$ac_exeext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18054 (eval $ac_link) 2>conftest.er1
18056 grep -v '^ *+' conftest.er1
>conftest.err
18058 cat conftest.err
>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
18061 { ac_try
='test -z "$ac_c_werror_flag"
18062 || test ! -s conftest.err'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try
='test -s conftest$ac_exeext'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18075 lt_aix_libpath_sed
='
18076 /Import File Strings/,/^$/ {
18082 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18083 # Check for a 64-bit object if we didn't find anything.
18084 if test -z "$aix_libpath"; then
18085 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.
$ac_ext >&5
18092 rm -f conftest.err conftest.
$ac_objext \
18093 conftest
$ac_exeext conftest.
$ac_ext
18094 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18096 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18097 # Warning - without using the other run time loading flags,
18098 # -berok will link without error, but may produce a broken library.
18099 no_undefined_flag
=' ${wl}-bernotok'
18100 allow_undefined_flag
=' ${wl}-berok'
18101 # Exported symbols can be pulled into shared objects from archives
18102 whole_archive_flag_spec
='$convenience'
18103 archive_cmds_need_lc
=yes
18104 # This is similar to how AIX traditionally builds its shared libraries.
18105 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'
18113 # see comment about AmigaOS4 .so support
18114 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18115 archive_expsym_cmds
=''
18118 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)'
18119 hardcode_libdir_flag_spec
='-L$libdir'
18120 hardcode_minus_L
=yes
18126 export_dynamic_flag_spec
=-rdynamic
18129 cygwin
* | mingw
* | pw32
* | cegcc
*)
18130 # When not using gcc, we currently assume that we are using
18131 # Microsoft Visual C++.
18132 # hardcode_libdir_flag_spec is actually meaningless, as there is
18133 # no search path for DLLs.
18134 hardcode_libdir_flag_spec
=' '
18135 allow_undefined_flag
=unsupported
18136 # Tell ltmain to make .lib files, not .a files.
18138 # Tell ltmain to make .dll files, not .so files.
18140 # FIXME: Setting linknames here is a bad hack.
18141 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18142 # The linker will automatically build a .lib file if we build a DLL.
18143 old_archive_from_new_cmds
='true'
18144 # FIXME: Should let the user specify the lib program.
18145 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18146 fix_srcfile_path
='`cygpath -w "$srcfile"`'
18147 enable_shared_with_static_runtimes
=yes
18150 darwin
* | rhapsody
*)
18153 archive_cmds_need_lc
=no
18155 hardcode_automatic
=yes
18156 hardcode_shlibpath_var
=unsupported
18157 whole_archive_flag_spec
=''
18158 link_all_deplibs
=yes
18159 allow_undefined_flag
="$_lt_dar_allow_undefined"
18160 case $cc_basename in
18161 ifort
*) _lt_dar_can_shared
=yes ;;
18162 *) _lt_dar_can_shared
=$GCC ;;
18164 if test "$_lt_dar_can_shared" = "yes"; then
18165 output_verbose_link_cmd
=echo
18166 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18167 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18168 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18169 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18178 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18179 hardcode_libdir_flag_spec
='-L$libdir'
18180 hardcode_shlibpath_var
=no
18187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18188 # support. Future versions do this automatically, but an explicit c++rt0.o
18189 # does not break anything, and helps significantly (at the cost of a little
18192 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18193 hardcode_libdir_flag_spec
='-R$libdir'
18194 hardcode_direct
=yes
18195 hardcode_shlibpath_var
=no
18198 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18200 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18201 hardcode_direct
=yes
18202 hardcode_minus_L
=yes
18203 hardcode_shlibpath_var
=no
18206 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18207 freebsd
* | dragonfly
*)
18208 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18209 hardcode_libdir_flag_spec
='-R$libdir'
18210 hardcode_direct
=yes
18211 hardcode_shlibpath_var
=no
18215 if test "$GCC" = yes; then
18216 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'
18218 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'
18220 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18221 hardcode_libdir_separator
=:
18222 hardcode_direct
=yes
18224 # hardcode_minus_L: Not really in the search PATH,
18225 # but as the default location of the library.
18226 hardcode_minus_L
=yes
18227 export_dynamic_flag_spec
='${wl}-E'
18231 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18232 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18234 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18236 if test "$with_gnu_ld" = no
; then
18237 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18238 hardcode_libdir_flag_spec_ld
='+b $libdir'
18239 hardcode_libdir_separator
=:
18240 hardcode_direct
=yes
18241 hardcode_direct_absolute
=yes
18242 export_dynamic_flag_spec
='${wl}-E'
18243 # hardcode_minus_L: Not really in the search PATH,
18244 # but as the default location of the library.
18245 hardcode_minus_L
=yes
18250 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18253 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18256 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18259 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18265 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18268 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18271 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18275 if test "$with_gnu_ld" = no
; then
18276 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18277 hardcode_libdir_separator
=:
18282 hardcode_shlibpath_var
=no
18285 hardcode_direct
=yes
18286 hardcode_direct_absolute
=yes
18287 export_dynamic_flag_spec
='${wl}-E'
18289 # hardcode_minus_L: Not really in the search PATH,
18290 # but as the default location of the library.
18291 hardcode_minus_L
=yes
18297 irix5
* | irix6
* | nonstopux
*)
18298 if test "$GCC" = yes; then
18299 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'
18300 # Try to use the -exported_symbol ld option, if it does not
18301 # work, assume that -exports_file does not work either and
18302 # implicitly export all symbols.
18303 save_LDFLAGS
="$LDFLAGS"
18304 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18305 cat >conftest.
$ac_ext <<_ACEOF
18308 rm -f conftest.
$ac_objext conftest
$ac_exeext
18309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18310 (eval $ac_link) 2>conftest.er1
18312 grep -v '^ *+' conftest.er1
>conftest.err
18314 cat conftest.err
>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
18317 { ac_try
='test -z "$ac_c_werror_flag"
18318 || test ! -s conftest.err'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try
='test -s conftest$ac_exeext'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 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'
18333 echo "$as_me: failed program was:" >&5
18334 sed 's/^/| /' conftest.
$ac_ext >&5
18337 rm -f conftest.err conftest.
$ac_objext \
18338 conftest
$ac_exeext conftest.
$ac_ext
18339 LDFLAGS
="$save_LDFLAGS"
18341 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'
18342 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'
18344 archive_cmds_need_lc
='no'
18345 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18346 hardcode_libdir_separator
=:
18348 link_all_deplibs
=yes
18352 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18353 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18355 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18357 hardcode_libdir_flag_spec
='-R$libdir'
18358 hardcode_direct
=yes
18359 hardcode_shlibpath_var
=no
18363 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18364 hardcode_direct
=yes
18365 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18366 hardcode_libdir_separator
=:
18367 hardcode_shlibpath_var
=no
18374 if test -f /usr
/libexec
/ld.so
; then
18375 hardcode_direct
=yes
18376 hardcode_shlibpath_var
=no
18377 hardcode_direct_absolute
=yes
18378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18379 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18380 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18381 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18382 export_dynamic_flag_spec
='${wl}-E'
18385 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18386 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18387 hardcode_libdir_flag_spec
='-R$libdir'
18390 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18391 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18401 hardcode_libdir_flag_spec
='-L$libdir'
18402 hardcode_minus_L
=yes
18403 allow_undefined_flag
=unsupported
18404 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'
18405 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18409 if test "$GCC" = yes; then
18410 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18411 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'
18413 allow_undefined_flag
=' -expect_unresolved \*'
18414 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'
18416 archive_cmds_need_lc
='no'
18417 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18418 hardcode_libdir_separator
=:
18421 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18422 if test "$GCC" = yes; then
18423 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18424 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'
18425 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18427 allow_undefined_flag
=' -expect_unresolved \*'
18428 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'
18429 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~
18430 $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'
18432 # Both c and cxx compiler support -rpath directly
18433 hardcode_libdir_flag_spec
='-rpath $libdir'
18435 archive_cmds_need_lc
='no'
18436 hardcode_libdir_separator
=:
18440 no_undefined_flag
=' -z defs'
18441 if test "$GCC" = yes; then
18443 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18444 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18445 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18447 case `$CC -V 2>&1` in
18450 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18451 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18452 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18456 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18457 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18458 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18462 hardcode_libdir_flag_spec
='-R$libdir'
18463 hardcode_shlibpath_var
=no
18465 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18467 # The compiler driver will combine and reorder linker options,
18468 # but understands `-z linker_flag'. GCC discards it without `$wl',
18469 # but is careful enough not to reorder.
18470 # Supported since Solaris 2.6 (maybe 2.5.1?)
18471 if test "$GCC" = yes; then
18472 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18474 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18478 link_all_deplibs
=yes
18482 if test "x$host_vendor" = xsequent
; then
18483 # Use $CC to link under sequent, because it throws in some extra .o
18484 # files that make .init and .fini sections work.
18485 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18487 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18489 hardcode_libdir_flag_spec
='-L$libdir'
18490 hardcode_direct
=yes
18491 hardcode_minus_L
=yes
18492 hardcode_shlibpath_var
=no
18496 case $host_vendor in
18498 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18499 hardcode_direct
=yes # is this really true???
18502 ## LD is ld it makes a PLAMLIB
18503 ## CC just makes a GrossModule.
18504 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18505 reload_cmds
='$CC -r -o $output$reload_objs'
18509 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18510 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18513 runpath_var
='LD_RUN_PATH'
18514 hardcode_shlibpath_var
=no
18518 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18519 hardcode_shlibpath_var
=no
18520 export_dynamic_flag_spec
='-Bexport'
18524 if test -d /usr
/nec
; then
18525 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18526 hardcode_shlibpath_var
=no
18527 runpath_var
=LD_RUN_PATH
18528 hardcode_runpath_var
=yes
18533 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18534 no_undefined_flag
='${wl}-z,text'
18535 archive_cmds_need_lc
=no
18536 hardcode_shlibpath_var
=no
18537 runpath_var
='LD_RUN_PATH'
18539 if test "$GCC" = yes; then
18540 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18541 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18543 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18544 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18548 sysv5
* | sco3.2v5
* | sco5v6
*)
18549 # Note: We can NOT use -z defs as we might desire, because we do not
18550 # link with -lc, and that would cause any symbols used from libc to
18551 # always be unresolved, which means just about no library would
18552 # ever link correctly. If we're not using GNU ld we use -z text
18553 # though, which does catch some bad symbols but isn't as heavy-handed
18555 no_undefined_flag
='${wl}-z,text'
18556 allow_undefined_flag
='${wl}-z,nodefs'
18557 archive_cmds_need_lc
=no
18558 hardcode_shlibpath_var
=no
18559 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18560 hardcode_libdir_separator
=':'
18561 link_all_deplibs
=yes
18562 export_dynamic_flag_spec
='${wl}-Bexport'
18563 runpath_var
='LD_RUN_PATH'
18565 if test "$GCC" = yes; then
18566 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18567 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18569 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18570 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18575 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18576 hardcode_libdir_flag_spec
='-L$libdir'
18577 hardcode_shlibpath_var
=no
18585 if test x
$host_vendor = xsni
; then
18587 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18588 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18594 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18595 echo "${ECHO_T}$ld_shlibs" >&6
18596 test "$ld_shlibs" = no
&& can_build_shared
=no
18598 with_gnu_ld
=$with_gnu_ld
18615 # Do we need to explicitly link libc?
18617 case "x$archive_cmds_need_lc" in
18619 # Assume -lc should be added
18620 archive_cmds_need_lc
=yes
18622 if test "$enable_shared" = yes && test "$GCC" = yes; then
18623 case $archive_cmds in
18625 # FIXME: we may have to deal with multi-command sequences.
18628 # Test whether the compiler implicitly links with -lc since on some
18629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18630 # to ld, don't add -lc before -lgcc.
18631 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18634 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18637 (eval $ac_compile) 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } 2>conftest.err
; then
18643 libobjs
=conftest.
$ac_objext
18645 wl
=$lt_prog_compiler_wl
18646 pic_flag
=$lt_prog_compiler_pic
18652 lt_save_allow_undefined_flag
=$allow_undefined_flag
18653 allow_undefined_flag
=
18654 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18655 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }
18660 archive_cmds_need_lc
=no
18662 archive_cmds_need_lc
=yes
18664 allow_undefined_flag
=$lt_save_allow_undefined_flag
18666 cat conftest.err
1>&5
18669 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18670 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18833 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18834 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18836 if test "$GCC" = yes; then
18838 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18839 *) lt_awk_arg
="/^libraries:/" ;;
18841 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18842 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
18843 # if the path contains ";" then we assume it to be the separator
18844 # otherwise default to the standard path separator (i.e. ":") - it is
18845 # assumed that no part of a normal pathname contains ";" but that should
18846 # okay in the real world where ";" in dirpaths is itself problematic.
18847 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18849 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18851 # Ok, now we have the path, separated by spaces, we can step through it
18852 # and add multilib dir if necessary.
18853 lt_tmp_lt_search_path_spec
=
18854 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18855 for lt_sys_path
in $lt_search_path_spec; do
18856 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18857 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18859 test -d "$lt_sys_path" && \
18860 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18863 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18864 BEGIN {RS=" "; FS="/|\n";} {
18867 for (lt_i = NF; lt_i > 0; lt_i--) {
18868 if ($lt_i != "" && $lt_i != ".") {
18869 if ($lt_i == "..") {
18872 if (lt_count == 0) {
18873 lt_foo="/" $lt_i lt_foo;
18880 if (lt_foo != "") { lt_freq[lt_foo]++; }
18881 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18883 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
18885 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18887 library_names_spec
=
18888 libname_spec
='lib$name'
18892 postuninstall_cmds
=
18896 shlibpath_overrides_runpath
=unknown
18898 dynamic_linker
="$host_os ld.so"
18899 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18900 need_lib_prefix
=unknown
18901 hardcode_into_libs
=no
18903 # when you set need_version to no, make sure it does not cause -set_version
18904 # flags to be left without arguments
18905 need_version
=unknown
18910 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18911 shlibpath_var
=LIBPATH
18913 # AIX 3 has no versioning support, so we append a major version to the name.
18914 soname_spec
='${libname}${release}${shared_ext}$major'
18921 hardcode_into_libs
=yes
18922 if test "$host_cpu" = ia64
; then
18923 # AIX 5 supports IA64
18924 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18925 shlibpath_var
=LD_LIBRARY_PATH
18927 # With GCC up to 2.95.x, collect2 would create an import file
18928 # for dependence libraries. The import file would start with
18929 # the line `#! .'. This would cause the generated library to
18930 # depend on `.', always an invalid library. This was fixed in
18931 # development snapshots of GCC prior to 3.0.
18933 aix4 | aix4.
[01] | aix4.
[01].
*)
18934 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18936 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18939 can_build_shared
=no
18943 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18944 # soname into executable. Probably we can add versioning support to
18945 # collect2, so additional links can be useful in future.
18946 if test "$aix_use_runtimelinking" = yes; then
18947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18948 # instead of lib<name>.a to let people know that these are not
18949 # typical AIX shared libraries.
18950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18952 # We preserve .a as extension for shared libraries through AIX4.2
18953 # and later when we are not doing run time linking.
18954 library_names_spec
='${libname}${release}.a $libname.a'
18955 soname_spec
='${libname}${release}${shared_ext}$major'
18957 shlibpath_var
=LIBPATH
18964 # Since July 2007 AmigaOS4 officially supports .so libraries.
18965 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969 library_names_spec
='$libname.ixlibrary $libname.a'
18970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18971 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'
18977 library_names_spec
='${libname}${shared_ext}'
18978 dynamic_linker
="$host_os ld.so"
18979 shlibpath_var
=LIBRARY_PATH
18985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18986 soname_spec
='${libname}${release}${shared_ext}$major'
18987 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18988 shlibpath_var
=LD_LIBRARY_PATH
18989 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18990 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18991 # the default ld.so.conf also contains /usr/contrib/lib and
18992 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18993 # libtool to hard-code these into programs
18996 cygwin
* | mingw
* | pw32
* | cegcc
*)
18997 version_type
=windows
19002 case $GCC,$host_os in
19003 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19004 library_names_spec
='$libname.dll.a'
19005 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19006 postinstall_cmds
='base_file=`basename \${file}`~
19007 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19008 dldir=$destdir/`dirname \$dlpath`~
19009 test -d \$dldir || mkdir -p \$dldir~
19010 $install_prog $dir/$dlname \$dldir/$dlname~
19011 chmod a+x \$dldir/$dlname~
19012 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19013 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19015 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19016 dlpath=$dir/\$dldll~
19018 shlibpath_overrides_runpath
=yes
19022 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19023 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19024 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19027 # MinGW DLLs use traditional 'lib' prefix
19028 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19029 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19030 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
19031 # It is most probably a Windows format PATH printed by
19032 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19033 # path with ; separators, and with drive letters. We can handle the
19034 # drive letters (cygwin fileutils understands them), so leave them,
19035 # especially as we might pass files found there to a mingw objdump,
19036 # which wouldn't understand a cygwinified path. Ahh.
19037 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19039 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19043 # pw32 DLLs use 'pw' prefix rather than 'lib'
19044 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19050 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19053 dynamic_linker
='Win32 ld.exe'
19054 # FIXME: first we should search . and the directory the executable is in
19058 darwin
* | rhapsody
*)
19059 dynamic_linker
="$host_os dyld"
19060 version_type
=darwin
19063 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19064 soname_spec
='${libname}${release}${major}$shared_ext'
19065 shlibpath_overrides_runpath
=yes
19066 shlibpath_var
=DYLD_LIBRARY_PATH
19067 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19069 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
19070 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19078 soname_spec
='${libname}${release}${shared_ext}$major'
19079 shlibpath_var
=LD_LIBRARY_PATH
19086 freebsd
* | dragonfly
*)
19087 # DragonFly does not have aout. When/if they implement a new
19088 # versioning mechanism, adjust this.
19089 if test -x /usr
/bin
/objformat
; then
19090 objformat
=`/usr/bin/objformat`
19093 freebsd
[123]*) objformat
=aout
;;
19094 *) objformat
=elf
;;
19097 version_type
=freebsd-
$objformat
19098 case $version_type in
19100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19105 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19109 shlibpath_var
=LD_LIBRARY_PATH
19112 shlibpath_overrides_runpath
=yes
19114 freebsd3.
[01]* | freebsdelf3.
[01]*)
19115 shlibpath_overrides_runpath
=yes
19116 hardcode_into_libs
=yes
19118 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19119 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19120 shlibpath_overrides_runpath
=no
19121 hardcode_into_libs
=yes
19123 *) # from 4.6 on, and DragonFly
19124 shlibpath_overrides_runpath
=yes
19125 hardcode_into_libs
=yes
19134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19135 soname_spec
='${libname}${release}${shared_ext}$major'
19136 shlibpath_var
=LD_LIBRARY_PATH
19137 hardcode_into_libs
=yes
19140 hpux9
* | hpux10
* | hpux11
*)
19141 # Give a soname corresponding to the major version so that dld.sl refuses to
19142 # link against other versions.
19149 hardcode_into_libs
=yes
19150 dynamic_linker
="$host_os dld.so"
19151 shlibpath_var
=LD_LIBRARY_PATH
19152 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19154 soname_spec
='${libname}${release}${shared_ext}$major'
19155 if test "X$HPUX_IA64_MODE" = X32
; then
19156 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19158 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19160 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19164 hardcode_into_libs
=yes
19165 dynamic_linker
="$host_os dld.sl"
19166 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19167 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19169 soname_spec
='${libname}${release}${shared_ext}$major'
19170 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19171 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19175 dynamic_linker
="$host_os dld.sl"
19176 shlibpath_var
=SHLIB_PATH
19177 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19179 soname_spec
='${libname}${release}${shared_ext}$major'
19182 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19183 postinstall_cmds
='chmod 555 $lib'
19190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19191 soname_spec
='${libname}${release}${shared_ext}$major'
19192 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19193 shlibpath_var
=LD_LIBRARY_PATH
19194 shlibpath_overrides_runpath
=no
19195 hardcode_into_libs
=yes
19198 irix5
* | irix6
* | nonstopux
*)
19200 nonstopux
*) version_type
=nonstopux
;;
19202 if test "$lt_cv_prog_gnu_ld" = yes; then
19210 soname_spec
='${libname}${release}${shared_ext}$major'
19211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19213 irix5
* | nonstopux
*)
19214 libsuff
= shlibsuff
=
19217 case $LD in # libtool.m4 will add one of these switches to LD
19218 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19219 libsuff
= shlibsuff
= libmagic
=32-bit;;
19220 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19221 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19222 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19223 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19224 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19228 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19229 shlibpath_overrides_runpath
=no
19230 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19231 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19232 hardcode_into_libs
=yes
19235 # No shared lib support for Linux oldld, aout, or coff.
19236 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19240 # This must be Linux ELF.
19241 linux
* | k
*bsd
*-gnu)
19245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19246 soname_spec
='${libname}${release}${shared_ext}$major'
19247 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19248 shlibpath_var
=LD_LIBRARY_PATH
19249 shlibpath_overrides_runpath
=no
19250 # Some binutils ld are patched to set DT_RUNPATH
19251 save_LDFLAGS
=$LDFLAGS
19252 save_libdir
=$libdir
19253 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19254 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19255 cat >conftest.
$ac_ext <<_ACEOF
19258 cat confdefs.h
>>conftest.
$ac_ext
19259 cat >>conftest.
$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19270 rm -f conftest.
$ac_objext conftest
$ac_exeext
19271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19272 (eval $ac_link) 2>conftest.er1
19274 grep -v '^ *+' conftest.er1
>conftest.err
19276 cat conftest.err
>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } &&
19279 { ac_try
='test -z "$ac_c_werror_flag"
19280 || test ! -s conftest.err'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; } &&
19286 { ac_try
='test -s conftest$ac_exeext'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then
19293 shlibpath_overrides_runpath
=yes
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.
$ac_ext >&5
19301 rm -f conftest.err conftest.
$ac_objext \
19302 conftest
$ac_exeext conftest.
$ac_ext
19303 LDFLAGS
=$save_LDFLAGS
19304 libdir
=$save_libdir
19306 # This implies no fast_install, which is unacceptable.
19307 # Some rework will be needed to allow for fast_install
19308 # before this can be enabled.
19309 hardcode_into_libs
=yes
19311 # Append ld.so.conf contents to the search path
19312 if test -f /etc
/ld.so.conf
; then
19313 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19314 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19317 # We used to test for /lib/ld.so.1 and disable shared libraries on
19318 # powerpc, because MkLinux only supported shared libraries with the
19319 # GNU dynamic linker. Since this was broken with cross compilers,
19320 # most powerpc-linux boxes support dynamic linking these days and
19321 # people can always --disable-shared, the test was removed, and we
19322 # assume the GNU/Linux dynamic linker is in use.
19323 dynamic_linker
='GNU/Linux ld.so'
19330 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19332 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19333 dynamic_linker
='NetBSD (a.out) ld.so'
19335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19336 soname_spec
='${libname}${release}${shared_ext}$major'
19337 dynamic_linker
='NetBSD ld.elf_so'
19339 shlibpath_var
=LD_LIBRARY_PATH
19340 shlibpath_overrides_runpath
=yes
19341 hardcode_into_libs
=yes
19346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19347 shlibpath_var
=LD_LIBRARY_PATH
19348 shlibpath_overrides_runpath
=yes
19355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19356 soname_spec
='${libname}${release}${shared_ext}$major'
19357 shlibpath_var
=LD_LIBRARY_PATH
19358 shlibpath_overrides_runpath
=no
19359 hardcode_into_libs
=yes
19360 dynamic_linker
='ldqnx.so'
19365 sys_lib_dlsearch_path_spec
="/usr/lib"
19367 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19369 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19370 *) need_version
=no
;;
19372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19373 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19374 shlibpath_var
=LD_LIBRARY_PATH
19375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19377 openbsd2.
[89] | openbsd2.
[89].
*)
19378 shlibpath_overrides_runpath
=no
19381 shlibpath_overrides_runpath
=yes
19385 shlibpath_overrides_runpath
=yes
19390 libname_spec
='$name'
19393 library_names_spec
='$libname${shared_ext} $libname.a'
19394 dynamic_linker
='OS/2 ld.exe'
19395 shlibpath_var
=LIBPATH
19398 osf3
* | osf4
* | osf5
*)
19402 soname_spec
='${libname}${release}${shared_ext}$major'
19403 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19404 shlibpath_var
=LD_LIBRARY_PATH
19405 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19406 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19418 soname_spec
='${libname}${release}${shared_ext}$major'
19419 shlibpath_var
=LD_LIBRARY_PATH
19420 shlibpath_overrides_runpath
=yes
19421 hardcode_into_libs
=yes
19422 # ldd complains unless libraries are executable
19423 postinstall_cmds
='chmod +x $lib'
19428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19429 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19430 shlibpath_var
=LD_LIBRARY_PATH
19431 shlibpath_overrides_runpath
=yes
19432 if test "$with_gnu_ld" = yes; then
19440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19441 soname_spec
='${libname}${release}${shared_ext}$major'
19442 shlibpath_var
=LD_LIBRARY_PATH
19443 case $host_vendor in
19445 shlibpath_overrides_runpath
=no
19447 runpath_var
=LD_RUN_PATH
19455 shlibpath_overrides_runpath
=no
19456 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19462 if test -d /usr
/nec
;then
19464 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19465 soname_spec
='$libname${shared_ext}.$major'
19466 shlibpath_var
=LD_LIBRARY_PATH
19470 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19471 version_type
=freebsd-elf
19474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19475 soname_spec
='${libname}${release}${shared_ext}$major'
19476 shlibpath_var
=LD_LIBRARY_PATH
19477 shlibpath_overrides_runpath
=yes
19478 hardcode_into_libs
=yes
19479 if test "$with_gnu_ld" = yes; then
19480 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19482 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19485 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19489 sys_lib_dlsearch_path_spec
='/usr/lib'
19493 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19498 shlibpath_var
=LD_LIBRARY_PATH
19499 shlibpath_overrides_runpath
=no
19500 hardcode_into_libs
=yes
19505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19506 soname_spec
='${libname}${release}${shared_ext}$major'
19507 shlibpath_var
=LD_LIBRARY_PATH
19514 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19515 echo "${ECHO_T}$dynamic_linker" >&6
19516 test "$dynamic_linker" = no
&& can_build_shared
=no
19518 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19519 if test "$GCC" = yes; then
19520 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19523 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19524 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19526 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19527 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19616 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19617 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19619 if test -n "$hardcode_libdir_flag_spec" ||
19620 test -n "$runpath_var" ||
19621 test "X$hardcode_automatic" = "Xyes" ; then
19623 # We can hardcode non-existent directories.
19624 if test "$hardcode_direct" != no
&&
19625 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19626 # have to relink, otherwise we might link with an installed library
19627 # when we should be linking with a yet-to-be-installed one
19628 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19629 test "$hardcode_minus_L" != no
; then
19630 # Linking always hardcodes the temporary library directory.
19631 hardcode_action
=relink
19633 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19634 hardcode_action
=immediate
19637 # We cannot hardcode anything, or else we can only hardcode existing
19639 hardcode_action
=unsupported
19641 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19642 echo "${ECHO_T}$hardcode_action" >&6
19644 if test "$hardcode_action" = relink ||
19645 test "$inherit_rpath" = yes; then
19646 # Fast installation is not supported
19647 enable_fast_install
=no
19648 elif test "$shlibpath_overrides_runpath" = yes ||
19649 test "$enable_shared" = no
; then
19650 # Fast installation is not necessary
19651 enable_fast_install
=needless
19659 if test "x$enable_dlopen" != xyes
; then
19660 enable_dlopen
=unknown
19661 enable_dlopen_self
=unknown
19662 enable_dlopen_self_static
=unknown
19669 lt_cv_dlopen
="load_add_on"
19671 lt_cv_dlopen_self
=yes
19674 mingw
* | pw32
* | cegcc
*)
19675 lt_cv_dlopen
="LoadLibrary"
19680 lt_cv_dlopen
="dlopen"
19685 # if libdl is installed we need to link against it
19686 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19687 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19691 ac_check_lib_save_LIBS
=$LIBS
19693 cat >conftest.
$ac_ext <<_ACEOF
19696 cat confdefs.h
>>conftest.
$ac_ext
19697 cat >>conftest.
$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19700 /* Override any gcc2 internal prototype to avoid an error. */
19704 /* We use char because int might match the return type of a gcc2
19705 builtin and then its argument prototype would still apply. */
19715 rm -f conftest.
$ac_objext conftest
$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717 (eval $ac_link) 2>conftest.er1
19719 grep -v '^ *+' conftest.er1
>conftest.err
19721 cat conftest.err
>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try
='test -z "$ac_c_werror_flag"
19725 || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try
='test -s conftest$ac_exeext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_lib_dl_dlopen
=yes
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.
$ac_ext >&5
19742 ac_cv_lib_dl_dlopen
=no
19744 rm -f conftest.err conftest.
$ac_objext \
19745 conftest
$ac_exeext conftest.
$ac_ext
19746 LIBS
=$ac_check_lib_save_LIBS
19748 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19750 if test $ac_cv_lib_dl_dlopen = yes; then
19751 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19754 lt_cv_dlopen
="dyld"
19756 lt_cv_dlopen_self
=yes
19763 echo "$as_me:$LINENO: checking for shl_load" >&5
19764 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19765 if test "${ac_cv_func_shl_load+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 cat >conftest.
$ac_ext <<_ACEOF
19771 cat confdefs.h
>>conftest.
$ac_ext
19772 cat >>conftest.
$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19776 #define shl_load innocuous_shl_load
19778 /* System header to define __stub macros and hopefully few prototypes,
19779 which can conflict with char shl_load (); below.
19780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19781 <limits.h> exists even on freestanding compilers. */
19784 # include <limits.h>
19786 # include <assert.h>
19791 /* Override any gcc2 internal prototype to avoid an error. */
19796 /* We use char because int might match the return type of a gcc2
19797 builtin and then its argument prototype would still apply. */
19799 /* The GNU C library defines this for functions which it implements
19800 to always fail with ENOSYS. Some functions are actually named
19801 something starting with __ and the normal name is an alias. */
19802 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19805 char (*f) () = shl_load;
19814 return f != shl_load;
19819 rm -f conftest.
$ac_objext conftest
$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>conftest.er1
19823 grep -v '^ *+' conftest.er1
>conftest.err
19825 cat conftest.err
>&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } &&
19828 { ac_try
='test -z "$ac_c_werror_flag"
19829 || test ! -s conftest.err'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; } &&
19835 { ac_try
='test -s conftest$ac_exeext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 ac_cv_func_shl_load
=yes
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.
$ac_ext >&5
19846 ac_cv_func_shl_load
=no
19848 rm -f conftest.err conftest.
$ac_objext \
19849 conftest
$ac_exeext conftest.
$ac_ext
19851 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19852 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19853 if test $ac_cv_func_shl_load = yes; then
19854 lt_cv_dlopen
="shl_load"
19856 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 ac_check_lib_save_LIBS
=$LIBS
19863 cat >conftest.
$ac_ext <<_ACEOF
19866 cat confdefs.h
>>conftest.
$ac_ext
19867 cat >>conftest.
$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19870 /* Override any gcc2 internal prototype to avoid an error. */
19874 /* We use char because int might match the return type of a gcc2
19875 builtin and then its argument prototype would still apply. */
19885 rm -f conftest.
$ac_objext conftest
$ac_exeext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19887 (eval $ac_link) 2>conftest.er1
19889 grep -v '^ *+' conftest.er1
>conftest.err
19891 cat conftest.err
>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try
='test -z "$ac_c_werror_flag"
19895 || test ! -s conftest.err'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try
='test -s conftest$ac_exeext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_cv_lib_dld_shl_load
=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.
$ac_ext >&5
19912 ac_cv_lib_dld_shl_load
=no
19914 rm -f conftest.err conftest.
$ac_objext \
19915 conftest
$ac_exeext conftest.
$ac_ext
19916 LIBS
=$ac_check_lib_save_LIBS
19918 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19919 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19920 if test $ac_cv_lib_dld_shl_load = yes; then
19921 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19923 echo "$as_me:$LINENO: checking for dlopen" >&5
19924 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19925 if test "${ac_cv_func_dlopen+set}" = set; then
19926 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 cat >conftest.
$ac_ext <<_ACEOF
19931 cat confdefs.h
>>conftest.
$ac_ext
19932 cat >>conftest.
$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19936 #define dlopen innocuous_dlopen
19938 /* System header to define __stub macros and hopefully few prototypes,
19939 which can conflict with char dlopen (); below.
19940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19941 <limits.h> exists even on freestanding compilers. */
19944 # include <limits.h>
19946 # include <assert.h>
19951 /* Override any gcc2 internal prototype to avoid an error. */
19956 /* We use char because int might match the return type of a gcc2
19957 builtin and then its argument prototype would still apply. */
19959 /* The GNU C library defines this for functions which it implements
19960 to always fail with ENOSYS. Some functions are actually named
19961 something starting with __ and the normal name is an alias. */
19962 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19965 char (*f) () = dlopen;
19974 return f != dlopen;
19979 rm -f conftest.
$ac_objext conftest
$ac_exeext
19980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19981 (eval $ac_link) 2>conftest.er1
19983 grep -v '^ *+' conftest.er1
>conftest.err
19985 cat conftest.err
>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } &&
19988 { ac_try
='test -z "$ac_c_werror_flag"
19989 || test ! -s conftest.err'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try
='test -s conftest$ac_exeext'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_func_dlopen
=yes
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.
$ac_ext >&5
20006 ac_cv_func_dlopen
=no
20008 rm -f conftest.err conftest.
$ac_objext \
20009 conftest
$ac_exeext conftest.
$ac_ext
20011 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20012 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20013 if test $ac_cv_func_dlopen = yes; then
20014 lt_cv_dlopen
="dlopen"
20016 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20017 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 ac_check_lib_save_LIBS
=$LIBS
20023 cat >conftest.
$ac_ext <<_ACEOF
20026 cat confdefs.h
>>conftest.
$ac_ext
20027 cat >>conftest.
$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20030 /* Override any gcc2 internal prototype to avoid an error. */
20034 /* We use char because int might match the return type of a gcc2
20035 builtin and then its argument prototype would still apply. */
20045 rm -f conftest.
$ac_objext conftest
$ac_exeext
20046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20047 (eval $ac_link) 2>conftest.er1
20049 grep -v '^ *+' conftest.er1
>conftest.err
20051 cat conftest.err
>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
20054 { ac_try
='test -z "$ac_c_werror_flag"
20055 || test ! -s conftest.err'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; } &&
20061 { ac_try
='test -s conftest$ac_exeext'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 ac_cv_lib_dl_dlopen
=yes
20069 echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.
$ac_ext >&5
20072 ac_cv_lib_dl_dlopen
=no
20074 rm -f conftest.err conftest.
$ac_objext \
20075 conftest
$ac_exeext conftest.
$ac_ext
20076 LIBS
=$ac_check_lib_save_LIBS
20078 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20079 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20080 if test $ac_cv_lib_dl_dlopen = yes; then
20081 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
20083 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20084 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20085 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 ac_check_lib_save_LIBS
=$LIBS
20089 LIBS
="-lsvld $LIBS"
20090 cat >conftest.
$ac_ext <<_ACEOF
20093 cat confdefs.h
>>conftest.
$ac_ext
20094 cat >>conftest.
$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20097 /* Override any gcc2 internal prototype to avoid an error. */
20101 /* We use char because int might match the return type of a gcc2
20102 builtin and then its argument prototype would still apply. */
20112 rm -f conftest.
$ac_objext conftest
$ac_exeext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20114 (eval $ac_link) 2>conftest.er1
20116 grep -v '^ *+' conftest.er1
>conftest.err
20118 cat conftest.err
>&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try
='test -z "$ac_c_werror_flag"
20122 || test ! -s conftest.err'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try
='test -s conftest$ac_exeext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_cv_lib_svld_dlopen
=yes
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.
$ac_ext >&5
20139 ac_cv_lib_svld_dlopen
=no
20141 rm -f conftest.err conftest.
$ac_objext \
20142 conftest
$ac_exeext conftest.
$ac_ext
20143 LIBS
=$ac_check_lib_save_LIBS
20145 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20146 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20147 if test $ac_cv_lib_svld_dlopen = yes; then
20148 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
20150 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20151 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20152 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 ac_check_lib_save_LIBS
=$LIBS
20157 cat >conftest.
$ac_ext <<_ACEOF
20160 cat confdefs.h
>>conftest.
$ac_ext
20161 cat >>conftest.
$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20164 /* Override any gcc2 internal prototype to avoid an error. */
20168 /* We use char because int might match the return type of a gcc2
20169 builtin and then its argument prototype would still apply. */
20179 rm -f conftest.
$ac_objext conftest
$ac_exeext
20180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20181 (eval $ac_link) 2>conftest.er1
20183 grep -v '^ *+' conftest.er1
>conftest.err
20185 cat conftest.err
>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
20188 { ac_try
='test -z "$ac_c_werror_flag"
20189 || test ! -s conftest.err'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; } &&
20195 { ac_try
='test -s conftest$ac_exeext'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201 ac_cv_lib_dld_dld_link
=yes
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.
$ac_ext >&5
20206 ac_cv_lib_dld_dld_link
=no
20208 rm -f conftest.err conftest.
$ac_objext \
20209 conftest
$ac_exeext conftest.
$ac_ext
20210 LIBS
=$ac_check_lib_save_LIBS
20212 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20213 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20214 if test $ac_cv_lib_dld_dld_link = yes; then
20215 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
20236 if test "x$lt_cv_dlopen" != xno
; then
20242 case $lt_cv_dlopen in
20244 save_CPPFLAGS
="$CPPFLAGS"
20245 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
20247 save_LDFLAGS
="$LDFLAGS"
20248 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
20251 LIBS
="$lt_cv_dlopen_libs $LIBS"
20253 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20254 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20255 if test "${lt_cv_dlopen_self+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 if test "$cross_compiling" = yes; then :
20259 lt_cv_dlopen_self
=cross
20261 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20262 lt_status
=$lt_dlunknown
20263 cat > conftest.
$ac_ext <<_LT_EOF
20264 #line 20264 "configure"
20265 #include "confdefs.h"
20274 # define LT_DLGLOBAL RTLD_GLOBAL
20277 # define LT_DLGLOBAL DL_GLOBAL
20279 # define LT_DLGLOBAL 0
20283 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20284 find out it does not work in some platform. */
20285 #ifndef LT_DLLAZY_OR_NOW
20287 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20290 # define LT_DLLAZY_OR_NOW DL_LAZY
20293 # define LT_DLLAZY_OR_NOW RTLD_NOW
20296 # define LT_DLLAZY_OR_NOW DL_NOW
20298 # define LT_DLLAZY_OR_NOW 0
20305 void fnord() { int i=42;}
20308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20309 int status = $lt_dlunknown;
20313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20314 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20315 /* dlclose (self); */
20323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20324 (eval $ac_link) 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20328 (.
/conftest
; exit; ) >&5 2>/dev
/null
20330 case x
$lt_status in
20331 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
20332 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
20333 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
20336 # compilation failed
20337 lt_cv_dlopen_self
=no
20344 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20345 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20347 if test "x$lt_cv_dlopen_self" = xyes
; then
20348 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
20349 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20350 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20351 if test "${lt_cv_dlopen_self_static+set}" = set; then
20352 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 if test "$cross_compiling" = yes; then :
20355 lt_cv_dlopen_self_static
=cross
20357 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20358 lt_status
=$lt_dlunknown
20359 cat > conftest.
$ac_ext <<_LT_EOF
20360 #line 20360 "configure"
20361 #include "confdefs.h"
20370 # define LT_DLGLOBAL RTLD_GLOBAL
20373 # define LT_DLGLOBAL DL_GLOBAL
20375 # define LT_DLGLOBAL 0
20379 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20380 find out it does not work in some platform. */
20381 #ifndef LT_DLLAZY_OR_NOW
20383 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20386 # define LT_DLLAZY_OR_NOW DL_LAZY
20389 # define LT_DLLAZY_OR_NOW RTLD_NOW
20392 # define LT_DLLAZY_OR_NOW DL_NOW
20394 # define LT_DLLAZY_OR_NOW 0
20401 void fnord() { int i=42;}
20404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20405 int status = $lt_dlunknown;
20409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20410 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20411 /* dlclose (self); */
20419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20420 (eval $ac_link) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20424 (.
/conftest
; exit; ) >&5 2>/dev
/null
20426 case x
$lt_status in
20427 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20428 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20429 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20432 # compilation failed
20433 lt_cv_dlopen_self_static
=no
20440 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20441 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20444 CPPFLAGS
="$save_CPPFLAGS"
20445 LDFLAGS
="$save_LDFLAGS"
20450 case $lt_cv_dlopen_self in
20451 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20452 *) enable_dlopen_self
=unknown
;;
20455 case $lt_cv_dlopen_self_static in
20456 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20457 *) enable_dlopen_self_static
=unknown
;;
20479 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20480 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20481 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20482 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20483 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20484 echo "$as_me:$LINENO: result: yes" >&5
20485 echo "${ECHO_T}yes" >&6
20487 # FIXME - insert some real tests, host_os isn't really good enough
20490 if test -n "$STRIP" ; then
20491 striplib
="$STRIP -x"
20492 old_striplib
="$STRIP -S"
20493 echo "$as_me:$LINENO: result: yes" >&5
20494 echo "${ECHO_T}yes" >&6
20496 echo "$as_me:$LINENO: result: no" >&5
20497 echo "${ECHO_T}no" >&6
20501 echo "$as_me:$LINENO: result: no" >&5
20502 echo "${ECHO_T}no" >&6
20518 # Report which library types will actually be built
20519 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20520 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20521 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20522 echo "${ECHO_T}$can_build_shared" >&6
20524 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20525 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20526 test "$can_build_shared" = "no" && enable_shared
=no
20528 # On AIX, shared libraries and static libraries use the same namespace, and
20529 # are all built from PIC.
20532 test "$enable_shared" = yes && enable_static
=no
20533 if test -n "$RANLIB"; then
20534 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20535 postinstall_cmds
='$RANLIB $lib'
20540 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20541 test "$enable_shared" = yes && enable_static
=no
20545 echo "$as_me:$LINENO: result: $enable_shared" >&5
20546 echo "${ECHO_T}$enable_shared" >&6
20548 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20549 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20550 # Make sure either enable_shared or enable_static is yes.
20551 test "$enable_shared" = yes || enable_static
=yes
20552 echo "$as_me:$LINENO: result: $enable_static" >&5
20553 echo "${ECHO_T}$enable_static" >&6
20560 ac_cpp
='$CPP $CPPFLAGS'
20561 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20562 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20563 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20582 # Only expand once:
20588 # Identify the assembler which will work hand-in-glove with the newly
20589 # built GCC, so that we can examine its features. This is the assembler
20590 # which will be driven by the driver program.
20592 # If build != host, and we aren't building gas in-tree, we identify a
20593 # build->target assembler and hope that it will have the same features
20594 # as the host->target assembler we'll be using.
20595 gcc_cv_gas_major_version
=
20596 gcc_cv_gas_minor_version
=
20597 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20599 if test "${gcc_cv_as+set}" = set; then
20603 if test -x "$DEFAULT_ASSEMBLER"; then
20604 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20605 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20606 && test -f ..
/gas
/Makefile \
20607 && test x
$build = x
$host; then
20608 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20609 elif test -x as
$build_exeext; then
20610 # Build using assembler in the current directory.
20611 gcc_cv_as
=.
/as
$build_exeext
20612 elif test -x $AS_FOR_TARGET; then
20613 gcc_cv_as
="$AS_FOR_TARGET"
20615 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20616 set dummy
$AS_FOR_TARGET; ac_word
=$2
20617 echo "$as_me:$LINENO: checking for $ac_word" >&5
20618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20619 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20624 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20628 for as_dir
in $PATH
20631 test -z "$as_dir" && as_dir
=.
20632 for ac_exec_ext
in '' $ac_executable_extensions; do
20633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20634 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20644 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20646 if test -n "$gcc_cv_as"; then
20647 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20648 echo "${ECHO_T}$gcc_cv_as" >&6
20650 echo "$as_me:$LINENO: result: no" >&5
20651 echo "${ECHO_T}no" >&6
20658 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20660 case "$ORIGINAL_AS_FOR_TARGET" in
20661 .
/as | .
/as
$build_exeext) ;;
20662 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20666 echo "$as_me:$LINENO: checking what assembler to use" >&5
20667 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20668 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20669 # Single tree build which includes gas. We want to prefer it
20670 # over whatever linker top-level may have detected, since
20671 # we'll use what we're building after installation anyway.
20672 echo "$as_me:$LINENO: result: newly built gas" >&5
20673 echo "${ECHO_T}newly built gas" >&6
20675 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20676 for f
in $gcc_cv_as_bfd_srcdir/configure \
20677 $gcc_cv_as_gas_srcdir/configure \
20678 $gcc_cv_as_gas_srcdir/configure.
in \
20679 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20680 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20681 if test x
$gcc_cv_gas_version != x
; then
20685 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20686 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20687 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20688 case $gcc_cv_gas_patch_version in
20689 "") gcc_cv_gas_patch_version
="0" ;;
20691 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20692 + $gcc_cv_gas_minor_version \) \* 1000 \
20693 + $gcc_cv_gas_patch_version`
20695 in_tree_gas_is_elf
=no
20696 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20697 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20698 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20700 in_tree_gas_is_elf
=yes
20703 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20704 echo "${ECHO_T}$gcc_cv_as" >&6
20708 # Identify the linker which will work hand-in-glove with the newly
20709 # built GCC, so that we can examine its features. This is the linker
20710 # which will be driven by the driver program.
20712 # If build != host, and we aren't building gas in-tree, we identify a
20713 # build->target linker and hope that it will have the same features
20714 # as the host->target linker we'll be using.
20715 gcc_cv_gld_major_version
=
20716 gcc_cv_gld_minor_version
=
20717 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20718 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20720 if test "${gcc_cv_ld+set}" = set; then
20724 if test -x "$DEFAULT_LINKER"; then
20725 gcc_cv_ld
="$DEFAULT_LINKER"
20726 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20727 && test -f ..
/ld
/Makefile \
20728 && test x
$build = x
$host; then
20729 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20730 elif test -x collect-ld
$build_exeext; then
20731 # Build using linker in the current directory.
20732 gcc_cv_ld
=.
/collect-ld
$build_exeext
20733 elif test -x $LD_FOR_TARGET; then
20734 gcc_cv_ld
="$LD_FOR_TARGET"
20736 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20737 set dummy
$LD_FOR_TARGET; ac_word
=$2
20738 echo "$as_me:$LINENO: checking for $ac_word" >&5
20739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20740 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20749 for as_dir
in $PATH
20752 test -z "$as_dir" && as_dir
=.
20753 for ac_exec_ext
in '' $ac_executable_extensions; do
20754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20755 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20765 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20767 if test -n "$gcc_cv_ld"; then
20768 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20769 echo "${ECHO_T}$gcc_cv_ld" >&6
20771 echo "$as_me:$LINENO: result: no" >&5
20772 echo "${ECHO_T}no" >&6
20779 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20781 case "$ORIGINAL_LD_FOR_TARGET" in
20782 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20783 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20787 echo "$as_me:$LINENO: checking what linker to use" >&5
20788 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20789 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20790 # Single tree build which includes ld. We want to prefer it
20791 # over whatever linker top-level may have detected, since
20792 # we'll use what we're building after installation anyway.
20793 echo "$as_me:$LINENO: result: newly built ld" >&5
20794 echo "${ECHO_T}newly built ld" >&6
20796 in_tree_ld_is_elf
=no
20797 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20798 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20799 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20800 in_tree_ld_is_elf
=yes
20802 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
20804 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20805 if test x
$gcc_cv_gld_version != x
; then
20809 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20810 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20812 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20813 echo "${ECHO_T}$gcc_cv_ld" >&6
20817 # Figure out what nm we will be using.
20818 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20819 if test "${gcc_cv_nm+set}" = set; then
20823 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20824 && test -f ..
/binutils
/Makefile \
20825 && test x
$build = x
$host; then
20826 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20827 elif test -x nm
$build_exeext; then
20828 gcc_cv_nm
=.
/nm
$build_exeext
20829 elif test -x $NM_FOR_TARGET; then
20830 gcc_cv_nm
="$NM_FOR_TARGET"
20832 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20833 set dummy
$NM_FOR_TARGET; ac_word
=$2
20834 echo "$as_me:$LINENO: checking for $ac_word" >&5
20835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20836 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20845 for as_dir
in $PATH
20848 test -z "$as_dir" && as_dir
=.
20849 for ac_exec_ext
in '' $ac_executable_extensions; do
20850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20851 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20861 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20863 if test -n "$gcc_cv_nm"; then
20864 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20865 echo "${ECHO_T}$gcc_cv_nm" >&6
20867 echo "$as_me:$LINENO: result: no" >&5
20868 echo "${ECHO_T}no" >&6
20875 echo "$as_me:$LINENO: checking what nm to use" >&5
20876 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20877 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20878 # Single tree build which includes binutils.
20879 echo "$as_me:$LINENO: result: newly built nm" >&5
20880 echo "${ECHO_T}newly built nm" >&6
20883 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20884 echo "${ECHO_T}$gcc_cv_nm" >&6
20888 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20890 case "$ORIGINAL_NM_FOR_TARGET" in
20891 .
/nm | .
/nm
$build_exeext) ;;
20892 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20897 # Figure out what objdump we will be using.
20898 if test "${gcc_cv_objdump+set}" = set; then
20902 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20903 && test -f ..
/binutils
/Makefile \
20904 && test x
$build = x
$host; then
20905 # Single tree build which includes binutils.
20906 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20907 elif test -x objdump
$build_exeext; then
20908 gcc_cv_objdump
=.
/objdump
$build_exeext
20909 elif test -x $OBJDUMP_FOR_TARGET; then
20910 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20912 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20913 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20914 echo "$as_me:$LINENO: checking for $ac_word" >&5
20915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20916 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 case $gcc_cv_objdump in
20921 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20925 for as_dir
in $PATH
20928 test -z "$as_dir" && as_dir
=.
20929 for ac_exec_ext
in '' $ac_executable_extensions; do
20930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20931 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20941 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20943 if test -n "$gcc_cv_objdump"; then
20944 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20945 echo "${ECHO_T}$gcc_cv_objdump" >&6
20947 echo "$as_me:$LINENO: result: no" >&5
20948 echo "${ECHO_T}no" >&6
20955 echo "$as_me:$LINENO: checking what objdump to use" >&5
20956 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20957 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20958 # Single tree build which includes binutils.
20959 echo "$as_me:$LINENO: result: newly built objdump" >&5
20960 echo "${ECHO_T}newly built objdump" >&6
20961 elif test x
$gcc_cv_objdump = x
; then
20962 echo "$as_me:$LINENO: result: not found" >&5
20963 echo "${ECHO_T}not found" >&6
20965 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20966 echo "${ECHO_T}$gcc_cv_objdump" >&6
20969 # Figure out what assembler alignment features are present.
20970 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20971 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20972 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 gcc_cv_as_balign_and_p2align
=no
20976 if test $in_tree_gas = yes; then
20977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20978 then gcc_cv_as_balign_and_p2align
=yes
20980 elif test x
$gcc_cv_as != x
; then
20982 .p2align 2' > conftest.s
20983 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }
20990 gcc_cv_as_balign_and_p2align
=yes
20992 echo "configure: failed program was" >&5
20995 rm -f conftest.o conftest.s
20998 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20999 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
21000 if test $gcc_cv_as_balign_and_p2align = yes; then
21002 cat >>confdefs.h
<<\_ACEOF
21003 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
21008 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
21009 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
21010 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 gcc_cv_as_max_skip_p2align
=no
21014 if test $in_tree_gas = yes; then
21015 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21016 then gcc_cv_as_max_skip_p2align
=yes
21018 elif test x
$gcc_cv_as != x
; then
21019 echo '.p2align 4,,7' > conftest.s
21020 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; }
21027 gcc_cv_as_max_skip_p2align
=yes
21029 echo "configure: failed program was" >&5
21032 rm -f conftest.o conftest.s
21035 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
21036 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
21037 if test $gcc_cv_as_max_skip_p2align = yes; then
21039 cat >>confdefs.h
<<\_ACEOF
21040 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
21045 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
21046 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
21047 if test "${gcc_cv_as_literal16+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 gcc_cv_as_literal16
=no
21051 if test $in_tree_gas = yes; then
21052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21053 then gcc_cv_as_literal16
=yes
21055 elif test x
$gcc_cv_as != x
; then
21056 echo '.literal16' > conftest.s
21057 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059 (eval $ac_try) 2>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; }
21064 gcc_cv_as_literal16
=yes
21066 echo "configure: failed program was" >&5
21069 rm -f conftest.o conftest.s
21072 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
21073 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
21074 if test $gcc_cv_as_literal16 = yes; then
21076 cat >>confdefs.h
<<\_ACEOF
21077 #define HAVE_GAS_LITERAL16 1
21082 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
21083 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
21084 if test "${gcc_cv_as_subsection_m1+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21087 gcc_cv_as_subsection_m1
=no
21088 if test $in_tree_gas = yes; then
21089 if test $in_tree_gas_is_elf = yes \
21090 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21091 then gcc_cv_as_subsection_m1
=yes
21093 elif test x
$gcc_cv_as != x
; then
21094 echo 'conftest_label1: .word 0
21096 conftest_label2: .word 0
21097 .previous' > conftest.s
21098 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; }
21105 if test x
$gcc_cv_nm != x
; then
21106 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21107 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21108 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21110 else gcc_cv_as_subsection_m1
=yes
21112 rm -f conftest.nm1 conftest.nm2
21115 echo "configure: failed program was" >&5
21118 rm -f conftest.o conftest.s
21121 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
21122 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
21123 if test $gcc_cv_as_subsection_m1 = yes; then
21125 cat >>confdefs.h
<<\_ACEOF
21126 #define HAVE_GAS_SUBSECTION_ORDERING 1
21131 echo "$as_me:$LINENO: checking assembler for .weak" >&5
21132 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
21133 if test "${gcc_cv_as_weak+set}" = set; then
21134 echo $ECHO_N "(cached) $ECHO_C" >&6
21137 if test $in_tree_gas = yes; then
21138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21139 then gcc_cv_as_weak
=yes
21141 elif test x
$gcc_cv_as != x
; then
21142 echo ' .weak foobar' > conftest.s
21143 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; }
21152 echo "configure: failed program was" >&5
21155 rm -f conftest.o conftest.s
21158 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
21159 echo "${ECHO_T}$gcc_cv_as_weak" >&6
21160 if test $gcc_cv_as_weak = yes; then
21162 cat >>confdefs.h
<<\_ACEOF
21163 #define HAVE_GAS_WEAK 1
21168 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
21169 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
21170 if test "${gcc_cv_as_weakref+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 gcc_cv_as_weakref
=no
21174 if test $in_tree_gas = yes; then
21175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21176 then gcc_cv_as_weakref
=yes
21178 elif test x
$gcc_cv_as != x
; then
21179 echo ' .weakref foobar, barfnot' > conftest.s
21180 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }
21187 gcc_cv_as_weakref
=yes
21189 echo "configure: failed program was" >&5
21192 rm -f conftest.o conftest.s
21195 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
21196 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
21197 if test $gcc_cv_as_weakref = yes; then
21199 cat >>confdefs.h
<<\_ACEOF
21200 #define HAVE_GAS_WEAKREF 1
21205 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
21206 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
21207 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 gcc_cv_as_nsubspa_comdat
=no
21211 if test $in_tree_gas = yes; then
21212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21213 then gcc_cv_as_nsubspa_comdat
=yes
21215 elif test x
$gcc_cv_as != x
; then
21216 echo ' .SPACE $TEXT$
21217 .NSUBSPA $CODE$,COMDAT' > conftest.s
21218 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; }
21225 gcc_cv_as_nsubspa_comdat
=yes
21227 echo "configure: failed program was" >&5
21230 rm -f conftest.o conftest.s
21233 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
21234 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
21235 if test $gcc_cv_as_nsubspa_comdat = yes; then
21237 cat >>confdefs.h
<<\_ACEOF
21238 #define HAVE_GAS_NSUBSPA_COMDAT 1
21243 # .hidden needs to be supported in both the assembler and the linker,
21244 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21245 # This is irritatingly difficult to feature test for; we have to check the
21246 # date string after the version number. If we've got an in-tree
21247 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21249 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21250 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
21251 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
21252 if test "${gcc_cv_as_hidden+set}" = set; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 gcc_cv_as_hidden
=no
21256 if test $in_tree_gas = yes; then
21257 if test $in_tree_gas_is_elf = yes \
21258 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21259 then gcc_cv_as_hidden
=yes
21261 elif test x
$gcc_cv_as != x
; then
21262 echo ' .hidden foobar
21263 foobar:' > conftest.s
21264 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266 (eval $ac_try) 2>&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; }
21271 gcc_cv_as_hidden
=yes
21273 echo "configure: failed program was" >&5
21276 rm -f conftest.o conftest.s
21279 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
21280 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
21283 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
21284 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
21285 if test "${gcc_cv_ld_hidden+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 if test $in_tree_ld = yes ; then
21289 gcc_cv_ld_hidden
=no
21290 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 \
21291 && test $in_tree_ld_is_elf = yes; then
21292 gcc_cv_ld_hidden
=yes
21295 gcc_cv_ld_hidden
=yes
21296 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21297 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21298 ld_vers
=`echo $ld_ver | sed -n \
21299 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21300 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'`
21301 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21302 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21303 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21304 if test 0"$ld_date" -lt 20020404; then
21305 if test -n "$ld_date"; then
21306 # If there was date string, but was earlier than 2002-04-04, fail
21307 gcc_cv_ld_hidden
=no
21308 elif test -z "$ld_vers"; then
21309 # If there was no date string nor ld version number, something is wrong
21310 gcc_cv_ld_hidden
=no
21312 test -z "$ld_vers_patch" && ld_vers_patch
=0
21313 if test "$ld_vers_major" -lt 2; then
21314 gcc_cv_ld_hidden
=no
21315 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21316 gcc_cv_ld_hidden
="no"
21317 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21318 gcc_cv_ld_hidden
=no
21323 case "${target}" in
21324 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21325 gcc_cv_ld_hidden
=yes
21328 gcc_cv_ld_hidden
=no
21334 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
21335 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
21336 libgcc_visibility
=no
21339 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21340 libgcc_visibility
=yes
21342 cat >>confdefs.h
<<\_ACEOF
21343 #define HAVE_GAS_HIDDEN 1
21348 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
21349 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
21350 gcc_cv_ld_ro_rw_mix
=unknown
21351 if test $in_tree_ld = yes ; then
21352 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 \
21353 && test $in_tree_ld_is_elf = yes; then
21354 gcc_cv_ld_ro_rw_mix
=read-write
21356 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21357 echo '.section myfoosect, "a"' > conftest1.s
21358 echo '.section myfoosect, "aw"' > conftest2.s
21359 echo '.byte 1' >> conftest2.s
21360 echo '.section myfoosect, "a"' > conftest3.s
21361 echo '.byte 0' >> conftest3.s
21362 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21363 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21364 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21365 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21366 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21367 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21368 | sed -e '/myfoosect/!d' -e N`
21369 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21370 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21371 gcc_cv_ld_ro_rw_mix
=read-only
21373 gcc_cv_ld_ro_rw_mix
=read-write
21377 rm -f conftest.
* conftest
[123].
*
21379 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21381 cat >>confdefs.h
<<\_ACEOF
21382 #define HAVE_LD_RO_RW_SECTION_MIXING 1
21386 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
21387 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
21389 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21390 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
21391 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
21392 if test "${gcc_cv_as_leb128+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 gcc_cv_as_leb128
=no
21396 if test $in_tree_gas = yes; then
21397 if test $in_tree_gas_is_elf = yes \
21398 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21399 then gcc_cv_as_leb128
=yes
21401 elif test x
$gcc_cv_as != x
; then
21408 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }
21415 # GAS versions before 2.11 do not support uleb128,
21416 # despite appearing to.
21417 # ??? There exists an elf-specific test that will crash
21418 # the assembler. Perhaps it's better to figure out whether
21419 # arbitrary sections are supported and try the test.
21420 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21421 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21422 as_vers
=`echo $as_ver | sed -n \
21423 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21424 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21425 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21426 if test $as_major -eq 2 && test $as_minor -lt 11
21428 else gcc_cv_as_leb128
=yes
21432 echo "configure: failed program was" >&5
21435 rm -f conftest.o conftest.s
21438 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
21439 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
21440 if test $gcc_cv_as_leb128 = yes; then
21442 cat >>confdefs.h
<<\_ACEOF
21443 #define HAVE_AS_LEB128 1
21448 # Check if we have assembler support for unwind directives.
21449 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
21450 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
21451 if test "${gcc_cv_as_cfi_directive+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 gcc_cv_as_cfi_directive
=no
21455 if test x
$gcc_cv_as != x
; then
21461 .cfi_escape 1, 2, 3, 4, 5
21462 .cfi_endproc' > conftest.s
21463 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }
21472 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21473 # read-only and read-write sections, we need to make sure that the
21474 # assembler used emits read-write .eh_frame sections.
21475 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21476 if test "x$gcc_cv_objdump" != x
; then
21477 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21478 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21479 gcc_cv_as_cfi_directive
=no
21481 gcc_cv_as_cfi_directive
=yes
21484 # no objdump, err on the side of caution
21485 gcc_cv_as_cfi_directive
=no
21488 gcc_cv_as_cfi_directive
=yes
21492 gcc_cv_as_cfi_directive
=yes
21496 echo "configure: failed program was" >&5
21499 rm -f conftest.o conftest.s
21502 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
21503 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
21506 cat >>confdefs.h
<<_ACEOF
21507 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes; then echo 1; else echo 0; fi`
21511 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
21512 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
21513 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 gcc_cv_as_cfi_personality_directive
=no
21517 if test x
$gcc_cv_as != x
; then
21520 .cfi_personality 0, symbol
21521 .cfi_endproc' > conftest.s
21522 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21524 (eval $ac_try) 2>&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); }; }
21529 gcc_cv_as_cfi_personality_directive
=yes
21531 echo "configure: failed program was" >&5
21534 rm -f conftest.o conftest.s
21537 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
21538 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
21541 cat >>confdefs.h
<<_ACEOF
21542 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21543 then echo 1; else echo 0; fi`
21547 # GAS versions up to and including 2.11.0 may mis-optimize
21549 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
21550 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
21551 if test "${gcc_cv_as_eh_frame+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 gcc_cv_as_eh_frame
=no
21555 if test $in_tree_gas = yes; then
21556 if test $in_tree_gas_is_elf = yes \
21557 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21558 then gcc_cv_as_eh_frame
=yes
21560 elif test x
$gcc_cv_as != x
; then
21567 .section .eh_frame,"aw",@progbits
21569 .4byte .LECIE1-.LSCIE1
21583 .4byte .LEFDE1-.LASFDE1
21585 .4byte .LASFDE1-__FRAME_BEGIN__
21592 .LEFDE1:' > conftest.s
21593 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }
21600 cat > conftest.lit
<<EOF
21601 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21602 0010 01000000 12000000 18000000 00000000 ................
21603 0020 08000000 04080000 0044 .........D
21605 cat > conftest.big
<<EOF
21606 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21607 0010 00000001 00000012 00000018 00000000 ................
21608 0020 00000008 04000000 0844 .........D
21610 # If the assembler didn't choke, and we can objdump,
21611 # and we got the correct data, then succeed.
21612 # The text in the here-document typically retains its unix-style line
21613 # endings, while the output of objdump will use host line endings.
21614 # Therefore, use diff -b for the comparisons.
21615 if test x
$gcc_cv_objdump != x \
21616 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21617 |
tail -3 > conftest.got \
21618 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21619 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21621 gcc_cv_as_eh_frame
=yes
21622 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 gcc_cv_as_eh_frame
=buggy
21630 # Uh oh, what do we do now?
21631 gcc_cv_as_eh_frame
=no
21634 echo "configure: failed program was" >&5
21637 rm -f conftest.o conftest.s
21640 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
21641 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21644 if test $gcc_cv_as_eh_frame = buggy
; then
21646 cat >>confdefs.h
<<\_ACEOF
21647 #define USE_AS_TRADITIONAL_FORMAT 1
21652 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21653 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21654 if test "${gcc_cv_as_shf_merge+set}" = set; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21657 gcc_cv_as_shf_merge
=no
21658 if test $in_tree_gas = yes; then
21659 if test $in_tree_gas_is_elf = yes \
21660 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21661 then gcc_cv_as_shf_merge
=yes
21663 elif test x
$gcc_cv_as != x
; then
21664 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21665 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; }
21672 gcc_cv_as_shf_merge
=yes
21674 echo "configure: failed program was" >&5
21677 rm -f conftest.o conftest.s
21680 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21681 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21683 if test $gcc_cv_as_shf_merge = no
; then
21684 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21685 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21686 if test "${gcc_cv_as_shf_merge+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21689 gcc_cv_as_shf_merge
=no
21690 if test $in_tree_gas = yes; then
21691 if test $in_tree_gas_is_elf = yes \
21692 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21693 then gcc_cv_as_shf_merge
=yes
21695 elif test x
$gcc_cv_as != x
; then
21696 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21697 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; }
21704 gcc_cv_as_shf_merge
=yes
21706 echo "configure: failed program was" >&5
21709 rm -f conftest.o conftest.s
21712 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21713 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21717 cat >>confdefs.h
<<_ACEOF
21718 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21722 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21723 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21724 if test "${gcc_cv_as_comdat_group+set}" = set; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 gcc_cv_as_comdat_group
=no
21728 if test $in_tree_gas = yes; then
21729 if test $in_tree_gas_is_elf = yes \
21730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21731 then gcc_cv_as_comdat_group
=yes
21733 elif test x
$gcc_cv_as != x
; then
21734 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21735 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737 (eval $ac_try) 2>&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; }
21742 gcc_cv_as_comdat_group
=yes
21744 echo "configure: failed program was" >&5
21747 rm -f conftest.o conftest.s
21750 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21751 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21753 if test $gcc_cv_as_comdat_group = yes; then
21754 gcc_cv_as_comdat_group_percent
=no
21756 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21757 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21758 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21761 gcc_cv_as_comdat_group_percent
=no
21762 if test $in_tree_gas = yes; then
21763 if test $in_tree_gas_is_elf = yes \
21764 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21765 then gcc_cv_as_comdat_group_percent
=yes
21767 elif test x
$gcc_cv_as != x
; then
21768 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21769 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 (eval $ac_try) 2>&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); }; }
21776 gcc_cv_as_comdat_group_percent
=yes
21778 echo "configure: failed program was" >&5
21781 rm -f conftest.o conftest.s
21784 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21785 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21788 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
21790 if test 0"$ld_date" -lt 20050308; then
21791 if test -n "$ld_date"; then
21792 # If there was date string, but was earlier than 2005-03-08, fail
21794 elif test "$ld_vers_major" -lt 2; then
21796 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21801 # assume linkers other than GNU ld don't support COMDAT group
21804 if test $comdat_group = no
; then
21805 gcc_cv_as_comdat_group
=no
21806 gcc_cv_as_comdat_group_percent
=no
21809 cat >>confdefs.h
<<_ACEOF
21810 #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`
21814 # Thread-local storage - the check is heavily parameterized.
21822 .section ".tdata","awT",@progbits
21825 ldq $27,__tls_get_addr($29) !literal!1
21826 lda $16,foo($29) !tlsgd!1
21827 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21828 ldq $27,__tls_get_addr($29) !literal!2
21829 lda $16,foo($29) !tlsldm!2
21830 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21831 ldq $1,foo($29) !gotdtprel
21832 ldah $2,foo($29) !dtprelhi
21833 lda $3,foo($2) !dtprello
21834 lda $4,foo($29) !dtprel
21835 ldq $1,foo($29) !gottprel
21836 ldah $2,foo($29) !tprelhi
21837 lda $3,foo($2) !tprello
21838 lda $4,foo($29) !tprel'
21841 tls_as_opt
=--fatal-warnings
21845 .section ".tdata","awT",@progbits
21848 call #gettlsoff(x)'
21857 .section ".tdata","awT",@progbits
21861 addil LT%foo-$tls_gdidx$,gp
21862 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21865 addil LT%foo-$tls_ldidx$,gp
21867 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21868 addil LR%foo-$tls_dtpoff$,%ret0
21869 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21871 addil LT%foo-$tls_ieoff$,gp
21872 ldw RT%foo-$tls_ieoff$(%r1),%t2
21875 addil LR%foo-$tls_leoff$,%t1
21876 ldo RR%foo-$tls_leoff$(%r1),%t2'
21879 tls_as_opt
=--fatal-warnings
21883 .section ".tdata","awT",%progbits
21886 .word foo(gottpoff)
21896 .section ".tdata","awT",@progbits
21900 leal foo@TLSGD(,%ebx,1), %eax
21901 leal foo@TLSLDM(%ebx), %eax
21902 leal foo@DTPOFF(%eax), %edx
21903 movl foo@GOTTPOFF(%ebx), %eax
21904 subl foo@GOTTPOFF(%ebx), %eax
21905 addl foo@GOTNTPOFF(%ebx), %eax
21906 movl foo@INDNTPOFF, %eax
21907 movl $foo@TPOFF, %eax
21908 subl $foo@TPOFF, %eax
21909 leal foo@NTPOFF(%ecx), %eax'
21912 tls_as_opt
=--fatal-warnings
21916 .section ".tdata","awT",@progbits
21920 leaq foo@TLSGD(%rip), %rdi
21921 leaq foo@TLSLD(%rip), %rdi
21922 leaq foo@DTPOFF(%rax), %rdx
21923 movq foo@GOTTPOFF(%rip), %rax
21924 movq $foo@TPOFF, %rax'
21927 tls_as_opt
=--fatal-warnings
21931 .section ".tdata","awT",@progbits
21934 addl r16 = @ltoff(@dtpmod(foo#)), gp
21935 addl r17 = @ltoff(@dtprel(foo#)), gp
21936 addl r18 = @ltoff(@tprel(foo#)), gp
21937 addl r19 = @dtprel(foo#), gp
21938 adds r21 = @dtprel(foo#), r13
21939 movl r23 = @dtprel(foo#)
21940 addl r20 = @tprel(foo#), gp
21941 adds r22 = @tprel(foo#), r13
21942 movl r24 = @tprel(foo#)'
21945 tls_as_opt
=--fatal-warnings
21949 .section .tdata,"awT",@progbits
21953 addiu $4, $28, %tlsgd(x)
21954 addiu $4, $28, %tlsldm(x)
21955 lui $4, %dtprel_hi(x)
21956 addiu $4, $4, %dtprel_lo(x)
21957 lw $4, %gottprel(x)($28)
21958 lui $4, %tprel_hi(x)
21959 addiu $4, $4, %tprel_lo(x)'
21962 tls_as_opt
='-32 --fatal-warnings'
21966 .section ".tdata","awT",@progbits
21974 addi 3,31,ld0@got@tlsgd
21976 addi 3,31,x1@got@tlsld
21979 addis 9,3,x2@dtprel@ha
21980 addi 9,9,x2@dtprel@l
21981 lwz 9,x3@got@tprel(31)
21984 addis 9,2,x2@tprel@ha
21985 addi 9,9,x2@tprel@l'
21988 tls_as_opt
="-a32 --fatal-warnings"
21992 .section ".tdata","awT",@progbits
22000 addi 3,2,ld0@got@tlsgd
22006 addi 3,2,x1@got@tlsld
22012 addis 9,3,x2@dtprel@ha
22013 addi 9,9,x2@dtprel@l
22016 ld 9,x3@got@dtprel(2)
22022 tls_as_opt
="-a64 --fatal-warnings"
22026 .section ".tdata","awT",@progbits
22033 .long foo@GOTNTPOFF
22034 .long foo@INDNTPOFF
22035 l %r1,foo@GOTNTPOFF(%r12)
22036 l %r1,0(%r1):tls_load:foo
22037 bas %r14,0(%r1,%r13):tls_gdcall:foo
22038 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22041 tls_as_opt
="-m31 --fatal-warnings"
22045 .section ".tdata","awT",@progbits
22052 .quad foo@GOTNTPOFF
22053 lg %r1,foo@GOTNTPOFF(%r12)
22054 larl %r1,foo@INDNTPOFF
22055 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22056 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22059 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22061 sh-
*-* | sh
[34]-*-*)
22063 .section ".tdata","awT",@progbits
22073 tls_as_opt
=--fatal-warnings
22077 sparc
*-sun-solaris2.
[56789]*)
22078 # TLS was introduced in the Solaris 9 4/04 release but
22079 # we do not enable it by default on Solaris 9 either.
22080 if test "x$enable_tls" = xyes
; then
22086 sparc
*-sun-solaris2.
*)
22093 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22095 .section ".tdata",#alloc,#write,#tls
22098 sethi %tgd_hi22(foo), %o0
22099 add %o0, %tgd_lo10(foo), %o1
22100 add %l7, %o1, %o0, %tgd_add(foo)
22101 call __tls_get_addr, %tgd_call(foo)
22102 sethi %tldm_hi22(foo), %l1
22103 add %l1, %tldm_lo10(foo), %l2
22104 add %l7, %l2, %o0, %tldm_add(foo)
22105 call __tls_get_addr, %tldm_call(foo)
22106 sethi %tldo_hix22(foo), %l3
22107 xor %l3, %tldo_lox10(foo), %l4
22108 add %o0, %l4, %l5, %tldo_add(foo)
22109 sethi %tie_hi22(foo), %o3
22110 add %o3, %tie_lo10(foo), %o3
22111 ld [%l7 + %o3], %o2, %tie_ld(foo)
22112 add %g7, %o2, %o4, %tie_add(foo)
22113 sethi %tle_hix22(foo), %l1
22114 xor %l1, %tle_lox10(foo), %o5
22115 ld [%g7 + %o5], %o1'
22120 .section ".tdata","awT",@progbits
22123 sethi %tgd_hi22(foo), %o0
22124 add %o0, %tgd_lo10(foo), %o1
22125 add %l7, %o1, %o0, %tgd_add(foo)
22126 call __tls_get_addr, %tgd_call(foo)
22127 sethi %tldm_hi22(foo), %l1
22128 add %l1, %tldm_lo10(foo), %l2
22129 add %l7, %l2, %o0, %tldm_add(foo)
22130 call __tls_get_addr, %tldm_call(foo)
22131 sethi %tldo_hix22(foo), %l3
22132 xor %l3, %tldo_lox10(foo), %l4
22133 add %o0, %l4, %l5, %tldo_add(foo)
22134 sethi %tie_hi22(foo), %o3
22135 add %o3, %tie_lo10(foo), %o3
22136 ld [%l7 + %o3], %o2, %tie_ld(foo)
22137 add %g7, %o2, %o4, %tie_add(foo)
22138 sethi %tle_hix22(foo), %l1
22139 xor %l1, %tle_lox10(foo), %o5
22140 ld [%g7 + %o5], %o1'
22143 tls_as_opt
="-32 --fatal-warnings"
22148 .section ".tdata","awT",@progbits
22151 movi a8, foo@TLSFUNC
22152 movi a10, foo@TLSARG
22153 callx8.tls a8, foo@TLSCALL'
22159 if test "x$enable_tls" = xno
; then
22160 : # TLS explicitly disabled.
22161 elif test "x$enable_tls" = xyes
; then
22162 set_have_as_tls
=yes # TLS explicitly enabled.
22163 elif test -z "$tls_first_major"; then
22164 : # If we don't have a check, assume no support.
22166 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
22167 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
22168 if test "${gcc_cv_as_tls+set}" = set; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 if test $in_tree_gas = yes; then
22173 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22174 then gcc_cv_as_tls
=yes
22176 elif test x
$gcc_cv_as != x
; then
22177 echo "$conftest_s" > conftest.s
22178 if { ac_try
='$gcc_cv_as $tls_as_opt -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); }; }
22187 echo "configure: failed program was" >&5
22190 rm -f conftest.o conftest.s
22193 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
22194 echo "${ECHO_T}$gcc_cv_as_tls" >&6
22195 if test $gcc_cv_as_tls = yes; then
22196 set_have_as_tls
=yes
22199 if test $set_have_as_tls = yes ; then
22201 cat >>confdefs.h
<<\_ACEOF
22202 #define HAVE_AS_TLS 1
22207 # Target-specific assembler checks.
22209 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
22210 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
22211 gcc_cv_ld_static_dynamic
=no
22212 if test $in_tree_ld = yes ; then
22213 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
22214 gcc_cv_ld_static_dynamic
=yes
22216 elif test x
$gcc_cv_ld != x
; then
22217 # Check if linker supports -Bstatic/-Bdynamic option
22218 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22219 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22220 gcc_cv_ld_static_dynamic
=yes
22223 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22225 cat >>confdefs.h
<<\_ACEOF
22226 #define HAVE_LD_STATIC_DYNAMIC 1
22230 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
22231 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
22233 if test x
"$demangler_in_ld" = xyes
; then
22234 echo "$as_me:$LINENO: checking linker --demangle support" >&5
22235 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
22236 gcc_cv_ld_demangle
=no
22237 if test $in_tree_ld = yes; then
22238 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 \
22239 gcc_cv_ld_demangle
=yes
22241 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22242 # Check if the GNU linker supports --demangle option
22243 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22244 gcc_cv_ld_demangle
=yes
22247 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22249 cat >>confdefs.h
<<\_ACEOF
22250 #define HAVE_LD_DEMANGLE 1
22254 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
22255 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
22259 # All TARGET_ABI_OSF targets.
22260 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22261 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22262 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22263 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 gcc_cv_as_alpha_explicit_relocs
=no
22267 if test $in_tree_gas = yes; then
22268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22269 then gcc_cv_as_alpha_explicit_relocs
=yes
22271 elif test x
$gcc_cv_as != x
; then
22272 echo ' .set nomacro
22274 extbl $3, $2, $3 !lituse_bytoff!1
22275 ldq $2, a($29) !literal!1
22276 ldq $4, b($29) !literal!2
22277 ldq_u $3, 0($2) !lituse_base!1
22278 ldq $27, f($29) !literal!5
22279 jsr $26, ($27), f !lituse_jsr!5
22280 ldah $29, 0($26) !gpdisp!3
22281 lda $0, c($29) !gprel
22282 ldah $1, d($29) !gprelhigh
22283 lda $1, d($1) !gprellow
22284 lda $29, 0($29) !gpdisp!3' > conftest.s
22285 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }
22292 gcc_cv_as_alpha_explicit_relocs
=yes
22294 echo "configure: failed program was" >&5
22297 rm -f conftest.o conftest.s
22300 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22301 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
22302 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22304 cat >>confdefs.h
<<\_ACEOF
22305 #define HAVE_AS_EXPLICIT_RELOCS 1
22309 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
22310 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
22311 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 gcc_cv_as_alpha_jsrdirect_relocs
=no
22315 if test $in_tree_gas = yes; then
22316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22317 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22319 elif test x
$gcc_cv_as != x
; then
22320 echo ' .set nomacro
22322 ldq $27, a($29) !literal!1
22323 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22324 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; }
22331 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22333 echo "configure: failed program was" >&5
22336 rm -f conftest.o conftest.s
22339 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22340 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
22341 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22343 cat >>confdefs.h
<<\_ACEOF
22344 #define HAVE_AS_JSRDIRECT_RELOCS 1
22351 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
22352 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
22353 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22356 gcc_cv_as_cris_no_mul_bug
=no
22357 if test $in_tree_gas = yes; then
22358 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22359 then gcc_cv_as_cris_no_mul_bug
=yes
22361 elif test x
$gcc_cv_as != x
; then
22362 echo '.text' > conftest.s
22363 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; }
22370 gcc_cv_as_cris_no_mul_bug
=yes
22372 echo "configure: failed program was" >&5
22375 rm -f conftest.o conftest.s
22378 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
22379 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
22380 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22382 cat >>confdefs.h
<<\_ACEOF
22383 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
22390 echo "$as_me:$LINENO: checking assembler for .register" >&5
22391 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
22392 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 gcc_cv_as_sparc_register_op
=no
22396 if test x
$gcc_cv_as != x
; then
22397 echo '.register %g2, #scratch' > conftest.s
22398 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }
22405 gcc_cv_as_sparc_register_op
=yes
22407 echo "configure: failed program was" >&5
22410 rm -f conftest.o conftest.s
22413 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
22414 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
22415 if test $gcc_cv_as_sparc_register_op = yes; then
22417 cat >>confdefs.h
<<\_ACEOF
22418 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22423 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
22424 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
22425 if test "${gcc_cv_as_sparc_relax+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 gcc_cv_as_sparc_relax
=no
22429 if test x
$gcc_cv_as != x
; then
22430 echo '.text' > conftest.s
22431 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433 (eval $ac_try) 2>&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); }; }
22438 gcc_cv_as_sparc_relax
=yes
22440 echo "configure: failed program was" >&5
22443 rm -f conftest.o conftest.s
22446 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
22447 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
22448 if test $gcc_cv_as_sparc_relax = yes; then
22450 cat >>confdefs.h
<<\_ACEOF
22451 #define HAVE_AS_RELAX_OPTION 1
22456 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
22457 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
22458 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 gcc_cv_as_sparc_ua_pcrel
=no
22462 if test x
$gcc_cv_as != x
; then
22469 .uaword %r_disp32(foo)' > conftest.s
22470 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }
22477 if test x
$gcc_cv_ld != x \
22478 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22479 gcc_cv_as_sparc_ua_pcrel
=yes
22483 echo "configure: failed program was" >&5
22486 rm -f conftest.o conftest.s
22489 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22490 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
22491 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22493 cat >>confdefs.h
<<\_ACEOF
22494 #define HAVE_AS_SPARC_UA_PCREL 1
22498 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22499 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
22500 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22504 if test x
$gcc_cv_as != x
; then
22508 .uaword %r_disp32(foo)
22509 .byte 0x32, 0x33, 0x34
22513 .skip 4' > conftest.s
22514 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; }
22521 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22522 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22523 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22524 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22525 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22526 |
grep 'DISP32' > /dev
/null
2>&1; then
22529 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22534 echo "configure: failed program was" >&5
22537 rm -f conftest.o conftest.s
22540 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22541 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
22542 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22544 cat >>confdefs.h
<<\_ACEOF
22545 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
22550 fi # unaligned pcrel relocs
22552 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
22553 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
22554 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 gcc_cv_as_sparc_offsetable_lo10
=no
22558 if test x
$gcc_cv_as != x
; then
22560 or %g1, %lo(ab) + 12, %g1
22561 or %g1, %lo(ab + 12), %g1' > conftest.s
22562 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }
22569 if test x
$gcc_cv_objdump != x \
22570 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22571 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22572 gcc_cv_as_sparc_offsetable_lo10
=yes
22575 echo "configure: failed program was" >&5
22578 rm -f conftest.o conftest.s
22581 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22582 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
22583 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22585 cat >>confdefs.h
<<\_ACEOF
22586 #define HAVE_AS_OFFSETABLE_LO10 1
22592 i
[34567]86-*-* | x86_64-
*-*)
22594 cygwin
* | pe | mingw32
*)
22595 # Used for DWARF 2 in PE
22596 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
22597 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
22598 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 gcc_cv_as_ix86_pe_secrel32
=no
22602 if test $in_tree_gas = yes; then
22603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22604 then gcc_cv_as_ix86_pe_secrel32
=yes
22606 elif test x
$gcc_cv_as != x
; then
22610 .secrel32 foo' > conftest.s
22611 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; }
22618 if test x
$gcc_cv_ld != x \
22619 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
22620 gcc_cv_as_ix86_pe_secrel32
=yes
22624 echo "configure: failed program was" >&5
22627 rm -f conftest.o conftest.s
22630 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22631 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
22632 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22634 cat >>confdefs.h
<<\_ACEOF
22635 #define HAVE_GAS_PE_SECREL32_RELOC 1
22642 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
22643 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
22644 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 gcc_cv_as_ix86_filds_fists
=no
22648 if test $in_tree_gas = yes; then
22649 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22650 then gcc_cv_as_ix86_filds_fists
=yes
22652 elif test x
$gcc_cv_as != x
; then
22653 echo 'filds mem; fists mem' > conftest.s
22654 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22656 (eval $ac_try) 2>&5
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); }; }
22661 gcc_cv_as_ix86_filds_fists
=yes
22663 echo "configure: failed program was" >&5
22666 rm -f conftest.o conftest.s
22669 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
22670 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
22671 if test $gcc_cv_as_ix86_filds_fists = yes; then
22673 cat >>confdefs.h
<<\_ACEOF
22674 #define HAVE_GAS_FILDS_FISTS 1
22679 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22680 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22681 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22682 echo $ECHO_N "(cached) $ECHO_C" >&6
22684 gcc_cv_as_ix86_cmov_sun_syntax
=no
22685 if test x
$gcc_cv_as != x
; then
22686 echo 'cmovl.l %edx, %eax' > conftest.s
22687 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; }
22694 gcc_cv_as_ix86_cmov_sun_syntax
=yes
22696 echo "configure: failed program was" >&5
22699 rm -f conftest.o conftest.s
22702 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22703 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22704 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22706 cat >>confdefs.h
<<\_ACEOF
22707 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22712 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22713 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22714 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22717 gcc_cv_as_ix86_ffreep
=no
22718 if test x
$gcc_cv_as != x
; then
22719 echo 'ffreep %st(1)' > conftest.s
22720 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722 (eval $ac_try) 2>&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); }; }
22727 gcc_cv_as_ix86_ffreep
=yes
22729 echo "configure: failed program was" >&5
22732 rm -f conftest.o conftest.s
22735 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22736 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22737 if test $gcc_cv_as_ix86_ffreep = yes; then
22739 cat >>confdefs.h
<<\_ACEOF
22740 #define HAVE_AS_IX86_FFREEP 1
22745 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22746 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22747 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22748 echo $ECHO_N "(cached) $ECHO_C" >&6
22750 gcc_cv_as_ix86_sahf
=no
22751 if test x
$gcc_cv_as != x
; then
22752 echo 'sahf' > conftest.s
22753 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }
22760 gcc_cv_as_ix86_sahf
=yes
22762 echo "configure: failed program was" >&5
22765 rm -f conftest.o conftest.s
22768 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22769 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22770 if test $gcc_cv_as_ix86_sahf = yes; then
22772 cat >>confdefs.h
<<\_ACEOF
22773 #define HAVE_AS_IX86_SAHF 1
22778 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22779 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22780 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22781 echo $ECHO_N "(cached) $ECHO_C" >&6
22783 gcc_cv_as_ix86_diff_sect_delta
=no
22784 if test x
$gcc_cv_as != x
; then
22785 echo '.section .rodata
22791 .L2: nop' > conftest.s
22792 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }
22799 gcc_cv_as_ix86_diff_sect_delta
=yes
22801 echo "configure: failed program was" >&5
22804 rm -f conftest.o conftest.s
22807 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22808 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22809 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22811 cat >>confdefs.h
<<\_ACEOF
22812 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22817 # This one is used unconditionally by i386.[ch]; it is to be defined
22818 # to 1 if the feature is present, 0 otherwise.
22819 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22820 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22821 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22824 gcc_cv_as_ix86_gotoff_in_data
=no
22825 if test $in_tree_gas = yes; then
22826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22827 then gcc_cv_as_ix86_gotoff_in_data
=yes
22829 elif test x
$gcc_cv_as != x
; then
22834 .long .L0@GOTOFF' > conftest.s
22835 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }
22842 gcc_cv_as_ix86_gotoff_in_data
=yes
22844 echo "configure: failed program was" >&5
22847 rm -f conftest.o conftest.s
22850 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22851 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22854 cat >>confdefs.h
<<_ACEOF
22855 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22861 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22862 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22863 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22866 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
22867 if test $in_tree_gas = yes; then
22868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22869 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22871 elif test x
$gcc_cv_as != x
; then
22873 addl r15 = @ltoffx(x#), gp
22875 ld8.mov r16 = [r15], x#' > conftest.s
22876 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; }
22883 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22885 echo "configure: failed program was" >&5
22888 rm -f conftest.o conftest.s
22891 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22892 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22893 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22895 cat >>confdefs.h
<<\_ACEOF
22896 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22905 *-*-aix*) conftest_s
=' .machine "pwr5"
22909 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22910 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22911 if test "${gcc_cv_as_machine_directive+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 gcc_cv_as_machine_directive
=no
22915 if test x
$gcc_cv_as != x
; then
22916 echo ' .machine ppc7400' > conftest.s
22917 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; }
22924 gcc_cv_as_machine_directive
=yes
22926 echo "configure: failed program was" >&5
22929 rm -f conftest.o conftest.s
22932 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22933 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22935 if test x
$gcc_cv_as_machine_directive != xyes
; then
22936 echo "*** This target requires an assembler supporting \".machine\"" >&2
22937 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
22938 test x
$build = x
$target && exit 1
22942 *) conftest_s
=' .machine power4
22947 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22948 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22949 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22952 gcc_cv_as_powerpc_mfcrf
=no
22953 if test $in_tree_gas = yes; then
22954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22955 then gcc_cv_as_powerpc_mfcrf
=yes
22957 elif test x
$gcc_cv_as != x
; then
22958 echo "$conftest_s" > conftest.s
22959 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961 (eval $ac_try) 2>&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); }; }
22966 gcc_cv_as_powerpc_mfcrf
=yes
22968 echo "configure: failed program was" >&5
22971 rm -f conftest.o conftest.s
22974 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22975 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22976 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22978 cat >>confdefs.h
<<\_ACEOF
22979 #define HAVE_AS_MFCRF 1
22985 *-*-aix*) conftest_s
=' .machine "pwr5"
22988 *) conftest_s
=' .machine power5
22993 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22994 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22995 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
22998 gcc_cv_as_powerpc_popcntb
=no
22999 if test $in_tree_gas = yes; then
23000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23001 then gcc_cv_as_powerpc_popcntb
=yes
23003 elif test x
$gcc_cv_as != x
; then
23004 echo "$conftest_s" > conftest.s
23005 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }
23012 gcc_cv_as_powerpc_popcntb
=yes
23014 echo "configure: failed program was" >&5
23017 rm -f conftest.o conftest.s
23020 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
23021 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
23022 if test $gcc_cv_as_powerpc_popcntb = yes; then
23024 cat >>confdefs.h
<<\_ACEOF
23025 #define HAVE_AS_POPCNTB 1
23031 *-*-aix*) conftest_s
=' .machine "pwr5x"
23034 *) conftest_s
=' .machine power5
23039 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
23040 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
23041 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 gcc_cv_as_powerpc_fprnd
=no
23045 if test $in_tree_gas = yes; then
23046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23047 then gcc_cv_as_powerpc_fprnd
=yes
23049 elif test x
$gcc_cv_as != x
; then
23050 echo "$conftest_s" > conftest.s
23051 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053 (eval $ac_try) 2>&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); }; }
23058 gcc_cv_as_powerpc_fprnd
=yes
23060 echo "configure: failed program was" >&5
23063 rm -f conftest.o conftest.s
23066 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
23067 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
23068 if test $gcc_cv_as_powerpc_fprnd = yes; then
23070 cat >>confdefs.h
<<\_ACEOF
23071 #define HAVE_AS_FPRND 1
23077 *-*-aix*) conftest_s
=' .machine "pwr6"
23080 *) conftest_s
=' .machine power6
23085 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
23086 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
23087 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 gcc_cv_as_powerpc_mfpgpr
=no
23091 if test $in_tree_gas = yes; then
23092 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23093 then gcc_cv_as_powerpc_mfpgpr
=yes
23095 elif test x
$gcc_cv_as != x
; then
23096 echo "$conftest_s" > conftest.s
23097 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099 (eval $ac_try) 2>&5
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); }; }
23104 gcc_cv_as_powerpc_mfpgpr
=yes
23106 echo "configure: failed program was" >&5
23109 rm -f conftest.o conftest.s
23112 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23113 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
23114 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23116 cat >>confdefs.h
<<\_ACEOF
23117 #define HAVE_AS_MFPGPR 1
23123 *-*-aix*) conftest_s
=' .csect .text[PR]
23125 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23129 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23130 *) conftest_s
=' .text
23132 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23135 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
23136 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
23137 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23140 gcc_cv_as_powerpc_rel16
=no
23141 if test $in_tree_gas = yes; then
23142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23143 then gcc_cv_as_powerpc_rel16
=yes
23145 elif test x
$gcc_cv_as != x
; then
23146 echo "$conftest_s" > conftest.s
23147 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149 (eval $ac_try) 2>&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); }; }
23154 gcc_cv_as_powerpc_rel16
=yes
23156 echo "configure: failed program was" >&5
23159 rm -f conftest.o conftest.s
23162 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
23163 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
23164 if test $gcc_cv_as_powerpc_rel16 = yes; then
23166 cat >>confdefs.h
<<\_ACEOF
23167 #define HAVE_AS_REL16 1
23173 *-*-aix*) conftest_s
=' .machine "pwr6"
23176 *) conftest_s
=' .machine power6
23181 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
23182 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
23183 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
23186 gcc_cv_as_powerpc_cmpb
=no
23187 if test $in_tree_gas = yes; then
23188 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23189 then gcc_cv_as_powerpc_cmpb
=yes
23191 elif test x
$gcc_cv_as != x
; then
23192 echo "$conftest_s" > conftest.s
23193 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }
23200 gcc_cv_as_powerpc_cmpb
=yes
23202 echo "configure: failed program was" >&5
23205 rm -f conftest.o conftest.s
23208 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
23209 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
23210 if test $gcc_cv_as_powerpc_cmpb = yes; then
23212 cat >>confdefs.h
<<\_ACEOF
23213 #define HAVE_AS_CMPB 1
23219 *-*-aix*) conftest_s
=' .machine "pwr6"
23222 *) conftest_s
=' .machine power6
23227 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
23228 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
23229 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 gcc_cv_as_powerpc_dfp
=no
23233 if test $in_tree_gas = yes; then
23234 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23235 then gcc_cv_as_powerpc_dfp
=yes
23237 elif test x
$gcc_cv_as != x
; then
23238 echo "$conftest_s" > conftest.s
23239 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241 (eval $ac_try) 2>&5
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); }; }
23246 gcc_cv_as_powerpc_dfp
=yes
23248 echo "configure: failed program was" >&5
23251 rm -f conftest.o conftest.s
23254 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
23255 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
23256 if test $gcc_cv_as_powerpc_dfp = yes; then
23258 cat >>confdefs.h
<<\_ACEOF
23259 #define HAVE_AS_DFP 1
23265 *-*-aix*) conftest_s
=' .machine "pwr7"
23268 *) conftest_s
=' .machine power7
23273 echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
23274 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
23275 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
23276 echo $ECHO_N "(cached) $ECHO_C" >&6
23278 gcc_cv_as_powerpc_vsx
=no
23279 if test $in_tree_gas = yes; then
23280 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23281 then gcc_cv_as_powerpc_vsx
=yes
23283 elif test x
$gcc_cv_as != x
; then
23284 echo "$conftest_s" > conftest.s
23285 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }
23292 gcc_cv_as_powerpc_vsx
=yes
23294 echo "configure: failed program was" >&5
23297 rm -f conftest.o conftest.s
23300 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
23301 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
23302 if test $gcc_cv_as_powerpc_vsx = yes; then
23304 cat >>confdefs.h
<<\_ACEOF
23305 #define HAVE_AS_VSX 1
23310 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23311 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23312 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
23313 echo $ECHO_N "(cached) $ECHO_C" >&6
23315 gcc_cv_as_powerpc_gnu_attribute
=no
23316 if test $in_tree_gas = yes; then
23317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23318 then gcc_cv_as_powerpc_gnu_attribute
=yes
23320 elif test x
$gcc_cv_as != x
; then
23321 echo '.gnu_attribute 4,1' > conftest.s
23322 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }
23329 gcc_cv_as_powerpc_gnu_attribute
=yes
23331 echo "configure: failed program was" >&5
23334 rm -f conftest.o conftest.s
23337 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23338 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
23339 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23341 cat >>confdefs.h
<<\_ACEOF
23342 #define HAVE_AS_GNU_ATTRIBUTE 1
23349 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
23350 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
23351 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23354 gcc_cv_as_mips_explicit_relocs
=no
23355 if test $in_tree_gas = yes; then
23356 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23357 then gcc_cv_as_mips_explicit_relocs
=yes
23359 elif test x
$gcc_cv_as != x
; then
23360 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23361 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363 (eval $ac_try) 2>&5
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); }; }
23368 gcc_cv_as_mips_explicit_relocs
=yes
23370 echo "configure: failed program was" >&5
23373 rm -f conftest.o conftest.s
23376 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
23377 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
23378 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23379 if test x
$target_cpu_default = x
23380 then target_cpu_default
=MASK_EXPLICIT_RELOCS
23381 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23384 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
23385 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
23386 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
23387 echo $ECHO_N "(cached) $ECHO_C" >&6
23389 gcc_cv_as_mips_no_shared
=no
23390 if test $in_tree_gas = yes; then
23391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23392 then gcc_cv_as_mips_no_shared
=yes
23394 elif test x
$gcc_cv_as != x
; then
23395 echo 'nop' > conftest.s
23396 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }
23403 gcc_cv_as_mips_no_shared
=yes
23405 echo "configure: failed program was" >&5
23408 rm -f conftest.o conftest.s
23411 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
23412 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
23413 if test $gcc_cv_as_mips_no_shared = yes; then
23415 cat >>confdefs.h
<<\_ACEOF
23416 #define HAVE_AS_NO_SHARED 1
23421 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23422 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23423 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 gcc_cv_as_mips_gnu_attribute
=no
23427 if test $in_tree_gas = yes; then
23428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23429 then gcc_cv_as_mips_gnu_attribute
=yes
23431 elif test x
$gcc_cv_as != x
; then
23432 echo '.gnu_attribute 4,1' > conftest.s
23433 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; }
23440 gcc_cv_as_mips_gnu_attribute
=yes
23442 echo "configure: failed program was" >&5
23445 rm -f conftest.o conftest.s
23448 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
23449 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
23450 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23452 cat >>confdefs.h
<<\_ACEOF
23453 #define HAVE_AS_GNU_ATTRIBUTE 1
23458 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
23459 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
23460 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23463 gcc_cv_as_mips_dtprelword
=no
23464 if test $in_tree_gas = yes; then
23465 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23466 then gcc_cv_as_mips_dtprelword
=yes
23468 elif test x
$gcc_cv_as != x
; then
23469 echo '.section .tdata,"awT",@progbits
23473 .dtprelword x+0x8000' > conftest.s
23474 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }
23481 gcc_cv_as_mips_dtprelword
=yes
23483 echo "configure: failed program was" >&5
23486 rm -f conftest.o conftest.s
23489 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
23490 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
23491 if test $gcc_cv_as_mips_dtprelword = yes; then
23493 cat >>confdefs.h
<<\_ACEOF
23494 #define HAVE_AS_DTPRELWORD 1
23501 # Mips and HP-UX need the GNU assembler.
23502 # Linux on IA64 might be able to use the Intel assembler.
23505 mips
*-*-* |
*-*-hpux* )
23506 if test x
$gas_flag = xyes \
23507 ||
test x
"$host" != x
"$build" \
23508 ||
test ! -x "$gcc_cv_as" \
23509 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
23512 echo "*** This configuration requires the GNU assembler" >&2
23518 # ??? Not all targets support dwarf2 debug_line, even within a version
23519 # of gas. Moreover, we need to emit a valid instruction to trigger any
23520 # info to the output file. So, as supported targets are added to gas 2.11,
23521 # add some instruction here to (also) show we expect this might work.
23522 # ??? Once 2.11 is released, probably need to add first known working
23523 # version to the per-target configury.
23525 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
23526 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
23527 | xstormy16
*-*-* | cris-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
23528 | spu-
*-* | fido
*-*-*)
23531 ia64
*-*-* | s390
*-*-*)
23538 if test x
"$insn" != x
; then
23540 .file 1 \"conftest.s\"
23543 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
23544 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
23545 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23548 gcc_cv_as_dwarf2_debug_line
=no
23549 if test $in_tree_gas = yes; then
23550 if test $in_tree_gas_is_elf = yes \
23551 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23552 then gcc_cv_as_dwarf2_debug_line
=yes
23554 elif test x
$gcc_cv_as != x
; then
23555 echo "$conftest_s" > conftest.s
23556 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558 (eval $ac_try) 2>&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; }
23563 if test x
$gcc_cv_objdump != x \
23564 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
23565 |
grep debug_line
> /dev
/null
2>&1; then
23566 gcc_cv_as_dwarf2_debug_line
=yes
23569 echo "configure: failed program was" >&5
23572 rm -f conftest.o conftest.s
23575 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
23576 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
23579 # The .debug_line file table must be in the exact order that
23580 # we specified the files, since these indices are also used
23581 # by DW_AT_decl_file. Approximate this test by testing if
23582 # the assembler bitches if the same index is assigned twice.
23583 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
23584 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
23585 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
23588 gcc_cv_as_dwarf2_file_buggy
=no
23589 if test x
$gcc_cv_as != x
; then
23590 echo ' .file 1 "foo.s"
23591 .file 1 "bar.s"' > conftest.s
23592 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594 (eval $ac_try) 2>&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; }
23599 gcc_cv_as_dwarf2_file_buggy
=yes
23601 echo "configure: failed program was" >&5
23604 rm -f conftest.o conftest.s
23607 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23608 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
23611 if test $gcc_cv_as_dwarf2_debug_line = yes \
23612 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
23614 cat >>confdefs.h
<<\_ACEOF
23615 #define HAVE_AS_DWARF2_DEBUG_LINE 1
23620 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
23621 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
23622 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
23623 echo $ECHO_N "(cached) $ECHO_C" >&6
23625 gcc_cv_as_gdwarf2_flag
=no
23626 if test $in_tree_gas = yes; then
23627 if test $in_tree_gas_is_elf = yes \
23628 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23629 then gcc_cv_as_gdwarf2_flag
=yes
23631 elif test x
$gcc_cv_as != x
; then
23632 echo "$insn" > conftest.s
23633 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23635 (eval $ac_try) 2>&5
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); }; }
23640 gcc_cv_as_gdwarf2_flag
=yes
23642 echo "configure: failed program was" >&5
23645 rm -f conftest.o conftest.s
23648 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23649 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23650 if test $gcc_cv_as_gdwarf2_flag = yes; then
23652 cat >>confdefs.h
<<\_ACEOF
23653 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23658 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23659 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23660 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23661 echo $ECHO_N "(cached) $ECHO_C" >&6
23663 gcc_cv_as_gstabs_flag
=no
23664 if test $in_tree_gas = yes; then
23665 if test $in_tree_gas_is_elf = yes \
23666 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23667 then gcc_cv_as_gstabs_flag
=yes
23669 elif test x
$gcc_cv_as != x
; then
23670 echo "$insn" > conftest.s
23671 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }; }
23678 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23679 # and warns about it, but still exits successfully. So check for
23681 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; }
23688 else gcc_cv_as_gstabs_flag
=yes
23691 echo "configure: failed program was" >&5
23694 rm -f conftest.o conftest.s
23697 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23698 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23699 if test $gcc_cv_as_gstabs_flag = yes; then
23701 cat >>confdefs.h
<<\_ACEOF
23702 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23707 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23708 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23709 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23710 echo $ECHO_N "(cached) $ECHO_C" >&6
23712 gcc_cv_as_debug_prefix_map_flag
=no
23713 if test $in_tree_gas = yes; then
23714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23715 then gcc_cv_as_debug_prefix_map_flag
=yes
23717 elif test x
$gcc_cv_as != x
; then
23718 echo "$insn" > conftest.s
23719 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }
23726 gcc_cv_as_debug_prefix_map_flag
=yes
23728 echo "configure: failed program was" >&5
23731 rm -f conftest.o conftest.s
23734 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23735 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23736 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23738 cat >>confdefs.h
<<\_ACEOF
23739 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23745 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
23746 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
23747 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
23748 echo $ECHO_N "(cached) $ECHO_C" >&6
23750 gcc_cv_as_lcomm_with_alignment
=no
23751 if test x
$gcc_cv_as != x
; then
23752 echo '.lcomm bar,4,16' > conftest.s
23753 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755 (eval $ac_try) 2>&5
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; }
23760 gcc_cv_as_lcomm_with_alignment
=yes
23762 echo "configure: failed program was" >&5
23765 rm -f conftest.o conftest.s
23768 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
23769 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
23770 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23772 cat >>confdefs.h
<<\_ACEOF
23773 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
23778 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23779 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23780 if test "${gcc_cv_as_line_zero+set}" = set; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23783 gcc_cv_as_line_zero
=no
23784 if test $in_tree_gas = yes; then
23785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23786 then gcc_cv_as_line_zero
=yes
23788 elif test "x$gcc_cv_as" != x
; then
23789 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23790 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; } &&
23796 test "x`cat conftest.out`" = x
23798 gcc_cv_as_line_zero
=yes
23800 echo "configure: failed program was" >&5
23802 echo "configure: error output was" >&5
23803 cat conftest.out
>&5
23805 rm -f conftest.o conftest.s conftest.out
23808 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23809 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23810 if test "x$gcc_cv_as_line_zero" = xyes
; then
23812 cat >>confdefs.h
<<\_ACEOF
23813 #define HAVE_AS_LINE_ZERO 1
23818 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23819 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23820 gcc_cv_ld_eh_frame_hdr
=no
23821 if test $in_tree_ld = yes ; then
23822 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 \
23823 && test $in_tree_ld_is_elf = yes; then
23824 gcc_cv_ld_eh_frame_hdr
=yes
23826 elif test x
$gcc_cv_ld != x
; then
23827 # Check if linker supports --eh-frame-hdr option
23828 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
23829 gcc_cv_ld_eh_frame_hdr
=yes
23833 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
23835 cat >>confdefs.h
<<\_ACEOF
23836 #define HAVE_LD_EH_FRAME_HDR 1
23840 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23841 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23843 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23844 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23846 if test $in_tree_ld = yes ; then
23847 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 \
23848 && test $in_tree_ld_is_elf = yes; then
23851 elif test x
$gcc_cv_ld != x
; then
23852 # Check if linker supports -pie option
23853 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
23857 if test x
"$gcc_cv_ld_pie" = xyes
; then
23859 cat >>confdefs.h
<<\_ACEOF
23860 #define HAVE_LD_PIE 1
23864 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23865 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23867 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23868 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23869 gcc_cv_ld_eh_gc_sections
=no
23870 if test $in_tree_ld = yes ; then
23871 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 \
23872 && test $in_tree_ld_is_elf = yes; then
23873 gcc_cv_ld_eh_gc_sections
=yes
23875 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23876 cat > conftest.s
<<EOF
23879 .type _start, @function
23882 .size _start, .-_start
23883 .section .text.foo,"ax",@progbits
23884 .type foo, @function
23888 .section .gcc_except_table.foo,"a",@progbits
23891 .section .eh_frame,"a",@progbits
23894 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23895 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23896 |
grep "gc-sections option ignored" > /dev
/null
; then
23897 gcc_cv_ld_eh_gc_sections
=no
23898 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23899 gcc_cv_ld_eh_gc_sections
=yes
23900 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23901 if test x
$gcc_cv_as_comdat_group != xyes
; then
23902 gcc_cv_ld_eh_gc_sections
=no
23903 cat > conftest.s
<<EOF
23906 .type _start, @function
23909 .size _start, .-_start
23910 .section .gnu.linkonce.t.foo,"ax",@progbits
23911 .type foo, @function
23915 .section .gcc_except_table.foo,"a",@progbits
23918 .section .eh_frame,"a",@progbits
23921 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23922 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23923 |
grep "gc-sections option ignored" > /dev
/null
; then
23924 gcc_cv_ld_eh_gc_sections
=no
23925 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23926 gcc_cv_ld_eh_gc_sections
=yes
23932 rm -f conftest.s conftest.o conftest
23936 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23937 gcc_cv_ld_eh_gc_sections
=no
23940 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
23942 cat >>confdefs.h
<<\_ACEOF
23943 #define HAVE_LD_EH_GC_SECTIONS 1
23947 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23948 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23954 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23955 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23956 if test "${gcc_cv_ld_as_needed+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23959 gcc_cv_ld_as_needed
=no
23960 if test $in_tree_ld = yes ; then
23961 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 \
23962 && test $in_tree_ld_is_elf = yes; then
23963 gcc_cv_ld_as_needed
=yes
23965 elif test x
$gcc_cv_ld != x
; then
23966 # Check if linker supports --as-needed and --no-as-needed options
23967 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
23968 gcc_cv_ld_as_needed
=yes
23973 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23974 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23975 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
23977 cat >>confdefs.h
<<\_ACEOF
23978 #define HAVE_LD_AS_NEEDED 1
23983 case "$target:$tm_file" in
23984 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
23985 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23986 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23987 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23988 echo $ECHO_N "(cached) $ECHO_C" >&6
23990 gcc_cv_ld_no_dot_syms
=no
23991 if test $in_tree_ld = yes ; then
23992 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
23993 gcc_cv_ld_no_dot_syms
=yes
23995 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
23996 cat > conftest1.s
<<EOF
24000 cat > conftest2.s
<<EOF
24001 .section ".opd","aw"
24004 .type foo,@function
24006 .quad .LEfoo,.TOC.@tocbase,0
24012 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24013 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24014 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24015 gcc_cv_ld_no_dot_syms
=yes
24017 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24021 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
24022 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
24023 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24025 cat >>confdefs.h
<<\_ACEOF
24026 #define HAVE_LD_NO_DOT_SYMS 1
24033 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
24034 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
24035 if test "${gcc_cv_ld_sysroot+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24038 gcc_cv_ld_sysroot
=no
24039 if test $in_tree_ld = yes ; then
24040 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
24041 gcc_cv_ld_sysroot
=yes
24043 elif test x
$gcc_cv_ld != x
; then
24044 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
24045 gcc_cv_ld_sysroot
=yes
24049 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
24050 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
24051 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
24053 cat >>confdefs.h
<<\_ACEOF
24054 #define HAVE_LD_SYSROOT 1
24059 if test x
$with_sysroot = x
&& test x
$host = x
$target \
24060 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24061 && test "$prefix" != "NONE"; then
24063 cat >>confdefs.h
<<_ACEOF
24064 #define PREFIX_INCLUDE_DIR "$prefix/include"
24069 # Test for stack protector support in target C library.
24070 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
24071 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
24072 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
24073 echo $ECHO_N "(cached) $ECHO_C" >&6
24075 gcc_cv_libc_provides_ssp
=no
24078 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24079 if test "x$with_sysroot" = x
; then
24080 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24081 elif test "x$with_build_sysroot" != "x"; then
24082 glibc_header_dir
="${with_build_sysroot}/usr/include"
24083 elif test "x$with_sysroot" = xyes
; then
24084 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24086 glibc_header_dir
="${with_sysroot}/usr/include"
24089 glibc_header_dir
=/usr
/include
24091 # glibc 2.4 and later provides __stack_chk_fail and
24092 # either __stack_chk_guard, or TLS access to stack guard canary.
24093 if test -f $glibc_header_dir/features.h \
24094 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24095 $glibc_header_dir/features.h
> /dev
/null
; then
24096 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24097 $glibc_header_dir/features.h
> /dev
/null
; then
24098 gcc_cv_libc_provides_ssp
=yes
24099 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24100 $glibc_header_dir/features.h
> /dev
/null \
24101 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24102 $glibc_header_dir/features.h
> /dev
/null
; then
24103 gcc_cv_libc_provides_ssp
=yes
24104 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24105 $glibc_header_dir/features.h
> /dev
/null
&& \
24106 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
24107 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24108 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
24109 gcc_cv_libc_provides_ssp
=yes
24114 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
24115 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
24116 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
24117 echo $ECHO_N "(cached) $ECHO_C" >&6
24119 cat >conftest.
$ac_ext <<_ACEOF
24122 cat confdefs.h
>>conftest.
$ac_ext
24123 cat >>conftest.
$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24125 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
24126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24127 #define __stack_chk_fail innocuous___stack_chk_fail
24129 /* System header to define __stub macros and hopefully few prototypes,
24130 which can conflict with char __stack_chk_fail (); below.
24131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24132 <limits.h> exists even on freestanding compilers. */
24135 # include <limits.h>
24137 # include <assert.h>
24140 #undef __stack_chk_fail
24142 /* Override any gcc2 internal prototype to avoid an error. */
24147 /* We use char because int might match the return type of a gcc2
24148 builtin and then its argument prototype would still apply. */
24149 char __stack_chk_fail ();
24150 /* The GNU C library defines this for functions which it implements
24151 to always fail with ENOSYS. Some functions are actually named
24152 something starting with __ and the normal name is an alias. */
24153 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
24156 char (*f) () = __stack_chk_fail;
24165 return f != __stack_chk_fail;
24170 rm -f conftest.
$ac_objext conftest
$ac_exeext
24171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24172 (eval $ac_link) 2>conftest.er1
24174 grep -v '^ *+' conftest.er1
>conftest.err
24176 cat conftest.err
>&5
24177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } &&
24179 { ac_try
='test -z "$ac_c_werror_flag"
24180 || test ! -s conftest.err'
24181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182 (eval $ac_try) 2>&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); }; } &&
24186 { ac_try
='test -s conftest$ac_exeext'
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; }; then
24192 ac_cv_func___stack_chk_fail
=yes
24194 echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.
$ac_ext >&5
24197 ac_cv_func___stack_chk_fail
=no
24199 rm -f conftest.err conftest.
$ac_objext \
24200 conftest
$ac_exeext conftest.
$ac_ext
24202 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
24203 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
24204 if test $ac_cv_func___stack_chk_fail = yes; then
24205 gcc_cv_libc_provides_ssp
=yes
24207 echo "no __stack_chk_fail on this target"
24211 *) gcc_cv_libc_provides_ssp
=no
;;
24214 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
24215 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
24217 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
24219 cat >>confdefs.h
<<\_ACEOF
24220 #define TARGET_LIBC_PROVIDES_SSP 1
24225 # Check if TFmode long double should be used by default or not.
24226 # Some glibc targets used DFmode long double, but with glibc 2.4
24227 # and later they can use TFmode.
24229 powerpc
*-*-linux* | \
24230 powerpc
*-*-gnu* | \
24231 sparc
*-*-linux* | \
24235 # Check whether --with-long-double-128 or --without-long-double-128 was given.
24236 if test "${with_long_double_128+set}" = set; then
24237 withval
="$with_long_double_128"
24238 gcc_cv_target_ldbl128
="$with_long_double_128"
24240 gcc_cv_target_ldbl128
=no
24241 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24242 if test "x$with_sysroot" = x
; then
24243 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24244 elif test "x$with_build_sysroot" != "x"; then
24245 glibc_header_dir
="${with_build_sysroot}/usr/include"
24246 elif test "x$with_sysroot" = xyes
; then
24247 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24249 glibc_header_dir
="${with_sysroot}/usr/include"
24252 glibc_header_dir
=/usr
/include
24254 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24255 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
24256 && gcc_cv_target_ldbl128
=yes
24261 if test x
$gcc_cv_target_ldbl128 = xyes
; then
24263 cat >>confdefs.h
<<\_ACEOF
24264 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
24269 # Find out what GC implementation we want, or may, use.
24271 # Check whether --with-gc or --without-gc was given.
24272 if test "${with_gc+set}" = set; then
24281 cat >>confdefs.h
<<\_ACEOF
24287 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
24288 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
24289 { (exit 1); exit 1; }; }
24296 echo "Using $GGC for garbage collection."
24298 # Use the system's zlib library.
24300 zlibinc
="-I\$(srcdir)/../zlib"
24302 # Check whether --with-system-zlib or --without-system-zlib was given.
24303 if test "${with_system_zlib+set}" = set; then
24304 withval
="$with_system_zlib"
24313 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24314 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24315 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24316 if test "${enable_maintainer_mode+set}" = set; then
24317 enableval
="$enable_maintainer_mode"
24318 maintainer_mode
=$enableval
24323 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
24324 echo "${ECHO_T}$maintainer_mode" >&6
24326 if test "$maintainer_mode" = "yes"; then
24336 # Make empty files to contain the specs and options for each language.
24337 # Then add #include lines to for a compiler that has specs and/or options.
24343 # These (without "all_") are set in each config-lang.in.
24344 # `language' must be a single word so is spelled singularly.
24347 all_outputs
='Makefile gccbug'
24348 # List of language makefile fragments.
24349 all_lang_makefrags
=
24350 # List of language subdirectory makefiles. Deprecated.
24351 all_lang_makefiles
=
24352 # Additional files for gengtype
24353 all_gtfiles
="$target_gtfiles"
24355 # These are the languages that are set in --enable-languages,
24356 # and are available in the GCC tree.
24357 all_selected_languages
=
24359 # Add the language fragments.
24360 # Languages are added via two mechanisms. Some information must be
24361 # recorded in makefile variables, these are defined in config-lang.in.
24362 # We accumulate them and plug them into the main Makefile.
24363 # The other mechanism is a set of hooks for each of the main targets
24364 # like `clean', `install', etc.
24366 language_hooks
="Make-hooks"
24368 for lang
in ${srcdir}/*/config-lang.
in
24370 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24372 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24373 if test "x$lang_alias" = x
24375 echo "$lang doesn't set \$language." 1>&2
24378 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24379 subdirs
="$subdirs $subdir"
24381 # $gcc_subdir is where the gcc integration files are to be found
24382 # for a language, both for internal compiler purposes (compiler
24383 # sources implementing front-end to GCC tree converters), and for
24384 # build infrastructure purposes (Make-lang.in, etc.)
24386 # This will be <subdir> (relative to $srcdir) if a line like
24387 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24388 # is found in <langdir>/config-lang.in, and will remain <langdir>
24391 # Except for the language alias (fetched above), the regular
24392 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24393 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24394 # only this and the language alias.
24396 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24397 if [ "$gcc_subdir" = "" ]; then
24398 gcc_subdir
="$subdir"
24401 case ",$enable_languages," in
24403 all_selected_languages
="$all_selected_languages $lang_alias"
24404 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
24405 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24416 .
${srcdir}/$gcc_subdir/config-lang.
in
24417 if test "x$language" = x
24419 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24424 case ",$enable_languages," in
24425 *,$lang_alias,*) ;;
24427 for i
in $subdir_requires; do
24428 test -f "${srcdir}/$i/config-lang.in" && continue
24436 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24437 if test -f $srcdir/$gcc_subdir/lang.opt
; then
24438 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24440 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
24441 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24443 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
24444 then all_lang_makefiles
="$gcc_subdir/Makefile"
24446 all_languages
="$all_languages $language"
24447 all_compilers
="$all_compilers $compilers"
24448 all_outputs
="$all_outputs $outputs"
24449 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
24452 # Pick up gtfiles for c
24454 .
${srcdir}/c-config-lang.
in
24455 all_gtfiles
="$all_gtfiles [c] $gtfiles"
24458 for language
in $all_selected_languages
24460 check_languages
="$check_languages check-$language"
24463 # We link each language in with a set of hooks, reached indirectly via
24464 # lang.${target}. Only do so for selected languages.
24468 target_list
="all.cross start.encap rest.encap tags \
24469 install-common install-man install-info install-pdf dvi pdf \
24470 html uninstall info man srcextra srcman srcinfo \
24471 mostlyclean clean distclean maintainer-clean"
24473 for t
in $target_list
24476 for lang
in $all_selected_languages
24480 echo "lang.$t: $x" >> Make-hooks
24489 echo "dir ." > .gdbinit
24490 echo "dir ${srcdir}" >> .gdbinit
24491 if test x
$gdb_needs_out_file_path = xyes
24493 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24495 if test "x$subdirs" != x
; then
24498 echo "dir ${srcdir}/$s" >> .gdbinit
24501 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24503 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24507 # Find a directory in which to install a shared libgcc.
24509 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24510 if test "${enable_version_specific_runtime_libs+set}" = set; then
24511 enableval
="$enable_version_specific_runtime_libs"
24516 # Check whether --with-slibdir or --without-slibdir was given.
24517 if test "${with_slibdir+set}" = set; then
24518 withval
="$with_slibdir"
24519 slibdir
="$with_slibdir"
24521 if test "${enable_version_specific_runtime_libs+set}" = set; then
24522 slibdir
='$(libsubdir)'
24523 elif test "$host" != "$target"; then
24524 slibdir
='$(build_tooldir)/lib'
24526 slibdir
='$(libdir)'
24532 # Check whether --with-datarootdir or --without-datarootdir was given.
24533 if test "${with_datarootdir+set}" = set; then
24534 withval
="$with_datarootdir"
24535 datarootdir
="\${prefix}/$with_datarootdir"
24537 datarootdir
='$(prefix)/share'
24542 # Check whether --with-docdir or --without-docdir was given.
24543 if test "${with_docdir+set}" = set; then
24544 withval
="$with_docdir"
24545 docdir
="\${prefix}/$with_docdir"
24547 docdir
='$(datarootdir)'
24552 # Check whether --with-htmldir or --without-htmldir was given.
24553 if test "${with_htmldir+set}" = set; then
24554 withval
="$with_htmldir"
24555 htmldir
="\${prefix}/$with_htmldir"
24557 htmldir
='$(docdir)'
24561 # Substitute configuration variables
24620 if test x
${build} = x
${host} ; then
24621 if test x
${host} = x
${target} ; then
24622 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24624 echo "Links are now set up to build a cross-compiler" 1>&2
24625 echo " from ${host} to ${target}." 1>&2
24628 if test x
${host} = x
${target} ; then
24629 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24630 echo " for ${target}." 1>&2
24632 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24633 echo " from ${host} to ${target}." 1>&2
24645 if test "x${CLOOGLIBS}" != "x" ; then
24647 cat >>confdefs.h
<<\_ACEOF
24648 #define HAVE_cloog 1
24653 # Configure the subdirectories
24654 # AC_CONFIG_SUBDIRS($subdirs)
24656 # Create the Makefile
24657 # and configure language subdirectories
24658 ac_config_files
="$ac_config_files $all_outputs"
24661 ac_config_commands
="$ac_config_commands default"
24663 cat >confcache
<<\_ACEOF
24664 # This file is a shell script that caches the results of configure
24665 # tests run on this system so they can be shared between configure
24666 # scripts and configure runs, see configure's option --config-cache.
24667 # It is not useful on other systems. If it contains results you don't
24668 # want to keep, you may remove or edit it.
24670 # config.status only pays attention to the cache file if you give it
24671 # the --recheck option to rerun configure.
24673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24675 # following values.
24679 # The following way of writing the cache mishandles newlines in values,
24680 # but we know of no workaround that is simple, portable, and efficient.
24681 # So, don't put newlines in cache variables' values.
24682 # Ultrix sh set writes to stderr and can't be redirected directly,
24683 # and sets the high bit in the cache file unless we assign to the vars.
24686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24688 # `set' does not quote correctly, so add quotes (double-quote
24689 # substitution turns \\\\ into \\, and sed turns \\ into \).
24692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24695 # `set' quotes correctly as required by POSIX, so do not add quotes.
24697 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24706 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24708 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
24709 if test -w $cache_file; then
24710 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24711 cat confcache
>$cache_file
24713 echo "not updating unwritable cache $cache_file"
24718 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24719 # Let make expand exec_prefix.
24720 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24724 # trailing colons and then remove the whole line if VPATH becomes empty
24725 # (actually we leave an empty line to preserve line numbers).
24726 if test "x$srcdir" = x.
; then
24727 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24728 s/:*\$(srcdir):*/:/;
24729 s/:*\${srcdir}:*/:/;
24731 s/^\([^=]*=[ ]*\):*/\1/;
24737 DEFS
=-DHAVE_CONFIG_H
24741 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24742 # 1. Remove the extension, and $U if already installed.
24743 ac_i
=`echo "$ac_i" |
24744 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24746 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
24747 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
24749 LIBOBJS
=$ac_libobjs
24751 LTLIBOBJS
=$ac_ltlibobjs
24755 : ${CONFIG_STATUS=./config.status}
24756 ac_clean_files_save
=$ac_clean_files
24757 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24760 cat >$CONFIG_STATUS <<_ACEOF
24762 # Generated by $as_me.
24763 # Run this file to recreate the current configuration.
24764 # Compiler output produced by configure, useful for debugging
24765 # configure, is in config.log if it exists.
24768 ac_cs_recheck=false
24770 SHELL=\${CONFIG_SHELL-$SHELL}
24773 cat >>$CONFIG_STATUS <<\_ACEOF
24774 ## --------------------- ##
24775 ## M4sh Initialization. ##
24776 ## --------------------- ##
24778 # Be Bourne compatible
24779 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24782 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24783 # is contrary to our usage. Disable this feature.
24784 alias -g '${1+"$@"}'='"$@"'
24785 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24788 DUALCASE
=1; export DUALCASE
# for MKS sh
24790 # Support unset when possible.
24791 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24798 # Work around bugs in pre-3.0 UWIN ksh.
24799 $as_unset ENV MAIL MAILPATH
24806 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24807 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24808 LC_TELEPHONE LC_TIME
24810 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24811 eval $as_var=C
; export $as_var
24817 # Required to use basename.
24818 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24824 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
24825 as_basename
=basename
24831 # Name of the executable.
24832 as_me
=`$as_basename "$0" ||
24833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24834 X"$0" : 'X\(//\)$' \| \
24835 X"$0" : 'X\(/\)$' \| \
24836 . : '\(.\)' 2>/dev/null ||
24838 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24839 /^X\/\(\/\/\)$/{ s//\1/; q; }
24840 /^X\/\(\/\).*/{ s//\1/; q; }
24844 # PATH needs CR, and LINENO needs CR and PATH.
24845 # Avoid depending upon Character Ranges.
24846 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24847 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24848 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24849 as_cr_digits
='0123456789'
24850 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24852 # The user is always right.
24853 if test "${PATH_SEPARATOR+set}" != set; then
24854 echo "#! /bin/sh" >conf$$.sh
24855 echo "exit 0" >>conf$$.sh
24857 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24866 as_lineno_1
=$LINENO
24867 as_lineno_2
=$LINENO
24868 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
24869 test "x$as_lineno_1" != "x$as_lineno_2" &&
24870 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
24871 # Find who we are. Look in the path if we contain no path at all
24874 *[\\/]* ) as_myself
=$0 ;;
24875 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24876 for as_dir
in $PATH
24879 test -z "$as_dir" && as_dir
=.
24880 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24885 # We did not find ourselves, most probably we were run as `sh COMMAND'
24886 # in which case we are not to be found in the path.
24887 if test "x$as_myself" = x
; then
24890 if test ! -f "$as_myself"; then
24891 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24892 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24893 { (exit 1); exit 1; }; }
24895 case $CONFIG_SHELL in
24897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24898 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
24901 test -z "$as_dir" && as_dir
=.
24902 for as_base
in sh bash ksh sh5
; do
24905 if ("$as_dir/$as_base" -c '
24906 as_lineno_1=$LINENO
24907 as_lineno_2=$LINENO
24908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24909 test "x$as_lineno_1" != "x$as_lineno_2" &&
24910 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
24911 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
24912 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
24913 CONFIG_SHELL
=$as_dir/$as_base
24914 export CONFIG_SHELL
24915 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24923 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24924 # uniformly replaced by the line number. The first 'sed' inserts a
24925 # line-number line before each line; the second 'sed' does the real
24926 # work. The second script uses 'N' to pair each line-number line
24927 # with the numbered line, and appends trailing '-' during
24928 # substitution so that $LINENO is not a special case at line end.
24929 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24930 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24931 sed '=' <$as_myself |
24936 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24939 s,^['$as_cr_digits']*\n,,
24940 ' >$as_me.lineno
&&
24941 chmod +x
$as_me.lineno ||
24942 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24943 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24944 { (exit 1); exit 1; }; }
24946 # Don't try to exec as it changes $[0], causing all sort of problems
24947 # (the dirname of $[0] is not the place where we might find the
24948 # original and so on. Autoconf is especially sensible to this).
24950 # Exit status is that of the last command.
24955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24956 *c
*,-n*) ECHO_N
= ECHO_C
='
24958 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
24959 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
24962 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24968 rm -f conf$$ conf$$.exe conf$$.
file
24970 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24971 # We could just check for DJGPP; but this test a) works b) is more generic
24972 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24973 if test -f conf$$.exe
; then
24974 # Don't use ln at all; we don't have any links
24979 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24984 rm -f conf$$ conf$$.exe conf$$.
file
24986 if mkdir
-p .
2>/dev
/null
; then
24989 test -d .
/-p && rmdir .
/-p
24993 as_executable_p
="test -f"
24995 # Sed expression to map a string onto a valid CPP name.
24996 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24998 # Sed expression to map a string onto a valid variable name.
24999 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25003 # We need space, tab and new line, in precisely that order.
25013 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25014 # report actual input values of CONFIG_FILES etc. instead of their
25015 # values after options handling. Logging --version etc. is OK.
25019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25020 ## Running $as_me. ##
25025 This file was extended by $as_me, which was
25026 generated by GNU Autoconf 2.59. Invocation command line was
25028 CONFIG_FILES = $CONFIG_FILES
25029 CONFIG_HEADERS = $CONFIG_HEADERS
25030 CONFIG_LINKS = $CONFIG_LINKS
25031 CONFIG_COMMANDS = $CONFIG_COMMANDS
25035 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25039 # Files that config.status was made for.
25040 if test -n "$ac_config_files"; then
25041 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25044 if test -n "$ac_config_headers"; then
25045 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25048 if test -n "$ac_config_links"; then
25049 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25052 if test -n "$ac_config_commands"; then
25053 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25056 cat >>$CONFIG_STATUS <<\_ACEOF
25059 \`$as_me' instantiates files from templates according to the
25060 current configuration.
25062 Usage: $0 [OPTIONS] [FILE]...
25064 -h, --help print this help, then exit
25065 -V, --version print version number, then exit
25066 -q, --quiet do not print progress messages
25067 -d, --debug don't remove temporary files
25068 --recheck update $as_me by reconfiguring in the same conditions
25069 --file=FILE[:TEMPLATE]
25070 instantiate the configuration file FILE
25071 --header=FILE[:TEMPLATE]
25072 instantiate the configuration header FILE
25074 Configuration files:
25077 Configuration headers:
25080 Configuration commands:
25083 Report bugs to <bug-autoconf@gnu.org>."
25086 cat >>$CONFIG_STATUS <<_ACEOF
25089 configured by $0, generated by GNU Autoconf 2.59,
25090 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25092 Copyright (C) 2003 Free Software Foundation, Inc.
25093 This config.status script is free software; the Free Software Foundation
25094 gives unlimited permission to copy, distribute and modify it."
25098 cat >>$CONFIG_STATUS <<\_ACEOF
25099 # If no file are specified by the user, then we need to provide default
25100 # value. By we need to know if files were specified by the user.
25106 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
25107 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
25115 *) # This is not an option, so the user has probably given explicit
25118 ac_need_defaults
=false
;;
25122 # Handling of the options.
25124 cat >>$CONFIG_STATUS <<\_ACEOF
25125 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25127 --version |
--vers* |
-V )
25128 echo "$ac_cs_version"; exit 0 ;;
25130 # Conflict between --help and --header
25131 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25132 Try \`$0 --help' for more information." >&5
25133 echo "$as_me: error: ambiguous option: $1
25134 Try \`$0 --help' for more information." >&2;}
25135 { (exit 1); exit 1; }; };;
25136 --help |
--hel |
-h )
25137 echo "$ac_cs_usage"; exit 0 ;;
25138 --debug |
--d* |
-d )
25140 --file |
--fil |
--fi |
--f )
25142 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25143 ac_need_defaults
=false
;;
25144 --header |
--heade |
--head |
--hea )
25146 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25147 ac_need_defaults
=false
;;
25148 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25149 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25152 # This is an error.
25153 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25154 Try \`$0 --help' for more information." >&5
25155 echo "$as_me: error: unrecognized option: $1
25156 Try \`$0 --help' for more information." >&2;}
25157 { (exit 1); exit 1; }; } ;;
25159 *) ac_config_targets
="$ac_config_targets $1" ;;
25165 ac_configure_extra_args
=
25167 if $ac_cs_silent; then
25169 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25173 cat >>$CONFIG_STATUS <<_ACEOF
25174 if \$ac_cs_recheck; then
25175 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25176 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25181 cat >>$CONFIG_STATUS <<_ACEOF
25183 # INIT-COMMANDS section.
25192 cat >>$CONFIG_STATUS <<\_ACEOF
25193 for ac_config_target
in $ac_config_targets
25195 case "$ac_config_target" in
25196 # Handling of arguments.
25197 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
25198 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25199 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
25200 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
25201 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25202 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
25203 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25204 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25205 { (exit 1); exit 1; }; };;
25209 # If the user did not use the arguments to specify the items to instantiate,
25210 # then the envvar interface is used. Set only those that are not.
25211 # We use the long form for the default assignment because of an extremely
25212 # bizarre bug on SunOS 4.1.3.
25213 if $ac_need_defaults; then
25214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25215 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25219 # Have a temporary directory for convenience. Make it in the build tree
25220 # simply because there is no reason to put it here, and in addition,
25221 # creating and moving files from /tmp can sometimes cause problems.
25222 # Create a temporary directory, and hook for its removal unless debugging.
25225 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25226 trap '{ (exit 1); exit 1; }' 1 2 13 15
25229 # Create a (secure) tmp directory for tmp files.
25232 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25233 test -n "$tmp" && test -d "$tmp"
25236 tmp
=.
/confstat$$
-$RANDOM
25237 (umask 077 && mkdir
$tmp)
25240 echo "$me: cannot create a temporary directory in ." >&2
25241 { (exit 1); exit 1; }
25246 cat >>$CONFIG_STATUS <<_ACEOF
25249 # CONFIG_FILES section.
25252 # No need to generate the scripts if there are no CONFIG_FILES.
25253 # This happens for instance when ./config.status config.h
25254 if test -n "\$CONFIG_FILES"; then
25255 # Protect against being on the right side of a sed subst in config.status.
25256 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25257 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25258 s,@SHELL@,$SHELL,;t t
25259 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25260 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25261 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25262 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25263 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25264 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25265 s,@exec_prefix@,$exec_prefix,;t t
25266 s,@prefix@,$prefix,;t t
25267 s,@program_transform_name@,$program_transform_name,;t t
25268 s,@bindir@,$bindir,;t t
25269 s,@sbindir@,$sbindir,;t t
25270 s,@libexecdir@,$libexecdir,;t t
25271 s,@datadir@,$datadir,;t t
25272 s,@sysconfdir@,$sysconfdir,;t t
25273 s,@sharedstatedir@,$sharedstatedir,;t t
25274 s,@localstatedir@,$localstatedir,;t t
25275 s,@libdir@,$libdir,;t t
25276 s,@includedir@,$includedir,;t t
25277 s,@oldincludedir@,$oldincludedir,;t t
25278 s,@infodir@,$infodir,;t t
25279 s,@mandir@,$mandir,;t t
25280 s,@build_alias@,$build_alias,;t t
25281 s,@host_alias@,$host_alias,;t t
25282 s,@target_alias@,$target_alias,;t t
25283 s,@DEFS@,$DEFS,;t t
25284 s,@ECHO_C@,$ECHO_C,;t t
25285 s,@ECHO_N@,$ECHO_N,;t t
25286 s,@ECHO_T@,$ECHO_T,;t t
25287 s,@LIBS@,$LIBS,;t t
25288 s,@build@,$build,;t t
25289 s,@build_cpu@,$build_cpu,;t t
25290 s,@build_vendor@,$build_vendor,;t t
25291 s,@build_os@,$build_os,;t t
25292 s,@host@,$host,;t t
25293 s,@host_cpu@,$host_cpu,;t t
25294 s,@host_vendor@,$host_vendor,;t t
25295 s,@host_os@,$host_os,;t t
25296 s,@target@,$target,;t t
25297 s,@target_cpu@,$target_cpu,;t t
25298 s,@target_vendor@,$target_vendor,;t t
25299 s,@target_os@,$target_os,;t t
25300 s,@target_noncanonical@,$target_noncanonical,;t t
25301 s,@build_libsubdir@,$build_libsubdir,;t t
25302 s,@build_subdir@,$build_subdir,;t t
25303 s,@host_subdir@,$host_subdir,;t t
25304 s,@target_subdir@,$target_subdir,;t t
25305 s,@GENINSRC@,$GENINSRC,;t t
25307 s,@CFLAGS@,$CFLAGS,;t t
25308 s,@LDFLAGS@,$LDFLAGS,;t t
25309 s,@CPPFLAGS@,$CPPFLAGS,;t t
25310 s,@ac_ct_CC@,$ac_ct_CC,;t t
25311 s,@EXEEXT@,$EXEEXT,;t t
25312 s,@OBJEXT@,$OBJEXT,;t t
25313 s,@GNATBIND@,$GNATBIND,;t t
25314 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
25315 s,@GNATMAKE@,$GNATMAKE,;t t
25316 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
25317 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
25318 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
25320 s,@EGREP@,$EGREP,;t t
25321 s,@loose_warn@,$loose_warn,;t t
25322 s,@strict_warn@,$strict_warn,;t t
25323 s,@warn_cflags@,$warn_cflags,;t t
25324 s,@nocommon_flag@,$nocommon_flag,;t t
25325 s,@TREEBROWSER@,$TREEBROWSER,;t t
25326 s,@valgrind_path@,$valgrind_path,;t t
25327 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
25328 s,@valgrind_command@,$valgrind_command,;t t
25329 s,@coverage_flags@,$coverage_flags,;t t
25330 s,@enable_multilib@,$enable_multilib,;t t
25331 s,@enable_decimal_float@,$enable_decimal_float,;t t
25332 s,@enable_fixed_point@,$enable_fixed_point,;t t
25333 s,@enable_shared@,$enable_shared,;t t
25334 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25335 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25336 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
25337 s,@onestep@,$onestep,;t t
25338 s,@PKGVERSION@,$PKGVERSION,;t t
25339 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
25340 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
25341 s,@datarootdir@,$datarootdir,;t t
25342 s,@docdir@,$docdir,;t t
25343 s,@htmldir@,$htmldir,;t t
25344 s,@SET_MAKE@,$SET_MAKE,;t t
25346 s,@LN_S@,$LN_S,;t t
25348 s,@RANLIB@,$RANLIB,;t t
25349 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25350 s,@ranlib_flags@,$ranlib_flags,;t t
25351 s,@INSTALL@,$INSTALL,;t t
25352 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25353 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25354 s,@make_compare_target@,$make_compare_target,;t t
25355 s,@have_mktemp_command@,$have_mktemp_command,;t t
25356 s,@MAKEINFO@,$MAKEINFO,;t t
25357 s,@BUILD_INFO@,$BUILD_INFO,;t t
25358 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
25359 s,@FLEX@,$FLEX,;t t
25360 s,@BISON@,$BISON,;t t
25363 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
25364 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
25365 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
25366 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
25367 s,@LIBICONV@,$LIBICONV,;t t
25368 s,@LTLIBICONV@,$LTLIBICONV,;t t
25369 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
25370 s,@manext@,$manext,;t t
25371 s,@objext@,$objext,;t t
25372 s,@gthread_flags@,$gthread_flags,;t t
25373 s,@extra_modes_file@,$extra_modes_file,;t t
25374 s,@extra_opt_files@,$extra_opt_files,;t t
25375 s,@USE_NLS@,$USE_NLS,;t t
25376 s,@LIBINTL@,$LIBINTL,;t t
25377 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25378 s,@INCINTL@,$INCINTL,;t t
25379 s,@XGETTEXT@,$XGETTEXT,;t t
25380 s,@GMSGFMT@,$GMSGFMT,;t t
25381 s,@POSUB@,$POSUB,;t t
25382 s,@CATALOGS@,$CATALOGS,;t t
25383 s,@DATADIRNAME@,$DATADIRNAME,;t t
25384 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25385 s,@GENCAT@,$GENCAT,;t t
25386 s,@CATOBJEXT@,$CATOBJEXT,;t t
25387 s,@CROSS@,$CROSS,;t t
25389 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
25390 s,@inhibit_libc@,$inhibit_libc,;t t
25391 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
25392 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25393 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25394 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
25395 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
25396 s,@collect2@,$collect2,;t t
25397 s,@LIBTOOL@,$LIBTOOL,;t t
25399 s,@FGREP@,$FGREP,;t t
25400 s,@GREP@,$GREP,;t t
25402 s,@DUMPBIN@,$DUMPBIN,;t t
25403 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
25404 s,@OBJDUMP@,$OBJDUMP,;t t
25405 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25406 s,@ac_ct_AR@,$ac_ct_AR,;t t
25407 s,@STRIP@,$STRIP,;t t
25408 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25409 s,@lt_ECHO@,$lt_ECHO,;t t
25410 s,@DSYMUTIL@,$DSYMUTIL,;t t
25411 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
25412 s,@NMEDIT@,$NMEDIT,;t t
25413 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
25414 s,@LIPO@,$LIPO,;t t
25415 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
25416 s,@OTOOL@,$OTOOL,;t t
25417 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
25418 s,@OTOOL64@,$OTOOL64,;t t
25419 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
25420 s,@objdir@,$objdir,;t t
25421 s,@enable_fast_install@,$enable_fast_install,;t t
25422 s,@gcc_cv_as@,$gcc_cv_as,;t t
25423 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
25424 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
25425 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
25426 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
25427 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
25428 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
25429 s,@libgcc_visibility@,$libgcc_visibility,;t t
25431 s,@zlibdir@,$zlibdir,;t t
25432 s,@zlibinc@,$zlibinc,;t t
25433 s,@MAINT@,$MAINT,;t t
25434 s,@gcc_tooldir@,$gcc_tooldir,;t t
25435 s,@dollar@,$dollar,;t t
25436 s,@slibdir@,$slibdir,;t t
25437 s,@subdirs@,$subdirs,;t t
25438 s,@srcdir@,$srcdir,;t t
25439 s,@all_compilers@,$all_compilers,;t t
25440 s,@all_gtfiles@,$all_gtfiles,;t t
25441 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
25442 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
25443 s,@all_languages@,$all_languages,;t t
25444 s,@all_selected_languages@,$all_selected_languages,;t t
25445 s,@build_exeext@,$build_exeext,;t t
25446 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
25447 s,@build_xm_file_list@,$build_xm_file_list,;t t
25448 s,@build_xm_include_list@,$build_xm_include_list,;t t
25449 s,@build_xm_defines@,$build_xm_defines,;t t
25450 s,@build_file_translate@,$build_file_translate,;t t
25451 s,@check_languages@,$check_languages,;t t
25452 s,@cpp_install_dir@,$cpp_install_dir,;t t
25453 s,@xmake_file@,$xmake_file,;t t
25454 s,@tmake_file@,$tmake_file,;t t
25455 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
25456 s,@extra_headers_list@,$extra_headers_list,;t t
25457 s,@extra_objs@,$extra_objs,;t t
25458 s,@extra_parts@,$extra_parts,;t t
25459 s,@extra_passes@,$extra_passes,;t t
25460 s,@extra_programs@,$extra_programs,;t t
25461 s,@float_h_file@,$float_h_file,;t t
25462 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
25463 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
25464 s,@host_exeext@,$host_exeext,;t t
25465 s,@host_xm_file_list@,$host_xm_file_list,;t t
25466 s,@host_xm_include_list@,$host_xm_include_list,;t t
25467 s,@host_xm_defines@,$host_xm_defines,;t t
25468 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
25469 s,@install@,$install,;t t
25470 s,@lang_opt_files@,$lang_opt_files,;t t
25471 s,@lang_specs_files@,$lang_specs_files,;t t
25472 s,@lang_tree_files@,$lang_tree_files,;t t
25473 s,@local_prefix@,$local_prefix,;t t
25474 s,@md_file@,$md_file,;t t
25475 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
25476 s,@out_file@,$out_file,;t t
25477 s,@out_object_file@,$out_object_file,;t t
25478 s,@thread_file@,$thread_file,;t t
25479 s,@tm_file_list@,$tm_file_list,;t t
25480 s,@tm_include_list@,$tm_include_list,;t t
25481 s,@tm_defines@,$tm_defines,;t t
25482 s,@tm_p_file_list@,$tm_p_file_list,;t t
25483 s,@tm_p_include_list@,$tm_p_include_list,;t t
25484 s,@xm_file_list@,$xm_file_list,;t t
25485 s,@xm_include_list@,$xm_include_list,;t t
25486 s,@xm_defines@,$xm_defines,;t t
25487 s,@c_target_objs@,$c_target_objs,;t t
25488 s,@cxx_target_objs@,$cxx_target_objs,;t t
25489 s,@fortran_target_objs@,$fortran_target_objs,;t t
25490 s,@target_cpu_default@,$target_cpu_default,;t t
25491 s,@GMPLIBS@,$GMPLIBS,;t t
25492 s,@GMPINC@,$GMPINC,;t t
25493 s,@PPLLIBS@,$PPLLIBS,;t t
25494 s,@PPLINC@,$PPLINC,;t t
25495 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
25496 s,@CLOOGINC@,$CLOOGINC,;t t
25497 s,@LIBOBJS@,$LIBOBJS,;t t
25498 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25499 /@language_hooks@/r $language_hooks
25500 s,@language_hooks@,,;t t
25505 cat >>$CONFIG_STATUS <<\_ACEOF
25506 # Split the substitutions into bite-sized pieces for seds with
25507 # small command number limits, like on Digital OSF/1 and HP-UX.
25508 ac_max_sed_lines
=48
25509 ac_sed_frag
=1 # Number of current file.
25510 ac_beg
=1 # First line for current file.
25511 ac_end
=$ac_max_sed_lines # Line after last line for current file.
25514 while $ac_more_lines; do
25515 if test $ac_beg -gt 1; then
25516 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25518 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25520 if test ! -s $tmp/subs.frag
; then
25521 ac_more_lines
=false
25523 # The purpose of the label and of the branching condition is to
25524 # speed up the sed processing (if there are no `@' at all, there
25525 # is no need to browse any of the substitutions).
25526 # These are the two extra sed commands mentioned above.
25528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
25529 if test -z "$ac_sed_cmds"; then
25530 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
25532 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25534 ac_sed_frag
=`expr $ac_sed_frag + 1`
25536 ac_end
=`expr $ac_end + $ac_max_sed_lines`
25539 if test -z "$ac_sed_cmds"; then
25542 fi # test -n "$CONFIG_FILES"
25545 cat >>$CONFIG_STATUS <<\_ACEOF
25546 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
25547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25549 - |
*:- |
*:-:* ) # input from stdin
25551 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25552 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25553 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25554 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25555 * ) ac_file_in
=$ac_file.
in ;;
25558 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25559 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25561 X"$ac_file" : 'X\(//\)[^/]' \| \
25562 X"$ac_file" : 'X\(//\)$' \| \
25563 X"$ac_file" : 'X\(/\)' \| \
25564 . : '\(.\)' 2>/dev/null ||
25566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25568 /^X\(\/\/\)$/{ s//\1/; q; }
25569 /^X\(\/\).*/{ s//\1/; q; }
25571 { if $as_mkdir_p; then
25576 while test ! -d "$as_dir"; do
25577 as_dirs
="$as_dir $as_dirs"
25578 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25580 X"$as_dir" : 'X\(//\)[^/]' \| \
25581 X"$as_dir" : 'X\(//\)$' \| \
25582 X"$as_dir" : 'X\(/\)' \| \
25583 . : '\(.\)' 2>/dev/null ||
25585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25587 /^X\(\/\/\)$/{ s//\1/; q; }
25588 /^X\(\/\).*/{ s//\1/; q; }
25591 test ! -n "$as_dirs" || mkdir
$as_dirs
25592 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25593 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25594 { (exit 1); exit 1; }; }; }
25598 if test "$ac_dir" != .
; then
25599 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25600 # A "../" for each directory in $ac_dir_suffix.
25601 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25603 ac_dir_suffix
= ac_top_builddir
=
25607 .
) # No --srcdir option. We are building in place.
25609 if test -z "$ac_top_builddir"; then
25612 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
25614 [\\/]* | ?
:[\\/]* ) # Absolute path.
25615 ac_srcdir
=$srcdir$ac_dir_suffix;
25616 ac_top_srcdir
=$srcdir ;;
25617 *) # Relative path.
25618 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
25619 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
25622 # Do not use `cd foo && pwd` to compute absolute paths, because
25623 # the directories may not exist.
25625 .
) ac_abs_builddir
="$ac_dir";;
25628 .
) ac_abs_builddir
=`pwd`;;
25629 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
25630 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
25633 case $ac_abs_builddir in
25634 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25636 case ${ac_top_builddir}.
in
25637 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
25638 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25639 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
25642 case $ac_abs_builddir in
25643 .
) ac_abs_srcdir
=$ac_srcdir;;
25646 .
) ac_abs_srcdir
=$ac_abs_builddir;;
25647 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
25648 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
25651 case $ac_abs_builddir in
25652 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
25654 case $ac_top_srcdir in
25655 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
25656 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
25657 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
25663 if test x
"$ac_file" != x-
; then
25664 { echo "$as_me:$LINENO: creating $ac_file" >&5
25665 echo "$as_me: creating $ac_file" >&6;}
25668 # Let's still pretend it is `configure' which instantiates (i.e., don't
25669 # use $as_me), people would be surprised to read:
25670 # /* config.h. Generated by config.status. */
25671 if test x
"$ac_file" = x-
; then
25674 configure_input
="$ac_file. "
25676 configure_input
=$configure_input"Generated from `echo $ac_file_in |
25677 sed 's,.*/,,'` by configure."
25679 # First look for the input files in the build tree, otherwise in the
25681 ac_file_inputs
=`IFS=:
25682 for f in $ac_file_in; do
25684 -) echo $tmp/stdin ;;
25686 # Absolute (can't be DOS-style, as IFS=:)
25687 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25688 echo "$as_me: error: cannot find input file: $f" >&2;}
25689 { (exit 1); exit 1; }; }
25692 if test -f "$f"; then
25695 elif test -f "$srcdir/$f"; then
25700 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25701 echo "$as_me: error: cannot find input file: $f" >&2;}
25702 { (exit 1); exit 1; }; }
25705 done` ||
{ (exit 1); exit 1; }
25707 cat >>$CONFIG_STATUS <<_ACEOF
25711 cat >>$CONFIG_STATUS <<\_ACEOF
25713 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25714 s
,@configure_input@
,$configure_input,;t t
25715 s
,@srcdir@
,$ac_srcdir,;t t
25716 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
25717 s
,@top_srcdir@
,$ac_top_srcdir,;t t
25718 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
25719 s
,@builddir@
,$ac_builddir,;t t
25720 s
,@abs_builddir@
,$ac_abs_builddir,;t t
25721 s
,@top_builddir@
,$ac_top_builddir,;t t
25722 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
25723 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25725 if test x"$ac_file" != x-; then
25726 mv $tmp/out $ac_file
25732 # Run the commands associated with the file.
25734 as ) chmod +x as ;;
25735 collect-ld ) chmod +x collect-ld ;;
25736 nm ) chmod +x nm ;;
25740 cat >>$CONFIG_STATUS <<\_ACEOF
25743 # CONFIG_HEADER section.
25746 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
25747 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25749 # ac_d sets the value in "#define NAME VALUE" lines.
25750 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25751 ac_dB
='[ ].*$,\1#\2'
25754 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25755 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25756 ac_uB
='$,\1#\2define\3'
25760 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
25761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25763 - |
*:- |
*:-:* ) # input from stdin
25765 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25766 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25767 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25768 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25769 * ) ac_file_in
=$ac_file.
in ;;
25772 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
25773 echo "$as_me: creating $ac_file" >&6;}
25775 # First look for the input files in the build tree, otherwise in the
25777 ac_file_inputs
=`IFS=:
25778 for f in $ac_file_in; do
25780 -) echo $tmp/stdin ;;
25782 # Absolute (can't be DOS-style, as IFS=:)
25783 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25784 echo "$as_me: error: cannot find input file: $f" >&2;}
25785 { (exit 1); exit 1; }; }
25786 # Do quote $f, to prevent DOS paths from being IFS'd.
25789 if test -f "$f"; then
25792 elif test -f "$srcdir/$f"; then
25797 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25798 echo "$as_me: error: cannot find input file: $f" >&2;}
25799 { (exit 1); exit 1; }; }
25802 done` ||
{ (exit 1); exit 1; }
25803 # Remove the trailing spaces.
25804 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25808 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25809 # `conftest.undefs', that substitutes the proper values into
25810 # config.h.in to produce config.h. The first handles `#define'
25811 # templates, and the second `#undef' templates.
25812 # And first: Protect against being on the right side of a sed subst in
25813 # config.status. Protect against being in an unquoted here document
25814 # in config.status.
25815 rm -f conftest.defines conftest.undefs
25816 # Using a here document instead of a string reduces the quoting nightmare.
25817 # Putting comments in sed scripts is not portable.
25819 # `end' is used to avoid that the second main sed command (meant for
25820 # 0-ary CPP macros) applies to n-ary macro definitions.
25821 # See the Autoconf documentation for `clear'.
25822 cat >confdef2sed.
sed <<\_ACEOF
25827 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25829 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25832 # If some macros were called several times there might be several times
25833 # the same #defines, which is useless. Nevertheless, we may not want to
25834 # sort them, since we want the *last* AC-DEFINE to be honored.
25835 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25836 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25837 rm -f confdef2sed.sed
25839 # This sed command replaces #undef with comments. This is necessary, for
25840 # example, in the case of _POSIX_SOURCE, which is predefined and required
25841 # on some systems where configure will not decide to define it.
25842 cat >>conftest.undefs <<\_ACEOF
25843 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25846 # Break up conftest.defines because some shells have a limit on the size
25847 # of here documents, and old seds have small limits too (100 cmds).
25848 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25849 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25850 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25851 echo ' :' >>$CONFIG_STATUS
25852 rm -f conftest.tail
25853 while grep . conftest.defines >/dev/null
25855 # Write a limited-size here document to $tmp/defines.sed.
25856 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25857 # Speed up: don't consider the non `#define' lines.
25858 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25859 # Work around the forget-to-reset-the-flag bug.
25860 echo 't clr' >>$CONFIG_STATUS
25861 echo ': clr' >>$CONFIG_STATUS
25862 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
25864 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25866 mv $tmp/out $tmp/in
25868 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
25869 rm -f conftest.defines
25870 mv conftest.
tail conftest.defines
25872 rm -f conftest.defines
25873 echo ' fi # grep' >>$CONFIG_STATUS
25874 echo >>$CONFIG_STATUS
25876 # Break up conftest.undefs because some shells have a limit on the size
25877 # of here documents, and old seds have small limits too (100 cmds).
25878 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25879 rm -f conftest.
tail
25880 while grep . conftest.undefs
>/dev
/null
25882 # Write a limited-size here document to $tmp/undefs.sed.
25883 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25884 # Speed up: don't consider the non
`#undef'
25885 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25886 # Work around the forget-to-reset-the-flag bug.
25887 echo 't clr' >>$CONFIG_STATUS
25888 echo ': clr' >>$CONFIG_STATUS
25889 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25891 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25893 mv $tmp/out $tmp/in
25895 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25896 rm -f conftest.undefs
25897 mv conftest.tail conftest.undefs
25899 rm -f conftest.undefs
25901 cat >>$CONFIG_STATUS <<\_ACEOF
25902 # Let's still pretend it is `configure
' which instantiates (i.e., don't
25903 # use $as_me), people would be surprised to read:
25904 # /* config.h. Generated by config.status. */
25905 if test x
"$ac_file" = x-
; then
25906 echo "/* Generated by configure. */" >$tmp/config.h
25908 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25910 cat $tmp/in >>$tmp/config.h
25912 if test x
"$ac_file" != x-
; then
25913 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
25914 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25915 echo "$as_me: $ac_file is unchanged" >&6;}
25917 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25919 X"$ac_file" : 'X\(//\)[^/]' \| \
25920 X"$ac_file" : 'X\(//\)$' \| \
25921 X"$ac_file" : 'X\(/\)' \| \
25922 . : '\(.\)' 2>/dev/null ||
25924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25926 /^X\(\/\/\)$/{ s//\1/; q; }
25927 /^X\(\/\).*/{ s//\1/; q; }
25929 { if $as_mkdir_p; then
25934 while test ! -d "$as_dir"; do
25935 as_dirs
="$as_dir $as_dirs"
25936 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25937 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25938 X"$as_dir" : 'X\(//\)[^/]' \| \
25939 X"$as_dir" : 'X\(//\)$' \| \
25940 X"$as_dir" : 'X\(/\)' \| \
25941 . : '\(.\)' 2>/dev/null ||
25943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25945 /^X\(\/\/\)$/{ s//\1/; q; }
25946 /^X\(\/\).*/{ s//\1/; q; }
25949 test ! -n "$as_dirs" || mkdir
$as_dirs
25950 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25951 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25952 { (exit 1); exit 1; }; }; }
25955 mv $tmp/config.h
$ac_file
25959 rm -f $tmp/config.h
25963 cat >>$CONFIG_STATUS <<\_ACEOF
25966 # CONFIG_COMMANDS section.
25968 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
25969 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
25970 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25971 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
25972 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25973 X"$ac_dest" : 'X\(//\)[^/]' \| \
25974 X"$ac_dest" : 'X\(//\)$' \| \
25975 X"$ac_dest" : 'X\(/\)' \| \
25976 . : '\(.\)' 2>/dev/null ||
25978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25980 /^X\(\/\/\)$/{ s//\1/; q; }
25981 /^X\(\/\).*/{ s//\1/; q; }
25983 { if $as_mkdir_p; then
25988 while test ! -d "$as_dir"; do
25989 as_dirs
="$as_dir $as_dirs"
25990 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25992 X"$as_dir" : 'X\(//\)[^/]' \| \
25993 X"$as_dir" : 'X\(//\)$' \| \
25994 X"$as_dir" : 'X\(/\)' \| \
25995 . : '\(.\)' 2>/dev/null ||
25997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25999 /^X\(\/\/\)$/{ s//\1/; q; }
26000 /^X\(\/\).*/{ s//\1/; q; }
26003 test ! -n "$as_dirs" || mkdir
$as_dirs
26004 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26005 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26006 { (exit 1); exit 1; }; }; }
26010 if test "$ac_dir" != .
; then
26011 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26012 # A "../" for each directory in $ac_dir_suffix.
26013 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26015 ac_dir_suffix
= ac_top_builddir
=
26019 .
) # No --srcdir option. We are building in place.
26021 if test -z "$ac_top_builddir"; then
26024 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
26026 [\\/]* | ?
:[\\/]* ) # Absolute path.
26027 ac_srcdir
=$srcdir$ac_dir_suffix;
26028 ac_top_srcdir
=$srcdir ;;
26029 *) # Relative path.
26030 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
26031 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
26034 # Do not use `cd foo && pwd` to compute absolute paths, because
26035 # the directories may not exist.
26037 .
) ac_abs_builddir
="$ac_dir";;
26040 .
) ac_abs_builddir
=`pwd`;;
26041 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
26042 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
26045 case $ac_abs_builddir in
26046 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26048 case ${ac_top_builddir}.
in
26049 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
26050 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26051 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
26054 case $ac_abs_builddir in
26055 .
) ac_abs_srcdir
=$ac_srcdir;;
26058 .
) ac_abs_srcdir
=$ac_abs_builddir;;
26059 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
26060 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
26063 case $ac_abs_builddir in
26064 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
26066 case $ac_top_srcdir in
26067 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
26068 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
26069 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
26074 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26075 echo "$as_me: executing $ac_dest commands" >&6;}
26078 case ${CONFIG_HEADERS} in
26079 *auto-host.h
:config.
in*)
26082 # Make sure all the subdirs exist.
26083 for d
in $subdirs doc build
26085 test -d $d || mkdir
$d
26092 cat >>$CONFIG_STATUS <<\_ACEOF
26094 { (exit 0); exit 0; }
26096 chmod +x
$CONFIG_STATUS
26097 ac_clean_files
=$ac_clean_files_save
26100 # configure is writing to config.log, and then calls config.status.
26101 # config.status does its own redirection, appending to config.log.
26102 # Unfortunately, on DOS this fails, as config.log is still kept open
26103 # by configure, so config.status won't be able to write to it; its
26104 # output is simply discarded. So we exec the FD to /dev/null,
26105 # effectively closing config.log, so it can be properly (re)opened and
26106 # appended to by config.status. When coming back to configure, we
26107 # need to make the FD available again.
26108 if test "$no_create" != yes; then
26110 ac_config_status_args
=
26111 test "$silent" = yes &&
26112 ac_config_status_args
="$ac_config_status_args --quiet"
26114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26117 # would make configure fail if this is the last instruction.
26118 $ac_cs_success ||
{ (exit 1); exit 1; }