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 LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump gcc_cv_readelf libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file TM_ENDIAN_CONFIG TM_MULTILIB_CONFIG TM_MULTILIB_EXCEPTIONS_CONFIG extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines use_gcc_stdint c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC pluginlibs enable_plugin LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
465 # Initialize some variables set by options.
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name=s,x,x,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
580 -help | --help | --hel | --he | -h)
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 # Obsolete; use --without-fp.
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
710 -site=* | --site=* | --sit=*)
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 -version | --version | --versio | --versi | --vers | -V)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_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
1087 --enable-plugin enable plugin support
1090 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1091 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1092 --with-build-libsubdir=DIR Directory where to find libraries for build system
1093 --with-local-prefix=DIR specifies directory to put local include
1094 --with-gxx-include-dir=DIR
1095 specifies directory to put g++ header files
1096 --with-cpp-install-dir=DIR
1097 install the user visible C preprocessor in DIR
1098 (relative to PREFIX) as well as PREFIX/bin
1099 --with-gnu-ld arrange to work with GNU ld.
1100 --with-ld arrange to use the specified ld (full pathname)
1101 --with-demangler-in-ld try to use demangler in GNU ld.
1102 --with-gnu-as arrange to work with GNU as
1103 --with-as arrange to use the specified as (full pathname)
1104 --with-stabs arrange to use stabs instead of host debug format
1105 --with-dwarf2 force the default debug format to be DWARF 2
1106 --with-build-sysroot=sysroot
1107 use sysroot as the system root during the build
1108 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1109 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1110 --with-bugurl=URL Direct users to URL to report a bug
1111 --with-multilib-list Select multilibs (SH only)
1112 --with-gnu-ld assume the C compiler uses GNU ld default=no
1113 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1114 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1115 --with-system-libunwind use installed libunwind
1116 --with-pic try to use only PIC/non-PIC objects [default=use
1118 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1119 --with-long-double-128 Use 128-bit long double by default.
1120 --with-gc={page,zone} choose the garbage collection mechanism to use
1122 --with-system-zlib use installed libz
1123 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1124 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1125 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1126 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1128 Some influential environment variables:
1129 CC C compiler command
1130 CFLAGS C compiler flags
1131 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1132 nonstandard directory <lib dir>
1133 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1134 headers in a nonstandard directory <include dir>
1136 GMPLIBS How to link GMP
1137 GMPINC How to find GMP include files
1138 PPLLIBS How to link PPL
1139 PPLINC How to find PPL include files
1140 CLOOGLIBS How to link CLOOG
1141 CLOOGINC How to find CLOOG include files
1143 Use these variables to override the choices made by `configure' or to help
1144 it to find libraries and programs with nonstandard names/locations.
1149 if test "$ac_init_help" = "recursive"; then
1150 # If there are subdirs, report their specific --help.
1152 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1153 test -d $ac_dir || continue
1156 if test "$ac_dir" != .; then
1157 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1158 # A "../" for each directory in $ac_dir_suffix.
1159 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1161 ac_dir_suffix= ac_top_builddir=
1165 .) # No --srcdir option. We are building in place.
1167 if test -z "$ac_top_builddir"; then
1170 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1172 [\\/]* | ?:[\\/]* ) # Absolute path.
1173 ac_srcdir=$srcdir$ac_dir_suffix;
1174 ac_top_srcdir=$srcdir ;;
1176 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1177 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1180 # Do not use `cd foo && pwd` to compute absolute paths, because
1181 # the directories may not exist.
1183 .) ac_abs_builddir="$ac_dir";;
1186 .) ac_abs_builddir=`pwd`;;
1187 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1188 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1191 case $ac_abs_builddir in
1192 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1194 case ${ac_top_builddir}. in
1195 .) ac_abs_top_builddir=$ac_abs_builddir;;
1196 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1197 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1200 case $ac_abs_builddir in
1201 .) ac_abs_srcdir=$ac_srcdir;;
1204 .) ac_abs_srcdir=$ac_abs_builddir;;
1205 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1206 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1209 case $ac_abs_builddir in
1210 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1212 case $ac_top_srcdir in
1213 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1214 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1215 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1220 # Check for guested configure; otherwise get Cygnus style configure.
1221 if test -f $ac_srcdir/configure.gnu; then
1223 $SHELL $ac_srcdir/configure.gnu --help=recursive
1224 elif test -f $ac_srcdir/configure; then
1226 $SHELL $ac_srcdir/configure --help=recursive
1227 elif test -f $ac_srcdir/configure.ac ||
1228 test -f $ac_srcdir/configure.in; then
1230 $ac_configure --help
1232 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1238 test -n "$ac_init_help" && exit 0
1239 if $ac_init_version; then
1242 Copyright (C) 2003 Free Software Foundation, Inc.
1243 This configure script is free software; the Free Software Foundation
1244 gives unlimited permission to copy, distribute and modify it.
1250 This file contains any messages produced by compilers while
1251 running configure, to aid debugging if configure makes a mistake.
1253 It was created by $as_me, which was
1254 generated by GNU Autoconf 2.59. Invocation command line was
1265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1272 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1274 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1275 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1277 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1278 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1279 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1280 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1288 test -z "$as_dir" && as_dir=.
1289 echo "PATH: $as_dir"
1304 # Keep a trace of the command line.
1305 # Strip out --no-create and --no-recursion so they do not pile up.
1306 # Strip out --silent because we don't want to record it for future runs.
1307 # Also quote any args containing shell meta-characters.
1308 # Make two passes to allow for proper duplicate-argument suppression.
1313 ac_must_keep_next=false
1319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321 | -silent | --silent | --silen | --sile | --sil)
1323 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1329 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1330 if test $ac_must_keep_next = true; then
1331 ac_must_keep_next=false # Got value, back to normal.
1334 *=* | --config-cache | -C | -disable-* | --disable-* \
1335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1337 | -with-* | --with-* | -without-* | --without-* | --x)
1338 case "$ac_configure_args0 " in
1339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342 -* ) ac_must_keep_next=true ;;
1345 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1346 # Get rid of the leading space.
1352 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1353 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1355 # When interrupted or exit'd, cleanup temporary files, and complete
1356 # config.log. We remove comments because anyway the quotes in there
1357 # would cause problems or look ugly.
1358 # WARNING: Be sure not to use single quotes in there, as some shells,
1359 # such as our DU 5.0 friend, will then `close' the trap.
1360 trap 'exit_status=$?
1361 # Save into config.log some information that might help in debugging.
1366 ## ---------------- ##
1367 ## Cache variables. ##
1368 ## ---------------- ##
1371 # The following way of writing the cache mishandles newlines in values,
1374 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1382 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1389 ## ----------------- ##
1390 ## Output variables. ##
1391 ## ----------------- ##
1394 for ac_var in $ac_subst_vars
1396 eval ac_val=$`echo $ac_var`
1397 echo "$ac_var='"'"'$ac_val'"'"'"
1401 if test -n "$ac_subst_files"; then
1408 for ac_var in $ac_subst_files
1410 eval ac_val=$`echo $ac_var`
1411 echo "$ac_var='"'"'$ac_val'"'"'"
1416 if test -s confdefs.h; then
1423 sed "/^$/d" confdefs.h | sort
1426 test "$ac_signal" != 0 &&
1427 echo "$as_me: caught signal $ac_signal"
1428 echo "$as_me: exit $exit_status"
1430 rm -f core *.core &&
1431 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434 for ac_signal in 1 2 13 15; do
1435 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1439 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1440 rm -rf conftest* confdefs.h
1441 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444 # Predefined preprocessor variables.
1446 cat >>confdefs.h <<_ACEOF
1447 #define PACKAGE_NAME "$PACKAGE_NAME"
1451 cat >>confdefs.h <<_ACEOF
1452 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1456 cat >>confdefs.h <<_ACEOF
1457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1461 cat >>confdefs.h <<_ACEOF
1462 #define PACKAGE_STRING "$PACKAGE_STRING"
1466 cat >>confdefs.h <<_ACEOF
1467 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1471 # Let the site file select an alternate cache file if it wants to.
1472 # Prefer explicitly selected file to automatically selected ones.
1473 if test -z "$CONFIG_SITE"; then
1474 if test "x$prefix" != xNONE; then
1475 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1477 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480 for ac_site_file in $CONFIG_SITE; do
1481 if test -r "$ac_site_file"; then
1482 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1483 echo "$as_me: loading site script $ac_site_file" >&6;}
1484 sed 's/^/| /' "$ac_site_file" >&5
1489 if test -r "$cache_file"; then
1490 # Some versions of bash will fail to source /dev/null (special
1491 # files actually), so we avoid doing that.
1492 if test -f "$cache_file"; then
1493 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1494 echo "$as_me: loading cache $cache_file" >&6;}
1496 [\\/]* | ?:[\\/]* ) . $cache_file;;
1497 *) . ./$cache_file;;
1501 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1502 echo "$as_me: creating cache $cache_file" >&6;}
1506 # Check that the precious variables saved in the cache have kept the same
1508 ac_cache_corrupted=false
1509 for ac_var in `(set) 2>&1 |
1510 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1511 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1512 eval ac_new_set=\$ac_env_${ac_var}_set
1513 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1514 eval ac_new_val="\$ac_env_${ac_var}_value"
1515 case $ac_old_set,$ac_new_set in
1517 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1518 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1519 ac_cache_corrupted=: ;;
1521 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1522 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1523 ac_cache_corrupted=: ;;
1526 if test "x$ac_old_val" != "x$ac_new_val"; then
1527 # differences in whitespace do not lead to failure.
1528 ac_old_val_w=`echo x $ac_old_val`
1529 ac_new_val_w=`echo x $ac_new_val`
1530 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1531 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1532 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1533 ac_cache_corrupted=:
1535 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1536 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1537 eval $ac_var=\$ac_old_val
1539 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1540 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1541 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1542 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1545 # Pass precious variables to config.status.
1546 if test "$ac_new_set" = set; then
1548 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1549 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1550 *) ac_arg=$ac_var=$ac_new_val ;;
1552 case " $ac_configure_args " in
1553 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1554 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1558 if $ac_cache_corrupted; then
1559 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1560 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1561 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1562 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1563 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1564 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1565 { (exit 1); exit 1; }; }
1569 ac_cpp='$CPP $CPPFLAGS'
1570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1596 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1599 gcc_version=`cat $srcdir/BASE-VER`
1601 # Determine the host, build, and target systems
1603 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1604 if test -f $ac_dir/install-sh; then
1606 ac_install_sh="$ac_aux_dir/install-sh -c"
1608 elif test -f $ac_dir/install.sh; then
1610 ac_install_sh="$ac_aux_dir/install.sh -c"
1612 elif test -f $ac_dir/shtool; then
1614 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 if test -z "$ac_aux_dir"; then
1619 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1620 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1621 { (exit 1); exit 1; }; }
1623 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1624 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1625 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1627 # Make sure we can run config.sub.
1628 $ac_config_sub sun4 >/dev/null 2>&1 ||
1629 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1630 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1631 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: checking build system type" >&5
1634 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1635 if test "${ac_cv_build+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 ac_cv_build_alias=$build_alias
1639 test -z "$ac_cv_build_alias" &&
1640 ac_cv_build_alias=`$ac_config_guess`
1641 test -z "$ac_cv_build_alias" &&
1642 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1643 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1644 { (exit 1); exit 1; }; }
1645 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1652 echo "${ECHO_T}$ac_cv_build" >&6
1654 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659 echo "$as_me:$LINENO: checking host system type" >&5
1660 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1661 if test "${ac_cv_host+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 ac_cv_host_alias=$host_alias
1665 test -z "$ac_cv_host_alias" &&
1666 ac_cv_host_alias=$ac_cv_build_alias
1667 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1674 echo "${ECHO_T}$ac_cv_host" >&6
1676 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 echo "$as_me:$LINENO: checking target system type" >&5
1682 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1683 if test "${ac_cv_target+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 ac_cv_target_alias=$target_alias
1687 test "x$ac_cv_target_alias" = "x" &&
1688 ac_cv_target_alias=$ac_cv_host_alias
1689 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1690 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1691 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1692 { (exit 1); exit 1; }; }
1695 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1696 echo "${ECHO_T}$ac_cv_target" >&6
1697 target=$ac_cv_target
1698 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1703 # The aliases save the names the user supplied, while $host etc.
1704 # will get canonicalized.
1705 test -n "$target_alias" &&
1706 test "$program_prefix$program_suffix$program_transform_name" = \
1708 program_prefix=${target_alias}-
1710 # Determine the noncanonical target name, for directory use.
1711 case ${build_alias} in
1712 "") build_noncanonical=${build} ;;
1713 *) build_noncanonical=${build_alias} ;;
1716 case ${host_alias} in
1717 "") host_noncanonical=${build_noncanonical} ;;
1718 *) host_noncanonical=${host_alias} ;;
1721 case ${target_alias} in
1722 "") target_noncanonical=${host_noncanonical} ;;
1723 *) target_noncanonical=${target_alias} ;;
1729 # Determine the target- and build-specific subdirectories
1731 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1732 # have matching libraries, they should use host libraries: Makefile.tpl
1733 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1734 # However, they still use the build modules, because the corresponding
1735 # host modules (e.g. bison) are only built for the host when bootstrap
1737 # - build_subdir is where we find build modules, and never changes.
1738 # - build_libsubdir is where we find build libraries, and can be overridden.
1740 # Prefix 'build-' so this never conflicts with target_subdir.
1741 build_subdir="build-${build_noncanonical}"
1743 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1744 if test "${with_build_libsubdir+set}" = set; then
1745 withval="$with_build_libsubdir"
1746 build_libsubdir="$withval"
1748 build_libsubdir="$build_subdir"
1750 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1751 if ( test $srcdir = . && test -d gcc ) \
1752 || test -d $srcdir/../host-${host_noncanonical}; then
1753 host_subdir="host-${host_noncanonical}"
1758 target_subdir=${target_noncanonical}
1761 # Set program_transform_name
1762 test "$program_prefix" != NONE &&
1763 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1764 # Use a double $ so make ignores it.
1765 test "$program_suffix" != NONE &&
1766 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1767 # Double any \ or $. echo might interpret backslashes.
1768 # By default was `s,x,x', remove it if useless.
1769 cat <<\_ACEOF >conftest.sed
1770 s/[\\$]/&&/g;s/;s,x,x,$//
1772 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1776 # Check for bogus environment variables.
1777 # Test if LIBRARY_PATH contains the notation for the current directory
1778 # since this would lead to problems installing/building glibc.
1779 # LIBRARY_PATH contains the current directory if one of the following
1781 # - one of the terminals (":" and ";") is the first or last sign
1782 # - two terminals occur directly after each other
1783 # - the path contains an element with a dot in it
1784 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1785 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1786 case ${LIBRARY_PATH} in
1787 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1788 library_path_setting="contains current directory"
1791 library_path_setting="ok"
1794 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1795 echo "${ECHO_T}$library_path_setting" >&6
1796 if test "$library_path_setting" != "ok"; then
1797 { { echo "$as_me:$LINENO: error:
1798 *** LIBRARY_PATH shouldn't contain the current directory when
1799 *** building gcc. Please change the environment variable
1800 *** and run configure again." >&5
1801 echo "$as_me: error:
1802 *** LIBRARY_PATH shouldn't contain the current directory when
1803 *** building gcc. Please change the environment variable
1804 *** and run configure again." >&2;}
1805 { (exit 1); exit 1; }; }
1808 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1809 # since this would lead to problems installing/building glibc.
1810 # GCC_EXEC_PREFIX contains the current directory if one of the following
1812 # - one of the terminals (":" and ";") is the first or last sign
1813 # - two terminals occur directly after each other
1814 # - the path contains an element with a dot in it
1815 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1816 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1817 case ${GCC_EXEC_PREFIX} in
1818 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1819 gcc_exec_prefix_setting="contains current directory"
1822 gcc_exec_prefix_setting="ok"
1825 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1826 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1827 if test "$gcc_exec_prefix_setting" != "ok"; then
1828 { { echo "$as_me:$LINENO: error:
1829 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1830 *** building gcc. Please change the environment variable
1831 *** and run configure again." >&5
1832 echo "$as_me: error:
1833 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1834 *** building gcc. Please change the environment variable
1835 *** and run configure again." >&2;}
1836 { (exit 1); exit 1; }; }
1843 # Specify the local prefix
1846 # Check whether --with-local-prefix or --without-local-prefix was given.
1847 if test "${with_local_prefix+set}" = set; then
1848 withval="$with_local_prefix"
1849 case "${withval}" in
1850 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1851 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1852 { (exit 1); exit 1; }; } ;;
1854 *) local_prefix=$with_local_prefix ;;
1858 # Default local prefix if it is empty
1859 if test x$local_prefix = x; then
1860 local_prefix=/usr/local
1863 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1864 # passed in by the toplevel make and thus we'd get different behavior
1865 # depending on where we built the sources.
1866 gcc_gxx_include_dir=
1867 # Specify the g++ header file directory
1869 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1870 if test "${with_gxx_include_dir+set}" = set; then
1871 withval="$with_gxx_include_dir"
1872 case "${withval}" in
1873 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1874 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1875 { (exit 1); exit 1; }; } ;;
1877 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1881 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1882 if test x${gcc_gxx_include_dir} = x; then
1883 if test x${enable_version_specific_runtime_libs} = xyes; then
1884 gcc_gxx_include_dir='${libsubdir}/include/c++'
1886 libstdcxx_incdir='include/c++/$(version)'
1887 if test x$host != x$target; then
1888 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1890 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1895 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1896 if test "${with_cpp_install_dir+set}" = set; then
1897 withval="$with_cpp_install_dir"
1898 if test x$withval = xyes; then
1899 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1900 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1901 { (exit 1); exit 1; }; }
1902 elif test x$withval != xno; then
1903 cpp_install_dir=$withval
1907 # We would like to our source tree to be readonly. However when releases or
1908 # pre-releases are generated, the flex/bison generated files as well as the
1909 # various formats of manuals need to be included along with the rest of the
1910 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1913 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1914 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1915 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1916 if test "${enable_generated_files_in_srcdir+set}" = set; then
1917 enableval="$enable_generated_files_in_srcdir"
1918 generated_files_in_srcdir=$enableval
1920 generated_files_in_srcdir=no
1923 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1924 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1926 if test "$generated_files_in_srcdir" = "yes"; then
1933 # -------------------
1934 # Find default linker
1935 # -------------------
1939 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1940 if test "${with_gnu_ld+set}" = set; then
1941 withval="$with_gnu_ld"
1942 gnu_ld_flag="$with_gnu_ld"
1947 # With pre-defined ld
1949 # Check whether --with-ld or --without-ld was given.
1950 if test "${with_ld+set}" = set; then
1952 DEFAULT_LINKER="$with_ld"
1954 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1955 if test ! -x "$DEFAULT_LINKER"; then
1956 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1957 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1958 { (exit 1); exit 1; }; }
1959 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1963 cat >>confdefs.h <<_ACEOF
1964 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1969 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1971 cat >>confdefs.h <<_ACEOF
1972 #define HAVE_GNU_LD $gnu_ld
1976 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1977 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1978 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1979 if test x"$gnu_ld_flag" = x"no"; then
1980 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1981 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1983 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1984 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1987 echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1991 # With demangler in GNU ld
1993 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1994 if test "${with_demangler_in_ld+set}" = set; then
1995 withval="$with_demangler_in_ld"
1996 demangler_in_ld="$with_demangler_in_ld"
2001 # ----------------------
2002 # Find default assembler
2003 # ----------------------
2007 # Check whether --with-gnu-as or --without-gnu-as was given.
2008 if test "${with_gnu_as+set}" = set; then
2009 withval="$with_gnu_as"
2010 gas_flag="$with_gnu_as"
2016 # Check whether --with-as or --without-as was given.
2017 if test "${with_as+set}" = set; then
2019 DEFAULT_ASSEMBLER="$with_as"
2021 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2022 if test ! -x "$DEFAULT_ASSEMBLER"; then
2023 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2024 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2025 { (exit 1); exit 1; }; }
2026 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2030 cat >>confdefs.h <<_ACEOF
2031 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2036 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2038 cat >>confdefs.h <<_ACEOF
2039 #define HAVE_GNU_AS $gnu_as
2043 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2044 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2045 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2046 if test x"$gas_flag" = x"no"; then
2047 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2048 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2050 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2051 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2062 # If a non-executable a.out is present (e.g. created by GNU as above even if
2063 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2064 # file, even when creating an executable, so an execution test fails.
2065 # Remove possible default executable files to avoid this.
2067 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2068 # Autoconf includes it.
2069 rm -f a.out a.exe b.out
2071 # Find the native compiler
2073 ac_cpp='$CPP $CPPFLAGS'
2074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077 if test -n "$ac_tool_prefix"; then
2078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 if test -n "$CC"; then
2106 echo "$as_me:$LINENO: result: $CC" >&5
2107 echo "${ECHO_T}$CC" >&6
2109 echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2114 if test -z "$ac_cv_prog_CC"; then
2116 # Extract the first word of "gcc", so it can be a program name with args.
2117 set dummy gcc; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_ac_ct_CC="gcc"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2156 if test -z "$CC"; then
2157 if test -n "$ac_tool_prefix"; then
2158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2159 set dummy ${ac_tool_prefix}cc; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC="$CC" # Let the user override the test.
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175 ac_cv_prog_CC="${ac_tool_prefix}cc"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 if test -n "$CC"; then
2186 echo "$as_me:$LINENO: result: $CC" >&5
2187 echo "${ECHO_T}$CC" >&6
2189 echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2194 if test -z "$ac_cv_prog_CC"; then
2196 # Extract the first word of "cc", so it can be a program name with args.
2197 set dummy cc; ac_word=$2
2198 echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 if test -n "$ac_ct_CC"; then
2204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2213 ac_cv_prog_ac_ct_CC="cc"
2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6
2227 echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6
2237 if test -z "$CC"; then
2238 # Extract the first word of "cc", so it can be a program name with args.
2239 set dummy cc; ac_word=$2
2240 echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2257 ac_prog_rejected=yes
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 if test $ac_prog_rejected = yes; then
2268 # We found a bogon in the path, so make sure we never use it.
2269 set dummy $ac_cv_prog_CC
2271 if test $# != 0; then
2272 # We chose a different compiler from the bogus one.
2273 # However, it has the same basename, so the bogon will be chosen
2274 # first if we set CC to just the basename; use the full file name.
2276 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2282 if test -n "$CC"; then
2283 echo "$as_me:$LINENO: result: $CC" >&5
2284 echo "${ECHO_T}$CC" >&6
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2291 if test -z "$CC"; then
2292 if test -n "$ac_tool_prefix"; then
2295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2297 echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_CC+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -n "$CC"; then
2303 ac_cv_prog_CC="$CC" # Let the user override the test.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 if test -n "$CC"; then
2323 echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6
2326 echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6
2330 test -n "$CC" && break
2333 if test -z "$CC"; then
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$ac_ct_CC"; then
2345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354 ac_cv_prog_ac_ct_CC="$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2364 if test -n "$ac_ct_CC"; then
2365 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2366 echo "${ECHO_T}$ac_ct_CC" >&6
2368 echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2372 test -n "$ac_ct_CC" && break
2381 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2382 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; }; }
2389 # Provide some information about the compiler.
2390 echo "$as_me:$LINENO:" \
2391 "checking for C compiler version" >&5
2392 ac_compiler=`set X $ac_compile; echo $2`
2393 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2394 (eval $ac_compiler --version </dev/null >&5) 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }
2398 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2399 (eval $ac_compiler -v </dev/null >&5) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }
2403 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2404 (eval $ac_compiler -V </dev/null >&5) 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }
2409 cat >conftest.$ac_ext <<_ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2424 ac_clean_files_save=$ac_clean_files
2425 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2426 # Try to create an executable without -o first, disregard a.out.
2427 # It will help us diagnose broken compilers, and finding out an intuition
2429 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2430 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2431 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2432 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2433 (eval $ac_link_default) 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; then
2437 # Find the output, starting from the most likely. This scheme is
2438 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2441 # Be careful to initialize this variable, since it used to be cached.
2442 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2444 # b.out is created by i960 compilers.
2445 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2447 test -f "$ac_file" || continue
2449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2452 # This is the source file.
2455 # We found the default executable, but exeext='' is most
2459 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460 # FIXME: I believe we export ac_cv_exeext for Libtool,
2461 # but it would be cool to find out if it's true. Does anybody
2462 # maintain Libtool? --akim.
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2473 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2474 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: C compiler cannot create executables
2478 See \`config.log' for more details." >&2;}
2479 { (exit 77); exit 77; }; }; }
2482 ac_exeext=$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_file" >&5
2484 echo "${ECHO_T}$ac_file" >&6
2486 # Check the compiler produces executables we can run. If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2489 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2490 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2491 # If not cross compiling, check that we can run a simple program.
2492 if test "$cross_compiling" != yes; then
2493 if { ac_try='./$ac_file'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2501 if test "$cross_compiling" = maybe; then
2504 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2505 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot run C compiled programs.
2510 If you meant to cross compile, use \`--host'.
2511 See \`config.log' for more details." >&2;}
2512 { (exit 1); exit 1; }; }; }
2516 echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6
2519 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2520 ac_clean_files=$ac_clean_files_save
2521 # Check the compiler produces executables we can run. If not, either
2522 # the compiler is broken, or we cross compile.
2523 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2524 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2525 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2526 echo "${ECHO_T}$cross_compiling" >&6
2528 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2529 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2531 (eval $ac_link) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; then
2535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2537 # work properly (i.e., refer to `conftest.exe'), while it won't with
2539 for ac_file in conftest.exe conftest conftest.*; do
2540 test -f "$ac_file" || continue
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2551 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2553 See \`config.log' for more details." >&5
2554 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&2;}
2556 { (exit 1); exit 1; }; }; }
2559 rm -f conftest$ac_cv_exeext
2560 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2561 echo "${ECHO_T}$ac_cv_exeext" >&6
2563 rm -f conftest.$ac_ext
2564 EXEEXT=$ac_cv_exeext
2566 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2567 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2568 if test "${ac_cv_objext+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2586 rm -f conftest.o conftest.obj
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2603 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2604 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }; }
2612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2614 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615 echo "${ECHO_T}$ac_cv_objext" >&6
2616 OBJEXT=$ac_cv_objext
2618 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1 >conftest.err
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2674 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2675 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2676 GCC=`test $ac_compiler_gnu = yes && echo yes`
2677 ac_test_CFLAGS=${CFLAGS+set}
2678 ac_save_CFLAGS=$CFLAGS
2680 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2682 if test "${ac_cv_prog_cc_g+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2732 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2733 if test "$ac_test_CFLAGS" = set; then
2734 CFLAGS=$ac_save_CFLAGS
2735 elif test $ac_cv_prog_cc_g = yes; then
2736 if test "$GCC" = yes; then
2742 if test "$GCC" = yes; then
2748 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2749 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2750 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 ac_cv_prog_cc_stdc=no
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 #include <sys/types.h>
2764 #include <sys/stat.h>
2765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2766 struct buf { int x; };
2767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2768 static char *e (p, i)
2774 static char *f (char * (*g) (char **, int), char **p, ...)
2779 s = g (p, va_arg (v,int));
2784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2785 function prototypes and stuff, but not '\xHH' hex character constants.
2786 These don't provoke an error unfortunately, instead are silently treated
2787 as 'x'. The following induces an error, until -std1 is added to get
2788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2789 array size at least. It's necessary to write '\x00'==0 to get something
2790 that's true only with -std1. */
2791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2793 int test (int i, double x);
2794 struct s1 {int (*f) (int a);};
2795 struct s2 {int (*f) (double a);};
2796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2807 # Don't try gcc -ansi; that turns off useful extensions and
2808 # breaks some systems' header files.
2809 # AIX -qlanglvl=ansi
2810 # Ultrix and OSF/1 -std1
2811 # HP-UX 10.20 and later -Ae
2812 # HP-UX older versions -Aa -D_HPUX_SOURCE
2813 # SVR4 -Xc -D__EXTENSIONS__
2814 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2816 CC="$ac_save_CC $ac_arg"
2817 rm -f conftest.$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819 (eval $ac_compile) 2>conftest.er1
2821 grep -v '^ *+' conftest.er1 >conftest.err
2823 cat conftest.err >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try='test -z "$ac_c_werror_flag"
2827 || test ! -s conftest.err'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 ac_cv_prog_cc_stdc=$ac_arg
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2846 rm -f conftest.err conftest.$ac_objext
2848 rm -f conftest.$ac_ext conftest.$ac_objext
2853 case "x$ac_cv_prog_cc_stdc" in
2855 echo "$as_me:$LINENO: result: none needed" >&5
2856 echo "${ECHO_T}none needed" >&6 ;;
2858 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2860 CC="$CC $ac_cv_prog_cc_stdc" ;;
2863 # Some people use a C++ compiler to compile C. Since we use `exit',
2864 # in C++ we need to declare it. In case someone uses the same compiler
2865 # for both compiling C and C++ we need to have the C++ compiler decide
2866 # the declaration of exit, since it's the most demanding environment.
2867 cat >conftest.$ac_ext <<_ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 for ac_declaration in \
2896 'extern "C" void std::exit (int) throw (); using std::exit;' \
2897 'extern "C" void std::exit (int); using std::exit;' \
2898 'extern "C" void exit (int) throw ();' \
2899 'extern "C" void exit (int);' \
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1 >conftest.err
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948 cat >conftest.$ac_ext <<_ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2963 rm -f conftest.$ac_objext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965 (eval $ac_compile) 2>conftest.er1
2967 grep -v '^ *+' conftest.er1 >conftest.err
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -z "$ac_c_werror_flag"
2973 || test ! -s conftest.err'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994 if test -n "$ac_declaration"; then
2995 echo '#ifdef __cplusplus' >>confdefs.h
2996 echo $ac_declaration >>confdefs.h
2997 echo '#endif' >>confdefs.h
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 if test "x$CC" != xcc; then
3013 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3014 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3016 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3017 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3019 set dummy $CC; ac_cc=`echo $2 |
3020 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3021 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 # Make sure it works both with $CC and with simple cc.
3040 # We do the test twice because some compilers refuse to overwrite an
3041 # existing .o file with -o, though they will create one.
3042 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3043 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); };
3054 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3055 if test "x$CC" != xcc; then
3056 # Test first that cc exists at all.
3057 if { ac_try='cc -c conftest.$ac_ext >&5'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3064 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } &&
3069 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); };
3078 # cc exists but doesn't like -o.
3079 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3084 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3089 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3090 echo "$as_me:$LINENO: result: yes" >&5
3091 echo "${ECHO_T}yes" >&6
3093 echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3096 cat >>confdefs.h <<\_ACEOF
3097 #define NO_MINUS_C_MINUS_O 1
3102 # expand $ac_aux_dir to an absolute path
3103 am_aux_dir=`cd $ac_aux_dir && pwd`
3105 # FIXME: we rely on the cache variable name because
3106 # there is no other way.
3108 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3109 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3110 # Losing compiler, so override with the script.
3111 # FIXME: It is wrong to rewrite CC.
3112 # But if we don't then we get into trouble of one sort or another.
3113 # A longer-term fix would be to have automake use am__CC in this case,
3114 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3115 CC="$am_aux_dir/compile $CC"
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3124 echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 if test -n "$GNATBIND"; then
3130 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 GNATBIND=$ac_cv_prog_GNATBIND
3149 if test -n "$GNATBIND"; then
3150 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3151 echo "${ECHO_T}$GNATBIND" >&6
3153 echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3158 if test -z "$ac_cv_prog_GNATBIND"; then
3159 ac_ct_GNATBIND=$GNATBIND
3160 # Extract the first word of "gnatbind", so it can be a program name with args.
3161 set dummy gnatbind; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 if test -n "$ac_ct_GNATBIND"; then
3168 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3187 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3188 if test -n "$ac_ct_GNATBIND"; then
3189 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3190 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3196 GNATBIND=$ac_ct_GNATBIND
3198 GNATBIND="$ac_cv_prog_GNATBIND"
3201 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 if test -n "$GNATMAKE"; then
3210 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 GNATMAKE=$ac_cv_prog_GNATMAKE
3229 if test -n "$GNATMAKE"; then
3230 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3231 echo "${ECHO_T}$GNATMAKE" >&6
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3238 if test -z "$ac_cv_prog_GNATMAKE"; then
3239 ac_ct_GNATMAKE=$GNATMAKE
3240 # Extract the first word of "gnatmake", so it can be a program name with args.
3241 set dummy gnatmake; ac_word=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if test -n "$ac_ct_GNATMAKE"; then
3248 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3267 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3268 if test -n "$ac_ct_GNATMAKE"; then
3269 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3270 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3272 echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3276 GNATMAKE=$ac_ct_GNATMAKE
3278 GNATMAKE="$ac_cv_prog_GNATMAKE"
3281 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3282 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3283 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 cat >conftest.adb <<EOF
3287 procedure conftest is begin null; end conftest;
3289 acx_cv_cc_gcc_supports_ada=no
3290 # There is a bug in old released versions of GCC which causes the
3291 # driver to exit successfully when the appropriate language module
3292 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3293 # Therefore we must check for the error message as well as an
3294 # unsuccessful exit.
3295 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3296 # given a .adb file, but produce no object file. So we must check
3297 # if an object file was really produced to guard against this.
3298 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3299 if test x"$errors" = x && test -f conftest.$ac_objext; then
3300 acx_cv_cc_gcc_supports_ada=yes
3304 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3305 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3307 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3314 # autoconf is lame and doesn't give us any substitution variable for this.
3315 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3316 NO_MINUS_C_MINUS_O=yes
3318 OUTPUT_OPTION='-o $@'
3323 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3324 # optimizations to be activated explicitly by the toplevel.
3326 */prev-gcc/xgcc*) ;;
3327 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3331 # -------------------------
3332 # Check C compiler features
3333 # -------------------------
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3342 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3343 # On Suns, sometimes $CPP names a directory.
3344 if test -n "$CPP" && test -d "$CPP"; then
3347 if test -z "$CPP"; then
3348 if test "${ac_cv_prog_CPP+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 # Double quotes because CPP needs to be expanded
3352 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3355 for ac_c_preproc_warn_flag in '' yes
3357 # Use a header file that comes with gcc, so configuring glibc
3358 # with a fresh cross-compiler works.
3359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 # <limits.h> exists even on freestanding compilers.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp. "Syntax error" is here to catch this case.
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3370 # include <limits.h>
3372 # include <assert.h>
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393 if test -z "$ac_cpp_err"; then
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Broken: fails on valid input.
3402 rm -f conftest.err conftest.$ac_ext
3404 # OK, works on sane cases. Now check whether non-existent headers
3405 # can be detected and how.
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <ac_nonexistent.h>
3414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3442 rm -f conftest.err conftest.$ac_ext
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3459 echo "$as_me:$LINENO: result: $CPP" >&5
3460 echo "${ECHO_T}$CPP" >&6
3462 for ac_c_preproc_warn_flag in '' yes
3464 # Use a header file that comes with gcc, so configuring glibc
3465 # with a fresh cross-compiler works.
3466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 # <limits.h> exists even on freestanding compilers.
3468 # On the NeXT, cc -E runs the code through the compiler's parser,
3469 # not just through cpp. "Syntax error" is here to catch this case.
3470 cat >conftest.$ac_ext <<_ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3477 # include <limits.h>
3479 # include <assert.h>
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null; then
3491 if test -s conftest.err; then
3492 ac_cpp_err=$ac_c_preproc_warn_flag
3493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3500 if test -z "$ac_cpp_err"; then
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Broken: fails on valid input.
3509 rm -f conftest.err conftest.$ac_ext
3511 # OK, works on sane cases. Now check whether non-existent headers
3512 # can be detected and how.
3513 cat >conftest.$ac_ext <<_ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3524 grep -v '^ *+' conftest.er1 >conftest.err
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null; then
3529 if test -s conftest.err; then
3530 ac_cpp_err=$ac_c_preproc_warn_flag
3531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3538 if test -z "$ac_cpp_err"; then
3539 # Broken: success on invalid input.
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 # Passes both tests.
3549 rm -f conftest.err conftest.$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3557 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3558 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&5
3561 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&2;}
3563 { (exit 1); exit 1; }; }; }
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 echo "$as_me:$LINENO: checking for egrep" >&5
3574 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3575 if test "${ac_cv_prog_egrep+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3579 then ac_cv_prog_egrep='grep -E'
3580 else ac_cv_prog_egrep='egrep'
3583 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3584 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3585 EGREP=$ac_cv_prog_egrep
3588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3590 if test "${ac_cv_header_stdc+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_cv_header_stdc=yes
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 ac_cv_header_stdc=no
3641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 if test $ac_cv_header_stdc = yes; then
3644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3655 $EGREP "memchr" >/dev/null 2>&1; then
3658 ac_cv_header_stdc=no
3664 if test $ac_cv_header_stdc = yes; then
3665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3666 cat >conftest.$ac_ext <<_ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3676 $EGREP "free" >/dev/null 2>&1; then
3679 ac_cv_header_stdc=no
3685 if test $ac_cv_header_stdc = yes; then
3686 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3687 if test "$cross_compiling" = yes; then
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3697 #if ((' ' & 0x0FF) == 0x020)
3698 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3699 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3701 # define ISLOWER(c) \
3702 (('a' <= (c) && (c) <= 'i') \
3703 || ('j' <= (c) && (c) <= 'r') \
3704 || ('s' <= (c) && (c) <= 'z'))
3705 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3708 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3713 for (i = 0; i < 256; i++)
3714 if (XOR (islower (i), ISLOWER (i))
3715 || toupper (i) != TOUPPER (i))
3720 rm -f conftest$ac_exeext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722 (eval $ac_link) 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3733 echo "$as_me: program exited with status $ac_status" >&5
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3738 ac_cv_header_stdc=no
3740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3744 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3745 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3746 if test $ac_cv_header_stdc = yes; then
3748 cat >>confdefs.h <<\_ACEOF
3749 #define STDC_HEADERS 1
3754 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3764 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3765 inttypes.h stdint.h unistd.h
3767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3768 echo "$as_me:$LINENO: checking for $ac_header" >&5
3769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 $ac_includes_default
3781 #include <$ac_header>
3783 rm -f conftest.$ac_objext
3784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3787 grep -v '^ *+' conftest.er1 >conftest.err
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 eval "$as_ac_Header=yes"
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3810 eval "$as_ac_Header=no"
3812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817 cat >>confdefs.h <<_ACEOF
3818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3827 if test "${ac_cv_header_minix_config_h+set}" = set; then
3828 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3829 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3830 if test "${ac_cv_header_minix_config_h+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3834 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3836 # Is the header compilable?
3837 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3838 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3839 cat >conftest.$ac_ext <<_ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 $ac_includes_default
3846 #include <minix/config.h>
3848 rm -f conftest.$ac_objext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3852 grep -v '^ *+' conftest.er1 >conftest.err
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -z "$ac_c_werror_flag"
3858 || test ! -s conftest.err'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; } &&
3864 { ac_try='test -s conftest.$ac_objext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 ac_header_compiler=yes
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 ac_header_compiler=no
3877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3879 echo "${ECHO_T}$ac_header_compiler" >&6
3881 # Is the header present?
3882 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3883 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 #include <minix/config.h>
3892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev/null; then
3900 if test -s conftest.err; then
3901 ac_cpp_err=$ac_c_preproc_warn_flag
3902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3909 if test -z "$ac_cpp_err"; then
3910 ac_header_preproc=yes
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_header_preproc=no
3917 rm -f conftest.err conftest.$ac_ext
3918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3919 echo "${ECHO_T}$ac_header_preproc" >&6
3921 # So? What about this header?
3922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3924 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3925 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3926 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3927 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3928 ac_header_preproc=yes
3931 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3932 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3933 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3934 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3936 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3938 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3940 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3941 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3942 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3945 ## ------------------------------------------ ##
3946 ## Report this to the AC_PACKAGE_NAME lists. ##
3947 ## ------------------------------------------ ##
3950 sed "s/^/$as_me: WARNING: /" >&2
3953 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3954 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3955 if test "${ac_cv_header_minix_config_h+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 ac_cv_header_minix_config_h=$ac_header_preproc
3960 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3961 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3964 if test $ac_cv_header_minix_config_h = yes; then
3971 if test "$MINIX" = yes; then
3973 cat >>confdefs.h <<\_ACEOF
3974 #define _POSIX_SOURCE 1
3978 cat >>confdefs.h <<\_ACEOF
3979 #define _POSIX_1_SOURCE 2
3983 cat >>confdefs.h <<\_ACEOF
3991 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3992 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3993 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4003 # define __EXTENSIONS__ 1
4004 $ac_includes_default
4013 rm -f conftest.$ac_objext
4014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>conftest.er1
4017 grep -v '^ *+' conftest.er1 >conftest.err
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -z "$ac_c_werror_flag"
4023 || test ! -s conftest.err'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_cv_safe_to_define___extensions__=yes
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040 ac_cv_safe_to_define___extensions__=no
4042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4044 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4045 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4046 test $ac_cv_safe_to_define___extensions__ = yes &&
4047 cat >>confdefs.h <<\_ACEOF
4048 #define __EXTENSIONS__ 1
4051 cat >>confdefs.h <<\_ACEOF
4052 #define _ALL_SOURCE 1
4055 cat >>confdefs.h <<\_ACEOF
4056 #define _GNU_SOURCE 1
4059 cat >>confdefs.h <<\_ACEOF
4060 #define _POSIX_PTHREAD_SEMANTICS 1
4063 cat >>confdefs.h <<\_ACEOF
4064 #define _TANDEM_SOURCE 1
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4074 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4075 # On Suns, sometimes $CPP names a directory.
4076 if test -n "$CPP" && test -d "$CPP"; then
4079 if test -z "$CPP"; then
4080 if test "${ac_cv_prog_CPP+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 # Double quotes because CPP needs to be expanded
4084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4087 for ac_c_preproc_warn_flag in '' yes
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4102 # include <limits.h>
4104 # include <assert.h>
4108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } >/dev/null; then
4116 if test -s conftest.err; then
4117 ac_cpp_err=$ac_c_preproc_warn_flag
4118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4125 if test -z "$ac_cpp_err"; then
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 # Broken: fails on valid input.
4134 rm -f conftest.err conftest.$ac_ext
4136 # OK, works on sane cases. Now check whether non-existent headers
4137 # can be detected and how.
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <ac_nonexistent.h>
4146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } >/dev/null; then
4154 if test -s conftest.err; then
4155 ac_cpp_err=$ac_c_preproc_warn_flag
4156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4163 if test -z "$ac_cpp_err"; then
4164 # Broken: success on invalid input.
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4170 # Passes both tests.
4174 rm -f conftest.err conftest.$ac_ext
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.err conftest.$ac_ext
4179 if $ac_preproc_ok; then
4191 echo "$as_me:$LINENO: result: $CPP" >&5
4192 echo "${ECHO_T}$CPP" >&6
4194 for ac_c_preproc_warn_flag in '' yes
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 # include <limits.h>
4211 # include <assert.h>
4215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4218 grep -v '^ *+' conftest.er1 >conftest.err
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } >/dev/null; then
4223 if test -s conftest.err; then
4224 ac_cpp_err=$ac_c_preproc_warn_flag
4225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4232 if test -z "$ac_cpp_err"; then
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4238 # Broken: fails on valid input.
4241 rm -f conftest.err conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether non-existent headers
4244 # can be detected and how.
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <ac_nonexistent.h>
4253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4256 grep -v '^ *+' conftest.er1 >conftest.err
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } >/dev/null; then
4261 if test -s conftest.err; then
4262 ac_cpp_err=$ac_c_preproc_warn_flag
4263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4270 if test -z "$ac_cpp_err"; then
4271 # Broken: success on invalid input.
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4277 # Passes both tests.
4281 rm -f conftest.err conftest.$ac_ext
4284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285 rm -f conftest.err conftest.$ac_ext
4286 if $ac_preproc_ok; then
4289 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4290 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4291 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details." >&2;}
4295 { (exit 1); exit 1; }; }; }
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 echo "$as_me:$LINENO: checking for inline" >&5
4305 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4306 if test "${ac_cv_c_inline+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 for ac_kw in inline __inline__ __inline; do
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4319 static $ac_kw foo_t static_foo () {return 0; }
4320 $ac_kw foo_t foo () {return 0; }
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>conftest.er1
4328 grep -v '^ *+' conftest.er1 >conftest.err
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -z "$ac_c_werror_flag"
4334 || test ! -s conftest.err'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_cv_c_inline=$ac_kw; break
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4356 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4357 echo "${ECHO_T}$ac_cv_c_inline" >&6
4360 case $ac_cv_c_inline in
4363 case $ac_cv_c_inline in
4365 *) ac_val=$ac_cv_c_inline;;
4367 cat >>confdefs.h <<_ACEOF
4369 #define inline $ac_val
4376 # sizeof(char) is 1 by definition.
4377 echo "$as_me:$LINENO: checking for void *" >&5
4378 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4379 if test "${ac_cv_type_void_p+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 $ac_includes_default
4394 if (sizeof (void *))
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402 (eval $ac_compile) 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_cv_type_void_p=yes
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 ac_cv_type_void_p=no
4429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4432 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4434 echo "$as_me:$LINENO: checking size of void *" >&5
4435 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4436 if test "${ac_cv_sizeof_void_p+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test "$ac_cv_type_void_p" = yes; then
4440 # The cast to unsigned long works around a bug in the HP C Compiler
4441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4443 # This bug is HP SR number 8606223364.
4444 if test "$cross_compiling" = yes; then
4445 # Depending upon the size, compute the lo and hi bounds.
4446 cat >conftest.$ac_ext <<_ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 $ac_includes_default
4456 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -z "$ac_c_werror_flag"
4473 || test ! -s conftest.err'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4497 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag"
4514 || test ! -s conftest.err'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try='test -s conftest.$ac_objext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_hi=$ac_mid; break
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4531 ac_lo=`expr $ac_mid + 1`
4532 if test $ac_lo -le $ac_mid; then
4536 ac_mid=`expr 2 '*' $ac_mid + 1`
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 $ac_includes_default
4554 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>conftest.er1
4565 grep -v '^ *+' conftest.er1 >conftest.err
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -z "$ac_c_werror_flag"
4571 || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 $ac_includes_default
4595 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_lo=$ac_mid; break
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_hi=`expr '(' $ac_mid ')' - 1`
4630 if test $ac_mid -le $ac_hi; then
4634 ac_mid=`expr 2 '*' $ac_mid`
4636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647 # Binary search between lo and hi bounds.
4648 while test "x$ac_lo" != "x$ac_hi"; do
4649 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4660 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4667 rm -f conftest.$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669 (eval $ac_compile) 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -z "$ac_c_werror_flag"
4677 || test ! -s conftest.err'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4694 ac_lo=`expr '(' $ac_mid ')' + 1`
4696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4700 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4701 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4703 See \`config.log' for more details." >&5
4704 echo "$as_me: error: cannot compute sizeof (void *), 77
4705 See \`config.log' for more details." >&2;}
4706 { (exit 1); exit 1; }; }; } ;;
4709 if test "$cross_compiling" = yes; then
4710 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4711 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4713 See \`config.log' for more details." >&5
4714 echo "$as_me: error: cannot run test program while cross compiling
4715 See \`config.log' for more details." >&2;}
4716 { (exit 1); exit 1; }; }; }
4718 cat >conftest.$ac_ext <<_ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_includes_default
4725 long longval () { return (long) (sizeof (void *)); }
4726 unsigned long ulongval () { return (long) (sizeof (void *)); }
4733 FILE *f = fopen ("conftest.val", "w");
4736 if (((long) (sizeof (void *))) < 0)
4738 long i = longval ();
4739 if (i != ((long) (sizeof (void *))))
4741 fprintf (f, "%ld\n", i);
4745 unsigned long i = ulongval ();
4746 if (i != ((long) (sizeof (void *))))
4748 fprintf (f, "%lu\n", i);
4750 exit (ferror (f) || fclose (f) != 0);
4756 rm -f conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758 (eval $ac_link) 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_cv_sizeof_void_p=`cat conftest.val`
4769 echo "$as_me: program exited with status $ac_status" >&5
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4774 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4775 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4777 See \`config.log' for more details." >&5
4778 echo "$as_me: error: cannot compute sizeof (void *), 77
4779 See \`config.log' for more details." >&2;}
4780 { (exit 1); exit 1; }; }; }
4782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4787 ac_cv_sizeof_void_p=0
4790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4791 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4792 cat >>confdefs.h <<_ACEOF
4793 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4797 echo "$as_me:$LINENO: checking for short" >&5
4798 echo $ECHO_N "checking for short... $ECHO_C" >&6
4799 if test "${ac_cv_type_short+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 cat >conftest.$ac_ext <<_ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 $ac_includes_default
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_c_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 ac_cv_type_short=yes
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4852 echo "${ECHO_T}$ac_cv_type_short" >&6
4854 echo "$as_me:$LINENO: checking size of short" >&5
4855 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4856 if test "${ac_cv_sizeof_short+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 if test "$ac_cv_type_short" = yes; then
4860 # The cast to unsigned long works around a bug in the HP C Compiler
4861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4863 # This bug is HP SR number 8606223364.
4864 if test "$cross_compiling" = yes; then
4865 # Depending upon the size, compute the lo and hi bounds.
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4876 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4917 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4924 rm -f conftest.$ac_objext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926 (eval $ac_compile) 2>conftest.er1
4928 grep -v '^ *+' conftest.er1 >conftest.err
4930 cat conftest.err >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -z "$ac_c_werror_flag"
4934 || test ! -s conftest.err'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_hi=$ac_mid; break
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 ac_lo=`expr $ac_mid + 1`
4952 if test $ac_lo -le $ac_mid; then
4956 ac_mid=`expr 2 '*' $ac_mid + 1`
4958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 cat >conftest.$ac_ext <<_ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 $ac_includes_default
4974 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4985 grep -v '^ *+' conftest.er1 >conftest.err
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -z "$ac_c_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5015 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5022 rm -f conftest.$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5026 grep -v '^ *+' conftest.er1 >conftest.err
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_lo=$ac_mid; break
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 ac_hi=`expr '(' $ac_mid ')' - 1`
5050 if test $ac_mid -le $ac_hi; then
5054 ac_mid=`expr 2 '*' $ac_mid`
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5067 # Binary search between lo and hi bounds.
5068 while test "x$ac_lo" != "x$ac_hi"; do
5069 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5080 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>conftest.er1
5091 grep -v '^ *+' conftest.er1 >conftest.err
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_c_werror_flag"
5097 || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_lo=`expr '(' $ac_mid ')' + 1`
5116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119 ?*) ac_cv_sizeof_short=$ac_lo;;
5120 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5121 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: cannot compute sizeof (short), 77
5125 See \`config.log' for more details." >&2;}
5126 { (exit 1); exit 1; }; }; } ;;
5129 if test "$cross_compiling" = yes; then
5130 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5131 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5133 See \`config.log' for more details." >&5
5134 echo "$as_me: error: cannot run test program while cross compiling
5135 See \`config.log' for more details." >&2;}
5136 { (exit 1); exit 1; }; }; }
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 $ac_includes_default
5145 long longval () { return (long) (sizeof (short)); }
5146 unsigned long ulongval () { return (long) (sizeof (short)); }
5153 FILE *f = fopen ("conftest.val", "w");
5156 if (((long) (sizeof (short))) < 0)
5158 long i = longval ();
5159 if (i != ((long) (sizeof (short))))
5161 fprintf (f, "%ld\n", i);
5165 unsigned long i = ulongval ();
5166 if (i != ((long) (sizeof (short))))
5168 fprintf (f, "%lu\n", i);
5170 exit (ferror (f) || fclose (f) != 0);
5176 rm -f conftest$ac_exeext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178 (eval $ac_link) 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 ac_cv_sizeof_short=`cat conftest.val`
5189 echo "$as_me: program exited with status $ac_status" >&5
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5194 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5195 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5196 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5197 See \`config.log' for more details." >&5
5198 echo "$as_me: error: cannot compute sizeof (short), 77
5199 See \`config.log' for more details." >&2;}
5200 { (exit 1); exit 1; }; }; }
5202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5207 ac_cv_sizeof_short=0
5210 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5211 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5212 cat >>confdefs.h <<_ACEOF
5213 #define SIZEOF_SHORT $ac_cv_sizeof_short
5217 echo "$as_me:$LINENO: checking for int" >&5
5218 echo $ECHO_N "checking for int... $ECHO_C" >&6
5219 if test "${ac_cv_type_int+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 cat >conftest.$ac_ext <<_ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5228 $ac_includes_default
5240 rm -f conftest.$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242 (eval $ac_compile) 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try='test -s conftest.$ac_objext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5271 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5272 echo "${ECHO_T}$ac_cv_type_int" >&6
5274 echo "$as_me:$LINENO: checking size of int" >&5
5275 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5276 if test "${ac_cv_sizeof_int+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test "$ac_cv_type_int" = yes; then
5280 # The cast to unsigned long works around a bug in the HP C Compiler
5281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5283 # This bug is HP SR number 8606223364.
5284 if test "$cross_compiling" = yes; then
5285 # Depending upon the size, compute the lo and hi bounds.
5286 cat >conftest.$ac_ext <<_ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 $ac_includes_default
5296 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5303 rm -f conftest.$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>conftest.er1
5307 grep -v '^ *+' conftest.er1 >conftest.err
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try='test -z "$ac_c_werror_flag"
5313 || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5327 cat >conftest.$ac_ext <<_ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 $ac_includes_default
5337 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5344 rm -f conftest.$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>conftest.er1
5348 grep -v '^ *+' conftest.er1 >conftest.err
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -z "$ac_c_werror_flag"
5354 || test ! -s conftest.err'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; } &&
5360 { ac_try='test -s conftest.$ac_objext'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5366 ac_hi=$ac_mid; break
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5371 ac_lo=`expr $ac_mid + 1`
5372 if test $ac_lo -le $ac_mid; then
5376 ac_mid=`expr 2 '*' $ac_mid + 1`
5378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 cat >conftest.$ac_ext <<_ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 $ac_includes_default
5394 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>conftest.er1
5405 grep -v '^ *+' conftest.er1 >conftest.err
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 $ac_includes_default
5435 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>conftest.er1
5446 grep -v '^ *+' conftest.er1 >conftest.err
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -z "$ac_c_werror_flag"
5452 || test ! -s conftest.err'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 ac_lo=$ac_mid; break
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 ac_hi=`expr '(' $ac_mid ')' - 1`
5470 if test $ac_mid -le $ac_hi; then
5474 ac_mid=`expr 2 '*' $ac_mid`
5476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487 # Binary search between lo and hi bounds.
5488 while test "x$ac_lo" != "x$ac_hi"; do
5489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5490 cat >conftest.$ac_ext <<_ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5500 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5507 rm -f conftest.$ac_objext
5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509 (eval $ac_compile) 2>conftest.er1
5511 grep -v '^ *+' conftest.er1 >conftest.err
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } &&
5516 { ac_try='test -z "$ac_c_werror_flag"
5517 || test ! -s conftest.err'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; } &&
5523 { ac_try='test -s conftest.$ac_objext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 ac_lo=`expr '(' $ac_mid ')' + 1`
5536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5539 ?*) ac_cv_sizeof_int=$ac_lo;;
5540 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5541 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5543 See \`config.log' for more details." >&5
5544 echo "$as_me: error: cannot compute sizeof (int), 77
5545 See \`config.log' for more details." >&2;}
5546 { (exit 1); exit 1; }; }; } ;;
5549 if test "$cross_compiling" = yes; then
5550 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5551 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5552 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5553 See \`config.log' for more details." >&5
5554 echo "$as_me: error: cannot run test program while cross compiling
5555 See \`config.log' for more details." >&2;}
5556 { (exit 1); exit 1; }; }; }
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 $ac_includes_default
5565 long longval () { return (long) (sizeof (int)); }
5566 unsigned long ulongval () { return (long) (sizeof (int)); }
5573 FILE *f = fopen ("conftest.val", "w");
5576 if (((long) (sizeof (int))) < 0)
5578 long i = longval ();
5579 if (i != ((long) (sizeof (int))))
5581 fprintf (f, "%ld\n", i);
5585 unsigned long i = ulongval ();
5586 if (i != ((long) (sizeof (int))))
5588 fprintf (f, "%lu\n", i);
5590 exit (ferror (f) || fclose (f) != 0);
5596 rm -f conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_sizeof_int=`cat conftest.val`
5609 echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5614 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5615 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5617 See \`config.log' for more details." >&5
5618 echo "$as_me: error: cannot compute sizeof (int), 77
5619 See \`config.log' for more details." >&2;}
5620 { (exit 1); exit 1; }; }; }
5622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5631 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5632 cat >>confdefs.h <<_ACEOF
5633 #define SIZEOF_INT $ac_cv_sizeof_int
5637 echo "$as_me:$LINENO: checking for long" >&5
5638 echo $ECHO_N "checking for long... $ECHO_C" >&6
5639 if test "${ac_cv_type_long+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag"
5670 || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5692 echo "${ECHO_T}$ac_cv_type_long" >&6
5694 echo "$as_me:$LINENO: checking size of long" >&5
5695 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5696 if test "${ac_cv_sizeof_long+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 if test "$ac_cv_type_long" = yes; then
5700 # The cast to unsigned long works around a bug in the HP C Compiler
5701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5703 # This bug is HP SR number 8606223364.
5704 if test "$cross_compiling" = yes; then
5705 # Depending upon the size, compute the lo and hi bounds.
5706 cat >conftest.$ac_ext <<_ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 $ac_includes_default
5716 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5723 rm -f conftest.$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_c_werror_flag"
5733 || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 $ac_includes_default
5757 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_hi=$ac_mid; break
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_lo=`expr $ac_mid + 1`
5792 if test $ac_lo -le $ac_mid; then
5796 ac_mid=`expr 2 '*' $ac_mid + 1`
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 cat >conftest.$ac_ext <<_ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5814 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 $ac_includes_default
5855 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5866 grep -v '^ *+' conftest.er1 >conftest.err
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_lo=$ac_mid; break
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 ac_hi=`expr '(' $ac_mid ')' - 1`
5890 if test $ac_mid -le $ac_hi; then
5894 ac_mid=`expr 2 '*' $ac_mid`
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907 # Binary search between lo and hi bounds.
5908 while test "x$ac_lo" != "x$ac_hi"; do
5909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5920 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5927 rm -f conftest.$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>conftest.er1
5931 grep -v '^ *+' conftest.er1 >conftest.err
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5954 ac_lo=`expr '(' $ac_mid ')' + 1`
5956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 ?*) ac_cv_sizeof_long=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5961 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5963 See \`config.log' for more details." >&5
5964 echo "$as_me: error: cannot compute sizeof (long), 77
5965 See \`config.log' for more details." >&2;}
5966 { (exit 1); exit 1; }; }; } ;;
5969 if test "$cross_compiling" = yes; then
5970 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5971 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5972 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5973 See \`config.log' for more details." >&5
5974 echo "$as_me: error: cannot run test program while cross compiling
5975 See \`config.log' for more details." >&2;}
5976 { (exit 1); exit 1; }; }; }
5978 cat >conftest.$ac_ext <<_ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 $ac_includes_default
5985 long longval () { return (long) (sizeof (long)); }
5986 unsigned long ulongval () { return (long) (sizeof (long)); }
5993 FILE *f = fopen ("conftest.val", "w");
5996 if (((long) (sizeof (long))) < 0)
5998 long i = longval ();
5999 if (i != ((long) (sizeof (long))))
6001 fprintf (f, "%ld\n", i);
6005 unsigned long i = ulongval ();
6006 if (i != ((long) (sizeof (long))))
6008 fprintf (f, "%lu\n", i);
6010 exit (ferror (f) || fclose (f) != 0);
6016 rm -f conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_sizeof_long=`cat conftest.val`
6029 echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6034 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6035 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6037 See \`config.log' for more details." >&5
6038 echo "$as_me: error: cannot compute sizeof (long), 77
6039 See \`config.log' for more details." >&2;}
6040 { (exit 1); exit 1; }; }; }
6042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6050 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6051 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6052 cat >>confdefs.h <<_ACEOF
6053 #define SIZEOF_LONG $ac_cv_sizeof_long
6057 echo "$as_me:$LINENO: checking for long long" >&5
6058 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6059 if test "${ac_cv_type_long_long+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 cat >conftest.$ac_ext <<_ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 $ac_includes_default
6072 if ((long long *) 0)
6074 if (sizeof (long long))
6080 rm -f conftest.$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082 (eval $ac_compile) 2>conftest.er1
6084 grep -v '^ *+' conftest.er1 >conftest.err
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -z "$ac_c_werror_flag"
6090 || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_type_long_long=yes
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6107 ac_cv_type_long_long=no
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6111 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6112 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6113 if test $ac_cv_type_long_long = yes; then
6115 cat >>confdefs.h <<_ACEOF
6116 #define HAVE_LONG_LONG 1
6119 echo "$as_me:$LINENO: checking for long long" >&5
6120 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6121 if test "${ac_cv_type_long_long+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6134 if ((long long *) 0)
6136 if (sizeof (long long))
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_type_long_long=yes
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ac_cv_type_long_long=no
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6174 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6176 echo "$as_me:$LINENO: checking size of long long" >&5
6177 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6178 if test "${ac_cv_sizeof_long_long+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test "$ac_cv_type_long_long" = yes; then
6182 # The cast to unsigned long works around a bug in the HP C Compiler
6183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6185 # This bug is HP SR number 8606223364.
6186 if test "$cross_compiling" = yes; then
6187 # Depending upon the size, compute the lo and hi bounds.
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 $ac_includes_default
6198 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6205 rm -f conftest.$ac_objext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest.$ac_objext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6239 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6250 grep -v '^ *+' conftest.er1 >conftest.err
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_hi=$ac_mid; break
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_lo=`expr $ac_mid + 1`
6274 if test $ac_lo -le $ac_mid; then
6278 ac_mid=`expr 2 '*' $ac_mid + 1`
6280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 $ac_includes_default
6296 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6303 rm -f conftest.$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag"
6313 || test ! -s conftest.err'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 $ac_includes_default
6337 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -z "$ac_c_werror_flag"
6354 || test ! -s conftest.err'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; } &&
6360 { ac_try='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 ac_lo=$ac_mid; break
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 ac_hi=`expr '(' $ac_mid ')' - 1`
6372 if test $ac_mid -le $ac_hi; then
6376 ac_mid=`expr 2 '*' $ac_mid`
6378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6389 # Binary search between lo and hi bounds.
6390 while test "x$ac_lo" != "x$ac_hi"; do
6391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 $ac_includes_default
6402 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_c_werror_flag"
6419 || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 ac_lo=`expr '(' $ac_mid ')' + 1`
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6442 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6443 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6445 See \`config.log' for more details." >&5
6446 echo "$as_me: error: cannot compute sizeof (long long), 77
6447 See \`config.log' for more details." >&2;}
6448 { (exit 1); exit 1; }; }; } ;;
6451 if test "$cross_compiling" = yes; then
6452 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6453 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6454 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6455 See \`config.log' for more details." >&5
6456 echo "$as_me: error: cannot run test program while cross compiling
6457 See \`config.log' for more details." >&2;}
6458 { (exit 1); exit 1; }; }; }
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_includes_default
6467 long longval () { return (long) (sizeof (long long)); }
6468 unsigned long ulongval () { return (long) (sizeof (long long)); }
6475 FILE *f = fopen ("conftest.val", "w");
6478 if (((long) (sizeof (long long))) < 0)
6480 long i = longval ();
6481 if (i != ((long) (sizeof (long long))))
6483 fprintf (f, "%ld\n", i);
6487 unsigned long i = ulongval ();
6488 if (i != ((long) (sizeof (long long))))
6490 fprintf (f, "%lu\n", i);
6492 exit (ferror (f) || fclose (f) != 0);
6498 rm -f conftest$ac_exeext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500 (eval $ac_link) 2>&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_sizeof_long_long=`cat conftest.val`
6511 echo "$as_me: program exited with status $ac_status" >&5
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6516 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6517 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6519 See \`config.log' for more details." >&5
6520 echo "$as_me: error: cannot compute sizeof (long long), 77
6521 See \`config.log' for more details." >&2;}
6522 { (exit 1); exit 1; }; }; }
6524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6529 ac_cv_sizeof_long_long=0
6532 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6533 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6534 cat >>confdefs.h <<_ACEOF
6535 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6541 echo "$as_me:$LINENO: checking for __int64" >&5
6542 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6543 if test "${ac_cv_type___int64+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6558 if (sizeof (__int64))
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566 (eval $ac_compile) 2>conftest.er1
6568 grep -v '^ *+' conftest.er1 >conftest.err
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -z "$ac_c_werror_flag"
6574 || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try='test -s conftest.$ac_objext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 ac_cv_type___int64=yes
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 ac_cv_type___int64=no
6593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6596 echo "${ECHO_T}$ac_cv_type___int64" >&6
6597 if test $ac_cv_type___int64 = yes; then
6599 cat >>confdefs.h <<_ACEOF
6600 #define HAVE___INT64 1
6603 echo "$as_me:$LINENO: checking for __int64" >&5
6604 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6605 if test "${ac_cv_type___int64+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 cat >conftest.$ac_ext <<_ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 $ac_includes_default
6620 if (sizeof (__int64))
6626 rm -f conftest.$ac_objext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628 (eval $ac_compile) 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag"
6636 || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest.$ac_objext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_type___int64=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 ac_cv_type___int64=no
6655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6657 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6658 echo "${ECHO_T}$ac_cv_type___int64" >&6
6660 echo "$as_me:$LINENO: checking size of __int64" >&5
6661 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6662 if test "${ac_cv_sizeof___int64+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 if test "$ac_cv_type___int64" = yes; then
6666 # The cast to unsigned long works around a bug in the HP C Compiler
6667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6669 # This bug is HP SR number 8606223364.
6670 if test "$cross_compiling" = yes; then
6671 # Depending upon the size, compute the lo and hi bounds.
6672 cat >conftest.$ac_ext <<_ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 $ac_includes_default
6682 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>conftest.er1
6693 grep -v '^ *+' conftest.er1 >conftest.err
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_c_werror_flag"
6699 || test ! -s conftest.err'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6713 cat >conftest.$ac_ext <<_ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 $ac_includes_default
6723 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6730 rm -f conftest.$ac_objext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6732 (eval $ac_compile) 2>conftest.er1
6734 grep -v '^ *+' conftest.er1 >conftest.err
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try='test -z "$ac_c_werror_flag"
6740 || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } &&
6746 { ac_try='test -s conftest.$ac_objext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_hi=$ac_mid; break
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6757 ac_lo=`expr $ac_mid + 1`
6758 if test $ac_lo -le $ac_mid; then
6762 ac_mid=`expr 2 '*' $ac_mid + 1`
6764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6770 cat >conftest.$ac_ext <<_ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6776 $ac_includes_default
6780 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6787 rm -f conftest.$ac_objext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789 (eval $ac_compile) 2>conftest.er1
6791 grep -v '^ *+' conftest.er1 >conftest.err
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 $ac_includes_default
6821 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6828 rm -f conftest.$ac_objext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6830 (eval $ac_compile) 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -z "$ac_c_werror_flag"
6838 || test ! -s conftest.err'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try='test -s conftest.$ac_objext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_lo=$ac_mid; break
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 ac_hi=`expr '(' $ac_mid ')' - 1`
6856 if test $ac_mid -le $ac_hi; then
6860 ac_mid=`expr 2 '*' $ac_mid`
6862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6873 # Binary search between lo and hi bounds.
6874 while test "x$ac_lo" != "x$ac_hi"; do
6875 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 $ac_includes_default
6886 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6893 rm -f conftest.$ac_objext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>conftest.er1
6897 grep -v '^ *+' conftest.er1 >conftest.err
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest.$ac_objext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_lo=`expr '(' $ac_mid ')' + 1`
6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925 ?*) ac_cv_sizeof___int64=$ac_lo;;
6926 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6927 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6929 See \`config.log' for more details." >&5
6930 echo "$as_me: error: cannot compute sizeof (__int64), 77
6931 See \`config.log' for more details." >&2;}
6932 { (exit 1); exit 1; }; }; } ;;
6935 if test "$cross_compiling" = yes; then
6936 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6937 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6938 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6939 See \`config.log' for more details." >&5
6940 echo "$as_me: error: cannot run test program while cross compiling
6941 See \`config.log' for more details." >&2;}
6942 { (exit 1); exit 1; }; }; }
6944 cat >conftest.$ac_ext <<_ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6951 long longval () { return (long) (sizeof (__int64)); }
6952 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6959 FILE *f = fopen ("conftest.val", "w");
6962 if (((long) (sizeof (__int64))) < 0)
6964 long i = longval ();
6965 if (i != ((long) (sizeof (__int64))))
6967 fprintf (f, "%ld\n", i);
6971 unsigned long i = ulongval ();
6972 if (i != ((long) (sizeof (__int64))))
6974 fprintf (f, "%lu\n", i);
6976 exit (ferror (f) || fclose (f) != 0);
6982 rm -f conftest$ac_exeext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984 (eval $ac_link) 2>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_cv_sizeof___int64=`cat conftest.val`
6995 echo "$as_me: program exited with status $ac_status" >&5
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
7000 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7001 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7002 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7003 See \`config.log' for more details." >&5
7004 echo "$as_me: error: cannot compute sizeof (__int64), 77
7005 See \`config.log' for more details." >&2;}
7006 { (exit 1); exit 1; }; }; }
7008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7013 ac_cv_sizeof___int64=0
7016 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7017 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7018 cat >>confdefs.h <<_ACEOF
7019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7026 # ---------------------
7027 # Warnings and checking
7028 # ---------------------
7030 # Check $CC warning features (if it's GCC).
7031 # We want to use -pedantic, but we don't want warnings about
7034 # * overlong strings
7035 # So, we only use -pedantic if we can disable those warnings.
7038 save_CFLAGS="$CFLAGS"
7039 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
7040 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7042 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7043 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7044 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 cat >conftest.$ac_ext <<_ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7063 rm -f conftest.$ac_objext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 (eval $ac_compile) 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -z "$ac_c_werror_flag"
7073 || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 eval "$as_acx_Woption=yes"
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 eval "$as_acx_Woption=no"
7092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7096 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7097 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7098 loose_warn="$loose_warn${loose_warn:+ }$option"
7102 CFLAGS="$save_CFLAGS"
7105 save_CFLAGS="$CFLAGS"
7106 for option in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
7107 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7109 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7110 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7111 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7130 rm -f conftest.$ac_objext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132 (eval $ac_compile) 2>conftest.er1
7134 grep -v '^ *+' conftest.er1 >conftest.err
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
7139 { ac_try='test -z "$ac_c_werror_flag"
7140 || test ! -s conftest.err'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; } &&
7146 { ac_try='test -s conftest.$ac_objext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 eval "$as_acx_Woption=yes"
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7157 eval "$as_acx_Woption=no"
7159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7162 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7163 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7164 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7165 strict_warn="$strict_warn${strict_warn:+ }$option"
7169 CFLAGS="$save_CFLAGS"
7171 if test "$GCC" = yes; then
7172 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7173 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7174 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 save_CFLAGS="$CFLAGS"
7178 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7179 cat >conftest.$ac_ext <<_ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try='test -s conftest.$ac_objext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
7223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7224 CFLAGS="$save_CFLAGS"
7226 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7227 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7228 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7229 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7236 # Check whether --enable-werror-always or --disable-werror-always was given.
7237 if test "${enable_werror_always+set}" = set; then
7238 enableval="$enable_werror_always"
7241 enable_werror_always=no
7243 if test $enable_werror_always = yes; then
7244 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7250 # The above macros do nothing if the compiler is not GCC. However, the
7251 # Makefile has more goo to add other flags, so this variabl is used to
7252 # enables warnings only for GCC.
7254 if test "x$GCC" = "xyes"; then
7255 warn_cflags='$(GCC_WARN_CFLAGS)'
7259 # Enable expensive internal checks
7261 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7265 # Check whether --enable-checking or --disable-checking was given.
7266 if test "${enable_checking+set}" = set; then
7267 enableval="$enable_checking"
7268 ac_checking_flags="${enableval}"
7271 # Determine the default checks.
7272 if test x$is_release = x ; then
7273 ac_checking_flags=yes
7275 ac_checking_flags=release
7278 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7279 for check in release $ac_checking_flags
7282 # these set all the flags to specific states
7283 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7284 ac_fold_checking= ; ac_gc_checking=1 ;
7285 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7286 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7287 ac_tree_checking=1 ; ac_valgrind_checking= ;
7288 ac_types_checking=1 ;;
7289 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7290 ac_fold_checking= ; ac_gc_checking= ;
7291 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7292 ac_rtlflag_checking= ; ac_runtime_checking= ;
7293 ac_tree_checking= ; ac_valgrind_checking= ;
7294 ac_types_checking= ;;
7295 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7296 ac_fold_checking=1 ; ac_gc_checking=1 ;
7297 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7298 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7299 ac_tree_checking=1 ; ac_valgrind_checking= ;
7300 ac_types_checking=1 ;;
7301 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7302 ac_fold_checking= ; ac_gc_checking= ;
7303 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7304 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7305 ac_tree_checking= ; ac_valgrind_checking= ;
7306 ac_types_checking= ;;
7307 # these enable particular checks
7308 assert) ac_assert_checking=1 ;;
7309 df) ac_df_checking=1 ;;
7310 fold) ac_fold_checking=1 ;;
7311 gc) ac_gc_checking=1 ;;
7312 gcac) ac_gc_always_collect=1 ;;
7313 gimple) ac_gimple_checking=1 ;;
7314 misc) ac_checking=1 ;;
7315 rtl) ac_rtl_checking=1 ;;
7316 rtlflag) ac_rtlflag_checking=1 ;;
7317 runtime) ac_runtime_checking=1 ;;
7318 tree) ac_tree_checking=1 ;;
7319 types) ac_types_checking=1 ;;
7320 valgrind) ac_valgrind_checking=1 ;;
7321 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7322 echo "$as_me: error: unknown check category $check" >&2;}
7323 { (exit 1); exit 1; }; } ;;
7329 if test x$ac_checking != x ; then
7331 cat >>confdefs.h <<\_ACEOF
7332 #define ENABLE_CHECKING 1
7335 nocommon_flag=-fno-common
7338 if test x$ac_df_checking != x ; then
7340 cat >>confdefs.h <<\_ACEOF
7341 #define ENABLE_DF_CHECKING 1
7345 if test x$ac_assert_checking != x ; then
7347 cat >>confdefs.h <<\_ACEOF
7348 #define ENABLE_ASSERT_CHECKING 1
7352 if test x$ac_gimple_checking != x ; then
7354 cat >>confdefs.h <<\_ACEOF
7355 #define ENABLE_GIMPLE_CHECKING 1
7360 if test x$ac_runtime_checking != x ; then
7362 cat >>confdefs.h <<\_ACEOF
7363 #define ENABLE_RUNTIME_CHECKING 1
7367 if test x$ac_tree_checking != x ; then
7369 cat >>confdefs.h <<\_ACEOF
7370 #define ENABLE_TREE_CHECKING 1
7373 TREEBROWSER=tree-browser.o
7375 if test x$ac_types_checking != x ; then
7377 cat >>confdefs.h <<\_ACEOF
7378 #define ENABLE_TYPES_CHECKING 1
7383 if test x$ac_rtl_checking != x ; then
7385 cat >>confdefs.h <<\_ACEOF
7386 #define ENABLE_RTL_CHECKING 1
7390 if test x$ac_rtlflag_checking != x ; then
7392 cat >>confdefs.h <<\_ACEOF
7393 #define ENABLE_RTL_FLAG_CHECKING 1
7397 if test x$ac_gc_checking != x ; then
7399 cat >>confdefs.h <<\_ACEOF
7400 #define ENABLE_GC_CHECKING 1
7404 if test x$ac_gc_always_collect != x ; then
7406 cat >>confdefs.h <<\_ACEOF
7407 #define ENABLE_GC_ALWAYS_COLLECT 1
7411 if test x$ac_fold_checking != x ; then
7413 cat >>confdefs.h <<\_ACEOF
7414 #define ENABLE_FOLD_CHECKING 1
7418 valgrind_path_defines=
7421 if test "${ac_cv_header_valgrind_h+set}" = set; then
7422 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7423 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7424 if test "${ac_cv_header_valgrind_h+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7428 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7430 # Is the header compilable?
7431 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7432 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7440 #include <valgrind.h>
7442 rm -f conftest.$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7446 grep -v '^ *+' conftest.er1 >conftest.err
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_header_compiler=yes
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 ac_header_compiler=no
7471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7473 echo "${ECHO_T}$ac_header_compiler" >&6
7475 # Is the header present?
7476 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7477 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <valgrind.h>
7486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } >/dev/null; then
7494 if test -s conftest.err; then
7495 ac_cpp_err=$ac_c_preproc_warn_flag
7496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7503 if test -z "$ac_cpp_err"; then
7504 ac_header_preproc=yes
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_header_preproc=no
7511 rm -f conftest.err conftest.$ac_ext
7512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7513 echo "${ECHO_T}$ac_header_preproc" >&6
7515 # So? What about this header?
7516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7518 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7519 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7521 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7522 ac_header_preproc=yes
7525 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7526 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7528 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7530 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7532 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7534 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7536 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7539 ## ------------------------------------------ ##
7540 ## Report this to the AC_PACKAGE_NAME lists. ##
7541 ## ------------------------------------------ ##
7544 sed "s/^/$as_me: WARNING: /" >&2
7547 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7548 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7549 if test "${ac_cv_header_valgrind_h+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_header_valgrind_h=$ac_header_preproc
7554 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7555 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7558 if test $ac_cv_header_valgrind_h = yes; then
7566 if test x$ac_valgrind_checking != x ; then
7567 # It is certainly possible that there's valgrind but no valgrind.h.
7568 # GCC relies on making annotations so we must have both.
7569 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7570 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7571 cat >conftest.$ac_ext <<_ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7577 #include <valgrind/memcheck.h>
7578 #ifndef VALGRIND_DISCARD
7579 #error VALGRIND_DISCARD not defined
7582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7585 grep -v '^ *+' conftest.er1 >conftest.err
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } >/dev/null; then
7590 if test -s conftest.err; then
7591 ac_cpp_err=$ac_c_preproc_warn_flag
7592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7599 if test -z "$ac_cpp_err"; then
7600 gcc_cv_header_valgrind_memcheck_h=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 gcc_cv_header_valgrind_memcheck_h=no
7607 rm -f conftest.err conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7609 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7610 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7611 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7612 cat >conftest.$ac_ext <<_ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 #include <memcheck.h>
7619 #ifndef VALGRIND_DISCARD
7620 #error VALGRIND_DISCARD not defined
7623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } >/dev/null; then
7631 if test -s conftest.err; then
7632 ac_cpp_err=$ac_c_preproc_warn_flag
7633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7640 if test -z "$ac_cpp_err"; then
7641 gcc_cv_header_memcheck_h=yes
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7646 gcc_cv_header_memcheck_h=no
7648 rm -f conftest.err conftest.$ac_ext
7649 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7650 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7652 # Prepare PATH_SEPARATOR.
7653 # The user is always right.
7654 if test "${PATH_SEPARATOR+set}" != set; then
7655 echo "#! /bin/sh" >conf$$.sh
7656 echo "exit 0" >>conf$$.sh
7658 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7666 # Find out how to test for executable files. Don't use a zero-byte file,
7667 # as systems may use methods other than mode bits to determine executability.
7668 cat >conf$$.file <<_ASEOF
7672 chmod +x conf$$.file
7673 if test -x conf$$.file >/dev/null 2>&1; then
7674 ac_executable_p="test -x"
7676 ac_executable_p="test -f"
7680 # Extract the first word of "valgrind", so it can be a program name with args.
7681 set dummy valgrind; ac_word=$2
7682 echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7684 if test "${ac_cv_path_valgrind_path+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 case "$valgrind_path" in
7689 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7692 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7693 for ac_dir in $PATH; do
7695 test -z "$ac_dir" && ac_dir=.
7696 for ac_exec_ext in '' $ac_executable_extensions; do
7697 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7698 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7699 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7709 valgrind_path="$ac_cv_path_valgrind_path"
7710 if test -n "$valgrind_path"; then
7711 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7712 echo "${ECHO_T}$valgrind_path" >&6
7714 echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6
7718 if test "x$valgrind_path" = "x" \
7719 || (test $have_valgrind_h = no \
7720 && test $gcc_cv_header_memcheck_h = no \
7721 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7722 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7723 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7724 { (exit 1); exit 1; }; }
7726 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7727 valgrind_command="$valgrind_path -q"
7729 cat >>confdefs.h <<\_ACEOF
7730 #define ENABLE_VALGRIND_CHECKING 1
7733 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_VALGRIND_MEMCHECK_H 1
7740 if test $gcc_cv_header_memcheck_h = yes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_MEMCHECK_H 1
7751 # Enable code coverage collection
7752 # Check whether --enable-coverage or --disable-coverage was given.
7753 if test "${enable_coverage+set}" = set; then
7754 enableval="$enable_coverage"
7755 case "${enableval}" in
7757 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7760 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7763 # a.k.a. --disable-coverage
7767 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7768 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7769 { (exit 1); exit 1; }; }
7777 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7778 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7779 enableval="$enable_gather_detailed_mem_stats"
7782 enable_gather_detailed_mem_stats=no
7784 if test x$enable_gather_detailed_mem_stats = xyes ; then
7786 cat >>confdefs.h <<\_ACEOF
7787 #define GATHER_STATISTICS 1
7792 # -------------------------------
7793 # Miscenalleous configure options
7794 # -------------------------------
7798 # Check whether --with-stabs or --without-stabs was given.
7799 if test "${with_stabs+set}" = set; then
7800 withval="$with_stabs"
7806 # Determine whether or not multilibs are enabled.
7807 # Check whether --enable-multilib or --disable-multilib was given.
7808 if test "${enable_multilib+set}" = set; then
7809 enableval="$enable_multilib"
7816 # Enable __cxa_atexit for C++.
7817 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7818 if test "${enable___cxa_atexit+set}" = set; then
7819 enableval="$enable___cxa_atexit"
7823 # Enable C extension for decimal float if target supports it.
7824 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7825 if test "${enable_decimal_float+set}" = set; then
7826 enableval="$enable_decimal_float"
7828 case $enable_decimal_float in
7829 yes | no | bid | dpd) ;;
7830 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7831 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7832 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7833 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7834 { (exit 1); exit 1; }; } ;;
7840 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7841 enable_decimal_float=yes
7844 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7845 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7846 enable_decimal_float=no
7852 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7854 cat >>confdefs.h <<_ACEOF
7855 #define ENABLE_DECIMAL_FLOAT $dfp
7859 # x86's use BID format instead of DPD
7860 case x$enable_decimal_float in
7863 i?86*-*-linux* | x86_64*-*-linux*)
7864 enable_decimal_float=bid
7867 enable_decimal_float=dpd
7872 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7873 # dependency on libdecnumber.
7874 enable_decimal_float=dpd
7879 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7881 cat >>confdefs.h <<_ACEOF
7882 #define ENABLE_DECIMAL_BID_FORMAT $bid
7886 # Enable C extension for fixed-point arithmetic.
7887 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7888 if test "${enable_fixed_point+set}" = set; then
7889 enableval="$enable_fixed_point"
7898 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7899 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7900 enable_fixed_point=no
7903 enable_fixed_point=yes
7908 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7909 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7910 enable_fixed_point=no
7917 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7919 cat >>confdefs.h <<_ACEOF
7920 #define ENABLE_FIXED_POINT $fixedpoint
7925 # Pass with no value to take the default
7926 # Pass with a value to specify a thread package
7927 # Check whether --enable-threads or --disable-threads was given.
7928 if test "${enable_threads+set}" = set; then
7929 enableval="$enable_threads"
7935 # Check whether --enable-tls or --disable-tls was given.
7936 if test "${enable_tls+set}" = set; then
7937 enableval="$enable_tls"
7941 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7942 Valid choices are 'yes' and 'no'." >&5
7943 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7944 Valid choices are 'yes' and 'no'." >&2;}
7945 { (exit 1); exit 1; }; } ;;
7952 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7953 if test "${enable_objc_gc+set}" = set; then
7954 enableval="$enable_objc_gc"
7955 if test x$enable_objc_gc = xno; then
7965 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7966 if test "${with_dwarf2+set}" = set; then
7967 withval="$with_dwarf2"
7968 dwarf2="$with_dwarf2"
7973 # Check whether --enable-shared or --disable-shared was given.
7974 if test "${enable_shared+set}" = set; then
7975 enableval="$enable_shared"
7977 case $enable_shared in
7981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7982 for pkg in $enableval; do
7983 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7997 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7998 if test "${with_build_sysroot+set}" = set; then
7999 withval="$with_build_sysroot"
8004 # Check whether --with-sysroot or --without-sysroot was given.
8005 if test "${with_sysroot+set}" = set; then
8006 withval="$with_sysroot"
8008 case ${with_sysroot} in
8009 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8010 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
8013 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8014 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8016 if test "x$prefix" = xNONE; then
8017 test_prefix=/usr/local
8021 if test "x$exec_prefix" = xNONE; then
8022 test_exec_prefix=$test_prefix
8024 test_exec_prefix=$exec_prefix
8026 case ${TARGET_SYSTEM_ROOT} in
8027 "${test_prefix}"|"${test_prefix}/"*|\
8028 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8029 '${prefix}'|'${prefix}/'*|\
8030 '${exec_prefix}'|'${exec_prefix}/'*)
8031 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8032 TARGET_SYSTEM_ROOT_DEFINE="$t"
8039 TARGET_SYSTEM_ROOT_DEFINE=
8040 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8047 # Build with intermodule optimisations
8048 # Check whether --enable-intermodule or --disable-intermodule was given.
8049 if test "${enable_intermodule+set}" = set; then
8050 enableval="$enable_intermodule"
8051 case ${enable_intermodule} in
8052 yes) onestep="-onestep";;
8062 # Check whether --with-pkgversion or --without-pkgversion was given.
8063 if test "${with_pkgversion+set}" = set; then
8064 withval="$with_pkgversion"
8066 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8067 echo "$as_me: error: package version not specified" >&2;}
8068 { (exit 1); exit 1; }; } ;;
8070 *) PKGVERSION="($withval) " ;;
8080 # Check whether --with-bugurl or --without-bugurl was given.
8081 if test "${with_bugurl+set}" = set; then
8082 withval="$with_bugurl"
8084 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8085 echo "$as_me: error: bug URL not specified" >&2;}
8086 { (exit 1); exit 1; }; } ;;
8089 *) BUGURL="$withval"
8093 BUGURL="http://gcc.gnu.org/bugs.html"
8102 REPORT_BUGS_TO="<$BUGURL>"
8103 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8110 # Sanity check enable_languages in case someone does not run the toplevel
8111 # configure # script.
8112 # Check whether --enable-languages or --disable-languages was given.
8113 if test "${enable_languages+set}" = set; then
8114 enableval="$enable_languages"
8115 case ,${enable_languages}, in
8117 # go safe -- we cannot be much sure without the toplevel
8119 # analysis of which target libs are present and usable
8123 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8124 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8125 { (exit 1); exit 1; }; }
8130 enable_languages=c,${enable_languages}
8137 # Used by documentation targets
8143 # Check whether --with-multilib-list or --without-multilib-list was given.
8144 if test "${with_multilib_list+set}" = set; then
8145 withval="$with_multilib_list"
8148 with_multilib_list=default
8151 # -------------------------
8152 # Checks for other programs
8153 # -------------------------
8155 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8156 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8157 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8158 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 cat >conftest.make <<\_ACEOF
8163 @echo 'ac_maketemp="$(MAKE)"'
8165 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8166 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8167 if test -n "$ac_maketemp"; then
8168 eval ac_cv_prog_make_${ac_make}_set=yes
8170 eval ac_cv_prog_make_${ac_make}_set=no
8174 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8175 echo "$as_me:$LINENO: result: yes" >&5
8176 echo "${ECHO_T}yes" >&6
8179 echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6
8181 SET_MAKE="MAKE=${MAKE-make}"
8185 # Find some useful tools
8186 for ac_prog in gawk mawk nawk awk
8188 # Extract the first word of "$ac_prog", so it can be a program name with args.
8189 set dummy $ac_prog; ac_word=$2
8190 echo "$as_me:$LINENO: checking for $ac_word" >&5
8191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8192 if test "${ac_cv_prog_AWK+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 if test -n "$AWK"; then
8196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205 ac_cv_prog_AWK="$ac_prog"
8206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 if test -n "$AWK"; then
8216 echo "$as_me:$LINENO: result: $AWK" >&5
8217 echo "${ECHO_T}$AWK" >&6
8219 echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6
8223 test -n "$AWK" && break
8226 # We need awk to create options.c and options.h.
8227 # Bail out if it's missing.
8229 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8230 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8231 { (exit 1); exit 1; }; } ;;
8234 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8235 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8236 if test "${gcc_cv_prog_LN_S+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 rm -f conftestdata_t
8240 echo >conftestdata_f
8241 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8243 gcc_cv_prog_LN_S="ln -s"
8245 if ln conftestdata_f conftestdata_t 2>/dev/null
8249 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8251 gcc_cv_prog_LN_S="cp -p"
8257 rm -f conftestdata_f conftestdata_t
8260 LN_S="$gcc_cv_prog_LN_S"
8261 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8262 echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8265 if test "$gcc_cv_prog_LN_S" = "ln"; then
8266 echo "$as_me:$LINENO: result: no, using ln" >&5
8267 echo "${ECHO_T}no, using ln" >&6
8269 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8270 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8274 echo "$as_me:$LINENO: checking whether ln works" >&5
8275 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8276 if test "${acx_cv_prog_LN+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 rm -f conftestdata_t
8280 echo >conftestdata_f
8281 if ln conftestdata_f conftestdata_t 2>/dev/null
8287 rm -f conftestdata_f conftestdata_t
8290 if test $acx_cv_prog_LN = no; then
8292 echo "$as_me:$LINENO: result: no, using $LN" >&5
8293 echo "${ECHO_T}no, using $LN" >&6
8295 LN="$acx_cv_prog_LN"
8296 echo "$as_me:$LINENO: result: yes" >&5
8297 echo "${ECHO_T}yes" >&6
8300 if test -n "$ac_tool_prefix"; then
8301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8303 echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8305 if test "${ac_cv_prog_RANLIB+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 if test -n "$RANLIB"; then
8309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 RANLIB=$ac_cv_prog_RANLIB
8328 if test -n "$RANLIB"; then
8329 echo "$as_me:$LINENO: result: $RANLIB" >&5
8330 echo "${ECHO_T}$RANLIB" >&6
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8337 if test -z "$ac_cv_prog_RANLIB"; then
8338 ac_ct_RANLIB=$RANLIB
8339 # Extract the first word of "ranlib", so it can be a program name with args.
8340 set dummy ranlib; ac_word=$2
8341 echo "$as_me:$LINENO: checking for $ac_word" >&5
8342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 if test -n "$ac_ct_RANLIB"; then
8347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356 ac_cv_prog_ac_ct_RANLIB="ranlib"
8357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8367 if test -n "$ac_ct_RANLIB"; then
8368 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8369 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8371 echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6
8375 RANLIB=$ac_ct_RANLIB
8377 RANLIB="$ac_cv_prog_RANLIB"
8382 # By default, the Darwin ranlib will not treat common symbols as
8383 # definitions when building the archive table of contents. Other
8384 # ranlibs do that; pass an option to the Darwin ranlib that makes
8385 # it behave similarly.
8393 # Find a good install program. We prefer a C program (faster),
8394 # so one script is as good as another. But avoid the broken or
8395 # incompatible versions:
8396 # SysV /etc/install, /usr/sbin/install
8397 # SunOS /usr/etc/install
8398 # IRIX /sbin/install
8400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8402 # ./install, which can be erroneously created by make from ./install.sh.
8403 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8404 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8405 if test -z "$INSTALL"; then
8406 if test "${ac_cv_path_install+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8410 for ac_dir in $PATH; do
8411 # Account for people who put trailing slashes in PATH elements.
8413 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8415 # OSF1 and SCO ODT 3.0 have their own names for install.
8416 for ac_prog in ginstall scoinst install; do
8417 if test -f $ac_dir/$ac_prog; then
8418 if test $ac_prog = install &&
8419 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8420 # AIX install. It has an incompatible calling convention.
8421 # OSF/1 installbsd also uses dspmsg, but is usable.
8424 ac_cv_path_install="$ac_dir/$ac_prog -c"
8435 if test "${ac_cv_path_install+set}" = set; then
8436 INSTALL="$ac_cv_path_install"
8438 # As a last resort, use the slow shell script. We don't cache a
8439 # path for INSTALL within a source directory, because that will
8440 # break other packages using the cache if that directory is
8441 # removed, or if the path is relative.
8442 INSTALL="$ac_install_sh"
8445 echo "$as_me:$LINENO: result: $INSTALL" >&5
8446 echo "${ECHO_T}$INSTALL" >&6
8448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8449 # It thinks the first close brace ends the variable substitution.
8450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8455 # See if cmp has --ignore-initial.
8456 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8457 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8458 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 gcc_cv_prog_cmp_skip=slowcompare
8464 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8465 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8468 gcc_cv_prog_cmp_skip=gnucompare
8471 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8472 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8473 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8476 gcc_cv_prog_cmp_skip=fastcompare
8483 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8484 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8485 make_compare_target=$gcc_cv_prog_cmp_skip
8489 # See if we have the mktemp command.
8490 # Extract the first word of "mktemp", so it can be a program name with args.
8491 set dummy mktemp; ac_word=$2
8492 echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8494 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 if test -n "$have_mktemp_command"; then
8498 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_have_mktemp_command="yes"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8517 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8518 if test -n "$have_mktemp_command"; then
8519 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8520 echo "${ECHO_T}$have_mktemp_command" >&6
8522 echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8527 # See if makeinfo has been installed and is modern enough
8528 # that we can use it.
8530 # Extract the first word of "makeinfo", so it can be a program name with args.
8531 set dummy makeinfo; ac_word=$2
8532 echo "$as_me:$LINENO: checking for $ac_word" >&5
8533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8534 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 if test -n "$MAKEINFO"; then
8538 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_MAKEINFO="makeinfo"
8548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 MAKEINFO=$ac_cv_prog_MAKEINFO
8557 if test -n "$MAKEINFO"; then
8558 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8559 echo "${ECHO_T}$MAKEINFO" >&6
8561 echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6
8565 if test -n "$MAKEINFO"; then
8566 # Found it, now check the version.
8567 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8568 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8569 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8573 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8575 case $ac_prog_version in
8576 '') gcc_cv_prog_makeinfo_modern=no;;
8577 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8578 *) gcc_cv_prog_makeinfo_modern=no;;
8582 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8583 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8585 gcc_cv_prog_makeinfo_modern=no
8587 if test $gcc_cv_prog_makeinfo_modern = no; then
8588 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8591 if test $gcc_cv_prog_makeinfo_modern = no; then
8592 { echo "$as_me:$LINENO: WARNING:
8593 *** Makeinfo is missing or too old.
8594 *** Info documentation will not be built." >&5
8595 echo "$as_me: WARNING:
8596 *** Makeinfo is missing or too old.
8597 *** Info documentation will not be built." >&2;}
8604 # Is pod2man recent enough to regenerate manpages?
8605 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8606 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8607 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8608 echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6
8610 GENERATED_MANPAGES=generated-manpages
8612 echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6
8618 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8623 # Extract the first word of "$ac_prog", so it can be a program name with args.
8624 set dummy $ac_prog; ac_word=$2
8625 echo "$as_me:$LINENO: checking for $ac_word" >&5
8626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8627 if test "${ac_cv_prog_FLEX+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 if test -n "$FLEX"; then
8631 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_FLEX="$ac_prog"
8641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 FLEX=$ac_cv_prog_FLEX
8650 if test -n "$FLEX"; then
8651 echo "$as_me:$LINENO: result: $FLEX" >&5
8652 echo "${ECHO_T}$FLEX" >&6
8654 echo "$as_me:$LINENO: result: no" >&5
8655 echo "${ECHO_T}no" >&6
8658 test -n "$FLEX" && break
8660 test -n "$FLEX" || FLEX="$MISSING flex"
8664 for ac_prog in bison
8666 # Extract the first word of "$ac_prog", so it can be a program name with args.
8667 set dummy $ac_prog; ac_word=$2
8668 echo "$as_me:$LINENO: checking for $ac_word" >&5
8669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8670 if test "${ac_cv_prog_BISON+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 if test -n "$BISON"; then
8674 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8683 ac_cv_prog_BISON="$ac_prog"
8684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 BISON=$ac_cv_prog_BISON
8693 if test -n "$BISON"; then
8694 echo "$as_me:$LINENO: result: $BISON" >&5
8695 echo "${ECHO_T}$BISON" >&6
8697 echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6
8701 test -n "$BISON" && break
8703 test -n "$BISON" || BISON="$MISSING bison"
8706 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8707 # check for build == host before using them.
8710 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8711 && test -d ../binutils ; then
8712 NM='$(objdir)/../binutils/nm-new'
8714 # Extract the first word of "nm", so it can be a program name with args.
8715 set dummy nm; ac_word=$2
8716 echo "$as_me:$LINENO: checking for $ac_word" >&5
8717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8718 if test "${ac_cv_prog_NM+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 if test -n "$NM"; then
8722 ac_cv_prog_NM="$NM" # Let the user override the test.
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8742 if test -n "$NM"; then
8743 echo "$as_me:$LINENO: result: $NM" >&5
8744 echo "${ECHO_T}$NM" >&6
8746 echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6
8753 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8754 && test -d ../binutils ; then
8755 AR='$(objdir)/../binutils/ar'
8757 # Extract the first word of "ar", so it can be a program name with args.
8758 set dummy ar; ac_word=$2
8759 echo "$as_me:$LINENO: checking for $ac_word" >&5
8760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8761 if test "${ac_cv_prog_AR+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 if test -n "$AR"; then
8765 ac_cv_prog_AR="$AR" # Let the user override the test.
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 test -z "$as_dir" && as_dir=.
8772 for ac_exec_ext in '' $ac_executable_extensions; do
8773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8785 if test -n "$AR"; then
8786 echo "$as_me:$LINENO: result: $AR" >&5
8787 echo "${ECHO_T}$AR" >&6
8789 echo "$as_me:$LINENO: result: no" >&5
8790 echo "${ECHO_T}no" >&6
8796 # --------------------
8797 # Checks for C headers
8798 # --------------------
8800 # Need to reject headers which give warnings, so that the -Werror bootstrap
8801 # works later. *sigh* This needs to come before all header checks.
8803 ac_c_preproc_warn_flag=yes
8805 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8806 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8807 if test "${ac_cv_header_stdc+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 cat >conftest.$ac_ext <<_ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8829 rm -f conftest.$ac_objext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831 (eval $ac_compile) 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag"
8839 || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest.$ac_objext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_cv_header_stdc=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_cv_header_stdc=no
8858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860 if test $ac_cv_header_stdc = yes; then
8861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8872 $EGREP "memchr" >/dev/null 2>&1; then
8875 ac_cv_header_stdc=no
8881 if test $ac_cv_header_stdc = yes; then
8882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8893 $EGREP "free" >/dev/null 2>&1; then
8896 ac_cv_header_stdc=no
8902 if test $ac_cv_header_stdc = yes; then
8903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8904 if test "$cross_compiling" = yes; then
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8914 #if ((' ' & 0x0FF) == 0x020)
8915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8918 # define ISLOWER(c) \
8919 (('a' <= (c) && (c) <= 'i') \
8920 || ('j' <= (c) && (c) <= 'r') \
8921 || ('s' <= (c) && (c) <= 'z'))
8922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8930 for (i = 0; i < 256; i++)
8931 if (XOR (islower (i), ISLOWER (i))
8932 || toupper (i) != TOUPPER (i))
8937 rm -f conftest$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8950 echo "$as_me: program exited with status $ac_status" >&5
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8955 ac_cv_header_stdc=no
8957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8961 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8962 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8963 if test $ac_cv_header_stdc = yes; then
8965 cat >>confdefs.h <<\_ACEOF
8966 #define STDC_HEADERS 1
8971 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8972 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8973 if test "${ac_cv_header_time+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 cat >conftest.$ac_ext <<_ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 #include <sys/types.h>
8983 #include <sys/time.h>
8989 if ((struct tm *) 0)
8995 rm -f conftest.$ac_objext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997 (eval $ac_compile) 2>conftest.er1
8999 grep -v '^ *+' conftest.er1 >conftest.err
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try='test -s conftest.$ac_objext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_header_time=yes
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_cv_header_time=no
9024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9026 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9027 echo "${ECHO_T}$ac_cv_header_time" >&6
9028 if test $ac_cv_header_time = yes; then
9030 cat >>confdefs.h <<\_ACEOF
9031 #define TIME_WITH_SYS_TIME 1
9036 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9037 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9038 if test "${gcc_cv_header_string+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 cat >conftest.$ac_ext <<_ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9048 #include <strings.h>
9057 rm -f conftest.$ac_objext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059 (eval $ac_compile) 2>conftest.er1
9061 grep -v '^ *+' conftest.er1 >conftest.err
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -z "$ac_c_werror_flag"
9067 || test ! -s conftest.err'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; } &&
9073 { ac_try='test -s conftest.$ac_objext'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 gcc_cv_header_string=yes
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 gcc_cv_header_string=no
9086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9088 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9089 echo "${ECHO_T}$gcc_cv_header_string" >&6
9090 if test $gcc_cv_header_string = yes; then
9092 cat >>confdefs.h <<\_ACEOF
9093 #define STRING_WITH_STRINGS 1
9098 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 #include <sys/types.h>
9110 #include <sys/wait.h>
9112 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>conftest.er1
9132 grep -v '^ *+' conftest.er1 >conftest.err
9134 cat conftest.err >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -z "$ac_c_werror_flag"
9138 || test ! -s conftest.err'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; } &&
9144 { ac_try='test -s conftest.$ac_objext'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_cv_header_sys_wait_h=yes
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9155 ac_cv_header_sys_wait_h=no
9157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9160 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9161 if test $ac_cv_header_sys_wait_h = yes; then
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_SYS_WAIT_H 1
9191 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9192 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9193 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9194 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 echo "$as_me:$LINENO: checking for $ac_header" >&5
9198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <$ac_header>
9210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9213 grep -v '^ *+' conftest.er1 >conftest.err
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } >/dev/null; then
9218 if test -s conftest.err; then
9219 ac_cpp_err=$ac_c_preproc_warn_flag
9220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9227 if test -z "$ac_cpp_err"; then
9228 eval "$as_ac_Header=yes"
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 eval "$as_ac_Header=no"
9235 rm -f conftest.err conftest.$ac_ext
9237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9240 cat >>confdefs.h <<_ACEOF
9241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9248 # Check for thread headers.
9249 echo "$as_me:$LINENO: checking for thread.h" >&5
9250 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9251 if test "${ac_cv_header_thread_h+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 cat >conftest.$ac_ext <<_ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9265 grep -v '^ *+' conftest.er1 >conftest.err
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } >/dev/null; then
9270 if test -s conftest.err; then
9271 ac_cpp_err=$ac_c_preproc_warn_flag
9272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9279 if test -z "$ac_cpp_err"; then
9280 ac_cv_header_thread_h=yes
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9285 ac_cv_header_thread_h=no
9287 rm -f conftest.err conftest.$ac_ext
9289 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9290 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9291 if test $ac_cv_header_thread_h = yes; then
9297 echo "$as_me:$LINENO: checking for pthread.h" >&5
9298 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9299 if test "${ac_cv_header_pthread_h+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 #include <pthread.h>
9310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } >/dev/null; then
9318 if test -s conftest.err; then
9319 ac_cpp_err=$ac_c_preproc_warn_flag
9320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9327 if test -z "$ac_cpp_err"; then
9328 ac_cv_header_pthread_h=yes
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_cv_header_pthread_h=no
9335 rm -f conftest.err conftest.$ac_ext
9337 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9338 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9339 if test $ac_cv_header_pthread_h = yes; then
9346 # These tests can't be done till we know if we have limits.h.
9347 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9348 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9349 if test "${gcc_cv_decl_char_bit+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 #ifdef HAVE_LIMITS_H
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 $EGREP "found" >/dev/null 2>&1; then
9367 gcc_cv_decl_char_bit=yes
9369 gcc_cv_decl_char_bit=no
9375 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9376 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9377 if test $gcc_cv_decl_char_bit = no; then
9378 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9379 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9380 if test "${gcc_cv_c_nbby+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 while test $i -lt 65; do
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9397 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9398 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9404 rm -f conftest.$ac_objext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406 (eval $ac_compile) 2>conftest.er1
9408 grep -v '^ *+' conftest.er1 >conftest.err
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -z "$ac_c_werror_flag"
9414 || test ! -s conftest.err'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; } &&
9420 { ac_try='test -s conftest.$ac_objext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 gcc_cv_c_nbby=$i; break
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9435 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9438 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9439 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9440 if test $gcc_cv_c_nbby = failed; then
9441 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9442 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9443 { (exit 1); exit 1; }; }
9446 cat >>confdefs.h <<_ACEOF
9447 #define CHAR_BIT $gcc_cv_c_nbby
9452 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9453 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9454 if test "${ac_cv_c_bigendian+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 # See if sys/param.h defines the BYTE_ORDER macro.
9458 cat >conftest.$ac_ext <<_ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 #include <sys/types.h>
9465 #include <sys/param.h>
9470 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 # It does; now see whether it defined to BIG_ENDIAN or not.
9501 cat >conftest.$ac_ext <<_ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 #include <sys/types.h>
9508 #include <sys/param.h>
9513 #if BYTE_ORDER != BIG_ENDIAN
9521 rm -f conftest.$ac_objext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>conftest.er1
9525 grep -v '^ *+' conftest.er1 >conftest.err
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
9530 { ac_try='test -z "$ac_c_werror_flag"
9531 || test ! -s conftest.err'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; } &&
9537 { ac_try='test -s conftest.$ac_objext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 ac_cv_c_bigendian=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_cv_c_bigendian=no
9550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 # It does not; compile a test program.
9556 if test "$cross_compiling" = yes; then
9557 # try to guess the endianness by grepping values into an object file
9558 ac_cv_c_bigendian=unknown
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9566 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9567 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9568 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9569 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9570 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9574 _ascii (); _ebcdic ();
9579 rm -f conftest.$ac_objext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9581 (eval $ac_compile) 2>conftest.er1
9583 grep -v '^ *+' conftest.er1 >conftest.err
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try='test -z "$ac_c_werror_flag"
9589 || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest.$ac_objext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9602 ac_cv_c_bigendian=yes
9604 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9605 if test "$ac_cv_c_bigendian" = unknown; then
9606 ac_cv_c_bigendian=no
9608 # finding both strings is unlikely to happen, but who knows?
9609 ac_cv_c_bigendian=unknown
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9619 cat >conftest.$ac_ext <<_ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9628 /* Are we little or big endian? From Harbison&Steele. */
9632 char c[sizeof (long)];
9635 exit (u.c[sizeof (long) - 1] == 1);
9638 rm -f conftest$ac_exeext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 ac_cv_c_bigendian=no
9651 echo "$as_me: program exited with status $ac_status" >&5
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_cv_c_bigendian=yes
9658 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9663 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9664 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9665 case $ac_cv_c_bigendian in
9668 cat >>confdefs.h <<\_ACEOF
9669 #define WORDS_BIGENDIAN 1
9675 { { echo "$as_me:$LINENO: error: unknown endianness
9676 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9677 echo "$as_me: error: unknown endianness
9678 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9679 { (exit 1); exit 1; }; } ;;
9688 # These libraries may be used by collect2.
9689 # We may need a special search path to get them linked.
9690 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9691 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9692 if test "${gcc_cv_collect2_libs+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 for libs in '' -lld -lmld \
9697 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9698 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9708 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag"
9733 || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 gcc_cv_collect2_libs="$libs"; break
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9751 rm -f conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9755 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9757 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9758 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9759 case $gcc_cv_collect2_libs in
9761 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9765 # When building Ada code on Alpha, we need exc_resume which is usually in
9766 # -lexc. So test for it.
9769 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9770 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9771 if test "${ac_cv_search_exc_resume+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 ac_func_search_save_LIBS=$LIBS
9775 ac_cv_search_exc_resume=no
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9783 /* Override any gcc2 internal prototype to avoid an error. */
9787 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>conftest.er1
9802 grep -v '^ *+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_c_werror_flag"
9808 || test ! -s conftest.err'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_search_exc_resume="none required"
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9826 rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828 if test "$ac_cv_search_exc_resume" = no; then
9829 for ac_lib in exc; do
9830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9838 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_search_exc_resume="-l$ac_lib"
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9882 rm -f conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9886 LIBS=$ac_func_search_save_LIBS
9888 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9889 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9890 if test "$ac_cv_search_exc_resume" != no; then
9891 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9899 # Some systems put ldexp and frexp in libm instead of libc; assume
9900 # they're both in the same place. jcf-dump needs them.
9903 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9904 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9905 if test "${ac_cv_search_ldexp+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 ac_func_search_save_LIBS=$LIBS
9909 ac_cv_search_ldexp=no
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any gcc2 internal prototype to avoid an error. */
9921 /* We use char because int might match the return type of a gcc2
9922 builtin and then its argument prototype would still apply. */
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest$ac_exeext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_search_ldexp="none required"
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9960 rm -f conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 if test "$ac_cv_search_ldexp" = no; then
9964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_search_ldexp="-l$ac_lib"
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10016 rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_func_search_save_LIBS
10022 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10023 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10024 if test "$ac_cv_search_ldexp" != no; then
10025 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10033 # Use <inttypes.h> only if it exists,
10034 # doesn't clash with <sys/types.h>, and declares intmax_t.
10035 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10036 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10037 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #include <sys/types.h>
10047 #include <inttypes.h>
10056 rm -f conftest.$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058 (eval $ac_compile) 2>conftest.er1
10060 grep -v '^ *+' conftest.er1 >conftest.err
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_c_werror_flag"
10066 || test ! -s conftest.err'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest.$ac_objext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 gcc_cv_header_inttypes_h=yes
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 gcc_cv_header_inttypes_h=no
10085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10088 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10089 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10090 if test $gcc_cv_header_inttypes_h = yes; then
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_INTTYPES_H 1
10133 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10134 sysconf strsignal getrusage nl_langinfo \
10135 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10136 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
10138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10139 echo "$as_me:$LINENO: checking for $ac_func" >&5
10140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10141 if eval "test \"\${$as_ac_var+set}\" = set"; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 cat >conftest.$ac_ext <<_ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10152 #define $ac_func innocuous_$ac_func
10154 /* System header to define __stub macros and hopefully few prototypes,
10155 which can conflict with char $ac_func (); below.
10156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10157 <limits.h> exists even on freestanding compilers. */
10160 # include <limits.h>
10162 # include <assert.h>
10167 /* Override any gcc2 internal prototype to avoid an error. */
10172 /* We use char because int might match the return type of a gcc2
10173 builtin and then its argument prototype would still apply. */
10175 /* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10181 char (*f) () = $ac_func;
10190 return f != $ac_func;
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197 (eval $ac_link) 2>conftest.er1
10199 grep -v '^ *+' conftest.er1 >conftest.err
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag"
10205 || test ! -s conftest.err'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest$ac_exeext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 eval "$as_ac_var=yes"
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 eval "$as_ac_var=no"
10224 rm -f conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10229 if test `eval echo '${'$as_ac_var'}'` = yes; then
10230 cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10238 if test x$ac_cv_func_mbstowcs = xyes; then
10239 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10240 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10241 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 if test "$cross_compiling" = yes; then
10245 gcc_cv_func_mbstowcs_works=yes
10247 cat >conftest.$ac_ext <<_ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 #include <stdlib.h>
10256 mbstowcs(0, "", 0);
10260 rm -f conftest$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262 (eval $ac_link) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 gcc_cv_func_mbstowcs_works=yes
10273 echo "$as_me: program exited with status $ac_status" >&5
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ( exit $ac_status )
10278 gcc_cv_func_mbstowcs_works=no
10280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10283 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10284 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10285 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_WORKING_MBSTOWCS 1
10294 echo "$as_me:$LINENO: checking for ssize_t" >&5
10295 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10296 if test "${ac_cv_type_ssize_t+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 cat >conftest.$ac_ext <<_ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 $ac_includes_default
10311 if (sizeof (ssize_t))
10317 rm -f conftest.$ac_objext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>conftest.er1
10321 grep -v '^ *+' conftest.er1 >conftest.err
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag"
10327 || test ! -s conftest.err'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_type_ssize_t=yes
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_cv_type_ssize_t=no
10346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10348 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10349 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10350 if test $ac_cv_type_ssize_t = yes; then
10354 cat >>confdefs.h <<_ACEOF
10355 #define ssize_t int
10360 echo "$as_me:$LINENO: checking for caddr_t" >&5
10361 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10362 if test "${ac_cv_type_caddr_t+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10377 if (sizeof (caddr_t))
10383 rm -f conftest.$ac_objext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10385 (eval $ac_compile) 2>conftest.er1
10387 grep -v '^ *+' conftest.er1 >conftest.err
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } &&
10392 { ac_try='test -z "$ac_c_werror_flag"
10393 || test ! -s conftest.err'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try='test -s conftest.$ac_objext'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 ac_cv_type_caddr_t=yes
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 ac_cv_type_caddr_t=no
10412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10414 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10415 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10416 if test $ac_cv_type_caddr_t = yes; then
10420 cat >>confdefs.h <<_ACEOF
10421 #define caddr_t char *
10428 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10429 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10430 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <sys/mman.h>
10441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10444 grep -v '^ *+' conftest.er1 >conftest.err
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } >/dev/null; then
10449 if test -s conftest.err; then
10450 ac_cpp_err=$ac_c_preproc_warn_flag
10451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10458 if test -z "$ac_cpp_err"; then
10459 ac_cv_header_sys_mman_h=yes
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_cv_header_sys_mman_h=no
10466 rm -f conftest.err conftest.$ac_ext
10468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10469 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10470 if test $ac_cv_header_sys_mman_h = yes; then
10471 gcc_header_sys_mman_h=yes
10473 gcc_header_sys_mman_h=no
10476 echo "$as_me:$LINENO: checking for mmap" >&5
10477 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10478 if test "${ac_cv_func_mmap+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cat >conftest.$ac_ext <<_ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10489 #define mmap innocuous_mmap
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char mmap (); below.
10493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494 <limits.h> exists even on freestanding compilers. */
10497 # include <limits.h>
10499 # include <assert.h>
10504 /* Override any gcc2 internal prototype to avoid an error. */
10509 /* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined (__stub_mmap) || defined (__stub___mmap)
10518 char (*f) () = mmap;
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>conftest.er1
10536 grep -v '^ *+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
10541 { ac_try='test -z "$ac_c_werror_flag"
10542 || test ! -s conftest.err'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; } &&
10548 { ac_try='test -s conftest$ac_exeext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 ac_cv_func_mmap=yes
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10561 rm -f conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10565 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10566 if test $ac_cv_func_mmap = yes; then
10572 if test "$gcc_header_sys_mman_h" != yes \
10573 || test "$gcc_func_mmap" != yes; then
10574 gcc_cv_func_mmap_file=no
10575 gcc_cv_func_mmap_dev_zero=no
10576 gcc_cv_func_mmap_anon=no
10578 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10579 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10580 if test "${gcc_cv_func_mmap_file+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 # Add a system to this blacklist if
10584 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10585 # memory area containing the same data that you'd get if you applied
10586 # read() to the same fd. The only system known to have a problem here
10587 # is VMS, where text files have record structure.
10590 gcc_cv_func_mmap_file=no ;;
10592 gcc_cv_func_mmap_file=yes;;
10595 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10596 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10597 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10598 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10599 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 # Add a system to this blacklist if it has mmap() but /dev/zero
10603 # does not exist, or if mmapping /dev/zero does not give anonymous
10604 # zeroed pages with both the following properties:
10605 # 1. If you map N consecutive pages in with one call, and then
10606 # unmap any subset of those pages, the pages that were not
10607 # explicitly unmapped remain accessible.
10608 # 2. If you map two adjacent blocks of memory and then unmap them
10609 # both at once, they must both go away.
10610 # Systems known to be in this category are Windows (all variants),
10613 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10614 gcc_cv_func_mmap_dev_zero=no ;;
10616 gcc_cv_func_mmap_dev_zero=yes;;
10619 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10620 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10622 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10623 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10624 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10625 if test "${gcc_cv_decl_map_anon+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 cat >conftest.$ac_ext <<_ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 #include <sys/types.h>
10635 #include <sys/mman.h>
10636 #include <unistd.h>
10638 #ifndef MAP_ANONYMOUS
10639 #define MAP_ANONYMOUS MAP_ANON
10645 int n = MAP_ANONYMOUS;
10650 rm -f conftest.$ac_objext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10652 (eval $ac_compile) 2>conftest.er1
10654 grep -v '^ *+' conftest.er1 >conftest.err
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try='test -z "$ac_c_werror_flag"
10660 || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest.$ac_objext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 gcc_cv_decl_map_anon=yes
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 gcc_cv_decl_map_anon=no
10679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10681 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10682 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10684 if test $gcc_cv_decl_map_anon = no; then
10685 gcc_cv_func_mmap_anon=no
10687 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10688 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10689 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10693 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10694 # doesn't give anonymous zeroed pages with the same properties listed
10695 # above for use of /dev/zero.
10696 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10698 vms* | cygwin* | pe | mingw* | sco* | udk* )
10699 gcc_cv_func_mmap_anon=no ;;
10701 gcc_cv_func_mmap_anon=yes;;
10704 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10705 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10709 if test $gcc_cv_func_mmap_file = yes; then
10711 cat >>confdefs.h <<\_ACEOF
10712 #define HAVE_MMAP_FILE 1
10716 if test $gcc_cv_func_mmap_dev_zero = yes; then
10718 cat >>confdefs.h <<\_ACEOF
10719 #define HAVE_MMAP_DEV_ZERO 1
10723 if test $gcc_cv_func_mmap_anon = yes; then
10725 cat >>confdefs.h <<\_ACEOF
10726 #define HAVE_MMAP_ANON 1
10734 # Under VMS, vfork works very differently than on Unix. The standard test
10735 # won't work, and it isn't easily adaptable. It makes more sense to
10737 ac_cv_func_vfork_works=yes
10740 echo "$as_me:$LINENO: checking for pid_t" >&5
10741 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10742 if test "${ac_cv_type_pid_t+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 cat >conftest.$ac_ext <<_ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751 $ac_includes_default
10757 if (sizeof (pid_t))
10763 rm -f conftest.$ac_objext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765 (eval $ac_compile) 2>conftest.er1
10767 grep -v '^ *+' conftest.er1 >conftest.err
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -z "$ac_c_werror_flag"
10773 || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest.$ac_objext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_cv_type_pid_t=yes
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10790 ac_cv_type_pid_t=no
10792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10794 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10795 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10796 if test $ac_cv_type_pid_t = yes; then
10800 cat >>confdefs.h <<_ACEOF
10808 for ac_header in unistd.h vfork.h
10810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10811 echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 #include <$ac_header>
10824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10827 grep -v '^ *+' conftest.er1 >conftest.err
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } >/dev/null; then
10832 if test -s conftest.err; then
10833 ac_cpp_err=$ac_c_preproc_warn_flag
10834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10841 if test -z "$ac_cpp_err"; then
10842 eval "$as_ac_Header=yes"
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 eval "$as_ac_Header=no"
10849 rm -f conftest.err conftest.$ac_ext
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10854 cat >>confdefs.h <<_ACEOF
10855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10863 for ac_func in fork vfork
10865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10866 echo "$as_me:$LINENO: checking for $ac_func" >&5
10867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10868 if eval "test \"\${$as_ac_var+set}\" = set"; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 cat >conftest.$ac_ext <<_ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10879 #define $ac_func innocuous_$ac_func
10881 /* System header to define __stub macros and hopefully few prototypes,
10882 which can conflict with char $ac_func (); below.
10883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10884 <limits.h> exists even on freestanding compilers. */
10887 # include <limits.h>
10889 # include <assert.h>
10894 /* Override any gcc2 internal prototype to avoid an error. */
10899 /* We use char because int might match the return type of a gcc2
10900 builtin and then its argument prototype would still apply. */
10902 /* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10908 char (*f) () = $ac_func;
10917 return f != $ac_func;
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924 (eval $ac_link) 2>conftest.er1
10926 grep -v '^ *+' conftest.er1 >conftest.err
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -z "$ac_c_werror_flag"
10932 || test ! -s conftest.err'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest$ac_exeext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 eval "$as_ac_var=yes"
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10949 eval "$as_ac_var=no"
10951 rm -f conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10956 if test `eval echo '${'$as_ac_var'}'` = yes; then
10957 cat >>confdefs.h <<_ACEOF
10958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10964 if test "x$ac_cv_func_fork" = xyes; then
10965 echo "$as_me:$LINENO: checking for working fork" >&5
10966 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10967 if test "${ac_cv_func_fork_works+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 if test "$cross_compiling" = yes; then
10971 ac_cv_func_fork_works=cross
10973 cat >conftest.$ac_ext <<_ACEOF
10974 /* By Ruediger Kuhlmann. */
10975 #include <sys/types.h>
10977 # include <unistd.h>
10979 /* Some systems only have a dummy stub for fork() */
10987 rm -f conftest$ac_exeext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989 (eval $ac_link) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_cv_func_fork_works=yes
11000 echo "$as_me: program exited with status $ac_status" >&5
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 ( exit $ac_status )
11005 ac_cv_func_fork_works=no
11007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11010 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11011 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11014 ac_cv_func_fork_works=$ac_cv_func_fork
11016 if test "x$ac_cv_func_fork_works" = xcross; then
11018 *-*-amigaos* | *-*-msdosdjgpp*)
11019 # Override, as these systems have only a dummy fork() stub
11020 ac_cv_func_fork_works=no
11023 ac_cv_func_fork_works=yes
11026 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11027 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11029 ac_cv_func_vfork_works=$ac_cv_func_vfork
11030 if test "x$ac_cv_func_vfork" = xyes; then
11031 echo "$as_me:$LINENO: checking for working vfork" >&5
11032 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11033 if test "${ac_cv_func_vfork_works+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 if test "$cross_compiling" = yes; then
11037 ac_cv_func_vfork_works=cross
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 /* Thanks to Paul Eggert for this test. */
11047 #include <stdlib.h>
11048 #include <sys/types.h>
11049 #include <sys/stat.h>
11050 #include <sys/wait.h>
11052 # include <unistd.h>
11055 # include <vfork.h>
11057 /* On some sparc systems, changes by the child to local and incoming
11058 argument registers are propagated back to the parent. The compiler
11059 is told about this with #include <vfork.h>, but some compilers
11060 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11061 static variable whose address is put into a register that is
11062 clobbered by the vfork. */
11065 sparc_address_test (int arg)
11067 sparc_address_test (arg) int arg;
11070 static pid_t child;
11088 pid_t parent = getpid ();
11091 sparc_address_test (0);
11096 /* Here is another test for sparc vfork register problems. This
11097 test uses lots of local variables, at least as many local
11098 variables as main has allocated so far including compiler
11099 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11100 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11101 reuse the register of parent for one of the local variables,
11102 since it will think that parent can't possibly be used any more
11103 in this routine. Assigning to the local variable will thus
11104 munge parent in the parent process. */
11106 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11107 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11108 /* Convince the compiler that p..p7 are live; otherwise, it might
11109 use the same hardware register for all 8 local variables. */
11110 if (p != p1 || p != p2 || p != p3 || p != p4
11111 || p != p5 || p != p6 || p != p7)
11114 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11115 from child file descriptors. If the child closes a descriptor
11116 before it execs or exits, this munges the parent's descriptor
11117 as well. Test for this by closing stdout in the child. */
11118 _exit(close(fileno(stdout)) != 0);
11123 while (wait(&status) != child)
11126 /* Was there some problem with vforking? */
11129 /* Did the child fail? (This shouldn't happen.) */
11132 /* Did the vfork/compiler bug occur? */
11133 || parent != getpid()
11135 /* Did the file descriptor bug occur? */
11136 || fstat(fileno(stdout), &st) != 0
11141 rm -f conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143 (eval $ac_link) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_func_vfork_works=yes
11154 echo "$as_me: program exited with status $ac_status" >&5
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 ( exit $ac_status )
11159 ac_cv_func_vfork_works=no
11161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11164 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11165 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11168 if test "x$ac_cv_func_fork_works" = xcross; then
11169 ac_cv_func_vfork_works=$ac_cv_func_vfork
11170 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11171 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11174 if test "x$ac_cv_func_vfork_works" = xyes; then
11176 cat >>confdefs.h <<\_ACEOF
11177 #define HAVE_WORKING_VFORK 1
11182 cat >>confdefs.h <<\_ACEOF
11187 if test "x$ac_cv_func_fork_works" = xyes; then
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_WORKING_FORK 1
11197 if test "X$prefix" = "XNONE"; then
11198 acl_final_prefix="$ac_default_prefix"
11200 acl_final_prefix="$prefix"
11202 if test "X$exec_prefix" = "XNONE"; then
11203 acl_final_exec_prefix='${prefix}'
11205 acl_final_exec_prefix="$exec_prefix"
11207 acl_save_prefix="$prefix"
11208 prefix="$acl_final_prefix"
11209 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11210 prefix="$acl_save_prefix"
11213 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11214 if test "${with_gnu_ld+set}" = set; then
11215 withval="$with_gnu_ld"
11216 test "$withval" = no || with_gnu_ld=yes
11220 # Prepare PATH_SEPARATOR.
11221 # The user is always right.
11222 if test "${PATH_SEPARATOR+set}" != set; then
11223 echo "#! /bin/sh" >conf$$.sh
11224 echo "exit 0" >>conf$$.sh
11226 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11234 if test "$GCC" = yes; then
11235 # Check if gcc -print-prog-name=ld gives a path.
11236 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11237 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11240 # gcc leaves a trailing carriage return which upsets mingw
11241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11246 # Accept absolute paths.
11247 [\\/]* | [A-Za-z]:[\\/]*)
11248 re_direlt='/[^/][^/]*/\.\./'
11249 # Canonicalize the path of ld
11250 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11251 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11252 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11254 test -z "$LD" && LD="$ac_prog"
11257 # If it fails, then pretend we aren't using GCC.
11261 # If it is relative, then search for the first ld in PATH.
11262 with_gnu_ld=unknown
11265 elif test "$with_gnu_ld" = yes; then
11266 echo "$as_me:$LINENO: checking for GNU ld" >&5
11267 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11269 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11270 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11272 if test "${acl_cv_path_LD+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 if test -z "$LD"; then
11276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11277 for ac_dir in $PATH; do
11278 test -z "$ac_dir" && ac_dir=.
11279 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11280 acl_cv_path_LD="$ac_dir/$ac_prog"
11281 # Check to see if the program is GNU ld. I'd rather use --version,
11282 # but apparently some GNU ld's only accept -v.
11283 # Break only if it was the GNU/non-GNU ld that we prefer.
11284 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11285 test "$with_gnu_ld" != no && break
11287 test "$with_gnu_ld" != yes && break
11293 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11297 LD="$acl_cv_path_LD"
11298 if test -n "$LD"; then
11299 echo "$as_me:$LINENO: result: $LD" >&5
11300 echo "${ECHO_T}$LD" >&6
11302 echo "$as_me:$LINENO: result: no" >&5
11303 echo "${ECHO_T}no" >&6
11305 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11306 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11307 { (exit 1); exit 1; }; }
11308 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11309 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11310 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11314 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11315 acl_cv_prog_gnu_ld=yes
11317 acl_cv_prog_gnu_ld=no
11320 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11321 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11322 with_gnu_ld=$acl_cv_prog_gnu_ld
11326 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11327 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11328 if test "${acl_cv_rpath+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11333 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11335 rm -f ./conftest.sh
11339 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11340 echo "${ECHO_T}$acl_cv_rpath" >&6
11342 libext="$acl_cv_libext"
11343 shlibext="$acl_cv_shlibext"
11344 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11345 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11346 hardcode_direct="$acl_cv_hardcode_direct"
11347 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11348 # Check whether --enable-rpath or --disable-rpath was given.
11349 if test "${enable_rpath+set}" = set; then
11350 enableval="$enable_rpath"
11364 acl_save_prefix="$prefix"
11365 prefix="$acl_final_prefix"
11366 acl_save_exec_prefix="$exec_prefix"
11367 exec_prefix="$acl_final_exec_prefix"
11369 eval additional_includedir=\"$includedir\"
11370 eval additional_libdir=\"$libdir\"
11372 exec_prefix="$acl_save_exec_prefix"
11373 prefix="$acl_save_prefix"
11376 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11377 if test "${with_libiconv_prefix+set}" = set; then
11378 withval="$with_libiconv_prefix"
11380 if test "X$withval" = "Xno"; then
11383 if test "X$withval" = "X"; then
11385 acl_save_prefix="$prefix"
11386 prefix="$acl_final_prefix"
11387 acl_save_exec_prefix="$exec_prefix"
11388 exec_prefix="$acl_final_exec_prefix"
11390 eval additional_includedir=\"$includedir\"
11391 eval additional_libdir=\"$libdir\"
11393 exec_prefix="$acl_save_exec_prefix"
11394 prefix="$acl_save_prefix"
11397 additional_includedir="$withval/include"
11398 additional_libdir="$withval/lib"
11408 names_already_handled=
11409 names_next_round='iconv '
11410 while test -n "$names_next_round"; do
11411 names_this_round="$names_next_round"
11413 for name in $names_this_round; do
11415 for n in $names_already_handled; do
11416 if test "$n" = "$name"; then
11417 already_handled=yes
11421 if test -z "$already_handled"; then
11422 names_already_handled="$names_already_handled $name"
11423 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11424 eval value=\"\$HAVE_LIB$uppername\"
11425 if test -n "$value"; then
11426 if test "$value" = yes; then
11427 eval value=\"\$LIB$uppername\"
11428 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11429 eval value=\"\$LTLIB$uppername\"
11430 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11439 if test $use_additional = yes; then
11440 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11441 found_dir="$additional_libdir"
11442 found_so="$additional_libdir/lib$name.$shlibext"
11443 if test -f "$additional_libdir/lib$name.la"; then
11444 found_la="$additional_libdir/lib$name.la"
11447 if test -f "$additional_libdir/lib$name.$libext"; then
11448 found_dir="$additional_libdir"
11449 found_a="$additional_libdir/lib$name.$libext"
11450 if test -f "$additional_libdir/lib$name.la"; then
11451 found_la="$additional_libdir/lib$name.la"
11456 if test "X$found_dir" = "X"; then
11457 for x in $LDFLAGS $LTLIBICONV; do
11459 acl_save_prefix="$prefix"
11460 prefix="$acl_final_prefix"
11461 acl_save_exec_prefix="$exec_prefix"
11462 exec_prefix="$acl_final_exec_prefix"
11464 exec_prefix="$acl_save_exec_prefix"
11465 prefix="$acl_save_prefix"
11469 dir=`echo "X$x" | sed -e 's/^X-L//'`
11470 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11472 found_so="$dir/lib$name.$shlibext"
11473 if test -f "$dir/lib$name.la"; then
11474 found_la="$dir/lib$name.la"
11477 if test -f "$dir/lib$name.$libext"; then
11479 found_a="$dir/lib$name.$libext"
11480 if test -f "$dir/lib$name.la"; then
11481 found_la="$dir/lib$name.la"
11487 if test "X$found_dir" != "X"; then
11492 if test "X$found_dir" != "X"; then
11493 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11494 if test "X$found_so" != "X"; then
11495 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11499 for x in $ltrpathdirs; do
11500 if test "X$x" = "X$found_dir"; then
11505 if test -z "$haveit"; then
11506 ltrpathdirs="$ltrpathdirs $found_dir"
11508 if test "$hardcode_direct" = yes; then
11509 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11511 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11512 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11514 for x in $rpathdirs; do
11515 if test "X$x" = "X$found_dir"; then
11520 if test -z "$haveit"; then
11521 rpathdirs="$rpathdirs $found_dir"
11525 for x in $LDFLAGS $LIBICONV; do
11527 acl_save_prefix="$prefix"
11528 prefix="$acl_final_prefix"
11529 acl_save_exec_prefix="$exec_prefix"
11530 exec_prefix="$acl_final_exec_prefix"
11532 exec_prefix="$acl_save_exec_prefix"
11533 prefix="$acl_save_prefix"
11535 if test "X$x" = "X-L$found_dir"; then
11540 if test -z "$haveit"; then
11541 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11543 if test "$hardcode_minus_L" != no; then
11544 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11546 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11552 if test "X$found_a" != "X"; then
11553 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11555 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11558 additional_includedir=
11559 case "$found_dir" in
11561 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11562 additional_includedir="$basedir/include"
11565 if test "X$additional_includedir" != "X"; then
11566 if test "X$additional_includedir" != "X/usr/include"; then
11568 if test "X$additional_includedir" = "X/usr/local/include"; then
11569 if test -n "$GCC"; then
11571 linux*) haveit=yes;;
11575 if test -z "$haveit"; then
11576 for x in $CPPFLAGS $INCICONV; do
11578 acl_save_prefix="$prefix"
11579 prefix="$acl_final_prefix"
11580 acl_save_exec_prefix="$exec_prefix"
11581 exec_prefix="$acl_final_exec_prefix"
11583 exec_prefix="$acl_save_exec_prefix"
11584 prefix="$acl_save_prefix"
11586 if test "X$x" = "X-I$additional_includedir"; then
11591 if test -z "$haveit"; then
11592 if test -d "$additional_includedir"; then
11593 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11599 if test -n "$found_la"; then
11600 save_libdir="$libdir"
11601 case "$found_la" in
11602 */* | *\\*) . "$found_la" ;;
11603 *) . "./$found_la" ;;
11605 libdir="$save_libdir"
11606 for dep in $dependency_libs; do
11609 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11610 if test "X$additional_libdir" != "X/usr/lib"; then
11612 if test "X$additional_libdir" = "X/usr/local/lib"; then
11613 if test -n "$GCC"; then
11615 linux*) haveit=yes;;
11619 if test -z "$haveit"; then
11621 for x in $LDFLAGS $LIBICONV; do
11623 acl_save_prefix="$prefix"
11624 prefix="$acl_final_prefix"
11625 acl_save_exec_prefix="$exec_prefix"
11626 exec_prefix="$acl_final_exec_prefix"
11628 exec_prefix="$acl_save_exec_prefix"
11629 prefix="$acl_save_prefix"
11631 if test "X$x" = "X-L$additional_libdir"; then
11636 if test -z "$haveit"; then
11637 if test -d "$additional_libdir"; then
11638 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11642 for x in $LDFLAGS $LTLIBICONV; do
11644 acl_save_prefix="$prefix"
11645 prefix="$acl_final_prefix"
11646 acl_save_exec_prefix="$exec_prefix"
11647 exec_prefix="$acl_final_exec_prefix"
11649 exec_prefix="$acl_save_exec_prefix"
11650 prefix="$acl_save_prefix"
11652 if test "X$x" = "X-L$additional_libdir"; then
11657 if test -z "$haveit"; then
11658 if test -d "$additional_libdir"; then
11659 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11666 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11667 if test "$enable_rpath" != no; then
11669 for x in $rpathdirs; do
11670 if test "X$x" = "X$dir"; then
11675 if test -z "$haveit"; then
11676 rpathdirs="$rpathdirs $dir"
11679 for x in $ltrpathdirs; do
11680 if test "X$x" = "X$dir"; then
11685 if test -z "$haveit"; then
11686 ltrpathdirs="$ltrpathdirs $dir"
11691 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11694 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11697 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11698 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11704 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11705 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11711 if test "X$rpathdirs" != "X"; then
11712 if test -n "$hardcode_libdir_separator"; then
11714 for found_dir in $rpathdirs; do
11715 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11717 acl_save_libdir="$libdir"
11719 eval flag=\"$hardcode_libdir_flag_spec\"
11720 libdir="$acl_save_libdir"
11721 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11723 for found_dir in $rpathdirs; do
11724 acl_save_libdir="$libdir"
11725 libdir="$found_dir"
11726 eval flag=\"$hardcode_libdir_flag_spec\"
11727 libdir="$acl_save_libdir"
11728 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11732 if test "X$ltrpathdirs" != "X"; then
11733 for found_dir in $ltrpathdirs; do
11734 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11744 am_save_CPPFLAGS="$CPPFLAGS"
11746 for element in $INCICONV; do
11748 for x in $CPPFLAGS; do
11750 acl_save_prefix="$prefix"
11751 prefix="$acl_final_prefix"
11752 acl_save_exec_prefix="$exec_prefix"
11753 exec_prefix="$acl_final_exec_prefix"
11755 exec_prefix="$acl_save_exec_prefix"
11756 prefix="$acl_save_prefix"
11758 if test "X$x" = "X$element"; then
11763 if test -z "$haveit"; then
11764 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11769 echo "$as_me:$LINENO: checking for iconv" >&5
11770 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11771 if test "${am_cv_func_iconv+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 am_cv_func_iconv="no, consider installing GNU libiconv"
11777 cat >conftest.$ac_ext <<_ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 #include <stdlib.h>
11788 iconv_t cd = iconv_open("","");
11789 iconv(cd,NULL,NULL,NULL,NULL);
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797 (eval $ac_link) 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag"
11805 || test ! -s conftest.err'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; } &&
11811 { ac_try='test -s conftest$ac_exeext'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 am_cv_func_iconv=yes
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11823 rm -f conftest.err conftest.$ac_objext \
11824 conftest$ac_exeext conftest.$ac_ext
11825 if test "$am_cv_func_iconv" != yes; then
11826 am_save_LIBS="$LIBS"
11827 LIBS="$LIBS $LIBICONV"
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 #include <stdlib.h>
11839 iconv_t cd = iconv_open("","");
11840 iconv(cd,NULL,NULL,NULL,NULL);
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11848 (eval $ac_link) 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest$ac_exeext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 am_cv_lib_iconv=yes
11869 am_cv_func_iconv=yes
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11875 rm -f conftest.err conftest.$ac_objext \
11876 conftest$ac_exeext conftest.$ac_ext
11877 LIBS="$am_save_LIBS"
11881 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11882 echo "${ECHO_T}$am_cv_func_iconv" >&6
11883 if test "$am_cv_func_iconv" = yes; then
11885 cat >>confdefs.h <<\_ACEOF
11886 #define HAVE_ICONV 1
11890 if test "$am_cv_lib_iconv" = yes; then
11891 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11892 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11893 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11894 echo "${ECHO_T}$LIBICONV" >&6
11896 CPPFLAGS="$am_save_CPPFLAGS"
11903 if test "$am_cv_func_iconv" = yes; then
11904 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11905 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11906 if test "${am_cv_proto_iconv+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11917 #include <stdlib.h>
11923 #if defined(__STDC__) || defined(__cplusplus)
11924 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11937 rm -f conftest.$ac_objext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11939 (eval $ac_compile) 2>conftest.er1
11941 grep -v '^ *+' conftest.er1 >conftest.err
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 am_cv_proto_iconv_arg1=""
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 am_cv_proto_iconv_arg1="const"
11966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11967 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);"
11970 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11971 echo "$as_me:$LINENO: result: ${ac_t:-
11972 }$am_cv_proto_iconv" >&5
11973 echo "${ECHO_T}${ac_t:-
11974 }$am_cv_proto_iconv" >&6
11976 cat >>confdefs.h <<_ACEOF
11977 #define ICONV_CONST $am_cv_proto_iconv_arg1
11982 # Until we have in-tree GNU iconv:
11987 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11988 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11989 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 cat >conftest.$ac_ext <<_ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 #include <locale.h>
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12009 (eval $ac_link) 2>conftest.er1
12011 grep -v '^ *+' conftest.er1 >conftest.err
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -z "$ac_c_werror_flag"
12017 || test ! -s conftest.err'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; } &&
12023 { ac_try='test -s conftest$ac_exeext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 am_cv_val_LC_MESSAGES=yes
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 am_cv_val_LC_MESSAGES=no
12036 rm -f conftest.err conftest.$ac_objext \
12037 conftest$ac_exeext conftest.$ac_ext
12039 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12040 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12041 if test $am_cv_val_LC_MESSAGES = yes; then
12043 cat >>confdefs.h <<\_ACEOF
12044 #define HAVE_LC_MESSAGES 1
12051 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12052 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12053 if test "${am_cv_langinfo_codeset+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 cat >conftest.$ac_ext <<_ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062 #include <langinfo.h>
12066 char* cs = nl_langinfo(CODESET);
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073 (eval $ac_link) 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_c_werror_flag"
12081 || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 am_cv_langinfo_codeset=yes
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 am_cv_langinfo_codeset=no
12100 rm -f conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12104 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12105 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12106 if test $am_cv_langinfo_codeset = yes; then
12108 cat >>confdefs.h <<\_ACEOF
12109 #define HAVE_LANGINFO_CODESET 1
12115 # We will need to find libiberty.h and ansidecl.h
12116 saved_CFLAGS="$CFLAGS"
12117 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12157 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12158 strsignal strstr strverscmp \
12159 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12160 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
12162 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12163 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12164 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12165 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12175 #define $ac_tr_decl 1
12177 #include "ansidecl.h"
12178 #include "system.h"
12184 char *(*pfn) = (char *(*)) $ac_func ;
12190 rm -f conftest.$ac_objext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192 (eval $ac_compile) 2>conftest.er1
12194 grep -v '^ *+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 eval "gcc_cv_have_decl_$ac_func=yes"
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 eval "gcc_cv_have_decl_$ac_func=no"
12219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12222 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12223 echo "$as_me:$LINENO: result: yes" >&5
12224 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12225 #define $ac_tr_decl 1
12229 echo "$as_me:$LINENO: result: no" >&5
12230 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12231 #define $ac_tr_decl 0
12242 for ac_func in getrlimit setrlimit getrusage
12244 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12245 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12246 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12247 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 cat >conftest.$ac_ext <<_ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12257 #define $ac_tr_decl 1
12259 #include "ansidecl.h"
12260 #include "system.h"
12261 #ifdef HAVE_SYS_RESOURCE_H
12262 #include <sys/resource.h>
12270 char *(*pfn) = (char *(*)) $ac_func ;
12276 rm -f conftest.$ac_objext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12278 (eval $ac_compile) 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -z "$ac_c_werror_flag"
12286 || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try='test -s conftest.$ac_objext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298 eval "gcc_cv_have_decl_$ac_func=yes"
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 eval "gcc_cv_have_decl_$ac_func=no"
12305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12309 echo "$as_me:$LINENO: result: yes" >&5
12310 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12311 #define $ac_tr_decl 1
12315 echo "$as_me:$LINENO: result: no" >&5
12316 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12317 #define $ac_tr_decl 0
12325 cat >conftest.$ac_ext <<_ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12332 #include "ansidecl.h"
12333 #include "system.h"
12334 #ifdef HAVE_SYS_RESOURCE_H
12335 #include <sys/resource.h>
12346 rm -f conftest.$ac_objext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348 (eval $ac_compile) 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag"
12356 || test ! -s conftest.err'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest.$ac_objext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12374 cat >>confdefs.h <<\_ACEOF
12375 #define rlim_t long
12379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12381 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12382 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12383 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12384 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12386 for ac_func in ldgetname
12388 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12389 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12390 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12391 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 cat >conftest.$ac_ext <<_ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12401 #define $ac_tr_decl 1
12403 #include "ansidecl.h"
12404 #include "system.h"
12405 #ifdef HAVE_LDFCN_H
12416 char *(*pfn) = (char *(*)) $ac_func ;
12422 rm -f conftest.$ac_objext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12424 (eval $ac_compile) 2>conftest.er1
12426 grep -v '^ *+' conftest.er1 >conftest.err
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag"
12432 || test ! -s conftest.err'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest.$ac_objext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 eval "gcc_cv_have_decl_$ac_func=yes"
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 eval "gcc_cv_have_decl_$ac_func=no"
12451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12454 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12455 echo "$as_me:$LINENO: result: yes" >&5
12456 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12457 #define $ac_tr_decl 1
12461 echo "$as_me:$LINENO: result: no" >&5
12462 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12463 #define $ac_tr_decl 0
12472 for ac_func in times
12474 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12475 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12476 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12477 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12487 #define $ac_tr_decl 1
12489 #include "ansidecl.h"
12490 #include "system.h"
12491 #ifdef HAVE_SYS_TIMES_H
12492 #include <sys/times.h>
12500 char *(*pfn) = (char *(*)) $ac_func ;
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508 (eval $ac_compile) 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_c_werror_flag"
12516 || test ! -s conftest.err'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; } &&
12522 { ac_try='test -s conftest.$ac_objext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 eval "gcc_cv_have_decl_$ac_func=yes"
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 eval "gcc_cv_have_decl_$ac_func=no"
12535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12539 echo "$as_me:$LINENO: result: yes" >&5
12540 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12541 #define $ac_tr_decl 1
12545 echo "$as_me:$LINENO: result: no" >&5
12546 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12547 #define $ac_tr_decl 0
12556 for ac_func in sigaltstack
12558 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12559 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12560 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12561 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 cat >conftest.$ac_ext <<_ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12571 #define $ac_tr_decl 1
12573 #include "ansidecl.h"
12574 #include "system.h"
12575 #include <signal.h>
12582 char *(*pfn) = (char *(*)) $ac_func ;
12588 rm -f conftest.$ac_objext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12590 (eval $ac_compile) 2>conftest.er1
12592 grep -v '^ *+' conftest.er1 >conftest.err
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try='test -z "$ac_c_werror_flag"
12598 || test ! -s conftest.err'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try='test -s conftest.$ac_objext'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 eval "gcc_cv_have_decl_$ac_func=yes"
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12615 eval "gcc_cv_have_decl_$ac_func=no"
12617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12620 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12621 echo "$as_me:$LINENO: result: yes" >&5
12622 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12623 #define $ac_tr_decl 1
12627 echo "$as_me:$LINENO: result: no" >&5
12628 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12629 #define $ac_tr_decl 0
12637 # More time-related stuff.
12638 echo "$as_me:$LINENO: checking for struct tms" >&5
12639 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12640 if test "${ac_cv_struct_tms+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 cat >conftest.$ac_ext <<_ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12651 #include "ansidecl.h"
12652 #include "system.h"
12653 #ifdef HAVE_SYS_TIMES_H
12654 #include <sys/times.h>
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest.$ac_objext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_cv_struct_tms=yes
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 ac_cv_struct_tms=no
12694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12696 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12697 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12698 if test $ac_cv_struct_tms = yes; then
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_STRUCT_TMS 1
12706 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12707 # revisit after autoconf 2.50.
12708 echo "$as_me:$LINENO: checking for clock_t" >&5
12709 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12710 if test "${gcc_cv_type_clock_t+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 cat >conftest.$ac_ext <<_ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12721 #include "ansidecl.h"
12722 #include "system.h"
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>conftest.er1
12736 grep -v '^ *+' conftest.er1 >conftest.err
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -z "$ac_c_werror_flag"
12742 || test ! -s conftest.err'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try='test -s conftest.$ac_objext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 gcc_cv_type_clock_t=yes
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12759 gcc_cv_type_clock_t=no
12761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12763 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12764 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12765 if test $gcc_cv_type_clock_t = yes; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_CLOCK_T 1
12773 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12774 CFLAGS="$saved_CFLAGS"
12776 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12777 if test "${enable_initfini_array+set}" = set; then
12778 enableval="$enable_initfini_array"
12782 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12783 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12784 if test "${gcc_cv_initfini_array+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 if test "$cross_compiling" = yes; then
12788 gcc_cv_initfini_array=no
12790 cat >conftest.$ac_ext <<_ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12798 int main (void) { return x; }
12799 int foo (void) { x = 0; }
12800 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12802 rm -f conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804 (eval $ac_link) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 gcc_cv_initfini_array=yes
12815 echo "$as_me: program exited with status $ac_status" >&5
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ( exit $ac_status )
12820 gcc_cv_initfini_array=no
12822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12825 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12826 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12827 enable_initfini_array=$gcc_cv_initfini_array
12830 if test $enable_initfini_array = yes; then
12832 cat >>confdefs.h <<\_ACEOF
12833 #define HAVE_INITFINI_ARRAY 1
12838 # mkdir takes a single argument on some systems.
12839 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12840 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12841 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 cat >conftest.$ac_ext <<_ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12851 #include <sys/types.h>
12852 #ifdef HAVE_SYS_STAT_H
12853 # include <sys/stat.h>
12855 #ifdef HAVE_UNISTD_H
12856 # include <unistd.h>
12858 #ifdef HAVE_DIRECT_H
12859 # include <direct.h>
12869 rm -f conftest.$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>conftest.er1
12873 grep -v '^ *+' conftest.er1 >conftest.err
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try='test -z "$ac_c_werror_flag"
12879 || test ! -s conftest.err'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } &&
12885 { ac_try='test -s conftest.$ac_objext'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 gcc_cv_mkdir_takes_one_arg=no
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 gcc_cv_mkdir_takes_one_arg=yes
12898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12900 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12901 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12902 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12904 cat >>confdefs.h <<\_ACEOF
12905 #define MKDIR_TAKES_ONE_ARG 1
12917 # With Setjmp/Longjmp based exception handling.
12918 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12919 if test "${enable_sjlj_exceptions+set}" = set; then
12920 enableval="$enable_sjlj_exceptions"
12923 if test $enableval != yes; then
12924 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12925 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12930 force_sjlj_exceptions=yes
12934 force_sjlj_exceptions=yes
12938 force_sjlj_exceptions=no
12942 if test $force_sjlj_exceptions = yes; then
12943 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12945 cat >>confdefs.h <<_ACEOF
12946 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12951 # For platforms with the unwind ABI which includes an unwind library,
12952 # libunwind, we can choose to use the system libunwind.
12953 # config.gcc also contains tests of with_system_libunwind.
12956 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12957 if test "${with_system_libunwind+set}" = set; then
12958 withval="$with_system_libunwind"
12961 # If system-libunwind was not specifically set, pick a default setting.
12962 if test x$with_system_libunwind = x; then
12964 ia64-*-hpux*) with_system_libunwind=yes ;;
12965 *) with_system_libunwind=no ;;
12968 # Based on system-libunwind and target, do we have ipinfo?
12969 if test x$with_system_libunwind = xyes; then
12971 ia64-*-*) have_unwind_getipinfo=no ;;
12972 *) have_unwind_getipinfo=yes ;;
12975 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12978 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12979 *) have_unwind_getipinfo=yes ;;
12984 if test x$have_unwind_getipinfo = xyes; then
12986 cat >>confdefs.h <<\_ACEOF
12987 #define HAVE_GETIPINFO 1
12993 # --------------------------------------------------------
12994 # Build, host, and target specific configuration fragments
12995 # --------------------------------------------------------
12997 # Collect build-machine-specific information.
12998 . ${srcdir}/config.build
13000 # Collect host-machine-specific information.
13001 . ${srcdir}/config.host
13005 # Collect target-machine-specific information.
13006 . ${srcdir}/config.gcc
13008 extra_objs="${host_extra_objs} ${extra_objs}"
13009 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13011 # Default the target-machine variables that were not explicitly set.
13012 if test x"$tm_file" = x
13013 then tm_file=$cpu_type/$cpu_type.h; fi
13015 if test x"$extra_headers" = x
13016 then extra_headers=; fi
13018 if test x$md_file = x
13019 then md_file=$cpu_type/$cpu_type.md; fi
13021 if test x$out_file = x
13022 then out_file=$cpu_type/$cpu_type.c; fi
13024 if test x"$tmake_file" = x
13025 then tmake_file=$cpu_type/t-$cpu_type
13028 if test x"$dwarf2" = xyes
13029 then tm_file="$tm_file tm-dwarf2.h"
13032 # Say what files are being used for the output code and MD file.
13033 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13034 echo "Using \`$srcdir/config/$md_file' as machine description file."
13036 # If any of the xm_file variables contain nonexistent files, warn
13037 # about them and drop them.
13040 for x in $build_xm_file; do
13041 if test -f $srcdir/config/$x
13043 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13044 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13047 build_xm_file="$bx"
13050 for x in $host_xm_file; do
13051 if test -f $srcdir/config/$x
13053 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13054 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13060 for x in $xm_file; do
13061 if test -f $srcdir/config/$x
13063 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13064 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13070 for f in $tm_file; do
13073 if test $count = ax; then
13074 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13076 echo "Using the following target machine macro files:"
13077 for f in $tm_file; do
13078 echo " $srcdir/config/$f"
13082 if test x$need_64bit_hwint = xyes; then
13084 cat >>confdefs.h <<\_ACEOF
13085 #define NEED_64BIT_HOST_WIDE_INT 1
13090 if test x$use_long_long_for_widest_fast_int = xyes; then
13092 cat >>confdefs.h <<\_ACEOF
13093 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13099 for f in $host_xm_file; do
13102 if test $count = a; then
13104 elif test $count = ax; then
13105 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13107 echo "Using the following host machine macro files:"
13108 for f in $host_xm_file; do
13109 echo " $srcdir/config/$f"
13112 echo "Using ${out_host_hook_obj} for host machine hooks."
13114 if test "$host_xm_file" != "$build_xm_file"; then
13116 for f in $build_xm_file; do
13119 if test $count = a; then
13121 elif test $count = ax; then
13122 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13124 echo "Using the following build machine macro files:"
13125 for f in $build_xm_file; do
13126 echo " $srcdir/config/$f"
13132 powerpc*-*-darwin*)
13133 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13134 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13135 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 cat >conftest.$ac_ext <<_ACEOF
13140 #include <sys/cdefs.h>
13141 #include <sys/signal.h>
13142 #include <ucontext.h>
13143 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13146 rm -f conftest.$ac_objext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13148 (eval $ac_compile) 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag"
13156 || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 gcc_cv_mcontext_underscores=no
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 gcc_cv_mcontext_underscores=yes
13175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13177 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13178 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13179 if test $gcc_cv_mcontext_underscores = yes; then
13181 cat >>confdefs.h <<\_ACEOF
13182 #define HAS_MCONTEXT_T_UNDERSCORES
13193 # Check if a valid thread package
13194 case ${enable_threads} in
13197 target_thread_file='single'
13201 target_thread_file='single'
13203 aix | dce | gnat | irix | posix | posix95 | rtems | \
13204 single | solaris | vxworks | win32 | mipssde)
13205 target_thread_file=${enable_threads}
13208 echo "${enable_threads} is an unknown thread package" 1>&2
13213 if test x${thread_file} = x; then
13214 # No thread file set by target-specific clauses in config.gcc,
13215 # so use file chosen by default logic above
13216 thread_file=${target_thread_file}
13219 # Make gthr-default.h if we have a thread file.
13221 if test $thread_file != single; then
13222 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13223 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13224 rm -f gthr-default.h-t
13226 mv -f gthr-default.h-t gthr-default.h
13228 gthread_flags=-DHAVE_GTHR_DEFAULT
13237 if test x$enable___cxa_atexit = xyes || \
13238 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13239 if test x$host = x$target; then
13241 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13242 # keyed to flag_use_cxa_atexit
13247 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13248 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13249 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 cat >conftest.$ac_ext <<_ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13260 #define __cxa_atexit innocuous___cxa_atexit
13262 /* System header to define __stub macros and hopefully few prototypes,
13263 which can conflict with char __cxa_atexit (); below.
13264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13265 <limits.h> exists even on freestanding compilers. */
13268 # include <limits.h>
13270 # include <assert.h>
13273 #undef __cxa_atexit
13275 /* Override any gcc2 internal prototype to avoid an error. */
13280 /* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */
13282 char __cxa_atexit ();
13283 /* The GNU C library defines this for functions which it implements
13284 to always fail with ENOSYS. Some functions are actually named
13285 something starting with __ and the normal name is an alias. */
13286 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13289 char (*f) () = __cxa_atexit;
13298 return f != __cxa_atexit;
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>conftest.er1
13307 grep -v '^ *+' conftest.er1 >conftest.err
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest$ac_exeext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 ac_cv_func___cxa_atexit=yes
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 ac_cv_func___cxa_atexit=no
13332 rm -f conftest.err conftest.$ac_objext \
13333 conftest$ac_exeext conftest.$ac_ext
13335 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13336 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13337 if test $ac_cv_func___cxa_atexit = yes; then
13340 echo "__cxa_atexit can't be enabled on this target"
13346 # We can't check for __cxa_atexit when building a cross, so assume
13350 if test x$use_cxa_atexit = xyes; then
13352 cat >>confdefs.h <<\_ACEOF
13353 #define DEFAULT_USE_CXA_ATEXIT 2
13359 # Look for a file containing extra machine modes.
13360 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13361 extra_modes_file='$(srcdir)'/config/${extra_modes}
13364 cat >>confdefs.h <<_ACEOF
13365 #define EXTRA_MODES_FILE "config/$extra_modes"
13370 # Convert extra_options into a form suitable for Makefile use.
13372 for f in $extra_options; do
13373 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13377 # auto-host.h is the file containing items generated by autoconf and is
13378 # the first file included by config.h.
13379 # If host=build, it is correct to have bconfig include auto-host.h
13380 # as well. If host!=build, we are in error and need to do more
13381 # work to find out the build config parameters.
13382 if test x$host = x$build
13384 build_auto=auto-host.h
13386 # We create a subdir, then run autoconf in the subdir.
13387 # To prevent recursion we set host and build for the new
13388 # invocation of configure to the build for this invocation
13395 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13396 *) realsrcdir=../${srcdir};;
13398 saved_CFLAGS="${CFLAGS}"
13399 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13400 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13401 ${realsrcdir}/configure \
13402 --enable-languages=${enable_languages-all} \
13403 --target=$target_alias --host=$build_alias --build=$build_alias
13404 CFLAGS="${saved_CFLAGS}"
13406 # We just finished tests for the build machine, so rename
13407 # the file auto-build.h in the gcc directory.
13408 mv auto-host.h ../auto-build.h
13411 build_auto=auto-build.h
13415 tm_file="${tm_file} defaults.h"
13416 tm_p_file="${tm_p_file} tm-preds.h"
13417 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13418 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13419 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13420 # put this back in temporarily.
13421 xm_file="auto-host.h ansidecl.h ${xm_file}"
13427 # Compile in configure arguments.
13428 if test -f configargs.h ; then
13429 # Being re-configured.
13430 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13431 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13433 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13436 # Double all backslashes and backslash all quotes to turn
13437 # gcc_config_arguments into a C string.
13438 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13439 $gcc_config_arguments
13441 gcc_config_arguments_str=`cat conftest.out`
13444 cat > configargs.h <<EOF
13445 /* Generated automatically. */
13446 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13447 static const char thread_model[] = "$thread_file";
13449 static const struct {
13450 const char *name, *value;
13451 } configure_default_options[] = $configure_default_options;
13454 gcc_BASEVER=$(cat $srcdir/BASE-VER)
13455 gcc_DEVPHASE=$(cat $srcdir/DEV-PHASE)
13456 gcc_DATESTAMP=$(cat $srcdir/DATESTAMP)
13457 if test -f $srcdir/REVISION ; then
13458 gcc_REVISION=$(cat $srcdir/REVISION)
13462 cat > plugin-version.h <<EOF
13463 #include "configargs.h"
13465 static char basever[] = "$gcc_BASEVER";
13466 static char datestamp[] = "$gcc_DATESTAMP";
13467 static char devphase[] = "$gcc_DEVPHASE";
13468 static char revision[] = "$gcc_REVISION";
13470 /* FIXME plugins: We should make the version information more precise.
13471 One way to do is to add a checksum. */
13473 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13474 devphase, revision,
13475 configuration_arguments};
13478 # Internationalization
13479 # If we haven't got the data from the intl directory,
13480 # assume NLS is disabled.
13489 if test -f ../intl/config.intl; then
13490 . ../intl/config.intl
13492 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13493 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13494 if test x"$USE_NLS" != xyes; then
13495 echo "$as_me:$LINENO: result: no" >&5
13496 echo "${ECHO_T}no" >&6
13498 echo "$as_me:$LINENO: result: yes" >&5
13499 echo "${ECHO_T}yes" >&6
13501 cat >>confdefs.h <<\_ACEOF
13502 #define ENABLE_NLS 1
13506 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13507 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13508 # Look for .po and .gmo files in the source directory.
13511 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13512 # If there aren't any .gmo files the shell will give us the
13513 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13515 case "$cat" in *\**)
13518 # The quadruple backslash is collapsed to a double backslash
13519 # by the backticks, then collapsed again by the double quotes,
13520 # leaving us with one backslash in the sed expression (right
13521 # before the dot that mustn't act as a wildcard).
13522 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13523 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13524 # The user is allowed to set LINGUAS to a list of languages to
13525 # install catalogs for. If it's empty that means "all of them."
13526 if test "x$LINGUAS" = x; then
13527 CATALOGS="$CATALOGS $cat"
13528 XLINGUAS="$XLINGUAS $lang"
13530 case "$LINGUAS" in *$lang*)
13531 CATALOGS="$CATALOGS $cat"
13532 XLINGUAS="$XLINGUAS $lang"
13537 LINGUAS="$XLINGUAS"
13538 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13539 echo "${ECHO_T}$LINGUAS" >&6
13552 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13553 # -liconv on the link line twice.
13554 case "$LIBINTL" in *$LIBICONV*)
13558 # Check whether --enable-secureplt or --disable-secureplt was given.
13559 if test "${enable_secureplt+set}" = set; then
13560 enableval="$enable_secureplt"
13564 # Check whether --enable-cld or --disable-cld was given.
13565 if test "${enable_cld+set}" = set; then
13566 enableval="$enable_cld"
13572 # Windows32 Registry support for specifying GCC installation paths.
13573 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13574 if test "${enable_win32_registry+set}" = set; then
13575 enableval="$enable_win32_registry"
13580 win32 | pe | cygwin* | mingw32* | uwin*)
13581 if test "x$enable_win32_registry" != xno; then
13582 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13583 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13584 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 ac_func_search_save_LIBS=$LIBS
13588 ac_cv_search_RegOpenKeyExA=no
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13596 /* Override any gcc2 internal prototype to avoid an error. */
13600 /* We use char because int might match the return type of a gcc2
13601 builtin and then its argument prototype would still apply. */
13602 char RegOpenKeyExA ();
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613 (eval $ac_link) 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try='test -s conftest$ac_exeext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_search_RegOpenKeyExA="none required"
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13639 rm -f conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext conftest.$ac_ext
13641 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13642 for ac_lib in advapi32; do
13643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13644 cat >conftest.$ac_ext <<_ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13651 /* Override any gcc2 internal prototype to avoid an error. */
13655 /* We use char because int might match the return type of a gcc2
13656 builtin and then its argument prototype would still apply. */
13657 char RegOpenKeyExA ();
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13668 (eval $ac_link) 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest$ac_exeext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13695 rm -f conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13699 LIBS=$ac_func_search_save_LIBS
13701 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13702 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13703 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13704 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13707 enable_win32_registry=no
13712 if test "x$enable_win32_registry" != xno; then
13714 cat >>confdefs.h <<\_ACEOF
13715 #define ENABLE_WIN32_REGISTRY 1
13719 if test "x$enable_win32_registry" != xyes \
13720 && test "x$enable_win32_registry" != x; then
13722 cat >>confdefs.h <<_ACEOF
13723 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13731 # Get an absolute path to the GCC top-level source directory
13732 holddir=`${PWDCMD-pwd}`
13734 topdir=`${PWDCMD-pwd}`
13737 # Conditionalize the makefile for this host machine.
13739 for f in ${host_xmake_file}
13741 if test -f ${srcdir}/config/$f
13743 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13747 # Conditionalize the makefile for this target machine.
13749 for f in ${tmake_file}
13751 if test -f ${srcdir}/config/$f
13753 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13756 tmake_file="${tmake_file_}"
13758 out_object_file=`basename $out_file .c`.o
13760 tm_file_list="options.h"
13761 tm_include_list="options.h"
13762 for f in $tm_file; do
13765 f=`echo $f | sed 's/^..//'`
13766 tm_file_list="${tm_file_list} $f"
13767 tm_include_list="${tm_include_list} $f"
13770 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13771 tm_include_list="${tm_include_list} $f"
13774 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13775 tm_include_list="${tm_include_list} config/$f"
13782 for f in $tm_p_file; do
13785 tm_p_file_list="${tm_p_file_list} $f"
13786 tm_p_include_list="${tm_p_include_list} $f"
13789 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13790 tm_p_include_list="${tm_p_include_list} config/$f"
13796 for f in $xm_file; do
13799 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13800 xm_include_list="${xm_include_list} $f"
13803 xm_file_list="${xm_file_list} $f"
13804 xm_include_list="${xm_include_list} $f"
13807 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13808 xm_include_list="${xm_include_list} config/$f"
13814 host_xm_include_list=
13815 for f in $host_xm_file; do
13818 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13819 host_xm_include_list="${host_xm_include_list} $f"
13822 host_xm_file_list="${host_xm_file_list} $f"
13823 host_xm_include_list="${host_xm_include_list} $f"
13826 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13827 host_xm_include_list="${host_xm_include_list} config/$f"
13832 build_xm_file_list=
13833 for f in $build_xm_file; do
13836 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13837 build_xm_include_list="${build_xm_include_list} $f"
13839 auto-build.h | auto-host.h )
13840 build_xm_file_list="${build_xm_file_list} $f"
13841 build_xm_include_list="${build_xm_include_list} $f"
13844 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13845 build_xm_include_list="${build_xm_include_list} config/$f"
13850 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13851 # cross-compiler which does not use the native headers and libraries.
13852 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13855 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13857 if test "x$with_build_sysroot" != x; then
13858 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13860 # This value is used, even on a native system, because
13861 # CROSS_SYSTEM_HEADER_DIR is just
13862 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13863 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13866 if test x$host != x$target
13868 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13870 SYSTEM_HEADER_DIR=$build_system_header_dir
13871 case "$host","$target" in
13872 # Darwin crosses can use the host system's libraries and headers,
13873 # because of the fat library support. Of course, it must be the
13874 # same version of Darwin on both sides. Allow the user to
13875 # just say --target=foo-darwin without a version number to mean
13876 # "the version on this system".
13877 *-*-darwin*,*-*-darwin*)
13878 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13879 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13880 if test $hostos = $targetos -o $targetos = darwin ; then
13882 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13887 i?86-*-*,x86_64-*-* \
13888 | powerpc*-*-*,powerpc64*-*-*)
13889 CROSS="$CROSS -DNATIVE_CROSS" ;;
13891 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13892 SYSTEM_HEADER_DIR=$build_system_header_dir
13895 # If this is a cross-compiler that does not
13896 # have its own set of headers then define
13899 # If this is using newlib, without having the headers available now,
13900 # then define inhibit_libc in LIBGCC2_CFLAGS.
13901 # This prevents libgcc2 from containing any code which requires libc
13903 : ${inhibit_libc=false}
13904 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13905 test x$with_newlib = xyes ; } &&
13906 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13911 # When building gcc with a cross-compiler, we need to adjust things so
13912 # that the generator programs are still built with the native compiler.
13913 # Also, we cannot run fixincludes.
13915 # These are the normal (build=host) settings:
13916 CC_FOR_BUILD='$(CC)'
13917 BUILD_CFLAGS='$(ALL_CFLAGS)'
13918 BUILD_LDFLAGS='$(LDFLAGS)'
13919 STMP_FIXINC=stmp-fixinc
13921 # And these apply if build != host, or we are generating coverage data
13922 if test x$build != x$host || test "x$coverage_flags" != x
13924 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13925 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13928 # Expand extra_headers to include complete path.
13929 # This substitutes for lots of t-* files.
13930 extra_headers_list=
13931 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13932 for file in ${extra_headers} ; do
13933 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13936 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13937 if test x"$use_gcc_tgmath" = xyes
13938 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13941 # Define collect2 in Makefile.
13942 case $host_can_use_collect2 in
13944 *) collect2='collect2$(exeext)' ;;
13948 # Add a definition of USE_COLLECT2 if system wants one.
13949 case $use_collect2 in
13950 no) use_collect2= ;;
13953 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13954 xm_defines="${xm_defines} USE_COLLECT2"
13955 case $host_can_use_collect2 in
13957 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13958 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13959 { (exit 1); exit 1; }; }
13965 # ---------------------------
13966 # Assembler & linker features
13967 # ---------------------------
13969 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13970 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13971 # However when ld-new is first executed from the build tree, libtool will
13972 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13973 # to the build tree. While doing this we need to use the previous-stage
13974 # linker, or we have an infinite loop. The presence of a shell script as
13975 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13976 # the gcc/collect-ld script. So we need to know how libtool works, or
13977 # exec-tool will fail.
13982 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13983 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13988 macro_version='2.2.6'
13989 macro_revision='1.3012'
14003 ltmain="$ac_aux_dir/ltmain.sh"
14005 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14006 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14007 if test "${lt_cv_path_SED+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 # Loop through the user's path and test for sed and gsed.
14011 # Then use that list of sed's as ones to test for truncation.
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14016 test -z "$as_dir" && as_dir=.
14017 for lt_ac_prog in sed gsed; do
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14020 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14028 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14029 # along with /bin/sed that truncates output.
14030 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14031 test ! -f $lt_ac_sed && continue
14032 cat /dev/null > conftest.in
14034 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14035 # Check for GNU sed and select it if it is found.
14036 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14037 lt_cv_path_SED=$lt_ac_sed
14041 cat conftest.in conftest.in >conftest.tmp
14042 mv conftest.tmp conftest.in
14043 cp conftest.in conftest.nl
14045 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14046 cmp -s conftest.out conftest.nl || break
14047 # 10000 chars as input seems more than enough
14048 test $lt_ac_count -gt 10 && break
14049 lt_ac_count=`expr $lt_ac_count + 1`
14050 if test $lt_ac_count -gt $lt_ac_max; then
14051 lt_ac_max=$lt_ac_count
14052 lt_cv_path_SED=$lt_ac_sed
14059 SED=$lt_cv_path_SED
14061 echo "$as_me:$LINENO: result: $SED" >&5
14062 echo "${ECHO_T}$SED" >&6
14064 test -z "$SED" && SED=sed
14065 Xsed="$SED -e 1s/^X//"
14077 echo "$as_me:$LINENO: checking for fgrep" >&5
14078 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14079 if test "${ac_cv_prog_fgrep+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14083 then ac_cv_prog_fgrep='grep -F'
14084 else ac_cv_prog_fgrep='fgrep'
14087 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14088 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14089 FGREP=$ac_cv_prog_fgrep
14092 test -z "$GREP" && GREP=grep
14112 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14113 if test "${with_gnu_ld+set}" = set; then
14114 withval="$with_gnu_ld"
14115 test "$withval" = no || with_gnu_ld=yes
14120 if test "$GCC" = yes; then
14121 # Check if gcc -print-prog-name=ld gives a path.
14122 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14123 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14126 # gcc leaves a trailing carriage return which upsets mingw
14127 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14129 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14132 # Accept absolute paths.
14134 re_direlt='/[^/][^/]*/\.\./'
14135 # Canonicalize the pathname of ld
14136 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14137 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14138 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14140 test -z "$LD" && LD="$ac_prog"
14143 # If it fails, then pretend we aren't using GCC.
14147 # If it is relative, then search for the first ld in PATH.
14148 with_gnu_ld=unknown
14151 elif test "$with_gnu_ld" = yes; then
14152 echo "$as_me:$LINENO: checking for GNU ld" >&5
14153 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14155 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14156 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14158 if test "${lt_cv_path_LD+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 if test -z "$LD"; then
14162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14163 for ac_dir in $PATH; do
14165 test -z "$ac_dir" && ac_dir=.
14166 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14167 lt_cv_path_LD="$ac_dir/$ac_prog"
14168 # Check to see if the program is GNU ld. I'd rather use --version,
14169 # but apparently some variants of GNU ld only accept -v.
14170 # Break only if it was the GNU/non-GNU ld that we prefer.
14171 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14172 *GNU* | *'with BFD'*)
14173 test "$with_gnu_ld" != no && break
14176 test "$with_gnu_ld" != yes && break
14183 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14187 LD="$lt_cv_path_LD"
14188 if test -n "$LD"; then
14189 echo "$as_me:$LINENO: result: $LD" >&5
14190 echo "${ECHO_T}$LD" >&6
14192 echo "$as_me:$LINENO: result: no" >&5
14193 echo "${ECHO_T}no" >&6
14195 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14196 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14197 { (exit 1); exit 1; }; }
14198 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14199 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14200 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14204 case `$LD -v 2>&1 </dev/null` in
14205 *GNU* | *'with BFD'*)
14206 lt_cv_prog_gnu_ld=yes
14209 lt_cv_prog_gnu_ld=no
14213 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14214 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14215 with_gnu_ld=$lt_cv_prog_gnu_ld
14225 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14226 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14227 if test "${lt_cv_path_NM+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 if test -n "$NM"; then
14231 # Let the user override the test.
14232 lt_cv_path_NM="$NM"
14234 lt_nm_to_check="${ac_tool_prefix}nm"
14235 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14236 lt_nm_to_check="$lt_nm_to_check nm"
14238 for lt_tmp_nm in $lt_nm_to_check; do
14239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14240 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14242 test -z "$ac_dir" && ac_dir=.
14243 tmp_nm="$ac_dir/$lt_tmp_nm"
14244 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14245 # Check to see if the nm accepts a BSD-compat flag.
14246 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14247 # nm: unknown option "B" ignored
14248 # Tru64's nm complains that /dev/null is an invalid object file
14249 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14250 */dev/null* | *'Invalid file or object type'*)
14251 lt_cv_path_NM="$tmp_nm -B"
14255 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14257 lt_cv_path_NM="$tmp_nm -p"
14261 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14262 continue # so that we can try to find one that supports BSD flags
14271 : ${lt_cv_path_NM=no}
14274 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14275 echo "${ECHO_T}$lt_cv_path_NM" >&6
14276 if test "$lt_cv_path_NM" != "no"; then
14277 NM="$lt_cv_path_NM"
14279 # Didn't find any BSD compatible name lister, look for dumpbin.
14280 if test -n "$ac_tool_prefix"; then
14281 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14285 echo "$as_me:$LINENO: checking for $ac_word" >&5
14286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14287 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 if test -n "$DUMPBIN"; then
14291 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14300 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14309 DUMPBIN=$ac_cv_prog_DUMPBIN
14310 if test -n "$DUMPBIN"; then
14311 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14312 echo "${ECHO_T}$DUMPBIN" >&6
14314 echo "$as_me:$LINENO: result: no" >&5
14315 echo "${ECHO_T}no" >&6
14318 test -n "$DUMPBIN" && break
14321 if test -z "$DUMPBIN"; then
14322 ac_ct_DUMPBIN=$DUMPBIN
14323 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14325 # Extract the first word of "$ac_prog", so it can be a program name with args.
14326 set dummy $ac_prog; ac_word=$2
14327 echo "$as_me:$LINENO: checking for $ac_word" >&5
14328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14329 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 if test -n "$ac_ct_DUMPBIN"; then
14333 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14342 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14352 if test -n "$ac_ct_DUMPBIN"; then
14353 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14354 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14356 echo "$as_me:$LINENO: result: no" >&5
14357 echo "${ECHO_T}no" >&6
14360 test -n "$ac_ct_DUMPBIN" && break
14362 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14364 DUMPBIN=$ac_ct_DUMPBIN
14368 if test "$DUMPBIN" != ":"; then
14372 test -z "$NM" && NM=nm
14379 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14380 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14381 if test "${lt_cv_nm_interface+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 lt_cv_nm_interface="BSD nm"
14385 echo "int some_variable = 0;" > conftest.$ac_ext
14386 (eval echo "\"\$as_me:14386: $ac_compile\"" >&5)
14387 (eval "$ac_compile" 2>conftest.err)
14388 cat conftest.err >&5
14389 (eval echo "\"\$as_me:14389: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14390 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14391 cat conftest.err >&5
14392 (eval echo "\"\$as_me:14392: output\"" >&5)
14393 cat conftest.out >&5
14394 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14395 lt_cv_nm_interface="MS dumpbin"
14399 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14400 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14402 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14403 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14405 if test "$LN_S" = "ln -s"; then
14406 echo "$as_me:$LINENO: result: yes" >&5
14407 echo "${ECHO_T}yes" >&6
14409 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14410 echo "${ECHO_T}no, using $LN_S" >&6
14413 # find the maximum length of command line arguments
14414 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14415 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14416 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 # On DJGPP, this test can blow up pretty badly due to problems in libc
14425 # (any single argument exceeding 2000 bytes causes a buffer overrun
14426 # during glob expansion). Even if it were fixed, the result of this
14427 # check would be larger than it should be.
14428 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14432 # Under GNU Hurd, this test is not required because there is
14433 # no limit to the length of command line arguments.
14434 # Libtool will interpret -1 as no limit whatsoever
14435 lt_cv_sys_max_cmd_len=-1;
14438 cygwin* | mingw* | cegcc*)
14439 # On Win9x/ME, this test blows up -- it succeeds, but takes
14440 # about 5 minutes as the teststring grows exponentially.
14441 # Worse, since 9x/ME are not pre-emptively multitasking,
14442 # you end up with a "frozen" computer, even though with patience
14443 # the test eventually succeeds (with a max line length of 256k).
14444 # Instead, let's just punt: use the minimum linelength reported by
14445 # all of the supported platforms: 8192 (on NT/2K/XP).
14446 lt_cv_sys_max_cmd_len=8192;
14450 # On AmigaOS with pdksh, this test takes hours, literally.
14451 # So we just punt and use a minimum line length of 8192.
14452 lt_cv_sys_max_cmd_len=8192;
14455 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14456 # This has been around since 386BSD, at least. Likely further.
14457 if test -x /sbin/sysctl; then
14458 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14459 elif test -x /usr/sbin/sysctl; then
14460 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14462 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14464 # And add a safety zone
14465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14470 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14471 lt_cv_sys_max_cmd_len=196608
14475 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14476 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14477 # nice to cause kernel panics so lets avoid the loop below.
14478 # First set a reasonable default.
14479 lt_cv_sys_max_cmd_len=16384
14481 if test -x /sbin/sysconfig; then
14482 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14483 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14488 lt_cv_sys_max_cmd_len=102400
14490 sysv5* | sco5v6* | sysv4.2uw2*)
14491 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14492 if test -n "$kargmax"; then
14493 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14495 lt_cv_sys_max_cmd_len=32768
14499 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14500 if test -n "$lt_cv_sys_max_cmd_len"; then
14501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14504 # Make teststring a little bigger before we do anything with it.
14505 # a 1K string should be a reasonable start.
14506 for i in 1 2 3 4 5 6 7 8 ; do
14507 teststring=$teststring$teststring
14509 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14510 # If test is not a shell built-in, we'll probably end up computing a
14511 # maximum length that is only half of the actual maximum length, but
14513 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14514 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14515 test $i != 17 # 1/2 MB should be enough
14518 teststring=$teststring$teststring
14520 # Only check the string length outside the loop.
14521 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14523 # Add a significant safety factor because C++ compilers can tack on
14524 # massive amounts of additional arguments before passing them to the
14525 # linker. It appears as though 1/2 is a usable value.
14526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14533 if test -n $lt_cv_sys_max_cmd_len ; then
14534 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14535 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14537 echo "$as_me:$LINENO: result: none" >&5
14538 echo "${ECHO_T}none" >&6
14540 max_cmd_len=$lt_cv_sys_max_cmd_len
14551 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14552 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14553 # Try some XSI features
14555 ( _lt_dummy="a/b/c"
14556 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14558 && eval 'test $(( 1 + 1 )) -eq 2 \
14559 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14561 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14562 echo "${ECHO_T}$xsi_shell" >&6
14565 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14566 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14568 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14570 && lt_shell_append=yes
14571 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14572 echo "${ECHO_T}$lt_shell_append" >&6
14575 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14585 # test EBCDIC or ASCII
14586 case `echo X|tr X '\101'` in
14587 A) # ASCII based system
14588 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14589 lt_SP2NL='tr \040 \012'
14590 lt_NL2SP='tr \015\012 \040\040'
14592 *) # EBCDIC based system
14593 lt_SP2NL='tr \100 \n'
14594 lt_NL2SP='tr \r\n \100\100'
14606 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14607 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14608 if test "${lt_cv_ld_reload_flag+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 lt_cv_ld_reload_flag='-r'
14613 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14614 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14615 reload_flag=$lt_cv_ld_reload_flag
14616 case $reload_flag in
14618 *) reload_flag=" $reload_flag" ;;
14620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14623 if test "$GCC" = yes; then
14624 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14626 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14639 if test -n "$ac_tool_prefix"; then
14640 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14641 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14642 echo "$as_me:$LINENO: checking for $ac_word" >&5
14643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14644 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14647 if test -n "$OBJDUMP"; then
14648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
14656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14666 OBJDUMP=$ac_cv_prog_OBJDUMP
14667 if test -n "$OBJDUMP"; then
14668 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
14669 echo "${ECHO_T}$OBJDUMP" >&6
14671 echo "$as_me:$LINENO: result: no" >&5
14672 echo "${ECHO_T}no" >&6
14676 if test -z "$ac_cv_prog_OBJDUMP"; then
14677 ac_ct_OBJDUMP=$OBJDUMP
14678 # Extract the first word of "objdump", so it can be a program name with args.
14679 set dummy objdump; ac_word=$2
14680 echo "$as_me:$LINENO: checking for $ac_word" >&5
14681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14682 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 if test -n "$ac_ct_OBJDUMP"; then
14686 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14689 for as_dir in $PATH
14692 test -z "$as_dir" && as_dir=.
14693 for ac_exec_ext in '' $ac_executable_extensions; do
14694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14695 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14702 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
14705 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14706 if test -n "$ac_ct_OBJDUMP"; then
14707 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
14708 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
14710 echo "$as_me:$LINENO: result: no" >&5
14711 echo "${ECHO_T}no" >&6
14714 OBJDUMP=$ac_ct_OBJDUMP
14716 OBJDUMP="$ac_cv_prog_OBJDUMP"
14719 test -z "$OBJDUMP" && OBJDUMP=objdump
14729 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14730 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14731 if test "${lt_cv_deplibs_check_method+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 lt_cv_file_magic_cmd='$MAGIC_CMD'
14735 lt_cv_file_magic_test_file=
14736 lt_cv_deplibs_check_method='unknown'
14737 # Need to set the preceding variable on all platforms that support
14738 # interlibrary dependencies.
14739 # 'none' -- dependencies not supported.
14740 # `unknown' -- same as none, but documents that we really don't know.
14741 # 'pass_all' -- all dependencies passed with no checks.
14742 # 'test_compile' -- check by making test program.
14743 # 'file_magic [[regex]]' -- check by looking for files in library path
14744 # which responds to the $file_magic_cmd with a given extended regex.
14745 # If you have `file' or equivalent on your system and you're not sure
14746 # whether `pass_all' will *always* work, you probably want this one.
14750 lt_cv_deplibs_check_method=pass_all
14754 lt_cv_deplibs_check_method=pass_all
14758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14759 lt_cv_file_magic_cmd='/usr/bin/file -L'
14760 lt_cv_file_magic_test_file=/shlib/libc.so
14764 # func_win32_libid is a shell function defined in ltmain.sh
14765 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14766 lt_cv_file_magic_cmd='func_win32_libid'
14770 # Base MSYS/MinGW do not provide the 'file' command needed by
14771 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14772 # unless we find 'file', for example because we are cross-compiling.
14773 if ( file / ) >/dev/null 2>&1; then
14774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14775 lt_cv_file_magic_cmd='func_win32_libid'
14777 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14778 lt_cv_file_magic_cmd='$OBJDUMP -f'
14783 # use the weaker test based on 'objdump'. See mingw*.
14784 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14785 lt_cv_file_magic_cmd='$OBJDUMP -f'
14788 darwin* | rhapsody*)
14789 lt_cv_deplibs_check_method=pass_all
14792 freebsd* | dragonfly*)
14793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14796 # Not sure whether the presence of OpenBSD here was a mistake.
14797 # Let's accept both of them until this is cleared up.
14798 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14799 lt_cv_file_magic_cmd=/usr/bin/file
14800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14804 lt_cv_deplibs_check_method=pass_all
14809 lt_cv_deplibs_check_method=pass_all
14812 hpux10.20* | hpux11*)
14813 lt_cv_file_magic_cmd=/usr/bin/file
14816 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14817 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14820 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]'
14821 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14825 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14831 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14835 irix5* | irix6* | nonstopux*)
14837 *-32|*"-32 ") libmagic=32-bit;;
14838 *-n32|*"-n32 ") libmagic=N32;;
14839 *-64|*"-64 ") libmagic=64-bit;;
14840 *) libmagic=never-match;;
14842 lt_cv_deplibs_check_method=pass_all
14845 # This must be Linux ELF.
14846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14847 lt_cv_deplibs_check_method=pass_all
14851 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14860 lt_cv_file_magic_cmd=/usr/bin/file
14861 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14865 lt_cv_deplibs_check_method=pass_all
14869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14876 osf3* | osf4* | osf5*)
14877 lt_cv_deplibs_check_method=pass_all
14881 lt_cv_deplibs_check_method=pass_all
14885 lt_cv_deplibs_check_method=pass_all
14888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14889 lt_cv_deplibs_check_method=pass_all
14893 case $host_vendor in
14895 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]'
14896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14899 lt_cv_deplibs_check_method=pass_all
14902 lt_cv_file_magic_cmd='/bin/file'
14903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14906 lt_cv_file_magic_cmd='/bin/file'
14907 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14908 lt_cv_file_magic_test_file=/lib/libc.so
14911 lt_cv_deplibs_check_method=pass_all
14914 lt_cv_deplibs_check_method=pass_all
14920 lt_cv_deplibs_check_method=pass_all
14925 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14926 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14927 file_magic_cmd=$lt_cv_file_magic_cmd
14928 deplibs_check_method=$lt_cv_deplibs_check_method
14929 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14942 if test -n "$ac_tool_prefix"; then
14943 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14944 set dummy ${ac_tool_prefix}ar; ac_word=$2
14945 echo "$as_me:$LINENO: checking for $ac_word" >&5
14946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14947 if test "${ac_cv_prog_AR+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 if test -n "$AR"; then
14951 ac_cv_prog_AR="$AR" # Let the user override the test.
14953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954 for as_dir in $PATH
14957 test -z "$as_dir" && as_dir=.
14958 for ac_exec_ext in '' $ac_executable_extensions; do
14959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14960 ac_cv_prog_AR="${ac_tool_prefix}ar"
14961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14970 if test -n "$AR"; then
14971 echo "$as_me:$LINENO: result: $AR" >&5
14972 echo "${ECHO_T}$AR" >&6
14974 echo "$as_me:$LINENO: result: no" >&5
14975 echo "${ECHO_T}no" >&6
14979 if test -z "$ac_cv_prog_AR"; then
14981 # Extract the first word of "ar", so it can be a program name with args.
14982 set dummy ar; ac_word=$2
14983 echo "$as_me:$LINENO: checking for $ac_word" >&5
14984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14985 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 if test -n "$ac_ct_AR"; then
14989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14992 for as_dir in $PATH
14995 test -z "$as_dir" && as_dir=.
14996 for ac_exec_ext in '' $ac_executable_extensions; do
14997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14998 ac_cv_prog_ac_ct_AR="ar"
14999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15005 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15008 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15009 if test -n "$ac_ct_AR"; then
15010 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15011 echo "${ECHO_T}$ac_ct_AR" >&6
15013 echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6
15019 AR="$ac_cv_prog_AR"
15022 test -z "$AR" && AR=ar
15023 test -z "$AR_FLAGS" && AR_FLAGS=cru
15035 if test -n "$ac_tool_prefix"; then
15036 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15037 set dummy ${ac_tool_prefix}strip; ac_word=$2
15038 echo "$as_me:$LINENO: checking for $ac_word" >&5
15039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15040 if test "${ac_cv_prog_STRIP+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 if test -n "$STRIP"; then
15044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15047 for as_dir in $PATH
15050 test -z "$as_dir" && as_dir=.
15051 for ac_exec_ext in '' $ac_executable_extensions; do
15052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15053 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15062 STRIP=$ac_cv_prog_STRIP
15063 if test -n "$STRIP"; then
15064 echo "$as_me:$LINENO: result: $STRIP" >&5
15065 echo "${ECHO_T}$STRIP" >&6
15067 echo "$as_me:$LINENO: result: no" >&5
15068 echo "${ECHO_T}no" >&6
15072 if test -z "$ac_cv_prog_STRIP"; then
15074 # Extract the first word of "strip", so it can be a program name with args.
15075 set dummy strip; ac_word=$2
15076 echo "$as_me:$LINENO: checking for $ac_word" >&5
15077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15078 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 if test -n "$ac_ct_STRIP"; then
15082 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15085 for as_dir in $PATH
15088 test -z "$as_dir" && as_dir=.
15089 for ac_exec_ext in '' $ac_executable_extensions; do
15090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15091 ac_cv_prog_ac_ct_STRIP="strip"
15092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15098 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15101 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15102 if test -n "$ac_ct_STRIP"; then
15103 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15104 echo "${ECHO_T}$ac_ct_STRIP" >&6
15106 echo "$as_me:$LINENO: result: no" >&5
15107 echo "${ECHO_T}no" >&6
15112 STRIP="$ac_cv_prog_STRIP"
15115 test -z "$STRIP" && STRIP=:
15122 if test -n "$ac_tool_prefix"; then
15123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15125 echo "$as_me:$LINENO: checking for $ac_word" >&5
15126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15127 if test "${ac_cv_prog_RANLIB+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 if test -n "$RANLIB"; then
15131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15134 for as_dir in $PATH
15137 test -z "$as_dir" && as_dir=.
15138 for ac_exec_ext in '' $ac_executable_extensions; do
15139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15149 RANLIB=$ac_cv_prog_RANLIB
15150 if test -n "$RANLIB"; then
15151 echo "$as_me:$LINENO: result: $RANLIB" >&5
15152 echo "${ECHO_T}$RANLIB" >&6
15154 echo "$as_me:$LINENO: result: no" >&5
15155 echo "${ECHO_T}no" >&6
15159 if test -z "$ac_cv_prog_RANLIB"; then
15160 ac_ct_RANLIB=$RANLIB
15161 # Extract the first word of "ranlib", so it can be a program name with args.
15162 set dummy ranlib; ac_word=$2
15163 echo "$as_me:$LINENO: checking for $ac_word" >&5
15164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 if test -n "$ac_ct_RANLIB"; then
15169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15175 test -z "$as_dir" && as_dir=.
15176 for ac_exec_ext in '' $ac_executable_extensions; do
15177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15178 ac_cv_prog_ac_ct_RANLIB="ranlib"
15179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15189 if test -n "$ac_ct_RANLIB"; then
15190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15193 echo "$as_me:$LINENO: result: no" >&5
15194 echo "${ECHO_T}no" >&6
15197 RANLIB=$ac_ct_RANLIB
15199 RANLIB="$ac_cv_prog_RANLIB"
15202 test -z "$RANLIB" && RANLIB=:
15209 # Determine commands to create old-style static archives.
15210 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15211 old_postinstall_cmds='chmod 644 $oldlib'
15212 old_postuninstall_cmds=
15214 if test -n "$RANLIB"; then
15217 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15220 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15223 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15259 # If no C compiler was specified, use CC.
15262 # If no C compiler flags were specified, use CFLAGS.
15263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15265 # Allow CC to be a program name with arguments.
15269 # Check for command to grab the raw symbol name followed by C symbol from nm.
15270 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15271 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 # These are sane defaults that work on at least a few old systems.
15277 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15279 # Character class describing NM global symbol codes.
15280 symcode='[BCDEGRST]'
15282 # Regexp to match symbols that can be accessed directly from C.
15283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15285 # Define system-specific variables.
15290 cygwin* | mingw* | pw32* | cegcc*)
15291 symcode='[ABCDGISTW]'
15294 if test "$host_cpu" = ia64; then
15295 symcode='[ABCDEGRST]'
15298 irix* | nonstopux*)
15299 symcode='[BCDEGRST]'
15302 symcode='[BCDEGQRST]'
15313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15321 # If we're using GNU nm, then use its standard symbol codes.
15322 case `$NM -V 2>&1` in
15323 *GNU* | *'with BFD'*)
15324 symcode='[ABCDGIRSTW]' ;;
15327 # Transform an extracted symbol line into a proper C declaration.
15328 # Some systems (esp. on ia64) link data and code symbols differently,
15329 # so use this general approach.
15330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15332 # Transform an extracted symbol line into symbol name and symbol address
15333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15334 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'"
15336 # Handle CRLF in mingw tool chain
15340 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15344 # Try without a prefix underscore, then with it.
15345 for ac_symprfx in "" "_"; do
15347 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15348 symxfrm="\\1 $ac_symprfx\\2 \\2"
15350 # Write the raw and C identifiers.
15351 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15352 # Fake it for dumpbin and say T for any non-static function
15353 # and D for any global variable.
15354 # Also find C++ and __fastcall symbols from MSVC++,
15355 # which start with @ or ?.
15356 lt_cv_sys_global_symbol_pipe="$AWK '"\
15357 " {last_section=section; section=\$ 3};"\
15358 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15359 " \$ 0!~/External *\|/{next};"\
15360 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15361 " {if(hide[section]) next};"\
15362 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15363 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15364 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15365 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15366 " ' prfx=^$ac_symprfx"
15368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15371 # Check to see that the pipe works correctly.
15375 cat > conftest.$ac_ext <<_LT_EOF
15380 void nm_test_func(void);
15381 void nm_test_func(void){}
15385 int main(){nm_test_var='a';nm_test_func();return(0);}
15388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15389 (eval $ac_compile) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; then
15393 # Now try to grab the symbols.
15395 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15396 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } && test -s "$nlist"; then
15400 # Try sorting and uniquifying the output.
15401 if sort "$nlist" | uniq > "$nlist"T; then
15402 mv -f "$nlist"T "$nlist"
15407 # Make sure that we snagged all the symbols we need.
15408 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15409 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15410 cat <<_LT_EOF > conftest.$ac_ext
15416 # Now generate the symbol file.
15417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15419 cat <<_LT_EOF >> conftest.$ac_ext
15421 /* The mapping between symbol names and symbols. */
15426 lt__PROGRAM__LTX_preloaded_symbols[] =
15428 { "@PROGRAM@", (void *) 0 },
15430 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15431 cat <<\_LT_EOF >> conftest.$ac_ext
15435 /* This works around a problem in FreeBSD linker */
15436 #ifdef FREEBSD_WORKAROUND
15437 static const void *lt_preloaded_setup() {
15438 return lt__PROGRAM__LTX_preloaded_symbols;
15446 # Now try linking the two files.
15447 mv conftest.$ac_objext conftstm.$ac_objext
15448 lt_save_LIBS="$LIBS"
15449 lt_save_CFLAGS="$CFLAGS"
15450 LIBS="conftstm.$ac_objext"
15451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453 (eval $ac_link) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15459 LIBS="$lt_save_LIBS"
15460 CFLAGS="$lt_save_CFLAGS"
15462 echo "cannot find nm_test_func in $nlist" >&5
15465 echo "cannot find nm_test_var in $nlist" >&5
15468 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15471 echo "$progname: failed program was:" >&5
15472 cat conftest.$ac_ext >&5
15474 rm -rf conftest* conftst*
15476 # Do not use the global_symbol_pipe unless it works.
15477 if test "$pipe_works" = yes; then
15480 lt_cv_sys_global_symbol_pipe=
15486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15487 lt_cv_sys_global_symbol_to_cdecl=
15489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15490 echo "$as_me:$LINENO: result: failed" >&5
15491 echo "${ECHO_T}failed" >&6
15493 echo "$as_me:$LINENO: result: ok" >&5
15494 echo "${ECHO_T}ok" >&6
15518 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15519 if test "${enable_libtool_lock+set}" = set; then
15520 enableval="$enable_libtool_lock"
15523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15525 # Some flags need to be propagated to the compiler or linker for good
15529 # Find out which ABI we are using.
15530 echo 'int i;' > conftest.$ac_ext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532 (eval $ac_compile) 2>&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; then
15536 case `/usr/bin/file conftest.$ac_objext` in
15538 HPUX_IA64_MODE="32"
15541 HPUX_IA64_MODE="64"
15548 # Find out which ABI we are using.
15549 echo '#line 15549 "configure"' > conftest.$ac_ext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15551 (eval $ac_compile) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; then
15555 if test "$lt_cv_prog_gnu_ld" = yes; then
15556 case `/usr/bin/file conftest.$ac_objext` in
15558 LD="${LD-ld} -melf32bsmip"
15561 LD="${LD-ld} -melf32bmipn32"
15564 LD="${LD-ld} -melf64bmip"
15568 case `/usr/bin/file conftest.$ac_objext` in
15584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15586 # Find out which ABI we are using.
15587 echo 'int i;' > conftest.$ac_ext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15589 (eval $ac_compile) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; then
15593 case `/usr/bin/file conftest.o` in
15596 x86_64-*kfreebsd*-gnu)
15597 LD="${LD-ld} -m elf_i386_fbsd"
15600 LD="${LD-ld} -m elf_i386"
15602 ppc64-*linux*|powerpc64-*linux*)
15603 LD="${LD-ld} -m elf32ppclinux"
15606 LD="${LD-ld} -m elf_s390"
15609 LD="${LD-ld} -m elf32_sparc"
15615 x86_64-*kfreebsd*-gnu)
15616 LD="${LD-ld} -m elf_x86_64_fbsd"
15619 LD="${LD-ld} -m elf_x86_64"
15621 ppc*-*linux*|powerpc*-*linux*)
15622 LD="${LD-ld} -m elf64ppc"
15624 s390*-*linux*|s390*-*tpf*)
15625 LD="${LD-ld} -m elf64_s390"
15628 LD="${LD-ld} -m elf64_sparc"
15638 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15639 SAVE_CFLAGS="$CFLAGS"
15640 CFLAGS="$CFLAGS -belf"
15641 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15642 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15643 if test "${lt_cv_cc_needs_belf+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 ac_cpp='$CPP $CPPFLAGS'
15648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15652 cat >conftest.$ac_ext <<_ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15669 (eval $ac_link) 2>conftest.er1
15671 grep -v '^ *+' conftest.er1 >conftest.err
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -z "$ac_c_werror_flag"
15677 || test ! -s conftest.err'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; } &&
15683 { ac_try='test -s conftest$ac_exeext'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then
15689 lt_cv_cc_needs_belf=yes
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 lt_cv_cc_needs_belf=no
15696 rm -f conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15699 ac_cpp='$CPP $CPPFLAGS'
15700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15705 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15706 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15707 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15708 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15709 CFLAGS="$SAVE_CFLAGS"
15713 # Find out which ABI we are using.
15714 echo 'int i;' > conftest.$ac_ext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716 (eval $ac_compile) 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; then
15720 case `/usr/bin/file conftest.o` in
15722 case $lt_cv_prog_gnu_ld in
15723 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15725 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15737 need_locks="$enable_libtool_lock"
15741 rhapsody* | darwin*)
15742 if test -n "$ac_tool_prefix"; then
15743 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15744 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15745 echo "$as_me:$LINENO: checking for $ac_word" >&5
15746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15747 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 if test -n "$DSYMUTIL"; then
15751 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15754 for as_dir in $PATH
15757 test -z "$as_dir" && as_dir=.
15758 for ac_exec_ext in '' $ac_executable_extensions; do
15759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15760 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15769 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15770 if test -n "$DSYMUTIL"; then
15771 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
15772 echo "${ECHO_T}$DSYMUTIL" >&6
15774 echo "$as_me:$LINENO: result: no" >&5
15775 echo "${ECHO_T}no" >&6
15779 if test -z "$ac_cv_prog_DSYMUTIL"; then
15780 ac_ct_DSYMUTIL=$DSYMUTIL
15781 # Extract the first word of "dsymutil", so it can be a program name with args.
15782 set dummy dsymutil; ac_word=$2
15783 echo "$as_me:$LINENO: checking for $ac_word" >&5
15784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15785 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 if test -n "$ac_ct_DSYMUTIL"; then
15789 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15792 for as_dir in $PATH
15795 test -z "$as_dir" && as_dir=.
15796 for ac_exec_ext in '' $ac_executable_extensions; do
15797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15798 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15805 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
15808 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15809 if test -n "$ac_ct_DSYMUTIL"; then
15810 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
15811 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
15813 echo "$as_me:$LINENO: result: no" >&5
15814 echo "${ECHO_T}no" >&6
15817 DSYMUTIL=$ac_ct_DSYMUTIL
15819 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15822 if test -n "$ac_tool_prefix"; then
15823 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15824 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15825 echo "$as_me:$LINENO: checking for $ac_word" >&5
15826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15827 if test "${ac_cv_prog_NMEDIT+set}" = set; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 if test -n "$NMEDIT"; then
15831 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15849 NMEDIT=$ac_cv_prog_NMEDIT
15850 if test -n "$NMEDIT"; then
15851 echo "$as_me:$LINENO: result: $NMEDIT" >&5
15852 echo "${ECHO_T}$NMEDIT" >&6
15854 echo "$as_me:$LINENO: result: no" >&5
15855 echo "${ECHO_T}no" >&6
15859 if test -z "$ac_cv_prog_NMEDIT"; then
15860 ac_ct_NMEDIT=$NMEDIT
15861 # Extract the first word of "nmedit", so it can be a program name with args.
15862 set dummy nmedit; ac_word=$2
15863 echo "$as_me:$LINENO: checking for $ac_word" >&5
15864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15865 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 if test -n "$ac_ct_NMEDIT"; then
15869 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in $PATH
15875 test -z "$as_dir" && as_dir=.
15876 for ac_exec_ext in '' $ac_executable_extensions; do
15877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15878 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15885 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
15888 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15889 if test -n "$ac_ct_NMEDIT"; then
15890 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
15891 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
15893 echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6
15897 NMEDIT=$ac_ct_NMEDIT
15899 NMEDIT="$ac_cv_prog_NMEDIT"
15902 if test -n "$ac_tool_prefix"; then
15903 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15904 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15905 echo "$as_me:$LINENO: checking for $ac_word" >&5
15906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15907 if test "${ac_cv_prog_LIPO+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 if test -n "$LIPO"; then
15911 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15917 test -z "$as_dir" && as_dir=.
15918 for ac_exec_ext in '' $ac_executable_extensions; do
15919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15929 LIPO=$ac_cv_prog_LIPO
15930 if test -n "$LIPO"; then
15931 echo "$as_me:$LINENO: result: $LIPO" >&5
15932 echo "${ECHO_T}$LIPO" >&6
15934 echo "$as_me:$LINENO: result: no" >&5
15935 echo "${ECHO_T}no" >&6
15939 if test -z "$ac_cv_prog_LIPO"; then
15941 # Extract the first word of "lipo", so it can be a program name with args.
15942 set dummy lipo; ac_word=$2
15943 echo "$as_me:$LINENO: checking for $ac_word" >&5
15944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15945 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 if test -n "$ac_ct_LIPO"; then
15949 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958 ac_cv_prog_ac_ct_LIPO="lipo"
15959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15965 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
15968 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15969 if test -n "$ac_ct_LIPO"; then
15970 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
15971 echo "${ECHO_T}$ac_ct_LIPO" >&6
15973 echo "$as_me:$LINENO: result: no" >&5
15974 echo "${ECHO_T}no" >&6
15979 LIPO="$ac_cv_prog_LIPO"
15982 if test -n "$ac_tool_prefix"; then
15983 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15984 set dummy ${ac_tool_prefix}otool; ac_word=$2
15985 echo "$as_me:$LINENO: checking for $ac_word" >&5
15986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15987 if test "${ac_cv_prog_OTOOL+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 if test -n "$OTOOL"; then
15991 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15994 for as_dir in $PATH
15997 test -z "$as_dir" && as_dir=.
15998 for ac_exec_ext in '' $ac_executable_extensions; do
15999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16000 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16009 OTOOL=$ac_cv_prog_OTOOL
16010 if test -n "$OTOOL"; then
16011 echo "$as_me:$LINENO: result: $OTOOL" >&5
16012 echo "${ECHO_T}$OTOOL" >&6
16014 echo "$as_me:$LINENO: result: no" >&5
16015 echo "${ECHO_T}no" >&6
16019 if test -z "$ac_cv_prog_OTOOL"; then
16021 # Extract the first word of "otool", so it can be a program name with args.
16022 set dummy otool; ac_word=$2
16023 echo "$as_me:$LINENO: checking for $ac_word" >&5
16024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16025 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 if test -n "$ac_ct_OTOOL"; then
16029 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16032 for as_dir in $PATH
16035 test -z "$as_dir" && as_dir=.
16036 for ac_exec_ext in '' $ac_executable_extensions; do
16037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16038 ac_cv_prog_ac_ct_OTOOL="otool"
16039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16045 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16048 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16049 if test -n "$ac_ct_OTOOL"; then
16050 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
16051 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16053 echo "$as_me:$LINENO: result: no" >&5
16054 echo "${ECHO_T}no" >&6
16059 OTOOL="$ac_cv_prog_OTOOL"
16062 if test -n "$ac_tool_prefix"; then
16063 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16064 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16065 echo "$as_me:$LINENO: checking for $ac_word" >&5
16066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16067 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 if test -n "$OTOOL64"; then
16071 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074 for as_dir in $PATH
16077 test -z "$as_dir" && as_dir=.
16078 for ac_exec_ext in '' $ac_executable_extensions; do
16079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16080 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16089 OTOOL64=$ac_cv_prog_OTOOL64
16090 if test -n "$OTOOL64"; then
16091 echo "$as_me:$LINENO: result: $OTOOL64" >&5
16092 echo "${ECHO_T}$OTOOL64" >&6
16094 echo "$as_me:$LINENO: result: no" >&5
16095 echo "${ECHO_T}no" >&6
16099 if test -z "$ac_cv_prog_OTOOL64"; then
16100 ac_ct_OTOOL64=$OTOOL64
16101 # Extract the first word of "otool64", so it can be a program name with args.
16102 set dummy otool64; ac_word=$2
16103 echo "$as_me:$LINENO: checking for $ac_word" >&5
16104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16105 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 if test -n "$ac_ct_OTOOL64"; then
16109 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16112 for as_dir in $PATH
16115 test -z "$as_dir" && as_dir=.
16116 for ac_exec_ext in '' $ac_executable_extensions; do
16117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16118 ac_cv_prog_ac_ct_OTOOL64="otool64"
16119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16125 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16128 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16129 if test -n "$ac_ct_OTOOL64"; then
16130 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
16131 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16133 echo "$as_me:$LINENO: result: no" >&5
16134 echo "${ECHO_T}no" >&6
16137 OTOOL64=$ac_ct_OTOOL64
16139 OTOOL64="$ac_cv_prog_OTOOL64"
16168 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16169 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
16170 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 lt_cv_apple_cc_single_mod=no
16174 if test -z "${LT_MULTI_MODULE}"; then
16175 # By default we will add the -single_module flag. You can override
16176 # by either setting the environment variable LT_MULTI_MODULE
16177 # non-empty at configure time, or by adding -multi_module to the
16179 rm -rf libconftest.dylib*
16180 echo "int foo(void){return 1;}" > conftest.c
16181 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16182 -dynamiclib -Wl,-single_module conftest.c" >&5
16183 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16184 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16186 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16187 lt_cv_apple_cc_single_mod=yes
16189 cat conftest.err >&5
16191 rm -rf libconftest.dylib*
16195 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16196 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16197 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16198 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
16199 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 lt_cv_ld_exported_symbols_list=no
16203 save_LDFLAGS=$LDFLAGS
16204 echo "_main" > conftest.sym
16205 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16206 cat >conftest.$ac_ext <<_ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16221 rm -f conftest.$ac_objext conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223 (eval $ac_link) 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest$ac_exeext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 lt_cv_ld_exported_symbols_list=yes
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 lt_cv_ld_exported_symbols_list=no
16250 rm -f conftest.err conftest.$ac_objext \
16251 conftest$ac_exeext conftest.$ac_ext
16252 LDFLAGS="$save_LDFLAGS"
16255 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
16256 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16258 rhapsody* | darwin1.[012])
16259 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16262 darwin*) # darwin 5.x on
16263 # if running on 10.5 or later, the deployment target defaults
16264 # to the OS version, if on x86, and 10.4, the deployment
16265 # target defaults to 10.4. Don't you love it?
16266 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16267 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16272 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16276 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16277 _lt_dar_single_mod='$single_module'
16279 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16280 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16282 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16284 if test "$DSYMUTIL" != ":"; then
16285 _lt_dsymutil='~$DSYMUTIL $lib || :'
16293 for ac_header in dlfcn.h
16295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16296 echo "$as_me:$LINENO: checking for $ac_header" >&5
16297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 cat >conftest.$ac_ext <<_ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 #include <$ac_header>
16309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } >/dev/null; then
16317 if test -s conftest.err; then
16318 ac_cpp_err=$ac_c_preproc_warn_flag
16319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16326 if test -z "$ac_cpp_err"; then
16327 eval "$as_ac_Header=yes"
16329 echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 eval "$as_ac_Header=no"
16334 rm -f conftest.err conftest.$ac_ext
16336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16339 cat >>confdefs.h <<_ACEOF
16340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16355 enable_win32_dll=no
16358 # Check whether --enable-shared or --disable-shared was given.
16359 if test "${enable_shared+set}" = set; then
16360 enableval="$enable_shared"
16361 p=${PACKAGE-default}
16363 yes) enable_shared=yes ;;
16364 no) enable_shared=no ;;
16367 # Look at the argument we got. We use all the common list separators.
16368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16369 for pkg in $enableval; do
16371 if test "X$pkg" = "X$p"; then
16389 # Check whether --enable-static or --disable-static was given.
16390 if test "${enable_static+set}" = set; then
16391 enableval="$enable_static"
16392 p=${PACKAGE-default}
16394 yes) enable_static=yes ;;
16395 no) enable_static=no ;;
16398 # Look at the argument we got. We use all the common list separators.
16399 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16400 for pkg in $enableval; do
16402 if test "X$pkg" = "X$p"; then
16421 # Check whether --with-pic or --without-pic was given.
16422 if test "${with_pic+set}" = set; then
16423 withval="$with_pic"
16424 pic_mode="$withval"
16429 test -z "$pic_mode" && pic_mode=default
16437 # Check whether --enable-fast-install or --disable-fast-install was given.
16438 if test "${enable_fast_install+set}" = set; then
16439 enableval="$enable_fast_install"
16440 p=${PACKAGE-default}
16442 yes) enable_fast_install=yes ;;
16443 no) enable_fast_install=no ;;
16445 enable_fast_install=no
16446 # Look at the argument we got. We use all the common list separators.
16447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16448 for pkg in $enableval; do
16450 if test "X$pkg" = "X$p"; then
16451 enable_fast_install=yes
16458 enable_fast_install=yes
16470 # This can be used to rebuild libtool when needed
16471 LIBTOOL_DEPS="$ltmain"
16473 # Always use our own libtool.
16474 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16500 test -z "$LN_S" && LN_S="ln -s"
16515 if test -n "${ZSH_VERSION+set}" ; then
16516 setopt NO_GLOB_SUBST
16519 echo "$as_me:$LINENO: checking for objdir" >&5
16520 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16521 if test "${lt_cv_objdir+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 rm -f .libs 2>/dev/null
16525 mkdir .libs 2>/dev/null
16526 if test -d .libs; then
16529 # MS-DOS does not allow filenames that begin with a dot.
16532 rmdir .libs 2>/dev/null
16534 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16535 echo "${ECHO_T}$lt_cv_objdir" >&6
16536 objdir=$lt_cv_objdir
16542 cat >>confdefs.h <<_ACEOF
16543 #define LT_OBJDIR "$lt_cv_objdir/"
16564 # AIX sometimes has problems with the GCC collect2 program. For some
16565 # reason, if we set the COLLECT_NAMES environment variable, the problems
16566 # vanish in a puff of smoke.
16567 if test "X${COLLECT_NAMES+set}" != Xset; then
16569 export COLLECT_NAMES
16574 # Sed substitution that helps us do robust quoting. It backslashifies
16575 # metacharacters that are still active within double-quoted strings.
16576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16578 # Same as above, but do not quote variable references.
16579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16581 # Sed substitution to delay expansion of an escaped shell variable in a
16582 # double_quote_subst'ed string.
16583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16585 # Sed substitution to delay expansion of an escaped single quote.
16586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16588 # Sed substitution to avoid accidental globbing in evaled expressions
16589 no_glob_subst='s/\*/\\\*/g'
16591 # Global variables:
16593 can_build_shared=yes
16595 # All known linkers require a `.a' archive for static linking (except MSVC,
16596 # which needs '.lib').
16599 with_gnu_ld="$lt_cv_prog_gnu_ld"
16602 old_CFLAGS="$CFLAGS"
16604 # Set sane defaults for various variables
16605 test -z "$CC" && CC=cc
16606 test -z "$LTCC" && LTCC=$CC
16607 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16608 test -z "$LD" && LD=ld
16609 test -z "$ac_objext" && ac_objext=o
16611 for cc_temp in $compiler""; do
16613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16619 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16622 # Only perform the check for file, if the check method requires it
16623 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16624 case $deplibs_check_method in
16626 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16627 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16628 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16629 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16637 lt_save_MAGIC_CMD="$MAGIC_CMD"
16638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16639 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16640 for ac_dir in $ac_dummy; do
16642 test -z "$ac_dir" && ac_dir=.
16643 if test -f $ac_dir/${ac_tool_prefix}file; then
16644 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16645 if test -n "$file_magic_test_file"; then
16646 case $deplibs_check_method in
16648 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16651 $EGREP "$file_magic_regex" > /dev/null; then
16656 *** Warning: the command libtool uses to detect shared libraries,
16657 *** $file_magic_cmd, produces output that libtool cannot recognize.
16658 *** The result is that libtool may fail to recognize shared libraries
16659 *** as such. This will affect the creation of libtool libraries that
16660 *** depend on shared libraries, but programs linked with such libtool
16661 *** libraries will work regardless of this problem. Nevertheless, you
16662 *** may want to report the problem to your system manager and/or to
16663 *** bug-libtool@gnu.org
16673 MAGIC_CMD="$lt_save_MAGIC_CMD"
16678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16679 if test -n "$MAGIC_CMD"; then
16680 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16681 echo "${ECHO_T}$MAGIC_CMD" >&6
16683 echo "$as_me:$LINENO: result: no" >&5
16684 echo "${ECHO_T}no" >&6
16691 if test -z "$lt_cv_path_MAGIC_CMD"; then
16692 if test -n "$ac_tool_prefix"; then
16693 echo "$as_me:$LINENO: checking for file" >&5
16694 echo $ECHO_N "checking for file... $ECHO_C" >&6
16695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16703 lt_save_MAGIC_CMD="$MAGIC_CMD"
16704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16706 for ac_dir in $ac_dummy; do
16708 test -z "$ac_dir" && ac_dir=.
16709 if test -f $ac_dir/file; then
16710 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16711 if test -n "$file_magic_test_file"; then
16712 case $deplibs_check_method in
16714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16717 $EGREP "$file_magic_regex" > /dev/null; then
16722 *** Warning: the command libtool uses to detect shared libraries,
16723 *** $file_magic_cmd, produces output that libtool cannot recognize.
16724 *** The result is that libtool may fail to recognize shared libraries
16725 *** as such. This will affect the creation of libtool libraries that
16726 *** depend on shared libraries, but programs linked with such libtool
16727 *** libraries will work regardless of this problem. Nevertheless, you
16728 *** may want to report the problem to your system manager and/or to
16729 *** bug-libtool@gnu.org
16739 MAGIC_CMD="$lt_save_MAGIC_CMD"
16744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16745 if test -n "$MAGIC_CMD"; then
16746 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16747 echo "${ECHO_T}$MAGIC_CMD" >&6
16749 echo "$as_me:$LINENO: result: no" >&5
16750 echo "${ECHO_T}no" >&6
16763 # Use C for the default configuration in the libtool script
16767 ac_cpp='$CPP $CPPFLAGS'
16768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16773 # Source file extension for C test sources.
16776 # Object file extension for compiled C test sources.
16780 # Code to be used in simple compile tests
16781 lt_simple_compile_test_code="int some_variable = 0;"
16783 # Code to be used in simple link tests
16784 lt_simple_link_test_code='int main(){return(0);}'
16792 # If no C compiler was specified, use CC.
16795 # If no C compiler flags were specified, use CFLAGS.
16796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16798 # Allow CC to be a program name with arguments.
16801 # Save the default compiler, since it gets overwritten when the other
16802 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16803 compiler_DEFAULT=$CC
16805 # save warnings/boilerplate of simple test code
16806 ac_outfile=conftest.$ac_objext
16807 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16808 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16809 _lt_compiler_boilerplate=`cat conftest.err`
16812 ac_outfile=conftest.$ac_objext
16813 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16814 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16815 _lt_linker_boilerplate=`cat conftest.err`
16820 ## There is no encapsulation within the following macros, do not change
16821 ## the running order or otherwise move them around unless you know exactly
16822 ## what you are doing...
16823 if test -n "$compiler"; then
16825 lt_prog_compiler_no_builtin_flag=
16827 if test "$GCC" = yes; then
16828 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16830 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16831 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16832 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 lt_cv_prog_compiler_rtti_exceptions=no
16836 ac_outfile=conftest.$ac_objext
16837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16838 lt_compiler_flag="-fno-rtti -fno-exceptions"
16839 # Insert the option either (1) after the last *FLAGS variable, or
16840 # (2) before a word containing "conftest.", or (3) at the end.
16841 # Note that $ac_compile itself does not contain backslashes and begins
16842 # with a dollar sign (not a hyphen), so the echo should work correctly.
16843 # The option is referenced via a variable to avoid confusing sed.
16844 lt_compile=`echo "$ac_compile" | $SED \
16845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16847 -e 's:$: $lt_compiler_flag:'`
16848 (eval echo "\"\$as_me:16848: $lt_compile\"" >&5)
16849 (eval "$lt_compile" 2>conftest.err)
16851 cat conftest.err >&5
16852 echo "$as_me:16852: \$? = $ac_status" >&5
16853 if (exit $ac_status) && test -s "$ac_outfile"; then
16854 # The compiler can only warn and ignore the option if not recognized
16855 # So say no if there are warnings other than the usual output.
16856 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16859 lt_cv_prog_compiler_rtti_exceptions=yes
16865 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16866 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16868 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16869 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16881 lt_prog_compiler_wl=
16882 lt_prog_compiler_pic=
16883 lt_prog_compiler_static=
16885 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16888 if test "$GCC" = yes; then
16889 lt_prog_compiler_wl='-Wl,'
16890 lt_prog_compiler_static='-static'
16894 # All AIX code is PIC.
16895 if test "$host_cpu" = ia64; then
16896 # AIX 5 now supports IA64 processor
16897 lt_prog_compiler_static='-Bstatic'
16904 # see comment about AmigaOS4 .so support
16905 lt_prog_compiler_pic='-fPIC'
16908 # FIXME: we need at least 68020 code to build shared libraries, but
16909 # adding the `-m68020' flag to GCC prevents building anything better,
16911 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16916 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16917 # PIC is the default for these OSes.
16920 mingw* | cygwin* | pw32* | os2* | cegcc*)
16921 # This hack is so that the source file can tell whether it is being
16922 # built for inclusion in a dll (and should export symbols for example).
16923 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16924 # (--disable-auto-import) libraries
16925 lt_prog_compiler_pic='-DDLL_EXPORT'
16928 darwin* | rhapsody*)
16929 # PIC is the default on this platform
16930 # Common symbols not allowed in MH_DYLIB files
16931 lt_prog_compiler_pic='-fno-common'
16935 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16936 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16937 # sets the default TLS model and affects inlining.
16943 lt_prog_compiler_pic='-fPIC'
16949 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16950 # Instead, we relocate shared libraries at runtime.
16954 # Just because we use GCC doesn't mean we suddenly get shared libraries
16955 # on systems that don't support them.
16956 lt_prog_compiler_can_build_shared=no
16961 # QNX uses GNU C++, but need to define -shared option too, otherwise
16962 # it will coredump.
16963 lt_prog_compiler_pic='-fPIC -shared'
16967 if test -d /usr/nec; then
16968 lt_prog_compiler_pic=-Kconform_pic
16973 lt_prog_compiler_pic='-fPIC'
16977 # PORTME Check for flag to pass linker flags through the system compiler.
16980 lt_prog_compiler_wl='-Wl,'
16981 if test "$host_cpu" = ia64; then
16982 # AIX 5 now supports IA64 processor
16983 lt_prog_compiler_static='-Bstatic'
16985 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16989 mingw* | cygwin* | pw32* | os2* | cegcc*)
16990 # This hack is so that the source file can tell whether it is being
16991 # built for inclusion in a dll (and should export symbols for example).
16992 lt_prog_compiler_pic='-DDLL_EXPORT'
16995 hpux9* | hpux10* | hpux11*)
16996 lt_prog_compiler_wl='-Wl,'
16997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16998 # not for PA HP-UX.
17004 lt_prog_compiler_pic='+Z'
17007 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17008 lt_prog_compiler_static='${wl}-a ${wl}archive'
17011 irix5* | irix6* | nonstopux*)
17012 lt_prog_compiler_wl='-Wl,'
17013 # PIC (with -KPIC) is the default.
17014 lt_prog_compiler_static='-non_shared'
17017 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17018 case $cc_basename in
17019 # old Intel for x86_64 which still supported -KPIC.
17021 lt_prog_compiler_wl='-Wl,'
17022 lt_prog_compiler_pic='-KPIC'
17023 lt_prog_compiler_static='-static'
17025 # icc used to be incompatible with GCC.
17026 # ICC 10 doesn't accept -KPIC any more.
17028 lt_prog_compiler_wl='-Wl,'
17029 lt_prog_compiler_pic='-fPIC'
17030 lt_prog_compiler_static='-static'
17032 # Lahey Fortran 8.1.
17034 lt_prog_compiler_wl='-Wl,'
17035 lt_prog_compiler_pic='--shared'
17036 lt_prog_compiler_static='--static'
17038 pgcc* | pgf77* | pgf90* | pgf95*)
17039 # Portland Group compilers (*not* the Pentium gcc compiler,
17040 # which looks to be a dead project)
17041 lt_prog_compiler_wl='-Wl,'
17042 lt_prog_compiler_pic='-fpic'
17043 lt_prog_compiler_static='-Bstatic'
17046 lt_prog_compiler_wl='-Wl,'
17047 # All Alpha code is PIC.
17048 lt_prog_compiler_static='-non_shared'
17051 # IBM XL C 8.0/Fortran 10.1 on PPC
17052 lt_prog_compiler_wl='-Wl,'
17053 lt_prog_compiler_pic='-qpic'
17054 lt_prog_compiler_static='-qstaticlink'
17057 case `$CC -V 2>&1 | sed 5q` in
17060 lt_prog_compiler_pic='-KPIC'
17061 lt_prog_compiler_static='-Bstatic'
17062 lt_prog_compiler_wl='-Wl,'
17065 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17066 lt_prog_compiler_pic='-KPIC'
17067 lt_prog_compiler_static='-Bstatic'
17068 lt_prog_compiler_wl=''
17076 lt_prog_compiler_pic='-KPIC'
17077 lt_prog_compiler_static='-Bstatic'
17081 # QNX uses GNU C++, but need to define -shared option too, otherwise
17082 # it will coredump.
17083 lt_prog_compiler_pic='-fPIC -shared'
17086 osf3* | osf4* | osf5*)
17087 lt_prog_compiler_wl='-Wl,'
17088 # All OSF/1 code is PIC.
17089 lt_prog_compiler_static='-non_shared'
17093 lt_prog_compiler_static='-non_shared'
17097 lt_prog_compiler_pic='-KPIC'
17098 lt_prog_compiler_static='-Bstatic'
17099 case $cc_basename in
17100 f77* | f90* | f95*)
17101 lt_prog_compiler_wl='-Qoption ld ';;
17103 lt_prog_compiler_wl='-Wl,';;
17108 lt_prog_compiler_wl='-Qoption ld '
17109 lt_prog_compiler_pic='-PIC'
17110 lt_prog_compiler_static='-Bstatic'
17113 sysv4 | sysv4.2uw2* | sysv4.3*)
17114 lt_prog_compiler_wl='-Wl,'
17115 lt_prog_compiler_pic='-KPIC'
17116 lt_prog_compiler_static='-Bstatic'
17120 if test -d /usr/nec ;then
17121 lt_prog_compiler_pic='-Kconform_pic'
17122 lt_prog_compiler_static='-Bstatic'
17126 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17127 lt_prog_compiler_wl='-Wl,'
17128 lt_prog_compiler_pic='-KPIC'
17129 lt_prog_compiler_static='-Bstatic'
17133 lt_prog_compiler_wl='-Wl,'
17134 lt_prog_compiler_can_build_shared=no
17138 lt_prog_compiler_pic='-pic'
17139 lt_prog_compiler_static='-Bstatic'
17143 lt_prog_compiler_can_build_shared=no
17149 # For platforms which do not support PIC, -DPIC is meaningless:
17151 lt_prog_compiler_pic=
17154 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17157 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17158 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17166 # Check to make sure the PIC flag actually works.
17168 if test -n "$lt_prog_compiler_pic"; then
17169 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17170 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17171 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 lt_cv_prog_compiler_pic_works=no
17175 ac_outfile=conftest.$ac_objext
17176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17177 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17178 # Insert the option either (1) after the last *FLAGS variable, or
17179 # (2) before a word containing "conftest.", or (3) at the end.
17180 # Note that $ac_compile itself does not contain backslashes and begins
17181 # with a dollar sign (not a hyphen), so the echo should work correctly.
17182 # The option is referenced via a variable to avoid confusing sed.
17183 lt_compile=`echo "$ac_compile" | $SED \
17184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17186 -e 's:$: $lt_compiler_flag:'`
17187 (eval echo "\"\$as_me:17187: $lt_compile\"" >&5)
17188 (eval "$lt_compile" 2>conftest.err)
17190 cat conftest.err >&5
17191 echo "$as_me:17191: \$? = $ac_status" >&5
17192 if (exit $ac_status) && test -s "$ac_outfile"; then
17193 # The compiler can only warn and ignore the option if not recognized
17194 # So say no if there are warnings other than the usual output.
17195 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17197 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17198 lt_cv_prog_compiler_pic_works=yes
17204 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17205 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
17207 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17208 case $lt_prog_compiler_pic in
17210 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17213 lt_prog_compiler_pic=
17214 lt_prog_compiler_can_build_shared=no
17225 # Check to make sure the static flag actually works.
17227 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17228 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17229 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17230 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 lt_cv_prog_compiler_static_works=no
17234 save_LDFLAGS="$LDFLAGS"
17235 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17236 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17238 # The linker can only warn and ignore the option if not recognized
17239 # So say no if there are warnings
17240 if test -s conftest.err; then
17241 # Append any errors to the config.log.
17242 cat conftest.err 1>&5
17243 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17245 if diff conftest.exp conftest.er2 >/dev/null; then
17246 lt_cv_prog_compiler_static_works=yes
17249 lt_cv_prog_compiler_static_works=yes
17253 LDFLAGS="$save_LDFLAGS"
17256 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17257 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
17259 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17262 lt_prog_compiler_static=
17271 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17272 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17273 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 lt_cv_prog_compiler_c_o=no
17277 $RM -r conftest 2>/dev/null
17281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17283 lt_compiler_flag="-o out/conftest2.$ac_objext"
17284 # Insert the option either (1) after the last *FLAGS variable, or
17285 # (2) before a word containing "conftest.", or (3) at the end.
17286 # Note that $ac_compile itself does not contain backslashes and begins
17287 # with a dollar sign (not a hyphen), so the echo should work correctly.
17288 lt_compile=`echo "$ac_compile" | $SED \
17289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17291 -e 's:$: $lt_compiler_flag:'`
17292 (eval echo "\"\$as_me:17292: $lt_compile\"" >&5)
17293 (eval "$lt_compile" 2>out/conftest.err)
17295 cat out/conftest.err >&5
17296 echo "$as_me:17296: \$? = $ac_status" >&5
17297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17299 # The compiler can only warn and ignore the option if not recognized
17300 # So say no if there are warnings
17301 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17304 lt_cv_prog_compiler_c_o=yes
17309 # SGI C++ compiler will create directory out/ii_files/ for
17310 # template instantiation
17311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17312 $RM out/* && rmdir out
17318 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17319 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17326 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17327 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17328 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 lt_cv_prog_compiler_c_o=no
17332 $RM -r conftest 2>/dev/null
17336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17338 lt_compiler_flag="-o out/conftest2.$ac_objext"
17339 # Insert the option either (1) after the last *FLAGS variable, or
17340 # (2) before a word containing "conftest.", or (3) at the end.
17341 # Note that $ac_compile itself does not contain backslashes and begins
17342 # with a dollar sign (not a hyphen), so the echo should work correctly.
17343 lt_compile=`echo "$ac_compile" | $SED \
17344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17346 -e 's:$: $lt_compiler_flag:'`
17347 (eval echo "\"\$as_me:17347: $lt_compile\"" >&5)
17348 (eval "$lt_compile" 2>out/conftest.err)
17350 cat out/conftest.err >&5
17351 echo "$as_me:17351: \$? = $ac_status" >&5
17352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17354 # The compiler can only warn and ignore the option if not recognized
17355 # So say no if there are warnings
17356 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17359 lt_cv_prog_compiler_c_o=yes
17364 # SGI C++ compiler will create directory out/ii_files/ for
17365 # template instantiation
17366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17367 $RM out/* && rmdir out
17373 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17374 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17379 hard_links="nottested"
17380 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17381 # do not overwrite the value of need_locks provided by the user
17382 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17383 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17388 ln conftest.a conftest.b 2>&5 || hard_links=no
17389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17390 echo "$as_me:$LINENO: result: $hard_links" >&5
17391 echo "${ECHO_T}$hard_links" >&6
17392 if test "$hard_links" = no; then
17393 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17394 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17406 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17407 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17410 allow_undefined_flag=
17411 always_export_symbols=no
17413 archive_expsym_cmds=
17414 compiler_needs_object=no
17415 enable_shared_with_static_runtimes=no
17416 export_dynamic_flag_spec=
17417 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17418 hardcode_automatic=no
17420 hardcode_direct_absolute=no
17421 hardcode_libdir_flag_spec=
17422 hardcode_libdir_flag_spec_ld=
17423 hardcode_libdir_separator=
17424 hardcode_minus_L=no
17425 hardcode_shlibpath_var=unsupported
17427 link_all_deplibs=unknown
17429 module_expsym_cmds=
17430 old_archive_from_new_cmds=
17431 old_archive_from_expsyms_cmds=
17432 thread_safe_flag_spec=
17433 whole_archive_flag_spec=
17434 # include_expsyms should be a list of space-separated symbols to be *always*
17435 # included in the symbol list
17437 # exclude_expsyms can be an extended regexp of symbols to exclude
17438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17440 # as well as any symbol that contains `d'.
17441 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17443 # platforms (ab)use it in PIC code, but their linkers get confused if
17444 # the symbol is explicitly referenced. Since portable code cannot
17445 # rely on this symbol name, it's probably fine to never include it in
17446 # preloaded symbol tables.
17447 # Exclude shared library initialization/finalization symbols.
17448 extract_expsyms_cmds=
17451 cygwin* | mingw* | pw32* | cegcc*)
17452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17453 # When not using gcc, we currently assume that we are using
17454 # Microsoft Visual C++.
17455 if test "$GCC" != yes; then
17460 # we just hope/assume this is gcc and not c89 (= MSVC++)
17469 if test "$with_gnu_ld" = yes; then
17470 # If archive_cmds runs LD, not CC, wlarc should be empty
17473 # Set some defaults for GNU ld with shared library support. These
17474 # are reset later if shared libraries are not supported. Putting them
17475 # here allows them to be overridden if necessary.
17476 runpath_var=LD_RUN_PATH
17477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17478 export_dynamic_flag_spec='${wl}--export-dynamic'
17479 # ancient GNU ld didn't support --whole-archive et. al.
17480 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17481 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17483 whole_archive_flag_spec=
17485 supports_anon_versioning=no
17486 case `$LD -v 2>&1` in
17487 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17488 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17489 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17490 *\ 2.11.*) ;; # other 2.11 versions
17491 *) supports_anon_versioning=yes ;;
17494 # See if GNU ld supports shared libraries.
17497 # On AIX/PPC, the GNU linker is very broken
17498 if test "$host_cpu" != ia64; then
17502 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17503 *** to be unable to reliably create shared libraries on AIX.
17504 *** Therefore, libtool is disabling shared libraries support. If you
17505 *** really care for shared libraries, you may want to modify your PATH
17506 *** so that a non-GNU linker is found, and then restart.
17515 # see comment about AmigaOS4 .so support
17516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17517 archive_expsym_cmds=''
17520 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)'
17521 hardcode_libdir_flag_spec='-L$libdir'
17522 hardcode_minus_L=yes
17528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17529 allow_undefined_flag=unsupported
17530 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17531 # support --undefined. This deserves some investigation. FIXME
17532 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17538 cygwin* | mingw* | pw32* | cegcc*)
17539 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17540 # as there is no search path for DLLs.
17541 hardcode_libdir_flag_spec='-L$libdir'
17542 allow_undefined_flag=unsupported
17543 always_export_symbols=no
17544 enable_shared_with_static_runtimes=yes
17545 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17547 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17549 # If the export-symbols file already is a .def file (1st line
17550 # is EXPORTS), use it as is; otherwise, prepend...
17551 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17552 cp $export_symbols $output_objdir/$soname.def;
17554 echo EXPORTS > $output_objdir/$soname.def;
17555 cat $export_symbols >> $output_objdir/$soname.def;
17557 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17565 hardcode_shlibpath_var=no
17566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17567 export_dynamic_flag_spec='${wl}-E'
17568 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17569 # Instead, shared libraries are loaded at an image base (0x10000000 by
17570 # default) and relocated if they conflict, which is a slow very memory
17571 # consuming and fragmenting process. To avoid this, we pick a random,
17572 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17573 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17575 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'
17578 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17580 if test "$host_os" = linux-dietlibc; then
17581 case $cc_basename in
17582 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17585 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17586 && test "$tmp_diet" = no
17589 tmp_sharedflag='-shared'
17590 case $cc_basename,$host_cpu in
17591 pgcc*) # Portland Group C compiler
17592 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'
17593 tmp_addflag=' $pic_flag'
17595 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17596 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'
17597 tmp_addflag=' $pic_flag -Mnomain' ;;
17598 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17599 tmp_addflag=' -i_dynamic' ;;
17600 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17601 tmp_addflag=' -i_dynamic -nofor_main' ;;
17602 ifc* | ifort*) # Intel Fortran compiler
17603 tmp_addflag=' -nofor_main' ;;
17604 lf95*) # Lahey Fortran 8.1
17605 whole_archive_flag_spec=
17606 tmp_sharedflag='--shared' ;;
17607 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17608 tmp_sharedflag='-qmkshrobj'
17611 case `$CC -V 2>&1 | sed 5q` in
17612 *Sun\ C*) # Sun C 5.9
17613 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'
17614 compiler_needs_object=yes
17615 tmp_sharedflag='-G' ;;
17616 *Sun\ F*) # Sun Fortran 8.3
17617 tmp_sharedflag='-G' ;;
17619 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17621 if test "x$supports_anon_versioning" = xyes; then
17622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17624 echo "local: *; };" >> $output_objdir/$libname.ver~
17625 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17628 case $cc_basename in
17630 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17631 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17632 hardcode_libdir_flag_spec=
17633 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17634 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17635 if test "x$supports_anon_versioning" = xyes; then
17636 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17638 echo "local: *; };" >> $output_objdir/$libname.ver~
17639 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17650 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17659 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17663 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17664 *** create shared libraries on Solaris systems. Therefore, libtool
17665 *** is disabling shared libraries support. We urge you to upgrade GNU
17666 *** binutils to release 2.9.1 or newer. Another option is to modify
17667 *** your PATH or compiler configuration so that the native linker is
17668 *** used, and then restart.
17671 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17680 case `$LD -v 2>&1` in
17681 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17685 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17686 *** reliably create shared libraries on SCO systems. Therefore, libtool
17687 *** is disabling shared libraries support. We urge you to upgrade GNU
17688 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17689 *** your PATH or compiler configuration so that the native linker is
17690 *** used, and then restart.
17695 # For security reasons, it is highly recommended that you always
17696 # use absolute paths for naming shared libraries, and exclude the
17697 # DT_RUNPATH tag from executables and libraries. But doing so
17698 # requires that you compile everything twice, which is a pain.
17699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17711 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17713 hardcode_direct=yes
17714 hardcode_shlibpath_var=no
17718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17720 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17727 if test "$ld_shlibs" = no; then
17729 hardcode_libdir_flag_spec=
17730 export_dynamic_flag_spec=
17731 whole_archive_flag_spec=
17734 # PORTME fill in a description of your system's linker (not GNU ld)
17737 allow_undefined_flag=unsupported
17738 always_export_symbols=yes
17739 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'
17740 # Note: this linker hardcodes the directories in LIBPATH if there
17741 # are no directories specified by -L.
17742 hardcode_minus_L=yes
17743 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17744 # Neither direct hardcoding nor static linking is supported with a
17746 hardcode_direct=unsupported
17751 if test "$host_cpu" = ia64; then
17752 # On IA64, the linker does run time linking by default, so we don't
17753 # have to do anything special.
17754 aix_use_runtimelinking=no
17755 exp_sym_flag='-Bexport'
17758 # If we're using GNU nm, then we don't want the "-C" option.
17759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17760 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17761 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'
17763 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'
17765 aix_use_runtimelinking=no
17767 # Test if we are trying to use run time linking or normal
17768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17769 # need to do runtime linking.
17770 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17771 for ld_flag in $LDFLAGS; do
17772 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17773 aix_use_runtimelinking=yes
17780 exp_sym_flag='-bexport'
17781 no_entry_flag='-bnoentry'
17784 # When large executables or shared objects are built, AIX ld can
17785 # have problems creating the table of contents. If linking a library
17786 # or program results in "error TOC overflow" add -mminimal-toc to
17787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17791 hardcode_direct=yes
17792 hardcode_direct_absolute=yes
17793 hardcode_libdir_separator=':'
17794 link_all_deplibs=yes
17795 file_list_spec='${wl}-f,'
17797 if test "$GCC" = yes; then
17798 case $host_os in aix4.[012]|aix4.[012].*)
17799 # We only want to do this on AIX 4.2 and lower, the check
17800 # below for broken collect2 doesn't work under 4.3+
17801 collect2name=`${CC} -print-prog-name=collect2`
17802 if test -f "$collect2name" &&
17803 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17805 # We have reworked collect2
17808 # We have old collect2
17809 hardcode_direct=unsupported
17810 # It fails to find uninstalled libraries when the uninstalled
17811 # path is not listed in the libpath. Setting hardcode_minus_L
17812 # to unsupported forces relinking
17813 hardcode_minus_L=yes
17814 hardcode_libdir_flag_spec='-L$libdir'
17815 hardcode_libdir_separator=
17819 shared_flag='-shared'
17820 if test "$aix_use_runtimelinking" = yes; then
17821 shared_flag="$shared_flag "'${wl}-G'
17825 if test "$host_cpu" = ia64; then
17826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17827 # chokes on -Wl,-G. The following line is correct:
17830 if test "$aix_use_runtimelinking" = yes; then
17831 shared_flag='${wl}-G'
17833 shared_flag='${wl}-bM:SRE'
17838 export_dynamic_flag_spec='${wl}-bexpall'
17839 # It seems that -bexpall does not export symbols beginning with
17840 # underscore (_), so it is better to generate a list of symbols to export.
17841 always_export_symbols=yes
17842 if test "$aix_use_runtimelinking" = yes; then
17843 # Warning - without using the other runtime loading flags (-brtl),
17844 # -berok will link without error, but may produce a broken library.
17845 allow_undefined_flag='-berok'
17846 # Determine the default libpath from the value encoded in an
17847 # empty executable.
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17865 (eval $ac_link) 2>conftest.er1
17867 grep -v '^ *+' conftest.er1 >conftest.err
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } &&
17872 { ac_try='test -z "$ac_c_werror_flag"
17873 || test ! -s conftest.err'
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; } &&
17879 { ac_try='test -s conftest$ac_exeext'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; }; then
17886 lt_aix_libpath_sed='
17887 /Import File Strings/,/^$/ {
17893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17894 # Check for a 64-bit object if we didn't find anything.
17895 if test -z "$aix_libpath"; then
17896 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17903 rm -f conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17908 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"
17910 if test "$host_cpu" = ia64; then
17911 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17912 allow_undefined_flag="-z nodefs"
17913 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"
17915 # Determine the default libpath from the value encoded in an
17916 # empty executable.
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17934 (eval $ac_link) 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_c_werror_flag"
17942 || test ! -s conftest.err'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17955 lt_aix_libpath_sed='
17956 /Import File Strings/,/^$/ {
17962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17963 # Check for a 64-bit object if we didn't find anything.
17964 if test -z "$aix_libpath"; then
17965 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17968 echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17972 rm -f conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17976 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17977 # Warning - without using the other run time loading flags,
17978 # -berok will link without error, but may produce a broken library.
17979 no_undefined_flag=' ${wl}-bernotok'
17980 allow_undefined_flag=' ${wl}-berok'
17981 # Exported symbols can be pulled into shared objects from archives
17982 whole_archive_flag_spec='$convenience'
17983 archive_cmds_need_lc=yes
17984 # This is similar to how AIX traditionally builds its shared libraries.
17985 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'
17993 # see comment about AmigaOS4 .so support
17994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17995 archive_expsym_cmds=''
17998 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)'
17999 hardcode_libdir_flag_spec='-L$libdir'
18000 hardcode_minus_L=yes
18006 export_dynamic_flag_spec=-rdynamic
18009 cygwin* | mingw* | pw32* | cegcc*)
18010 # When not using gcc, we currently assume that we are using
18011 # Microsoft Visual C++.
18012 # hardcode_libdir_flag_spec is actually meaningless, as there is
18013 # no search path for DLLs.
18014 hardcode_libdir_flag_spec=' '
18015 allow_undefined_flag=unsupported
18016 # Tell ltmain to make .lib files, not .a files.
18018 # Tell ltmain to make .dll files, not .so files.
18020 # FIXME: Setting linknames here is a bad hack.
18021 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18022 # The linker will automatically build a .lib file if we build a DLL.
18023 old_archive_from_new_cmds='true'
18024 # FIXME: Should let the user specify the lib program.
18025 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18026 fix_srcfile_path='`cygpath -w "$srcfile"`'
18027 enable_shared_with_static_runtimes=yes
18030 darwin* | rhapsody*)
18033 archive_cmds_need_lc=no
18035 hardcode_automatic=yes
18036 hardcode_shlibpath_var=unsupported
18037 whole_archive_flag_spec=''
18038 link_all_deplibs=yes
18039 allow_undefined_flag="$_lt_dar_allow_undefined"
18040 case $cc_basename in
18041 ifort*) _lt_dar_can_shared=yes ;;
18042 *) _lt_dar_can_shared=$GCC ;;
18044 if test "$_lt_dar_can_shared" = "yes"; then
18045 output_verbose_link_cmd=echo
18046 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18047 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18048 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}"
18049 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}"
18058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059 hardcode_libdir_flag_spec='-L$libdir'
18060 hardcode_shlibpath_var=no
18067 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18068 # support. Future versions do this automatically, but an explicit c++rt0.o
18069 # does not break anything, and helps significantly (at the cost of a little
18072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18073 hardcode_libdir_flag_spec='-R$libdir'
18074 hardcode_direct=yes
18075 hardcode_shlibpath_var=no
18078 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18081 hardcode_direct=yes
18082 hardcode_minus_L=yes
18083 hardcode_shlibpath_var=no
18086 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18087 freebsd* | dragonfly*)
18088 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18089 hardcode_libdir_flag_spec='-R$libdir'
18090 hardcode_direct=yes
18091 hardcode_shlibpath_var=no
18095 if test "$GCC" = yes; then
18096 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'
18098 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'
18100 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18101 hardcode_libdir_separator=:
18102 hardcode_direct=yes
18104 # hardcode_minus_L: Not really in the search PATH,
18105 # but as the default location of the library.
18106 hardcode_minus_L=yes
18107 export_dynamic_flag_spec='${wl}-E'
18111 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18112 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18114 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18116 if test "$with_gnu_ld" = no; then
18117 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18118 hardcode_libdir_flag_spec_ld='+b $libdir'
18119 hardcode_libdir_separator=:
18120 hardcode_direct=yes
18121 hardcode_direct_absolute=yes
18122 export_dynamic_flag_spec='${wl}-E'
18123 # hardcode_minus_L: Not really in the search PATH,
18124 # but as the default location of the library.
18125 hardcode_minus_L=yes
18130 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18133 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18136 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18139 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18145 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18151 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18155 if test "$with_gnu_ld" = no; then
18156 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18157 hardcode_libdir_separator=:
18162 hardcode_shlibpath_var=no
18165 hardcode_direct=yes
18166 hardcode_direct_absolute=yes
18167 export_dynamic_flag_spec='${wl}-E'
18169 # hardcode_minus_L: Not really in the search PATH,
18170 # but as the default location of the library.
18171 hardcode_minus_L=yes
18177 irix5* | irix6* | nonstopux*)
18178 if test "$GCC" = yes; then
18179 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'
18180 # Try to use the -exported_symbol ld option, if it does not
18181 # work, assume that -exports_file does not work either and
18182 # implicitly export all symbols.
18183 save_LDFLAGS="$LDFLAGS"
18184 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18185 cat >conftest.$ac_ext <<_ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18192 grep -v '^ *+' conftest.er1 >conftest.err
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 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'
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18217 rm -f conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18219 LDFLAGS="$save_LDFLAGS"
18221 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'
18222 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'
18224 archive_cmds_need_lc='no'
18225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18226 hardcode_libdir_separator=:
18228 link_all_deplibs=yes
18232 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18235 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18237 hardcode_libdir_flag_spec='-R$libdir'
18238 hardcode_direct=yes
18239 hardcode_shlibpath_var=no
18243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18244 hardcode_direct=yes
18245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18246 hardcode_libdir_separator=:
18247 hardcode_shlibpath_var=no
18254 if test -f /usr/libexec/ld.so; then
18255 hardcode_direct=yes
18256 hardcode_shlibpath_var=no
18257 hardcode_direct_absolute=yes
18258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18260 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18262 export_dynamic_flag_spec='${wl}-E'
18265 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18267 hardcode_libdir_flag_spec='-R$libdir'
18270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18281 hardcode_libdir_flag_spec='-L$libdir'
18282 hardcode_minus_L=yes
18283 allow_undefined_flag=unsupported
18284 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'
18285 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18289 if test "$GCC" = yes; then
18290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18291 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'
18293 allow_undefined_flag=' -expect_unresolved \*'
18294 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'
18296 archive_cmds_need_lc='no'
18297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18298 hardcode_libdir_separator=:
18301 osf4* | osf5*) # as osf3* with the addition of -msym flag
18302 if test "$GCC" = yes; then
18303 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18304 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'
18305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18307 allow_undefined_flag=' -expect_unresolved \*'
18308 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'
18309 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~
18310 $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'
18312 # Both c and cxx compiler support -rpath directly
18313 hardcode_libdir_flag_spec='-rpath $libdir'
18315 archive_cmds_need_lc='no'
18316 hardcode_libdir_separator=:
18320 no_undefined_flag=' -z defs'
18321 if test "$GCC" = yes; then
18323 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18325 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18327 case `$CC -V 2>&1` in
18330 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18332 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18336 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18338 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18342 hardcode_libdir_flag_spec='-R$libdir'
18343 hardcode_shlibpath_var=no
18345 solaris2.[0-5] | solaris2.[0-5].*) ;;
18347 # The compiler driver will combine and reorder linker options,
18348 # but understands `-z linker_flag'. GCC discards it without `$wl',
18349 # but is careful enough not to reorder.
18350 # Supported since Solaris 2.6 (maybe 2.5.1?)
18351 if test "$GCC" = yes; then
18352 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18354 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18358 link_all_deplibs=yes
18362 if test "x$host_vendor" = xsequent; then
18363 # Use $CC to link under sequent, because it throws in some extra .o
18364 # files that make .init and .fini sections work.
18365 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18367 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18369 hardcode_libdir_flag_spec='-L$libdir'
18370 hardcode_direct=yes
18371 hardcode_minus_L=yes
18372 hardcode_shlibpath_var=no
18376 case $host_vendor in
18378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18379 hardcode_direct=yes # is this really true???
18382 ## LD is ld it makes a PLAMLIB
18383 ## CC just makes a GrossModule.
18384 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18385 reload_cmds='$CC -r -o $output$reload_objs'
18389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18390 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18393 runpath_var='LD_RUN_PATH'
18394 hardcode_shlibpath_var=no
18398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18399 hardcode_shlibpath_var=no
18400 export_dynamic_flag_spec='-Bexport'
18404 if test -d /usr/nec; then
18405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18406 hardcode_shlibpath_var=no
18407 runpath_var=LD_RUN_PATH
18408 hardcode_runpath_var=yes
18413 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18414 no_undefined_flag='${wl}-z,text'
18415 archive_cmds_need_lc=no
18416 hardcode_shlibpath_var=no
18417 runpath_var='LD_RUN_PATH'
18419 if test "$GCC" = yes; then
18420 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18421 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18423 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18424 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18428 sysv5* | sco3.2v5* | sco5v6*)
18429 # Note: We can NOT use -z defs as we might desire, because we do not
18430 # link with -lc, and that would cause any symbols used from libc to
18431 # always be unresolved, which means just about no library would
18432 # ever link correctly. If we're not using GNU ld we use -z text
18433 # though, which does catch some bad symbols but isn't as heavy-handed
18435 no_undefined_flag='${wl}-z,text'
18436 allow_undefined_flag='${wl}-z,nodefs'
18437 archive_cmds_need_lc=no
18438 hardcode_shlibpath_var=no
18439 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18440 hardcode_libdir_separator=':'
18441 link_all_deplibs=yes
18442 export_dynamic_flag_spec='${wl}-Bexport'
18443 runpath_var='LD_RUN_PATH'
18445 if test "$GCC" = yes; then
18446 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18447 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18449 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18450 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18456 hardcode_libdir_flag_spec='-L$libdir'
18457 hardcode_shlibpath_var=no
18465 if test x$host_vendor = xsni; then
18467 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18468 export_dynamic_flag_spec='${wl}-Blargedynsym'
18474 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18475 echo "${ECHO_T}$ld_shlibs" >&6
18476 test "$ld_shlibs" = no && can_build_shared=no
18478 with_gnu_ld=$with_gnu_ld
18495 # Do we need to explicitly link libc?
18497 case "x$archive_cmds_need_lc" in
18499 # Assume -lc should be added
18500 archive_cmds_need_lc=yes
18502 if test "$enable_shared" = yes && test "$GCC" = yes; then
18503 case $archive_cmds in
18505 # FIXME: we may have to deal with multi-command sequences.
18508 # Test whether the compiler implicitly links with -lc since on some
18509 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18510 # to ld, don't add -lc before -lgcc.
18511 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18512 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18513 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18520 (eval $ac_compile) 2>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } 2>conftest.err; then
18526 libobjs=conftest.$ac_objext
18528 wl=$lt_prog_compiler_wl
18529 pic_flag=$lt_prog_compiler_pic
18535 lt_save_allow_undefined_flag=$allow_undefined_flag
18536 allow_undefined_flag=
18537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18538 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }
18543 lt_cv_archive_cmds_need_lc=no
18545 lt_cv_archive_cmds_need_lc=yes
18547 allow_undefined_flag=$lt_save_allow_undefined_flag
18549 cat conftest.err 1>&5
18554 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
18555 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
18556 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18719 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18720 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18722 if test "$GCC" = yes; then
18724 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18725 *) lt_awk_arg="/^libraries:/" ;;
18727 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18728 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18729 # if the path contains ";" then we assume it to be the separator
18730 # otherwise default to the standard path separator (i.e. ":") - it is
18731 # assumed that no part of a normal pathname contains ";" but that should
18732 # okay in the real world where ";" in dirpaths is itself problematic.
18733 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18735 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18737 # Ok, now we have the path, separated by spaces, we can step through it
18738 # and add multilib dir if necessary.
18739 lt_tmp_lt_search_path_spec=
18740 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18741 for lt_sys_path in $lt_search_path_spec; do
18742 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18745 test -d "$lt_sys_path" && \
18746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18749 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18750 BEGIN {RS=" "; FS="/|\n";} {
18753 for (lt_i = NF; lt_i > 0; lt_i--) {
18754 if ($lt_i != "" && $lt_i != ".") {
18755 if ($lt_i == "..") {
18758 if (lt_count == 0) {
18759 lt_foo="/" $lt_i lt_foo;
18766 if (lt_foo != "") { lt_freq[lt_foo]++; }
18767 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18769 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18771 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18773 library_names_spec=
18774 libname_spec='lib$name'
18778 postuninstall_cmds=
18782 shlibpath_overrides_runpath=unknown
18784 dynamic_linker="$host_os ld.so"
18785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18786 need_lib_prefix=unknown
18787 hardcode_into_libs=no
18789 # when you set need_version to no, make sure it does not cause -set_version
18790 # flags to be left without arguments
18791 need_version=unknown
18796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18797 shlibpath_var=LIBPATH
18799 # AIX 3 has no versioning support, so we append a major version to the name.
18800 soname_spec='${libname}${release}${shared_ext}$major'
18807 hardcode_into_libs=yes
18808 if test "$host_cpu" = ia64; then
18809 # AIX 5 supports IA64
18810 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18811 shlibpath_var=LD_LIBRARY_PATH
18813 # With GCC up to 2.95.x, collect2 would create an import file
18814 # for dependence libraries. The import file would start with
18815 # the line `#! .'. This would cause the generated library to
18816 # depend on `.', always an invalid library. This was fixed in
18817 # development snapshots of GCC prior to 3.0.
18819 aix4 | aix4.[01] | aix4.[01].*)
18820 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18822 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18825 can_build_shared=no
18829 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18830 # soname into executable. Probably we can add versioning support to
18831 # collect2, so additional links can be useful in future.
18832 if test "$aix_use_runtimelinking" = yes; then
18833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18834 # instead of lib<name>.a to let people know that these are not
18835 # typical AIX shared libraries.
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18838 # We preserve .a as extension for shared libraries through AIX4.2
18839 # and later when we are not doing run time linking.
18840 library_names_spec='${libname}${release}.a $libname.a'
18841 soname_spec='${libname}${release}${shared_ext}$major'
18843 shlibpath_var=LIBPATH
18850 # Since July 2007 AmigaOS4 officially supports .so libraries.
18851 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18855 library_names_spec='$libname.ixlibrary $libname.a'
18856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18857 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'
18863 library_names_spec='${libname}${shared_ext}'
18864 dynamic_linker="$host_os ld.so"
18865 shlibpath_var=LIBRARY_PATH
18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872 soname_spec='${libname}${release}${shared_ext}$major'
18873 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18876 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18877 # the default ld.so.conf also contains /usr/contrib/lib and
18878 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18879 # libtool to hard-code these into programs
18882 cygwin* | mingw* | pw32* | cegcc*)
18883 version_type=windows
18888 case $GCC,$host_os in
18889 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18890 library_names_spec='$libname.dll.a'
18891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18892 postinstall_cmds='base_file=`basename \${file}`~
18893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18894 dldir=$destdir/`dirname \$dlpath`~
18895 test -d \$dldir || mkdir -p \$dldir~
18896 $install_prog $dir/$dlname \$dldir/$dlname~
18897 chmod a+x \$dldir/$dlname~
18898 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18899 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18902 dlpath=$dir/\$dldll~
18904 shlibpath_overrides_runpath=yes
18908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18909 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18910 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18913 # MinGW DLLs use traditional 'lib' prefix
18914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18915 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18916 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18917 # It is most probably a Windows format PATH printed by
18918 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18919 # path with ; separators, and with drive letters. We can handle the
18920 # drive letters (cygwin fileutils understands them), so leave them,
18921 # especially as we might pass files found there to a mingw objdump,
18922 # which wouldn't understand a cygwinified path. Ahh.
18923 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18929 # pw32 DLLs use 'pw' prefix rather than 'lib'
18930 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18936 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18939 dynamic_linker='Win32 ld.exe'
18940 # FIXME: first we should search . and the directory the executable is in
18944 darwin* | rhapsody*)
18945 dynamic_linker="$host_os dyld"
18946 version_type=darwin
18949 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18950 soname_spec='${libname}${release}${major}$shared_ext'
18951 shlibpath_overrides_runpath=yes
18952 shlibpath_var=DYLD_LIBRARY_PATH
18953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18955 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18964 soname_spec='${libname}${release}${shared_ext}$major'
18965 shlibpath_var=LD_LIBRARY_PATH
18972 freebsd* | dragonfly*)
18973 # DragonFly does not have aout. When/if they implement a new
18974 # versioning mechanism, adjust this.
18975 if test -x /usr/bin/objformat; then
18976 objformat=`/usr/bin/objformat`
18979 freebsd[123]*) objformat=aout ;;
18980 *) objformat=elf ;;
18983 version_type=freebsd-$objformat
18984 case $version_type in
18986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18995 shlibpath_var=LD_LIBRARY_PATH
18998 shlibpath_overrides_runpath=yes
19000 freebsd3.[01]* | freebsdelf3.[01]*)
19001 shlibpath_overrides_runpath=yes
19002 hardcode_into_libs=yes
19004 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19005 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19006 shlibpath_overrides_runpath=no
19007 hardcode_into_libs=yes
19009 *) # from 4.6 on, and DragonFly
19010 shlibpath_overrides_runpath=yes
19011 hardcode_into_libs=yes
19020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19021 soname_spec='${libname}${release}${shared_ext}$major'
19022 shlibpath_var=LD_LIBRARY_PATH
19023 hardcode_into_libs=yes
19026 hpux9* | hpux10* | hpux11*)
19027 # Give a soname corresponding to the major version so that dld.sl refuses to
19028 # link against other versions.
19035 hardcode_into_libs=yes
19036 dynamic_linker="$host_os dld.so"
19037 shlibpath_var=LD_LIBRARY_PATH
19038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19040 soname_spec='${libname}${release}${shared_ext}$major'
19041 if test "X$HPUX_IA64_MODE" = X32; then
19042 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19044 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19050 hardcode_into_libs=yes
19051 dynamic_linker="$host_os dld.sl"
19052 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19053 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19055 soname_spec='${libname}${release}${shared_ext}$major'
19056 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19061 dynamic_linker="$host_os dld.sl"
19062 shlibpath_var=SHLIB_PATH
19063 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19065 soname_spec='${libname}${release}${shared_ext}$major'
19068 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19069 postinstall_cmds='chmod 555 $lib'
19076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19077 soname_spec='${libname}${release}${shared_ext}$major'
19078 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19079 shlibpath_var=LD_LIBRARY_PATH
19080 shlibpath_overrides_runpath=no
19081 hardcode_into_libs=yes
19084 irix5* | irix6* | nonstopux*)
19086 nonstopux*) version_type=nonstopux ;;
19088 if test "$lt_cv_prog_gnu_ld" = yes; then
19096 soname_spec='${libname}${release}${shared_ext}$major'
19097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19099 irix5* | nonstopux*)
19100 libsuff= shlibsuff=
19103 case $LD in # libtool.m4 will add one of these switches to LD
19104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19105 libsuff= shlibsuff= libmagic=32-bit;;
19106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19107 libsuff=32 shlibsuff=N32 libmagic=N32;;
19108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19110 *) libsuff= shlibsuff= libmagic=never-match;;
19114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19115 shlibpath_overrides_runpath=no
19116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19118 hardcode_into_libs=yes
19121 # No shared lib support for Linux oldld, aout, or coff.
19122 linux*oldld* | linux*aout* | linux*coff*)
19126 # This must be Linux ELF.
19127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19132 soname_spec='${libname}${release}${shared_ext}$major'
19133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19134 shlibpath_var=LD_LIBRARY_PATH
19135 shlibpath_overrides_runpath=no
19137 # Some binutils ld are patched to set DT_RUNPATH
19138 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 lt_cv_shlibpath_overrides_runpath=no
19142 save_LDFLAGS=$LDFLAGS
19143 save_libdir=$libdir
19144 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19145 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19161 rm -f conftest.$ac_objext conftest$ac_exeext
19162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19163 (eval $ac_link) 2>conftest.er1
19165 grep -v '^ *+' conftest.er1 >conftest.err
19167 cat conftest.err >&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } &&
19170 { ac_try='test -z "$ac_c_werror_flag"
19171 || test ! -s conftest.err'
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; } &&
19177 { ac_try='test -s conftest$ac_exeext'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; }; then
19183 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19184 lt_cv_shlibpath_overrides_runpath=yes
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19192 rm -f conftest.err conftest.$ac_objext \
19193 conftest$ac_exeext conftest.$ac_ext
19194 LDFLAGS=$save_LDFLAGS
19195 libdir=$save_libdir
19199 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19201 # This implies no fast_install, which is unacceptable.
19202 # Some rework will be needed to allow for fast_install
19203 # before this can be enabled.
19204 hardcode_into_libs=yes
19206 # Append ld.so.conf contents to the search path
19207 if test -f /etc/ld.so.conf; then
19208 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' ' '`
19209 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19212 # We used to test for /lib/ld.so.1 and disable shared libraries on
19213 # powerpc, because MkLinux only supported shared libraries with the
19214 # GNU dynamic linker. Since this was broken with cross compilers,
19215 # most powerpc-linux boxes support dynamic linking these days and
19216 # people can always --disable-shared, the test was removed, and we
19217 # assume the GNU/Linux dynamic linker is in use.
19218 dynamic_linker='GNU/Linux ld.so'
19225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19228 dynamic_linker='NetBSD (a.out) ld.so'
19230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19231 soname_spec='${libname}${release}${shared_ext}$major'
19232 dynamic_linker='NetBSD ld.elf_so'
19234 shlibpath_var=LD_LIBRARY_PATH
19235 shlibpath_overrides_runpath=yes
19236 hardcode_into_libs=yes
19241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19242 shlibpath_var=LD_LIBRARY_PATH
19243 shlibpath_overrides_runpath=yes
19250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19251 soname_spec='${libname}${release}${shared_ext}$major'
19252 shlibpath_var=LD_LIBRARY_PATH
19253 shlibpath_overrides_runpath=no
19254 hardcode_into_libs=yes
19255 dynamic_linker='ldqnx.so'
19260 sys_lib_dlsearch_path_spec="/usr/lib"
19262 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19264 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19265 *) need_version=no ;;
19267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19269 shlibpath_var=LD_LIBRARY_PATH
19270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19272 openbsd2.[89] | openbsd2.[89].*)
19273 shlibpath_overrides_runpath=no
19276 shlibpath_overrides_runpath=yes
19280 shlibpath_overrides_runpath=yes
19285 libname_spec='$name'
19288 library_names_spec='$libname${shared_ext} $libname.a'
19289 dynamic_linker='OS/2 ld.exe'
19290 shlibpath_var=LIBPATH
19293 osf3* | osf4* | osf5*)
19297 soname_spec='${libname}${release}${shared_ext}$major'
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19299 shlibpath_var=LD_LIBRARY_PATH
19300 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19301 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313 soname_spec='${libname}${release}${shared_ext}$major'
19314 shlibpath_var=LD_LIBRARY_PATH
19315 shlibpath_overrides_runpath=yes
19316 hardcode_into_libs=yes
19317 # ldd complains unless libraries are executable
19318 postinstall_cmds='chmod +x $lib'
19323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19324 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19325 shlibpath_var=LD_LIBRARY_PATH
19326 shlibpath_overrides_runpath=yes
19327 if test "$with_gnu_ld" = yes; then
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 shlibpath_var=LD_LIBRARY_PATH
19338 case $host_vendor in
19340 shlibpath_overrides_runpath=no
19342 runpath_var=LD_RUN_PATH
19350 shlibpath_overrides_runpath=no
19351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19357 if test -d /usr/nec ;then
19359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19360 soname_spec='$libname${shared_ext}.$major'
19361 shlibpath_var=LD_LIBRARY_PATH
19365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19366 version_type=freebsd-elf
19369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19370 soname_spec='${libname}${release}${shared_ext}$major'
19371 shlibpath_var=LD_LIBRARY_PATH
19372 shlibpath_overrides_runpath=yes
19373 hardcode_into_libs=yes
19374 if test "$with_gnu_ld" = yes; then
19375 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19380 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19384 sys_lib_dlsearch_path_spec='/usr/lib'
19388 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 shlibpath_overrides_runpath=no
19395 hardcode_into_libs=yes
19400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19401 soname_spec='${libname}${release}${shared_ext}$major'
19402 shlibpath_var=LD_LIBRARY_PATH
19409 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19410 echo "${ECHO_T}$dynamic_linker" >&6
19411 test "$dynamic_linker" = no && can_build_shared=no
19413 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19414 if test "$GCC" = yes; then
19415 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19418 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19419 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19421 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19422 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19511 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19512 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19514 if test -n "$hardcode_libdir_flag_spec" ||
19515 test -n "$runpath_var" ||
19516 test "X$hardcode_automatic" = "Xyes" ; then
19518 # We can hardcode non-existent directories.
19519 if test "$hardcode_direct" != no &&
19520 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19521 # have to relink, otherwise we might link with an installed library
19522 # when we should be linking with a yet-to-be-installed one
19523 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19524 test "$hardcode_minus_L" != no; then
19525 # Linking always hardcodes the temporary library directory.
19526 hardcode_action=relink
19528 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19529 hardcode_action=immediate
19532 # We cannot hardcode anything, or else we can only hardcode existing
19534 hardcode_action=unsupported
19536 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19537 echo "${ECHO_T}$hardcode_action" >&6
19539 if test "$hardcode_action" = relink ||
19540 test "$inherit_rpath" = yes; then
19541 # Fast installation is not supported
19542 enable_fast_install=no
19543 elif test "$shlibpath_overrides_runpath" = yes ||
19544 test "$enable_shared" = no; then
19545 # Fast installation is not necessary
19546 enable_fast_install=needless
19554 if test "x$enable_dlopen" != xyes; then
19555 enable_dlopen=unknown
19556 enable_dlopen_self=unknown
19557 enable_dlopen_self_static=unknown
19564 lt_cv_dlopen="load_add_on"
19566 lt_cv_dlopen_self=yes
19569 mingw* | pw32* | cegcc*)
19570 lt_cv_dlopen="LoadLibrary"
19575 lt_cv_dlopen="dlopen"
19580 # if libdl is installed we need to link against it
19581 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19582 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19583 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 ac_check_lib_save_LIBS=$LIBS
19588 cat >conftest.$ac_ext <<_ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19595 /* Override any gcc2 internal prototype to avoid an error. */
19599 /* We use char because int might match the return type of a gcc2
19600 builtin and then its argument prototype would still apply. */
19610 rm -f conftest.$ac_objext conftest$ac_exeext
19611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19612 (eval $ac_link) 2>conftest.er1
19614 grep -v '^ *+' conftest.er1 >conftest.err
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } &&
19619 { ac_try='test -z "$ac_c_werror_flag"
19620 || test ! -s conftest.err'
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; } &&
19626 { ac_try='test -s conftest$ac_exeext'
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; }; then
19632 ac_cv_lib_dl_dlopen=yes
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 ac_cv_lib_dl_dlopen=no
19639 rm -f conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19643 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19645 if test $ac_cv_lib_dl_dlopen = yes; then
19646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19649 lt_cv_dlopen="dyld"
19651 lt_cv_dlopen_self=yes
19658 echo "$as_me:$LINENO: checking for shl_load" >&5
19659 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19660 if test "${ac_cv_func_shl_load+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 cat >conftest.$ac_ext <<_ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19671 #define shl_load innocuous_shl_load
19673 /* System header to define __stub macros and hopefully few prototypes,
19674 which can conflict with char shl_load (); below.
19675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19676 <limits.h> exists even on freestanding compilers. */
19679 # include <limits.h>
19681 # include <assert.h>
19686 /* Override any gcc2 internal prototype to avoid an error. */
19691 /* We use char because int might match the return type of a gcc2
19692 builtin and then its argument prototype would still apply. */
19694 /* The GNU C library defines this for functions which it implements
19695 to always fail with ENOSYS. Some functions are actually named
19696 something starting with __ and the normal name is an alias. */
19697 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19700 char (*f) () = shl_load;
19709 return f != shl_load;
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716 (eval $ac_link) 2>conftest.er1
19718 grep -v '^ *+' conftest.er1 >conftest.err
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_c_werror_flag"
19724 || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest$ac_exeext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_func_shl_load=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_func_shl_load=no
19743 rm -f conftest.err conftest.$ac_objext \
19744 conftest$ac_exeext conftest.$ac_ext
19746 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19747 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19748 if test $ac_cv_func_shl_load = yes; then
19749 lt_cv_dlopen="shl_load"
19751 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19752 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19753 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 ac_check_lib_save_LIBS=$LIBS
19758 cat >conftest.$ac_ext <<_ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19765 /* Override any gcc2 internal prototype to avoid an error. */
19769 /* We use char because int might match the return type of a gcc2
19770 builtin and then its argument prototype would still apply. */
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19782 (eval $ac_link) 2>conftest.er1
19784 grep -v '^ *+' conftest.er1 >conftest.err
19786 cat conftest.err >&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } &&
19789 { ac_try='test -z "$ac_c_werror_flag"
19790 || test ! -s conftest.err'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try='test -s conftest$ac_exeext'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_cv_lib_dld_shl_load=yes
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ac_cv_lib_dld_shl_load=no
19809 rm -f conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19813 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19814 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19815 if test $ac_cv_lib_dld_shl_load = yes; then
19816 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19818 echo "$as_me:$LINENO: checking for dlopen" >&5
19819 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19820 if test "${ac_cv_func_dlopen+set}" = set; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 cat >conftest.$ac_ext <<_ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19831 #define dlopen innocuous_dlopen
19833 /* System header to define __stub macros and hopefully few prototypes,
19834 which can conflict with char dlopen (); below.
19835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19836 <limits.h> exists even on freestanding compilers. */
19839 # include <limits.h>
19841 # include <assert.h>
19846 /* Override any gcc2 internal prototype to avoid an error. */
19851 /* We use char because int might match the return type of a gcc2
19852 builtin and then its argument prototype would still apply. */
19854 /* The GNU C library defines this for functions which it implements
19855 to always fail with ENOSYS. Some functions are actually named
19856 something starting with __ and the normal name is an alias. */
19857 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19860 char (*f) () = dlopen;
19869 return f != dlopen;
19874 rm -f conftest.$ac_objext conftest$ac_exeext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19876 (eval $ac_link) 2>conftest.er1
19878 grep -v '^ *+' conftest.er1 >conftest.err
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_c_werror_flag"
19884 || test ! -s conftest.err'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; } &&
19890 { ac_try='test -s conftest$ac_exeext'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
19896 ac_cv_func_dlopen=yes
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19901 ac_cv_func_dlopen=no
19903 rm -f conftest.err conftest.$ac_objext \
19904 conftest$ac_exeext conftest.$ac_ext
19906 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19907 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19908 if test $ac_cv_func_dlopen = yes; then
19909 lt_cv_dlopen="dlopen"
19911 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19912 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 ac_check_lib_save_LIBS=$LIBS
19918 cat >conftest.$ac_ext <<_ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19925 /* Override any gcc2 internal prototype to avoid an error. */
19929 /* We use char because int might match the return type of a gcc2
19930 builtin and then its argument prototype would still apply. */
19940 rm -f conftest.$ac_objext conftest$ac_exeext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19942 (eval $ac_link) 2>conftest.er1
19944 grep -v '^ *+' conftest.er1 >conftest.err
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } &&
19949 { ac_try='test -z "$ac_c_werror_flag"
19950 || test ! -s conftest.err'
19951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952 (eval $ac_try) 2>&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; } &&
19956 { ac_try='test -s conftest$ac_exeext'
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; }; then
19962 ac_cv_lib_dl_dlopen=yes
19964 echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19967 ac_cv_lib_dl_dlopen=no
19969 rm -f conftest.err conftest.$ac_objext \
19970 conftest$ac_exeext conftest.$ac_ext
19971 LIBS=$ac_check_lib_save_LIBS
19973 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19974 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19975 if test $ac_cv_lib_dl_dlopen = yes; then
19976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19978 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19979 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19980 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 ac_check_lib_save_LIBS=$LIBS
19984 LIBS="-lsvld $LIBS"
19985 cat >conftest.$ac_ext <<_ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19992 /* Override any gcc2 internal prototype to avoid an error. */
19996 /* We use char because int might match the return type of a gcc2
19997 builtin and then its argument prototype would still apply. */
20007 rm -f conftest.$ac_objext conftest$ac_exeext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20009 (eval $ac_link) 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
20016 { ac_try='test -z "$ac_c_werror_flag"
20017 || test ! -s conftest.err'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; } &&
20023 { ac_try='test -s conftest$ac_exeext'
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
20029 ac_cv_lib_svld_dlopen=yes
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20034 ac_cv_lib_svld_dlopen=no
20036 rm -f conftest.err conftest.$ac_objext \
20037 conftest$ac_exeext conftest.$ac_ext
20038 LIBS=$ac_check_lib_save_LIBS
20040 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20041 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20042 if test $ac_cv_lib_svld_dlopen = yes; then
20043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20045 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20046 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20047 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 ac_check_lib_save_LIBS=$LIBS
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20059 /* Override any gcc2 internal prototype to avoid an error. */
20063 /* We use char because int might match the return type of a gcc2
20064 builtin and then its argument prototype would still apply. */
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076 (eval $ac_link) 2>conftest.er1
20078 grep -v '^ *+' conftest.er1 >conftest.err
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } &&
20083 { ac_try='test -z "$ac_c_werror_flag"
20084 || test ! -s conftest.err'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; } &&
20090 { ac_try='test -s conftest$ac_exeext'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20096 ac_cv_lib_dld_dld_link=yes
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_cv_lib_dld_dld_link=no
20103 rm -f conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20107 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20108 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20109 if test $ac_cv_lib_dld_dld_link = yes; then
20110 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
20131 if test "x$lt_cv_dlopen" != xno; then
20137 case $lt_cv_dlopen in
20139 save_CPPFLAGS="$CPPFLAGS"
20140 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20142 save_LDFLAGS="$LDFLAGS"
20143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20146 LIBS="$lt_cv_dlopen_libs $LIBS"
20148 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20149 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20150 if test "${lt_cv_dlopen_self+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 if test "$cross_compiling" = yes; then :
20154 lt_cv_dlopen_self=cross
20156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20157 lt_status=$lt_dlunknown
20158 cat > conftest.$ac_ext <<_LT_EOF
20159 #line 20159 "configure"
20160 #include "confdefs.h"
20169 # define LT_DLGLOBAL RTLD_GLOBAL
20172 # define LT_DLGLOBAL DL_GLOBAL
20174 # define LT_DLGLOBAL 0
20178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20179 find out it does not work in some platform. */
20180 #ifndef LT_DLLAZY_OR_NOW
20182 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20185 # define LT_DLLAZY_OR_NOW DL_LAZY
20188 # define LT_DLLAZY_OR_NOW RTLD_NOW
20191 # define LT_DLLAZY_OR_NOW DL_NOW
20193 # define LT_DLLAZY_OR_NOW 0
20200 void fnord() { int i=42;}
20203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20204 int status = $lt_dlunknown;
20208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20209 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20210 /* dlclose (self); */
20218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20219 (eval $ac_link) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20223 (./conftest; exit; ) >&5 2>/dev/null
20225 case x$lt_status in
20226 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20227 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20228 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20231 # compilation failed
20232 lt_cv_dlopen_self=no
20239 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20240 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20242 if test "x$lt_cv_dlopen_self" = xyes; then
20243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20244 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20245 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20246 if test "${lt_cv_dlopen_self_static+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 if test "$cross_compiling" = yes; then :
20250 lt_cv_dlopen_self_static=cross
20252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20253 lt_status=$lt_dlunknown
20254 cat > conftest.$ac_ext <<_LT_EOF
20255 #line 20255 "configure"
20256 #include "confdefs.h"
20265 # define LT_DLGLOBAL RTLD_GLOBAL
20268 # define LT_DLGLOBAL DL_GLOBAL
20270 # define LT_DLGLOBAL 0
20274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20275 find out it does not work in some platform. */
20276 #ifndef LT_DLLAZY_OR_NOW
20278 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20281 # define LT_DLLAZY_OR_NOW DL_LAZY
20284 # define LT_DLLAZY_OR_NOW RTLD_NOW
20287 # define LT_DLLAZY_OR_NOW DL_NOW
20289 # define LT_DLLAZY_OR_NOW 0
20296 void fnord() { int i=42;}
20299 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20300 int status = $lt_dlunknown;
20304 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20305 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20306 /* dlclose (self); */
20314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20315 (eval $ac_link) 2>&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20319 (./conftest; exit; ) >&5 2>/dev/null
20321 case x$lt_status in
20322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20327 # compilation failed
20328 lt_cv_dlopen_self_static=no
20335 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20336 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20339 CPPFLAGS="$save_CPPFLAGS"
20340 LDFLAGS="$save_LDFLAGS"
20345 case $lt_cv_dlopen_self in
20346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20347 *) enable_dlopen_self=unknown ;;
20350 case $lt_cv_dlopen_self_static in
20351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20352 *) enable_dlopen_self_static=unknown ;;
20374 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20375 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20376 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20379 echo "$as_me:$LINENO: result: yes" >&5
20380 echo "${ECHO_T}yes" >&6
20382 # FIXME - insert some real tests, host_os isn't really good enough
20385 if test -n "$STRIP" ; then
20386 striplib="$STRIP -x"
20387 old_striplib="$STRIP -S"
20388 echo "$as_me:$LINENO: result: yes" >&5
20389 echo "${ECHO_T}yes" >&6
20391 echo "$as_me:$LINENO: result: no" >&5
20392 echo "${ECHO_T}no" >&6
20396 echo "$as_me:$LINENO: result: no" >&5
20397 echo "${ECHO_T}no" >&6
20413 # Report which library types will actually be built
20414 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20416 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20417 echo "${ECHO_T}$can_build_shared" >&6
20419 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20421 test "$can_build_shared" = "no" && enable_shared=no
20423 # On AIX, shared libraries and static libraries use the same namespace, and
20424 # are all built from PIC.
20427 test "$enable_shared" = yes && enable_static=no
20428 if test -n "$RANLIB"; then
20429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20430 postinstall_cmds='$RANLIB $lib'
20435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20436 test "$enable_shared" = yes && enable_static=no
20440 echo "$as_me:$LINENO: result: $enable_shared" >&5
20441 echo "${ECHO_T}$enable_shared" >&6
20443 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20445 # Make sure either enable_shared or enable_static is yes.
20446 test "$enable_shared" = yes || enable_static=yes
20447 echo "$as_me:$LINENO: result: $enable_static" >&5
20448 echo "${ECHO_T}$enable_static" >&6
20455 ac_cpp='$CPP $CPPFLAGS'
20456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20477 # Only expand once:
20483 # Identify the assembler which will work hand-in-glove with the newly
20484 # built GCC, so that we can examine its features. This is the assembler
20485 # which will be driven by the driver program.
20487 # If build != host, and we aren't building gas in-tree, we identify a
20488 # build->target assembler and hope that it will have the same features
20489 # as the host->target assembler we'll be using.
20490 gcc_cv_gas_major_version=
20491 gcc_cv_gas_minor_version=
20492 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20494 if test "${gcc_cv_as+set}" = set; then
20498 if test -x "$DEFAULT_ASSEMBLER"; then
20499 gcc_cv_as="$DEFAULT_ASSEMBLER"
20500 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20501 && test -f ../gas/Makefile \
20502 && test x$build = x$host; then
20503 gcc_cv_as=../gas/as-new$build_exeext
20504 elif test -x as$build_exeext; then
20505 # Build using assembler in the current directory.
20506 gcc_cv_as=./as$build_exeext
20507 elif test -x $AS_FOR_TARGET; then
20508 gcc_cv_as="$AS_FOR_TARGET"
20510 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20511 set dummy $AS_FOR_TARGET; ac_word=$2
20512 echo "$as_me:$LINENO: checking for $ac_word" >&5
20513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20514 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20519 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20523 for as_dir in $PATH
20526 test -z "$as_dir" && as_dir=.
20527 for ac_exec_ext in '' $ac_executable_extensions; do
20528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20529 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20539 gcc_cv_as=$ac_cv_path_gcc_cv_as
20541 if test -n "$gcc_cv_as"; then
20542 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20543 echo "${ECHO_T}$gcc_cv_as" >&6
20545 echo "$as_me:$LINENO: result: no" >&5
20546 echo "${ECHO_T}no" >&6
20553 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20555 case "$ORIGINAL_AS_FOR_TARGET" in
20556 ./as | ./as$build_exeext) ;;
20557 *) ac_config_files="$ac_config_files as:exec-tool.in"
20561 echo "$as_me:$LINENO: checking what assembler to use" >&5
20562 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20563 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20564 # Single tree build which includes gas. We want to prefer it
20565 # over whatever linker top-level may have detected, since
20566 # we'll use what we're building after installation anyway.
20567 echo "$as_me:$LINENO: result: newly built gas" >&5
20568 echo "${ECHO_T}newly built gas" >&6
20570 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20571 for f in $gcc_cv_as_bfd_srcdir/configure \
20572 $gcc_cv_as_gas_srcdir/configure \
20573 $gcc_cv_as_gas_srcdir/configure.in \
20574 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20575 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20576 if test x$gcc_cv_gas_version != x; then
20580 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20581 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20582 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20583 case $gcc_cv_gas_patch_version in
20584 "") gcc_cv_gas_patch_version="0" ;;
20586 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20587 + $gcc_cv_gas_minor_version \) \* 1000 \
20588 + $gcc_cv_gas_patch_version`
20590 in_tree_gas_is_elf=no
20591 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20592 || (grep 'obj_format = multi' ../gas/Makefile \
20593 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20595 in_tree_gas_is_elf=yes
20598 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20599 echo "${ECHO_T}$gcc_cv_as" >&6
20603 # Identify the linker which will work hand-in-glove with the newly
20604 # built GCC, so that we can examine its features. This is the linker
20605 # which will be driven by the driver program.
20607 # If build != host, and we aren't building gas in-tree, we identify a
20608 # build->target linker and hope that it will have the same features
20609 # as the host->target linker we'll be using.
20610 gcc_cv_gld_major_version=
20611 gcc_cv_gld_minor_version=
20612 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20613 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20615 if test "${gcc_cv_ld+set}" = set; then
20619 if test -x "$DEFAULT_LINKER"; then
20620 gcc_cv_ld="$DEFAULT_LINKER"
20621 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20622 && test -f ../ld/Makefile \
20623 && test x$build = x$host; then
20624 gcc_cv_ld=../ld/ld-new$build_exeext
20625 elif test -x collect-ld$build_exeext; then
20626 # Build using linker in the current directory.
20627 gcc_cv_ld=./collect-ld$build_exeext
20628 elif test -x $LD_FOR_TARGET; then
20629 gcc_cv_ld="$LD_FOR_TARGET"
20631 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20632 set dummy $LD_FOR_TARGET; ac_word=$2
20633 echo "$as_me:$LINENO: checking for $ac_word" >&5
20634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20635 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20644 for as_dir in $PATH
20647 test -z "$as_dir" && as_dir=.
20648 for ac_exec_ext in '' $ac_executable_extensions; do
20649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20650 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20660 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20662 if test -n "$gcc_cv_ld"; then
20663 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20664 echo "${ECHO_T}$gcc_cv_ld" >&6
20666 echo "$as_me:$LINENO: result: no" >&5
20667 echo "${ECHO_T}no" >&6
20674 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20676 case "$ORIGINAL_LD_FOR_TARGET" in
20677 ./collect-ld | ./collect-ld$build_exeext) ;;
20678 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20682 echo "$as_me:$LINENO: checking what linker to use" >&5
20683 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20684 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20685 # Single tree build which includes ld. We want to prefer it
20686 # over whatever linker top-level may have detected, since
20687 # we'll use what we're building after installation anyway.
20688 echo "$as_me:$LINENO: result: newly built ld" >&5
20689 echo "${ECHO_T}newly built ld" >&6
20691 in_tree_ld_is_elf=no
20692 if (grep 'EMUL = .*elf' ../ld/Makefile \
20693 || grep 'EMUL = .*linux' ../ld/Makefile \
20694 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20695 in_tree_ld_is_elf=yes
20697 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
20699 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20700 if test x$gcc_cv_gld_version != x; then
20704 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20705 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20707 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20708 echo "${ECHO_T}$gcc_cv_ld" >&6
20712 # Figure out what nm we will be using.
20713 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20714 if test "${gcc_cv_nm+set}" = set; then
20718 if test -f $gcc_cv_binutils_srcdir/configure.in \
20719 && test -f ../binutils/Makefile \
20720 && test x$build = x$host; then
20721 gcc_cv_nm=../binutils/nm-new$build_exeext
20722 elif test -x nm$build_exeext; then
20723 gcc_cv_nm=./nm$build_exeext
20724 elif test -x $NM_FOR_TARGET; then
20725 gcc_cv_nm="$NM_FOR_TARGET"
20727 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20728 set dummy $NM_FOR_TARGET; ac_word=$2
20729 echo "$as_me:$LINENO: checking for $ac_word" >&5
20730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20731 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20740 for as_dir in $PATH
20743 test -z "$as_dir" && as_dir=.
20744 for ac_exec_ext in '' $ac_executable_extensions; do
20745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20746 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20756 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20758 if test -n "$gcc_cv_nm"; then
20759 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20760 echo "${ECHO_T}$gcc_cv_nm" >&6
20762 echo "$as_me:$LINENO: result: no" >&5
20763 echo "${ECHO_T}no" >&6
20770 echo "$as_me:$LINENO: checking what nm to use" >&5
20771 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20772 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20773 # Single tree build which includes binutils.
20774 echo "$as_me:$LINENO: result: newly built nm" >&5
20775 echo "${ECHO_T}newly built nm" >&6
20778 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20779 echo "${ECHO_T}$gcc_cv_nm" >&6
20783 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20785 case "$ORIGINAL_NM_FOR_TARGET" in
20786 ./nm | ./nm$build_exeext) ;;
20787 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20792 # Figure out what objdump we will be using.
20793 if test "${gcc_cv_objdump+set}" = set; then
20797 if test -f $gcc_cv_binutils_srcdir/configure.in \
20798 && test -f ../binutils/Makefile \
20799 && test x$build = x$host; then
20800 # Single tree build which includes binutils.
20801 gcc_cv_objdump=../binutils/objdump$build_exeext
20802 elif test -x objdump$build_exeext; then
20803 gcc_cv_objdump=./objdump$build_exeext
20804 elif test -x $OBJDUMP_FOR_TARGET; then
20805 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20807 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20808 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20809 echo "$as_me:$LINENO: checking for $ac_word" >&5
20810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20811 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 case $gcc_cv_objdump in
20816 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20820 for as_dir in $PATH
20823 test -z "$as_dir" && as_dir=.
20824 for ac_exec_ext in '' $ac_executable_extensions; do
20825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20826 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20836 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20838 if test -n "$gcc_cv_objdump"; then
20839 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20840 echo "${ECHO_T}$gcc_cv_objdump" >&6
20842 echo "$as_me:$LINENO: result: no" >&5
20843 echo "${ECHO_T}no" >&6
20850 echo "$as_me:$LINENO: checking what objdump to use" >&5
20851 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20852 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20853 # Single tree build which includes binutils.
20854 echo "$as_me:$LINENO: result: newly built objdump" >&5
20855 echo "${ECHO_T}newly built objdump" >&6
20856 elif test x$gcc_cv_objdump = x; then
20857 echo "$as_me:$LINENO: result: not found" >&5
20858 echo "${ECHO_T}not found" >&6
20860 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20861 echo "${ECHO_T}$gcc_cv_objdump" >&6
20864 # Figure out what readelf we will be using.
20865 if test "${gcc_cv_readelf+set}" = set; then
20869 if test -f $gcc_cv_binutils_srcdir/configure.in \
20870 && test -f ../binutils/Makefile \
20871 && test x$build = x$host; then
20872 # Single tree build which includes binutils.
20873 gcc_cv_readelf=../binutils/readelf$build_exeext
20874 elif test -x readelf$build_exeext; then
20875 gcc_cv_readelf=./readelf$build_exeext
20877 # Extract the first word of "readelf", so it can be a program name with args.
20878 set dummy readelf; ac_word=$2
20879 echo "$as_me:$LINENO: checking for $ac_word" >&5
20880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20881 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
20882 echo $ECHO_N "(cached) $ECHO_C" >&6
20884 case $gcc_cv_readelf in
20886 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20890 for as_dir in $PATH
20893 test -z "$as_dir" && as_dir=.
20894 for ac_exec_ext in '' $ac_executable_extensions; do
20895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20896 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20906 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20908 if test -n "$gcc_cv_readelf"; then
20909 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20910 echo "${ECHO_T}$gcc_cv_readelf" >&6
20912 echo "$as_me:$LINENO: result: no" >&5
20913 echo "${ECHO_T}no" >&6
20920 echo "$as_me:$LINENO: checking what readelf to use" >&5
20921 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
20922 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20923 # Single tree build which includes binutils.
20924 echo "$as_me:$LINENO: result: newly built readelf" >&5
20925 echo "${ECHO_T}newly built readelf" >&6
20926 elif test x$gcc_cv_readelf = x; then
20927 echo "$as_me:$LINENO: result: not found" >&5
20928 echo "${ECHO_T}not found" >&6
20930 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20931 echo "${ECHO_T}$gcc_cv_readelf" >&6
20934 # Figure out what assembler alignment features are present.
20935 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20936 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20937 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20940 gcc_cv_as_balign_and_p2align=no
20941 if test $in_tree_gas = yes; then
20942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20943 then gcc_cv_as_balign_and_p2align=yes
20945 elif test x$gcc_cv_as != x; then
20947 .p2align 2' > conftest.s
20948 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; }
20955 gcc_cv_as_balign_and_p2align=yes
20957 echo "configure: failed program was" >&5
20960 rm -f conftest.o conftest.s
20963 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20964 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20965 if test $gcc_cv_as_balign_and_p2align = yes; then
20967 cat >>confdefs.h <<\_ACEOF
20968 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20973 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20974 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20975 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 gcc_cv_as_max_skip_p2align=no
20979 if test $in_tree_gas = yes; then
20980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20981 then gcc_cv_as_max_skip_p2align=yes
20983 elif test x$gcc_cv_as != x; then
20984 echo '.p2align 4,,7' > conftest.s
20985 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }
20992 gcc_cv_as_max_skip_p2align=yes
20994 echo "configure: failed program was" >&5
20997 rm -f conftest.o conftest.s
21000 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
21001 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
21002 if test $gcc_cv_as_max_skip_p2align = yes; then
21004 cat >>confdefs.h <<\_ACEOF
21005 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
21010 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
21011 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
21012 if test "${gcc_cv_as_literal16+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 gcc_cv_as_literal16=no
21016 if test $in_tree_gas = yes; then
21017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21018 then gcc_cv_as_literal16=yes
21020 elif test x$gcc_cv_as != x; then
21021 echo '.literal16' > conftest.s
21022 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }
21029 gcc_cv_as_literal16=yes
21031 echo "configure: failed program was" >&5
21034 rm -f conftest.o conftest.s
21037 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
21038 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
21039 if test $gcc_cv_as_literal16 = yes; then
21041 cat >>confdefs.h <<\_ACEOF
21042 #define HAVE_GAS_LITERAL16 1
21047 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
21048 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
21049 if test "${gcc_cv_as_subsection_m1+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 gcc_cv_as_subsection_m1=no
21053 if test $in_tree_gas = yes; then
21054 if test $in_tree_gas_is_elf = yes \
21055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21056 then gcc_cv_as_subsection_m1=yes
21058 elif test x$gcc_cv_as != x; then
21059 echo 'conftest_label1: .word 0
21061 conftest_label2: .word 0
21062 .previous' > conftest.s
21063 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; }
21070 if test x$gcc_cv_nm != x; then
21071 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21072 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21073 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21075 else gcc_cv_as_subsection_m1=yes
21077 rm -f conftest.nm1 conftest.nm2
21080 echo "configure: failed program was" >&5
21083 rm -f conftest.o conftest.s
21086 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
21087 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
21088 if test $gcc_cv_as_subsection_m1 = yes; then
21090 cat >>confdefs.h <<\_ACEOF
21091 #define HAVE_GAS_SUBSECTION_ORDERING 1
21096 echo "$as_me:$LINENO: checking assembler for .weak" >&5
21097 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
21098 if test "${gcc_cv_as_weak+set}" = set; then
21099 echo $ECHO_N "(cached) $ECHO_C" >&6
21102 if test $in_tree_gas = yes; then
21103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21104 then gcc_cv_as_weak=yes
21106 elif test x$gcc_cv_as != x; then
21107 echo ' .weak foobar' > conftest.s
21108 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }
21117 echo "configure: failed program was" >&5
21120 rm -f conftest.o conftest.s
21123 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
21124 echo "${ECHO_T}$gcc_cv_as_weak" >&6
21125 if test $gcc_cv_as_weak = yes; then
21127 cat >>confdefs.h <<\_ACEOF
21128 #define HAVE_GAS_WEAK 1
21133 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
21134 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
21135 if test "${gcc_cv_as_weakref+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 gcc_cv_as_weakref=no
21139 if test $in_tree_gas = yes; then
21140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21141 then gcc_cv_as_weakref=yes
21143 elif test x$gcc_cv_as != x; then
21144 echo ' .weakref foobar, barfnot' > conftest.s
21145 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; }
21152 gcc_cv_as_weakref=yes
21154 echo "configure: failed program was" >&5
21157 rm -f conftest.o conftest.s
21160 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
21161 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
21162 if test $gcc_cv_as_weakref = yes; then
21164 cat >>confdefs.h <<\_ACEOF
21165 #define HAVE_GAS_WEAKREF 1
21170 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
21171 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
21172 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 gcc_cv_as_nsubspa_comdat=no
21176 if test $in_tree_gas = yes; then
21177 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21178 then gcc_cv_as_nsubspa_comdat=yes
21180 elif test x$gcc_cv_as != x; then
21181 echo ' .SPACE $TEXT$
21182 .NSUBSPA $CODE$,COMDAT' > conftest.s
21183 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; }
21190 gcc_cv_as_nsubspa_comdat=yes
21192 echo "configure: failed program was" >&5
21195 rm -f conftest.o conftest.s
21198 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
21199 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
21200 if test $gcc_cv_as_nsubspa_comdat = yes; then
21202 cat >>confdefs.h <<\_ACEOF
21203 #define HAVE_GAS_NSUBSPA_COMDAT 1
21208 # .hidden needs to be supported in both the assembler and the linker,
21209 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21210 # This is irritatingly difficult to feature test for; we have to check the
21211 # date string after the version number. If we've got an in-tree
21212 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21214 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21215 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
21216 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
21217 if test "${gcc_cv_as_hidden+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 gcc_cv_as_hidden=no
21221 if test $in_tree_gas = yes; then
21222 if test $in_tree_gas_is_elf = yes \
21223 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21224 then gcc_cv_as_hidden=yes
21226 elif test x$gcc_cv_as != x; then
21227 echo ' .hidden foobar
21228 foobar:' > conftest.s
21229 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }
21236 gcc_cv_as_hidden=yes
21238 echo "configure: failed program was" >&5
21241 rm -f conftest.o conftest.s
21244 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
21245 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
21248 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
21249 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
21250 if test "${gcc_cv_ld_hidden+set}" = set; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 if test $in_tree_ld = yes ; then
21254 gcc_cv_ld_hidden=no
21255 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 \
21256 && test $in_tree_ld_is_elf = yes; then
21257 gcc_cv_ld_hidden=yes
21260 gcc_cv_ld_hidden=yes
21261 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21262 if echo "$ld_ver" | grep GNU > /dev/null; then
21263 ld_vers=`echo $ld_ver | sed -n \
21264 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21265 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'`
21266 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21267 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21268 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21269 if test 0"$ld_date" -lt 20020404; then
21270 if test -n "$ld_date"; then
21271 # If there was date string, but was earlier than 2002-04-04, fail
21272 gcc_cv_ld_hidden=no
21273 elif test -z "$ld_vers"; then
21274 # If there was no date string nor ld version number, something is wrong
21275 gcc_cv_ld_hidden=no
21277 test -z "$ld_vers_patch" && ld_vers_patch=0
21278 if test "$ld_vers_major" -lt 2; then
21279 gcc_cv_ld_hidden=no
21280 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21281 gcc_cv_ld_hidden="no"
21282 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21283 gcc_cv_ld_hidden=no
21288 case "${target}" in
21289 hppa64*-*-hpux* | ia64*-*-hpux*)
21290 gcc_cv_ld_hidden=yes
21292 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21293 gcc_cv_ld_hidden=yes
21296 gcc_cv_ld_hidden=no
21302 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
21303 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
21304 libgcc_visibility=no
21307 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21308 libgcc_visibility=yes
21310 cat >>confdefs.h <<\_ACEOF
21311 #define HAVE_GAS_HIDDEN 1
21316 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
21317 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
21318 gcc_cv_ld_ro_rw_mix=unknown
21319 if test $in_tree_ld = yes ; then
21320 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 \
21321 && test $in_tree_ld_is_elf = yes; then
21322 gcc_cv_ld_ro_rw_mix=read-write
21324 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21325 echo '.section myfoosect, "a"' > conftest1.s
21326 echo '.section myfoosect, "aw"' > conftest2.s
21327 echo '.byte 1' >> conftest2.s
21328 echo '.section myfoosect, "a"' > conftest3.s
21329 echo '.byte 0' >> conftest3.s
21330 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21331 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21332 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21333 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21334 conftest2.o conftest3.o > /dev/null 2>&1; then
21335 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21336 | sed -e '/myfoosect/!d' -e N`
21337 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21338 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21339 gcc_cv_ld_ro_rw_mix=read-only
21341 gcc_cv_ld_ro_rw_mix=read-write
21345 rm -f conftest.* conftest[123].*
21347 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21349 cat >>confdefs.h <<\_ACEOF
21350 #define HAVE_LD_RO_RW_SECTION_MIXING 1
21354 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
21355 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
21357 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21358 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
21359 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
21360 if test "${gcc_cv_as_leb128+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 gcc_cv_as_leb128=no
21364 if test $in_tree_gas = yes; then
21365 if test $in_tree_gas_is_elf = yes \
21366 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21367 then gcc_cv_as_leb128=yes
21369 elif test x$gcc_cv_as != x; then
21376 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }
21383 # GAS versions before 2.11 do not support uleb128,
21384 # despite appearing to.
21385 # ??? There exists an elf-specific test that will crash
21386 # the assembler. Perhaps it's better to figure out whether
21387 # arbitrary sections are supported and try the test.
21388 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21389 if echo "$as_ver" | grep GNU > /dev/null; then
21390 as_vers=`echo $as_ver | sed -n \
21391 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21392 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21393 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21394 if test $as_major -eq 2 && test $as_minor -lt 11
21396 else gcc_cv_as_leb128=yes
21400 echo "configure: failed program was" >&5
21403 rm -f conftest.o conftest.s
21406 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
21407 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
21408 if test $gcc_cv_as_leb128 = yes; then
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_AS_LEB128 1
21416 # Check if we have assembler support for unwind directives.
21417 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
21418 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
21419 if test "${gcc_cv_as_cfi_directive+set}" = set; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21422 gcc_cv_as_cfi_directive=no
21423 if test x$gcc_cv_as != x; then
21429 .cfi_escape 1, 2, 3, 4, 5
21430 .cfi_endproc' > conftest.s
21431 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433 (eval $ac_try) 2>&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; }
21440 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21441 # read-only and read-write sections, we need to make sure that the
21442 # assembler used emits read-write .eh_frame sections.
21443 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21444 if test "x$gcc_cv_objdump" != x; then
21445 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21446 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21447 gcc_cv_as_cfi_directive=no
21449 gcc_cv_as_cfi_directive=yes
21452 # no objdump, err on the side of caution
21453 gcc_cv_as_cfi_directive=no
21456 gcc_cv_as_cfi_directive=yes
21460 gcc_cv_as_cfi_directive=yes
21464 echo "configure: failed program was" >&5
21467 rm -f conftest.o conftest.s
21470 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
21471 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
21473 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21474 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
21475 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
21476 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 gcc_cv_as_cfi_advance_working=no
21480 if test x$gcc_cv_as != x; then
21483 .cfi_adjust_cfa_offset 64
21485 .cfi_adjust_cfa_offset 128
21486 .cfi_endproc' > conftest.s
21487 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; }
21495 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21496 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
21497 gcc_cv_as_cfi_advance_working=yes
21501 echo "configure: failed program was" >&5
21504 rm -f conftest.o conftest.s
21507 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
21508 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
21511 # no readelf, err on the side of caution
21512 gcc_cv_as_cfi_advance_working=no
21515 cat >>confdefs.h <<_ACEOF
21516 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21517 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21521 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
21522 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
21523 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 gcc_cv_as_cfi_personality_directive=no
21527 if test x$gcc_cv_as != x; then
21530 .cfi_personality 0, symbol
21531 .cfi_endproc' > conftest.s
21532 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }
21539 gcc_cv_as_cfi_personality_directive=yes
21541 echo "configure: failed program was" >&5
21544 rm -f conftest.o conftest.s
21547 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
21548 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
21551 cat >>confdefs.h <<_ACEOF
21552 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21553 then echo 1; else echo 0; fi`
21557 # GAS versions up to and including 2.11.0 may mis-optimize
21559 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
21560 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
21561 if test "${gcc_cv_as_eh_frame+set}" = set; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 gcc_cv_as_eh_frame=no
21565 if test $in_tree_gas = yes; then
21566 if test $in_tree_gas_is_elf = yes \
21567 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21568 then gcc_cv_as_eh_frame=yes
21570 elif test x$gcc_cv_as != x; then
21577 .section .eh_frame,"aw",@progbits
21579 .4byte .LECIE1-.LSCIE1
21593 .4byte .LEFDE1-.LASFDE1
21595 .4byte .LASFDE1-__FRAME_BEGIN__
21602 .LEFDE1:' > conftest.s
21603 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }
21610 cat > conftest.lit <<EOF
21611 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21612 0010 01000000 12000000 18000000 00000000 ................
21613 0020 08000000 04080000 0044 .........D
21615 cat > conftest.big <<EOF
21616 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21617 0010 00000001 00000012 00000018 00000000 ................
21618 0020 00000008 04000000 0844 .........D
21620 # If the assembler didn't choke, and we can objdump,
21621 # and we got the correct data, then succeed.
21622 # The text in the here-document typically retains its unix-style line
21623 # endings, while the output of objdump will use host line endings.
21624 # Therefore, use diff -b for the comparisons.
21625 if test x$gcc_cv_objdump != x \
21626 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21627 | tail -3 > conftest.got \
21628 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21629 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21631 gcc_cv_as_eh_frame=yes
21632 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 gcc_cv_as_eh_frame=buggy
21640 # Uh oh, what do we do now?
21641 gcc_cv_as_eh_frame=no
21644 echo "configure: failed program was" >&5
21647 rm -f conftest.o conftest.s
21650 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
21651 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21654 if test $gcc_cv_as_eh_frame = buggy; then
21656 cat >>confdefs.h <<\_ACEOF
21657 #define USE_AS_TRADITIONAL_FORMAT 1
21662 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21663 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21664 if test "${gcc_cv_as_shf_merge+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21667 gcc_cv_as_shf_merge=no
21668 if test $in_tree_gas = yes; then
21669 if test $in_tree_gas_is_elf = yes \
21670 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21671 then gcc_cv_as_shf_merge=yes
21673 elif test x$gcc_cv_as != x; then
21674 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21675 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }
21682 gcc_cv_as_shf_merge=yes
21684 echo "configure: failed program was" >&5
21687 rm -f conftest.o conftest.s
21690 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21691 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21693 if test $gcc_cv_as_shf_merge = no; then
21694 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21695 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21696 if test "${gcc_cv_as_shf_merge+set}" = set; then
21697 echo $ECHO_N "(cached) $ECHO_C" >&6
21699 gcc_cv_as_shf_merge=no
21700 if test $in_tree_gas = yes; then
21701 if test $in_tree_gas_is_elf = yes \
21702 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21703 then gcc_cv_as_shf_merge=yes
21705 elif test x$gcc_cv_as != x; then
21706 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21707 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }
21714 gcc_cv_as_shf_merge=yes
21716 echo "configure: failed program was" >&5
21719 rm -f conftest.o conftest.s
21722 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21723 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21727 cat >>confdefs.h <<_ACEOF
21728 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21732 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21733 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21734 if test "${gcc_cv_as_comdat_group+set}" = set; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21737 gcc_cv_as_comdat_group=no
21738 if test $in_tree_gas = yes; then
21739 if test $in_tree_gas_is_elf = yes \
21740 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21741 then gcc_cv_as_comdat_group=yes
21743 elif test x$gcc_cv_as != x; then
21744 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21745 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }
21752 gcc_cv_as_comdat_group=yes
21754 echo "configure: failed program was" >&5
21757 rm -f conftest.o conftest.s
21760 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21761 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21763 if test $gcc_cv_as_comdat_group = yes; then
21764 gcc_cv_as_comdat_group_percent=no
21766 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21767 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21768 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 gcc_cv_as_comdat_group_percent=no
21772 if test $in_tree_gas = yes; then
21773 if test $in_tree_gas_is_elf = yes \
21774 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21775 then gcc_cv_as_comdat_group_percent=yes
21777 elif test x$gcc_cv_as != x; then
21778 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21779 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; }
21786 gcc_cv_as_comdat_group_percent=yes
21788 echo "configure: failed program was" >&5
21791 rm -f conftest.o conftest.s
21794 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21795 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21798 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21800 if test 0"$ld_date" -lt 20050308; then
21801 if test -n "$ld_date"; then
21802 # If there was date string, but was earlier than 2005-03-08, fail
21804 elif test "$ld_vers_major" -lt 2; then
21806 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21811 # assume linkers other than GNU ld don't support COMDAT group
21814 if test $comdat_group = no; then
21815 gcc_cv_as_comdat_group=no
21816 gcc_cv_as_comdat_group_percent=no
21819 cat >>confdefs.h <<_ACEOF
21820 #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`
21824 # Thread-local storage - the check is heavily parameterized.
21832 .section ".tdata","awT",@progbits
21835 ldq $27,__tls_get_addr($29) !literal!1
21836 lda $16,foo($29) !tlsgd!1
21837 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21838 ldq $27,__tls_get_addr($29) !literal!2
21839 lda $16,foo($29) !tlsldm!2
21840 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21841 ldq $1,foo($29) !gotdtprel
21842 ldah $2,foo($29) !dtprelhi
21843 lda $3,foo($2) !dtprello
21844 lda $4,foo($29) !dtprel
21845 ldq $1,foo($29) !gottprel
21846 ldah $2,foo($29) !tprelhi
21847 lda $3,foo($2) !tprello
21848 lda $4,foo($29) !tprel'
21851 tls_as_opt=--fatal-warnings
21853 cris-*-*|crisv32-*-*)
21855 .section ".tdata","awT",@progbits
21862 tls_as_opt=--fatal-warnings
21866 .section ".tdata","awT",@progbits
21869 call #gettlsoff(x)'
21878 .section ".tdata","awT",@progbits
21882 addil LT%foo-$tls_gdidx$,gp
21883 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21886 addil LT%foo-$tls_ldidx$,gp
21888 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21889 addil LR%foo-$tls_dtpoff$,%ret0
21890 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21892 addil LT%foo-$tls_ieoff$,gp
21893 ldw RT%foo-$tls_ieoff$(%r1),%t2
21896 addil LR%foo-$tls_leoff$,%t1
21897 ldo RR%foo-$tls_leoff$(%r1),%t2'
21900 tls_as_opt=--fatal-warnings
21904 .section ".tdata","awT",%progbits
21907 .word foo(gottpoff)
21917 .section ".tdata","awT",@progbits
21921 leal foo@TLSGD(,%ebx,1), %eax
21922 leal foo@TLSLDM(%ebx), %eax
21923 leal foo@DTPOFF(%eax), %edx
21924 movl foo@GOTTPOFF(%ebx), %eax
21925 subl foo@GOTTPOFF(%ebx), %eax
21926 addl foo@GOTNTPOFF(%ebx), %eax
21927 movl foo@INDNTPOFF, %eax
21928 movl $foo@TPOFF, %eax
21929 subl $foo@TPOFF, %eax
21930 leal foo@NTPOFF(%ecx), %eax'
21933 tls_as_opt=--fatal-warnings
21937 .section ".tdata","awT",@progbits
21941 leaq foo@TLSGD(%rip), %rdi
21942 leaq foo@TLSLD(%rip), %rdi
21943 leaq foo@DTPOFF(%rax), %rdx
21944 movq foo@GOTTPOFF(%rip), %rax
21945 movq $foo@TPOFF, %rax'
21948 tls_as_opt=--fatal-warnings
21952 .section ".tdata","awT",@progbits
21955 addl r16 = @ltoff(@dtpmod(foo#)), gp
21956 addl r17 = @ltoff(@dtprel(foo#)), gp
21957 addl r18 = @ltoff(@tprel(foo#)), gp
21958 addl r19 = @dtprel(foo#), gp
21959 adds r21 = @dtprel(foo#), r13
21960 movl r23 = @dtprel(foo#)
21961 addl r20 = @tprel(foo#), gp
21962 adds r22 = @tprel(foo#), r13
21963 movl r24 = @tprel(foo#)'
21966 tls_as_opt=--fatal-warnings
21970 .section .tdata,"awT",@progbits
21974 addiu $4, $28, %tlsgd(x)
21975 addiu $4, $28, %tlsldm(x)
21976 lui $4, %dtprel_hi(x)
21977 addiu $4, $4, %dtprel_lo(x)
21978 lw $4, %gottprel(x)($28)
21979 lui $4, %tprel_hi(x)
21980 addiu $4, $4, %tprel_lo(x)'
21983 tls_as_opt='-32 --fatal-warnings'
21987 .section ".tdata","awT",@progbits
21995 addi 3,31,ld0@got@tlsgd
21997 addi 3,31,x1@got@tlsld
22000 addis 9,3,x2@dtprel@ha
22001 addi 9,9,x2@dtprel@l
22002 lwz 9,x3@got@tprel(31)
22005 addis 9,2,x2@tprel@ha
22006 addi 9,9,x2@tprel@l'
22009 tls_as_opt="-a32 --fatal-warnings"
22013 .section ".tdata","awT",@progbits
22021 addi 3,2,ld0@got@tlsgd
22027 addi 3,2,x1@got@tlsld
22033 addis 9,3,x2@dtprel@ha
22034 addi 9,9,x2@dtprel@l
22037 ld 9,x3@got@dtprel(2)
22043 tls_as_opt="-a64 --fatal-warnings"
22047 .section ".tdata","awT",@progbits
22054 .long foo@GOTNTPOFF
22055 .long foo@INDNTPOFF
22056 l %r1,foo@GOTNTPOFF(%r12)
22057 l %r1,0(%r1):tls_load:foo
22058 bas %r14,0(%r1,%r13):tls_gdcall:foo
22059 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22062 tls_as_opt="-m31 --fatal-warnings"
22066 .section ".tdata","awT",@progbits
22073 .quad foo@GOTNTPOFF
22074 lg %r1,foo@GOTNTPOFF(%r12)
22075 larl %r1,foo@INDNTPOFF
22076 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22077 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22080 tls_as_opt="-m64 -Aesame --fatal-warnings"
22082 sh-*-* | sh[34]-*-*)
22084 .section ".tdata","awT",@progbits
22094 tls_as_opt=--fatal-warnings
22098 sparc*-sun-solaris2.[56789]*)
22099 # TLS was introduced in the Solaris 9 4/04 release but
22100 # we do not enable it by default on Solaris 9 either.
22101 if test "x$enable_tls" = xyes ; then
22107 sparc*-sun-solaris2.*)
22114 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22116 .section ".tdata",#alloc,#write,#tls
22119 sethi %tgd_hi22(foo), %o0
22120 add %o0, %tgd_lo10(foo), %o1
22121 add %l7, %o1, %o0, %tgd_add(foo)
22122 call __tls_get_addr, %tgd_call(foo)
22123 sethi %tldm_hi22(foo), %l1
22124 add %l1, %tldm_lo10(foo), %l2
22125 add %l7, %l2, %o0, %tldm_add(foo)
22126 call __tls_get_addr, %tldm_call(foo)
22127 sethi %tldo_hix22(foo), %l3
22128 xor %l3, %tldo_lox10(foo), %l4
22129 add %o0, %l4, %l5, %tldo_add(foo)
22130 sethi %tie_hi22(foo), %o3
22131 add %o3, %tie_lo10(foo), %o3
22132 ld [%l7 + %o3], %o2, %tie_ld(foo)
22133 add %g7, %o2, %o4, %tie_add(foo)
22134 sethi %tle_hix22(foo), %l1
22135 xor %l1, %tle_lox10(foo), %o5
22136 ld [%g7 + %o5], %o1'
22141 .section ".tdata","awT",@progbits
22144 sethi %tgd_hi22(foo), %o0
22145 add %o0, %tgd_lo10(foo), %o1
22146 add %l7, %o1, %o0, %tgd_add(foo)
22147 call __tls_get_addr, %tgd_call(foo)
22148 sethi %tldm_hi22(foo), %l1
22149 add %l1, %tldm_lo10(foo), %l2
22150 add %l7, %l2, %o0, %tldm_add(foo)
22151 call __tls_get_addr, %tldm_call(foo)
22152 sethi %tldo_hix22(foo), %l3
22153 xor %l3, %tldo_lox10(foo), %l4
22154 add %o0, %l4, %l5, %tldo_add(foo)
22155 sethi %tie_hi22(foo), %o3
22156 add %o3, %tie_lo10(foo), %o3
22157 ld [%l7 + %o3], %o2, %tie_ld(foo)
22158 add %g7, %o2, %o4, %tie_add(foo)
22159 sethi %tle_hix22(foo), %l1
22160 xor %l1, %tle_lox10(foo), %o5
22161 ld [%g7 + %o5], %o1'
22164 tls_as_opt="-32 --fatal-warnings"
22169 .section ".tdata","awT",@progbits
22172 movi a8, foo@TLSFUNC
22173 movi a10, foo@TLSARG
22174 callx8.tls a8, foo@TLSCALL'
22180 if test "x$enable_tls" = xno ; then
22181 : # TLS explicitly disabled.
22182 elif test "x$enable_tls" = xyes ; then
22183 set_have_as_tls=yes # TLS explicitly enabled.
22184 elif test -z "$tls_first_major"; then
22185 : # If we don't have a check, assume no support.
22187 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
22188 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
22189 if test "${gcc_cv_as_tls+set}" = set; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 if test $in_tree_gas = yes; then
22194 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22195 then gcc_cv_as_tls=yes
22197 elif test x$gcc_cv_as != x; then
22198 echo "$conftest_s" > conftest.s
22199 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }
22208 echo "configure: failed program was" >&5
22211 rm -f conftest.o conftest.s
22214 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
22215 echo "${ECHO_T}$gcc_cv_as_tls" >&6
22216 if test $gcc_cv_as_tls = yes; then
22217 set_have_as_tls=yes
22220 if test $set_have_as_tls = yes ; then
22222 cat >>confdefs.h <<\_ACEOF
22223 #define HAVE_AS_TLS 1
22228 # Target-specific assembler checks.
22230 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
22231 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
22232 gcc_cv_ld_static_dynamic=no
22233 if test $in_tree_ld = yes ; then
22234 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
22235 gcc_cv_ld_static_dynamic=yes
22237 elif test x$gcc_cv_ld != x; then
22238 # Check if linker supports -Bstatic/-Bdynamic option
22239 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22240 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22241 gcc_cv_ld_static_dynamic=yes
22244 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22246 cat >>confdefs.h <<\_ACEOF
22247 #define HAVE_LD_STATIC_DYNAMIC 1
22251 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
22252 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
22254 if test x"$demangler_in_ld" = xyes; then
22255 echo "$as_me:$LINENO: checking linker --demangle support" >&5
22256 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
22257 gcc_cv_ld_demangle=no
22258 if test $in_tree_ld = yes; then
22259 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 \
22260 gcc_cv_ld_demangle=yes
22262 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22263 # Check if the GNU linker supports --demangle option
22264 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22265 gcc_cv_ld_demangle=yes
22268 if test x"$gcc_cv_ld_demangle" = xyes; then
22270 cat >>confdefs.h <<\_ACEOF
22271 #define HAVE_LD_DEMANGLE 1
22275 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
22276 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
22280 # All TARGET_ABI_OSF targets.
22281 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22282 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22283 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22284 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22287 gcc_cv_as_alpha_explicit_relocs=no
22288 if test $in_tree_gas = yes; then
22289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22290 then gcc_cv_as_alpha_explicit_relocs=yes
22292 elif test x$gcc_cv_as != x; then
22293 echo ' .set nomacro
22295 extbl $3, $2, $3 !lituse_bytoff!1
22296 ldq $2, a($29) !literal!1
22297 ldq $4, b($29) !literal!2
22298 ldq_u $3, 0($2) !lituse_base!1
22299 ldq $27, f($29) !literal!5
22300 jsr $26, ($27), f !lituse_jsr!5
22301 ldah $29, 0($26) !gpdisp!3
22302 lda $0, c($29) !gprel
22303 ldah $1, d($29) !gprelhigh
22304 lda $1, d($1) !gprellow
22305 lda $29, 0($29) !gpdisp!3' > conftest.s
22306 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; }
22313 gcc_cv_as_alpha_explicit_relocs=yes
22315 echo "configure: failed program was" >&5
22318 rm -f conftest.o conftest.s
22321 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22322 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
22323 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22325 cat >>confdefs.h <<\_ACEOF
22326 #define HAVE_AS_EXPLICIT_RELOCS 1
22330 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
22331 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
22332 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22335 gcc_cv_as_alpha_jsrdirect_relocs=no
22336 if test $in_tree_gas = yes; then
22337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22338 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22340 elif test x$gcc_cv_as != x; then
22341 echo ' .set nomacro
22343 ldq $27, a($29) !literal!1
22344 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22345 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22347 (eval $ac_try) 2>&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); }; }
22352 gcc_cv_as_alpha_jsrdirect_relocs=yes
22354 echo "configure: failed program was" >&5
22357 rm -f conftest.o conftest.s
22360 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22361 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
22362 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22364 cat >>confdefs.h <<\_ACEOF
22365 #define HAVE_AS_JSRDIRECT_RELOCS 1
22372 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
22373 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
22374 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 gcc_cv_as_cris_no_mul_bug=no
22378 if test $in_tree_gas = yes; then
22379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22380 then gcc_cv_as_cris_no_mul_bug=yes
22382 elif test x$gcc_cv_as != x; then
22383 echo '.text' > conftest.s
22384 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }
22391 gcc_cv_as_cris_no_mul_bug=yes
22393 echo "configure: failed program was" >&5
22396 rm -f conftest.o conftest.s
22399 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
22400 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
22401 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
22411 echo "$as_me:$LINENO: checking assembler for .register" >&5
22412 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
22413 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
22414 echo $ECHO_N "(cached) $ECHO_C" >&6
22416 gcc_cv_as_sparc_register_op=no
22417 if test x$gcc_cv_as != x; then
22418 echo '.register %g2, #scratch' > conftest.s
22419 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }
22426 gcc_cv_as_sparc_register_op=yes
22428 echo "configure: failed program was" >&5
22431 rm -f conftest.o conftest.s
22434 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
22435 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
22436 if test $gcc_cv_as_sparc_register_op = yes; then
22438 cat >>confdefs.h <<\_ACEOF
22439 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22444 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
22445 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
22446 if test "${gcc_cv_as_sparc_relax+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22449 gcc_cv_as_sparc_relax=no
22450 if test x$gcc_cv_as != x; then
22451 echo '.text' > conftest.s
22452 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); }; }
22459 gcc_cv_as_sparc_relax=yes
22461 echo "configure: failed program was" >&5
22464 rm -f conftest.o conftest.s
22467 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
22468 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
22469 if test $gcc_cv_as_sparc_relax = yes; then
22471 cat >>confdefs.h <<\_ACEOF
22472 #define HAVE_AS_RELAX_OPTION 1
22477 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
22478 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
22479 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
22480 echo $ECHO_N "(cached) $ECHO_C" >&6
22482 gcc_cv_as_sparc_ua_pcrel=no
22483 if test x$gcc_cv_as != x; then
22490 .uaword %r_disp32(foo)' > conftest.s
22491 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }
22498 if test x$gcc_cv_ld != x \
22499 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22500 gcc_cv_as_sparc_ua_pcrel=yes
22504 echo "configure: failed program was" >&5
22507 rm -f conftest.o conftest.s
22510 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22511 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
22512 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22514 cat >>confdefs.h <<\_ACEOF
22515 #define HAVE_AS_SPARC_UA_PCREL 1
22519 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22520 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
22521 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 gcc_cv_as_sparc_ua_pcrel_hidden=no
22525 if test x$gcc_cv_as != x; then
22529 .uaword %r_disp32(foo)
22530 .byte 0x32, 0x33, 0x34
22534 .skip 4' > conftest.s
22535 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; }
22542 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22543 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22544 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22545 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22546 if $gcc_cv_objdump -R conftest 2> /dev/null \
22547 | grep 'DISP32' > /dev/null 2>&1; then
22550 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22555 echo "configure: failed program was" >&5
22558 rm -f conftest.o conftest.s
22561 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22562 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
22563 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22565 cat >>confdefs.h <<\_ACEOF
22566 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
22571 fi # unaligned pcrel relocs
22573 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
22574 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
22575 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22578 gcc_cv_as_sparc_offsetable_lo10=no
22579 if test x$gcc_cv_as != x; then
22581 or %g1, %lo(ab) + 12, %g1
22582 or %g1, %lo(ab + 12), %g1' > conftest.s
22583 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585 (eval $ac_try) 2>&5
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); }; }
22590 if test x$gcc_cv_objdump != x \
22591 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22592 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22593 gcc_cv_as_sparc_offsetable_lo10=yes
22596 echo "configure: failed program was" >&5
22599 rm -f conftest.o conftest.s
22602 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22603 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
22604 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_AS_OFFSETABLE_LO10 1
22613 i[34567]86-*-* | x86_64-*-*)
22615 cygwin* | pe | mingw32*)
22616 # Used for DWARF 2 in PE
22617 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
22618 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
22619 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22622 gcc_cv_as_ix86_pe_secrel32=no
22623 if test $in_tree_gas = yes; then
22624 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22625 then gcc_cv_as_ix86_pe_secrel32=yes
22627 elif test x$gcc_cv_as != x; then
22631 .secrel32 foo' > conftest.s
22632 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; }
22639 if test x$gcc_cv_ld != x \
22640 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22641 gcc_cv_as_ix86_pe_secrel32=yes
22645 echo "configure: failed program was" >&5
22648 rm -f conftest.o conftest.s
22651 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22652 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
22653 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22655 cat >>confdefs.h <<\_ACEOF
22656 #define HAVE_GAS_PE_SECREL32_RELOC 1
22663 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
22664 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
22665 if test "${gcc_cv_as_ix86_filds+set}" = set; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 gcc_cv_as_ix86_filds=no
22669 if test x$gcc_cv_as != x; then
22670 echo 'filds mem; fists mem' > conftest.s
22671 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; }
22678 gcc_cv_as_ix86_filds=yes
22680 echo "configure: failed program was" >&5
22683 rm -f conftest.o conftest.s
22686 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds" >&5
22687 echo "${ECHO_T}$gcc_cv_as_ix86_filds" >&6
22688 if test $gcc_cv_as_ix86_filds = yes; then
22690 cat >>confdefs.h <<\_ACEOF
22691 #define HAVE_AS_IX86_FILDS 1
22696 echo "$as_me:$LINENO: checking assembler for fildq and fistpq mnemonics" >&5
22697 echo $ECHO_N "checking assembler for fildq and fistpq mnemonics... $ECHO_C" >&6
22698 if test "${gcc_cv_as_ix86_fildq+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 gcc_cv_as_ix86_fildq=no
22702 if test x$gcc_cv_as != x; then
22703 echo 'fildq mem; fistpq mem' > conftest.s
22704 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; }
22711 gcc_cv_as_ix86_fildq=yes
22713 echo "configure: failed program was" >&5
22716 rm -f conftest.o conftest.s
22719 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_fildq" >&5
22720 echo "${ECHO_T}$gcc_cv_as_ix86_fildq" >&6
22721 if test $gcc_cv_as_ix86_fildq = yes; then
22723 cat >>confdefs.h <<\_ACEOF
22724 #define HAVE_AS_IX86_FILDQ 1
22729 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22730 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22731 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22734 gcc_cv_as_ix86_cmov_sun_syntax=no
22735 if test x$gcc_cv_as != x; then
22736 echo 'cmovl.l %edx, %eax' > conftest.s
22737 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }
22744 gcc_cv_as_ix86_cmov_sun_syntax=yes
22746 echo "configure: failed program was" >&5
22749 rm -f conftest.o conftest.s
22752 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22753 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22754 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22756 cat >>confdefs.h <<\_ACEOF
22757 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22762 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22763 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22764 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22765 echo $ECHO_N "(cached) $ECHO_C" >&6
22767 gcc_cv_as_ix86_ffreep=no
22768 if test x$gcc_cv_as != x; then
22769 echo 'ffreep %st(1)' > conftest.s
22770 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; }
22777 gcc_cv_as_ix86_ffreep=yes
22779 echo "configure: failed program was" >&5
22782 rm -f conftest.o conftest.s
22785 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22786 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22787 if test $gcc_cv_as_ix86_ffreep = yes; then
22789 cat >>confdefs.h <<\_ACEOF
22790 #define HAVE_AS_IX86_FFREEP 1
22795 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22796 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22797 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22798 echo $ECHO_N "(cached) $ECHO_C" >&6
22800 gcc_cv_as_ix86_sahf=no
22801 if test x$gcc_cv_as != x; then
22802 echo 'sahf' > conftest.s
22803 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); }; }
22810 gcc_cv_as_ix86_sahf=yes
22812 echo "configure: failed program was" >&5
22815 rm -f conftest.o conftest.s
22818 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22819 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22820 if test $gcc_cv_as_ix86_sahf = yes; then
22822 cat >>confdefs.h <<\_ACEOF
22823 #define HAVE_AS_IX86_SAHF 1
22828 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22829 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22830 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22833 gcc_cv_as_ix86_diff_sect_delta=no
22834 if test x$gcc_cv_as != x; then
22835 echo '.section .rodata
22841 .L2: nop' > conftest.s
22842 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }
22849 gcc_cv_as_ix86_diff_sect_delta=yes
22851 echo "configure: failed program was" >&5
22854 rm -f conftest.o conftest.s
22857 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22858 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22859 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22861 cat >>confdefs.h <<\_ACEOF
22862 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22867 # This one is used unconditionally by i386.[ch]; it is to be defined
22868 # to 1 if the feature is present, 0 otherwise.
22869 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22870 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22871 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22874 gcc_cv_as_ix86_gotoff_in_data=no
22875 if test $in_tree_gas = yes; then
22876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22877 then gcc_cv_as_ix86_gotoff_in_data=yes
22879 elif test x$gcc_cv_as != x; then
22884 .long .L0@GOTOFF' > conftest.s
22885 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887 (eval $ac_try) 2>&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); }; }
22892 gcc_cv_as_ix86_gotoff_in_data=yes
22894 echo "configure: failed program was" >&5
22897 rm -f conftest.o conftest.s
22900 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22901 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22904 cat >>confdefs.h <<_ACEOF
22905 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22911 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22912 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22913 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22917 if test $in_tree_gas = yes; then
22918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22919 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22921 elif test x$gcc_cv_as != x; then
22923 addl r15 = @ltoffx(x#), gp
22925 ld8.mov r16 = [r15], x#' > conftest.s
22926 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; }
22933 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22935 echo "configure: failed program was" >&5
22938 rm -f conftest.o conftest.s
22941 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22942 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22943 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22945 cat >>confdefs.h <<\_ACEOF
22946 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22955 *-*-aix*) conftest_s=' .machine "pwr5"
22959 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22960 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22961 if test "${gcc_cv_as_machine_directive+set}" = set; then
22962 echo $ECHO_N "(cached) $ECHO_C" >&6
22964 gcc_cv_as_machine_directive=no
22965 if test x$gcc_cv_as != x; then
22966 echo ' .machine ppc7400' > conftest.s
22967 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969 (eval $ac_try) 2>&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; }
22974 gcc_cv_as_machine_directive=yes
22976 echo "configure: failed program was" >&5
22979 rm -f conftest.o conftest.s
22982 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22983 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22985 if test x$gcc_cv_as_machine_directive != xyes; then
22986 echo "*** This target requires an assembler supporting \".machine\"" >&2
22987 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22988 test x$build = x$target && exit 1
22992 *) conftest_s=' .machine power4
22997 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22998 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22999 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23002 gcc_cv_as_powerpc_mfcrf=no
23003 if test $in_tree_gas = yes; then
23004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23005 then gcc_cv_as_powerpc_mfcrf=yes
23007 elif test x$gcc_cv_as != x; then
23008 echo "$conftest_s" > conftest.s
23009 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; }
23016 gcc_cv_as_powerpc_mfcrf=yes
23018 echo "configure: failed program was" >&5
23021 rm -f conftest.o conftest.s
23024 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
23025 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
23026 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23028 cat >>confdefs.h <<\_ACEOF
23029 #define HAVE_AS_MFCRF 1
23035 *-*-aix*) conftest_s=' .machine "pwr5"
23038 *) conftest_s=' .machine power5
23043 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
23044 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
23045 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 gcc_cv_as_powerpc_popcntb=no
23049 if test $in_tree_gas = yes; then
23050 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23051 then gcc_cv_as_powerpc_popcntb=yes
23053 elif test x$gcc_cv_as != x; then
23054 echo "$conftest_s" > conftest.s
23055 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057 (eval $ac_try) 2>&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; }
23062 gcc_cv_as_powerpc_popcntb=yes
23064 echo "configure: failed program was" >&5
23067 rm -f conftest.o conftest.s
23070 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
23071 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
23072 if test $gcc_cv_as_powerpc_popcntb = yes; then
23074 cat >>confdefs.h <<\_ACEOF
23075 #define HAVE_AS_POPCNTB 1
23081 *-*-aix*) conftest_s=' .machine "pwr5x"
23084 *) conftest_s=' .machine power5
23089 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
23090 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
23091 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
23094 gcc_cv_as_powerpc_fprnd=no
23095 if test $in_tree_gas = yes; then
23096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23097 then gcc_cv_as_powerpc_fprnd=yes
23099 elif test x$gcc_cv_as != x; then
23100 echo "$conftest_s" > conftest.s
23101 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; }
23108 gcc_cv_as_powerpc_fprnd=yes
23110 echo "configure: failed program was" >&5
23113 rm -f conftest.o conftest.s
23116 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
23117 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
23118 if test $gcc_cv_as_powerpc_fprnd = yes; then
23120 cat >>confdefs.h <<\_ACEOF
23121 #define HAVE_AS_FPRND 1
23127 *-*-aix*) conftest_s=' .machine "pwr6"
23130 *) conftest_s=' .machine power6
23135 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
23136 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
23137 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23140 gcc_cv_as_powerpc_mfpgpr=no
23141 if test $in_tree_gas = yes; then
23142 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23143 then gcc_cv_as_powerpc_mfpgpr=yes
23145 elif test x$gcc_cv_as != x; then
23146 echo "$conftest_s" > conftest.s
23147 if { ac_try='$gcc_cv_as -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_mfpgpr=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_mfpgpr" >&5
23163 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
23164 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23166 cat >>confdefs.h <<\_ACEOF
23167 #define HAVE_AS_MFPGPR 1
23173 *-*-aix*) conftest_s=' .csect .text[PR]
23175 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23179 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23180 *) conftest_s=' .text
23182 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23185 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
23186 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
23187 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23190 gcc_cv_as_powerpc_rel16=no
23191 if test $in_tree_gas = yes; then
23192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23193 then gcc_cv_as_powerpc_rel16=yes
23195 elif test x$gcc_cv_as != x; then
23196 echo "$conftest_s" > conftest.s
23197 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199 (eval $ac_try) 2>&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); }; }
23204 gcc_cv_as_powerpc_rel16=yes
23206 echo "configure: failed program was" >&5
23209 rm -f conftest.o conftest.s
23212 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
23213 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
23214 if test $gcc_cv_as_powerpc_rel16 = yes; then
23216 cat >>confdefs.h <<\_ACEOF
23217 #define HAVE_AS_REL16 1
23223 *-*-aix*) conftest_s=' .machine "pwr6"
23226 *) conftest_s=' .machine power6
23231 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
23232 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
23233 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
23234 echo $ECHO_N "(cached) $ECHO_C" >&6
23236 gcc_cv_as_powerpc_cmpb=no
23237 if test $in_tree_gas = yes; then
23238 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23239 then gcc_cv_as_powerpc_cmpb=yes
23241 elif test x$gcc_cv_as != x; then
23242 echo "$conftest_s" > conftest.s
23243 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; }
23250 gcc_cv_as_powerpc_cmpb=yes
23252 echo "configure: failed program was" >&5
23255 rm -f conftest.o conftest.s
23258 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
23259 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
23260 if test $gcc_cv_as_powerpc_cmpb = yes; then
23262 cat >>confdefs.h <<\_ACEOF
23263 #define HAVE_AS_CMPB 1
23269 *-*-aix*) conftest_s=' .machine "pwr6"
23272 *) conftest_s=' .machine power6
23277 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
23278 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
23279 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23282 gcc_cv_as_powerpc_dfp=no
23283 if test $in_tree_gas = yes; then
23284 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23285 then gcc_cv_as_powerpc_dfp=yes
23287 elif test x$gcc_cv_as != x; then
23288 echo "$conftest_s" > conftest.s
23289 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }
23296 gcc_cv_as_powerpc_dfp=yes
23298 echo "configure: failed program was" >&5
23301 rm -f conftest.o conftest.s
23304 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
23305 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
23306 if test $gcc_cv_as_powerpc_dfp = yes; then
23308 cat >>confdefs.h <<\_ACEOF
23309 #define HAVE_AS_DFP 1
23315 *-*-aix*) conftest_s=' .machine "pwr7"
23318 *) conftest_s=' .machine power7
23323 echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
23324 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
23325 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
23326 echo $ECHO_N "(cached) $ECHO_C" >&6
23328 gcc_cv_as_powerpc_vsx=no
23329 if test $in_tree_gas = yes; then
23330 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23331 then gcc_cv_as_powerpc_vsx=yes
23333 elif test x$gcc_cv_as != x; then
23334 echo "$conftest_s" > conftest.s
23335 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; }
23342 gcc_cv_as_powerpc_vsx=yes
23344 echo "configure: failed program was" >&5
23347 rm -f conftest.o conftest.s
23350 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
23351 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
23352 if test $gcc_cv_as_powerpc_vsx = yes; then
23354 cat >>confdefs.h <<\_ACEOF
23355 #define HAVE_AS_VSX 1
23360 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23361 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23362 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
23363 echo $ECHO_N "(cached) $ECHO_C" >&6
23365 gcc_cv_as_powerpc_gnu_attribute=no
23366 if test $in_tree_gas = yes; then
23367 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23368 then gcc_cv_as_powerpc_gnu_attribute=yes
23370 elif test x$gcc_cv_as != x; then
23371 echo '.gnu_attribute 4,1' > conftest.s
23372 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; }
23379 gcc_cv_as_powerpc_gnu_attribute=yes
23381 echo "configure: failed program was" >&5
23384 rm -f conftest.o conftest.s
23387 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23388 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
23389 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23391 cat >>confdefs.h <<\_ACEOF
23392 #define HAVE_AS_GNU_ATTRIBUTE 1
23397 echo "$as_me:$LINENO: checking assembler for tls marker support" >&5
23398 echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6
23399 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then
23400 echo $ECHO_N "(cached) $ECHO_C" >&6
23402 gcc_cv_as_powerpc_tls_markers=no
23403 if test $in_tree_gas = yes; then
23404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23405 then gcc_cv_as_powerpc_tls_markers=yes
23407 elif test x$gcc_cv_as != x; then
23408 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23409 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411 (eval $ac_try) 2>&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; }
23416 gcc_cv_as_powerpc_tls_markers=yes
23418 echo "configure: failed program was" >&5
23421 rm -f conftest.o conftest.s
23424 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5
23425 echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6
23426 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23428 cat >>confdefs.h <<\_ACEOF
23429 #define HAVE_AS_TLS_MARKERS 1
23436 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
23437 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
23438 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
23439 echo $ECHO_N "(cached) $ECHO_C" >&6
23441 gcc_cv_as_mips_explicit_relocs=no
23442 if test $in_tree_gas = yes; then
23443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23444 then gcc_cv_as_mips_explicit_relocs=yes
23446 elif test x$gcc_cv_as != x; then
23447 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23448 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; }
23455 gcc_cv_as_mips_explicit_relocs=yes
23457 echo "configure: failed program was" >&5
23460 rm -f conftest.o conftest.s
23463 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
23464 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
23465 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23466 if test x$target_cpu_default = x
23467 then target_cpu_default=MASK_EXPLICIT_RELOCS
23468 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23471 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
23472 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
23473 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23476 gcc_cv_as_mips_no_shared=no
23477 if test $in_tree_gas = yes; then
23478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23479 then gcc_cv_as_mips_no_shared=yes
23481 elif test x$gcc_cv_as != x; then
23482 echo 'nop' > conftest.s
23483 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485 (eval $ac_try) 2>&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); }; }
23490 gcc_cv_as_mips_no_shared=yes
23492 echo "configure: failed program was" >&5
23495 rm -f conftest.o conftest.s
23498 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
23499 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
23500 if test $gcc_cv_as_mips_no_shared = yes; then
23502 cat >>confdefs.h <<\_ACEOF
23503 #define HAVE_AS_NO_SHARED 1
23508 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23509 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23510 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23513 gcc_cv_as_mips_gnu_attribute=no
23514 if test $in_tree_gas = yes; then
23515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23516 then gcc_cv_as_mips_gnu_attribute=yes
23518 elif test x$gcc_cv_as != x; then
23519 echo '.gnu_attribute 4,1' > conftest.s
23520 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }
23527 gcc_cv_as_mips_gnu_attribute=yes
23529 echo "configure: failed program was" >&5
23532 rm -f conftest.o conftest.s
23535 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
23536 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
23537 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23539 cat >>confdefs.h <<\_ACEOF
23540 #define HAVE_AS_GNU_ATTRIBUTE 1
23545 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
23546 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
23547 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
23548 echo $ECHO_N "(cached) $ECHO_C" >&6
23550 gcc_cv_as_mips_dtprelword=no
23551 if test $in_tree_gas = yes; then
23552 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23553 then gcc_cv_as_mips_dtprelword=yes
23555 elif test x$gcc_cv_as != x; then
23556 echo '.section .tdata,"awT",@progbits
23560 .dtprelword x+0x8000' > conftest.s
23561 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }
23568 gcc_cv_as_mips_dtprelword=yes
23570 echo "configure: failed program was" >&5
23573 rm -f conftest.o conftest.s
23576 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
23577 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
23578 if test $gcc_cv_as_mips_dtprelword = yes; then
23580 cat >>confdefs.h <<\_ACEOF
23581 #define HAVE_AS_DTPRELWORD 1
23588 # Mips and HP-UX need the GNU assembler.
23589 # Linux on IA64 might be able to use the Intel assembler.
23592 mips*-*-* | *-*-hpux* )
23593 if test x$gas_flag = xyes \
23594 || test x"$host" != x"$build" \
23595 || test ! -x "$gcc_cv_as" \
23596 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23599 echo "*** This configuration requires the GNU assembler" >&2
23605 # ??? Not all targets support dwarf2 debug_line, even within a version
23606 # of gas. Moreover, we need to emit a valid instruction to trigger any
23607 # info to the output file. So, as supported targets are added to gas 2.11,
23608 # add some instruction here to (also) show we expect this might work.
23609 # ??? Once 2.11 is released, probably need to add first known working
23610 # version to the per-target configury.
23612 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23613 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23614 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23615 | spu-*-* | fido*-*-* | m32c-*-*)
23618 ia64*-*-* | s390*-*-*)
23625 if test x"$insn" != x; then
23627 .file 1 \"conftest.s\"
23630 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
23631 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
23632 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23635 gcc_cv_as_dwarf2_debug_line=no
23636 if test $in_tree_gas = yes; then
23637 if test $in_tree_gas_is_elf = yes \
23638 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23639 then gcc_cv_as_dwarf2_debug_line=yes
23641 elif test x$gcc_cv_as != x; then
23642 echo "$conftest_s" > conftest.s
23643 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }
23650 if test x$gcc_cv_objdump != x \
23651 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23652 | grep debug_line > /dev/null 2>&1; then
23653 gcc_cv_as_dwarf2_debug_line=yes
23656 echo "configure: failed program was" >&5
23659 rm -f conftest.o conftest.s
23662 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
23663 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
23666 # The .debug_line file table must be in the exact order that
23667 # we specified the files, since these indices are also used
23668 # by DW_AT_decl_file. Approximate this test by testing if
23669 # the assembler bitches if the same index is assigned twice.
23670 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
23671 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
23672 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
23673 echo $ECHO_N "(cached) $ECHO_C" >&6
23675 gcc_cv_as_dwarf2_file_buggy=no
23676 if test x$gcc_cv_as != x; then
23677 echo ' .file 1 "foo.s"
23678 .file 1 "bar.s"' > conftest.s
23679 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681 (eval $ac_try) 2>&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; }
23686 gcc_cv_as_dwarf2_file_buggy=yes
23688 echo "configure: failed program was" >&5
23691 rm -f conftest.o conftest.s
23694 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23695 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
23698 if test $gcc_cv_as_dwarf2_debug_line = yes \
23699 && test $gcc_cv_as_dwarf2_file_buggy = no; then
23701 cat >>confdefs.h <<\_ACEOF
23702 #define HAVE_AS_DWARF2_DEBUG_LINE 1
23707 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
23708 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
23709 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
23710 echo $ECHO_N "(cached) $ECHO_C" >&6
23712 gcc_cv_as_gdwarf2_flag=no
23713 if test $in_tree_gas = yes; then
23714 if test $in_tree_gas_is_elf = yes \
23715 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23716 then gcc_cv_as_gdwarf2_flag=yes
23718 elif test x$gcc_cv_as != x; then
23719 echo "$insn" > conftest.s
23720 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; }
23727 gcc_cv_as_gdwarf2_flag=yes
23729 echo "configure: failed program was" >&5
23732 rm -f conftest.o conftest.s
23735 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23736 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23737 if test $gcc_cv_as_gdwarf2_flag = yes; then
23739 cat >>confdefs.h <<\_ACEOF
23740 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23745 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23746 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23747 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23748 echo $ECHO_N "(cached) $ECHO_C" >&6
23750 gcc_cv_as_gstabs_flag=no
23751 if test $in_tree_gas = yes; then
23752 if test $in_tree_gas_is_elf = yes \
23753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23754 then gcc_cv_as_gstabs_flag=yes
23756 elif test x$gcc_cv_as != x; then
23757 echo "$insn" > conftest.s
23758 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760 (eval $ac_try) 2>&5
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); }; }
23765 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23766 # and warns about it, but still exits successfully. So check for
23768 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23770 (eval $ac_try) 2>&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); }; }
23775 else gcc_cv_as_gstabs_flag=yes
23778 echo "configure: failed program was" >&5
23781 rm -f conftest.o conftest.s
23784 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23785 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23786 if test $gcc_cv_as_gstabs_flag = yes; then
23788 cat >>confdefs.h <<\_ACEOF
23789 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23794 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23795 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23796 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23799 gcc_cv_as_debug_prefix_map_flag=no
23800 if test $in_tree_gas = yes; then
23801 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23802 then gcc_cv_as_debug_prefix_map_flag=yes
23804 elif test x$gcc_cv_as != x; then
23805 echo "$insn" > conftest.s
23806 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808 (eval $ac_try) 2>&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }
23813 gcc_cv_as_debug_prefix_map_flag=yes
23815 echo "configure: failed program was" >&5
23818 rm -f conftest.o conftest.s
23821 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23822 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23823 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23825 cat >>confdefs.h <<\_ACEOF
23826 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23832 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
23833 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
23834 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
23835 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 gcc_cv_as_lcomm_with_alignment=no
23838 if test x$gcc_cv_as != x; then
23839 echo '.lcomm bar,4,16' > conftest.s
23840 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; }
23847 gcc_cv_as_lcomm_with_alignment=yes
23849 echo "configure: failed program was" >&5
23852 rm -f conftest.o conftest.s
23855 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
23856 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
23857 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23859 cat >>confdefs.h <<\_ACEOF
23860 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
23865 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23866 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23867 if test "${gcc_cv_as_line_zero+set}" = set; then
23868 echo $ECHO_N "(cached) $ECHO_C" >&6
23870 gcc_cv_as_line_zero=no
23871 if test $in_tree_gas = yes; then
23872 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23873 then gcc_cv_as_line_zero=yes
23875 elif test "x$gcc_cv_as" != x; then
23876 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23877 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23879 (eval $ac_try) 2>&5
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); }; } &&
23883 test "x`cat conftest.out`" = x
23885 gcc_cv_as_line_zero=yes
23887 echo "configure: failed program was" >&5
23889 echo "configure: error output was" >&5
23890 cat conftest.out >&5
23892 rm -f conftest.o conftest.s conftest.out
23895 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23896 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23897 if test "x$gcc_cv_as_line_zero" = xyes; then
23899 cat >>confdefs.h <<\_ACEOF
23900 #define HAVE_AS_LINE_ZERO 1
23905 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23906 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23907 gcc_cv_ld_eh_frame_hdr=no
23908 if test $in_tree_ld = yes ; then
23909 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 \
23910 && test $in_tree_ld_is_elf = yes; then
23911 gcc_cv_ld_eh_frame_hdr=yes
23913 elif test x$gcc_cv_ld != x; then
23914 # Check if linker supports --eh-frame-hdr option
23915 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23916 gcc_cv_ld_eh_frame_hdr=yes
23920 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23922 cat >>confdefs.h <<\_ACEOF
23923 #define HAVE_LD_EH_FRAME_HDR 1
23927 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23928 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23930 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23931 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23933 if test $in_tree_ld = yes ; then
23934 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 \
23935 && test $in_tree_ld_is_elf = yes; then
23938 elif test x$gcc_cv_ld != x; then
23939 # Check if linker supports -pie option
23940 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23944 if test x"$gcc_cv_ld_pie" = xyes; then
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_LD_PIE 1
23951 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23952 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23954 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23955 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23956 gcc_cv_ld_eh_gc_sections=no
23957 if test $in_tree_ld = yes ; then
23958 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 \
23959 && test $in_tree_ld_is_elf = yes; then
23960 gcc_cv_ld_eh_gc_sections=yes
23962 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23963 cat > conftest.s <<EOF
23966 .type _start, @function
23969 .size _start, .-_start
23970 .section .text.foo,"ax",@progbits
23971 .type foo, @function
23975 .section .gcc_except_table.foo,"a",@progbits
23978 .section .eh_frame,"a",@progbits
23981 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23982 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23983 | grep "gc-sections option ignored" > /dev/null; then
23984 gcc_cv_ld_eh_gc_sections=no
23985 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23986 gcc_cv_ld_eh_gc_sections=yes
23987 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23988 if test x$gcc_cv_as_comdat_group != xyes; then
23989 gcc_cv_ld_eh_gc_sections=no
23990 cat > conftest.s <<EOF
23993 .type _start, @function
23996 .size _start, .-_start
23997 .section .gnu.linkonce.t.foo,"ax",@progbits
23998 .type foo, @function
24002 .section .gcc_except_table.foo,"a",@progbits
24005 .section .eh_frame,"a",@progbits
24008 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24009 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24010 | grep "gc-sections option ignored" > /dev/null; then
24011 gcc_cv_ld_eh_gc_sections=no
24012 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24013 gcc_cv_ld_eh_gc_sections=yes
24019 rm -f conftest.s conftest.o conftest
24023 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24024 gcc_cv_ld_eh_gc_sections=no
24027 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24029 cat >>confdefs.h <<\_ACEOF
24030 #define HAVE_LD_EH_GC_SECTIONS 1
24034 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
24035 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
24041 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
24042 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
24043 if test "${gcc_cv_ld_as_needed+set}" = set; then
24044 echo $ECHO_N "(cached) $ECHO_C" >&6
24046 gcc_cv_ld_as_needed=no
24047 if test $in_tree_ld = yes ; then
24048 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 \
24049 && test $in_tree_ld_is_elf = yes; then
24050 gcc_cv_ld_as_needed=yes
24052 elif test x$gcc_cv_ld != x; then
24053 # Check if linker supports --as-needed and --no-as-needed options
24054 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24055 gcc_cv_ld_as_needed=yes
24060 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
24061 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
24062 if test x"$gcc_cv_ld_as_needed" = xyes; then
24064 cat >>confdefs.h <<\_ACEOF
24065 #define HAVE_LD_AS_NEEDED 1
24070 case "$target:$tm_file" in
24071 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24072 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
24073 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
24074 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
24075 echo $ECHO_N "(cached) $ECHO_C" >&6
24077 gcc_cv_ld_no_dot_syms=no
24078 if test $in_tree_ld = yes ; then
24079 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
24080 gcc_cv_ld_no_dot_syms=yes
24082 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24083 cat > conftest1.s <<EOF
24087 cat > conftest2.s <<EOF
24088 .section ".opd","aw"
24091 .type foo,@function
24093 .quad .LEfoo,.TOC.@tocbase,0
24099 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24100 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24101 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24102 gcc_cv_ld_no_dot_syms=yes
24104 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24108 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
24109 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
24110 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24112 cat >>confdefs.h <<\_ACEOF
24113 #define HAVE_LD_NO_DOT_SYMS 1
24120 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
24121 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
24122 if test "${gcc_cv_ld_sysroot+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24125 gcc_cv_ld_sysroot=no
24126 if test $in_tree_ld = yes ; then
24127 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
24128 gcc_cv_ld_sysroot=yes
24130 elif test x$gcc_cv_ld != x; then
24131 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24132 gcc_cv_ld_sysroot=yes
24136 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
24137 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
24138 if test x"$gcc_cv_ld_sysroot" = xyes; then
24140 cat >>confdefs.h <<\_ACEOF
24141 #define HAVE_LD_SYSROOT 1
24146 if test x$with_sysroot = x && test x$host = x$target \
24147 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24148 && test "$prefix" != "NONE"; then
24150 cat >>confdefs.h <<_ACEOF
24151 #define PREFIX_INCLUDE_DIR "$prefix/include"
24156 # Test for stack protector support in target C library.
24157 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
24158 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
24159 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
24160 echo $ECHO_N "(cached) $ECHO_C" >&6
24162 gcc_cv_libc_provides_ssp=no
24164 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24165 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24166 if test "x$with_sysroot" = x; then
24167 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24168 elif test "x$with_build_sysroot" != "x"; then
24169 glibc_header_dir="${with_build_sysroot}/usr/include"
24170 elif test "x$with_sysroot" = xyes; then
24171 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24173 glibc_header_dir="${with_sysroot}/usr/include"
24176 glibc_header_dir=/usr/include
24178 # glibc 2.4 and later provides __stack_chk_fail and
24179 # either __stack_chk_guard, or TLS access to stack guard canary.
24180 if test -f $glibc_header_dir/features.h \
24181 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24182 $glibc_header_dir/features.h > /dev/null; then
24183 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24184 $glibc_header_dir/features.h > /dev/null; then
24185 gcc_cv_libc_provides_ssp=yes
24186 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24187 $glibc_header_dir/features.h > /dev/null \
24188 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24189 $glibc_header_dir/features.h > /dev/null; then
24190 gcc_cv_libc_provides_ssp=yes
24191 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24192 $glibc_header_dir/features.h > /dev/null && \
24193 test -f $glibc_header_dir/bits/uClibc_config.h && \
24194 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24195 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24196 gcc_cv_libc_provides_ssp=yes
24201 # Avoid complicated tests (see
24202 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24203 # simply assert that glibc does provide this, which is true for all
24204 # realistically usable GNU/Hurd configurations.
24205 gcc_cv_libc_provides_ssp=yes;;
24207 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
24208 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
24209 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
24210 echo $ECHO_N "(cached) $ECHO_C" >&6
24212 cat >conftest.$ac_ext <<_ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24218 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
24219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24220 #define __stack_chk_fail innocuous___stack_chk_fail
24222 /* System header to define __stub macros and hopefully few prototypes,
24223 which can conflict with char __stack_chk_fail (); below.
24224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24225 <limits.h> exists even on freestanding compilers. */
24228 # include <limits.h>
24230 # include <assert.h>
24233 #undef __stack_chk_fail
24235 /* Override any gcc2 internal prototype to avoid an error. */
24240 /* We use char because int might match the return type of a gcc2
24241 builtin and then its argument prototype would still apply. */
24242 char __stack_chk_fail ();
24243 /* The GNU C library defines this for functions which it implements
24244 to always fail with ENOSYS. Some functions are actually named
24245 something starting with __ and the normal name is an alias. */
24246 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
24249 char (*f) () = __stack_chk_fail;
24258 return f != __stack_chk_fail;
24263 rm -f conftest.$ac_objext conftest$ac_exeext
24264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24265 (eval $ac_link) 2>conftest.er1
24267 grep -v '^ *+' conftest.er1 >conftest.err
24269 cat conftest.err >&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } &&
24272 { ac_try='test -z "$ac_c_werror_flag"
24273 || test ! -s conftest.err'
24274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275 (eval $ac_try) 2>&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); }; } &&
24279 { ac_try='test -s conftest$ac_exeext'
24280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24281 (eval $ac_try) 2>&5
24283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284 (exit $ac_status); }; }; then
24285 ac_cv_func___stack_chk_fail=yes
24287 echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24290 ac_cv_func___stack_chk_fail=no
24292 rm -f conftest.err conftest.$ac_objext \
24293 conftest$ac_exeext conftest.$ac_ext
24295 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
24296 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
24297 if test $ac_cv_func___stack_chk_fail = yes; then
24298 gcc_cv_libc_provides_ssp=yes
24300 echo "no __stack_chk_fail on this target"
24304 *) gcc_cv_libc_provides_ssp=no ;;
24307 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
24308 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
24310 if test x$gcc_cv_libc_provides_ssp = xyes; then
24312 cat >>confdefs.h <<\_ACEOF
24313 #define TARGET_LIBC_PROVIDES_SSP 1
24318 # Check if TFmode long double should be used by default or not.
24319 # Some glibc targets used DFmode long double, but with glibc 2.4
24320 # and later they can use TFmode.
24322 powerpc*-*-linux* | \
24323 powerpc*-*-gnu* | \
24324 sparc*-*-linux* | \
24328 # Check whether --with-long-double-128 or --without-long-double-128 was given.
24329 if test "${with_long_double_128+set}" = set; then
24330 withval="$with_long_double_128"
24331 gcc_cv_target_ldbl128="$with_long_double_128"
24333 gcc_cv_target_ldbl128=no
24334 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24335 if test "x$with_sysroot" = x; then
24336 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24337 elif test "x$with_build_sysroot" != "x"; then
24338 glibc_header_dir="${with_build_sysroot}/usr/include"
24339 elif test "x$with_sysroot" = xyes; then
24340 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24342 glibc_header_dir="${with_sysroot}/usr/include"
24345 glibc_header_dir=/usr/include
24347 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24348 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24349 && gcc_cv_target_ldbl128=yes
24354 if test x$gcc_cv_target_ldbl128 = xyes; then
24356 cat >>confdefs.h <<\_ACEOF
24357 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
24362 # Find out what GC implementation we want, or may, use.
24364 # Check whether --with-gc or --without-gc was given.
24365 if test "${with_gc+set}" = set; then
24374 cat >>confdefs.h <<\_ACEOF
24380 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
24381 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
24382 { (exit 1); exit 1; }; }
24389 echo "Using $GGC for garbage collection."
24391 # Use the system's zlib library.
24393 zlibinc="-I\$(srcdir)/../zlib"
24395 # Check whether --with-system-zlib or --without-system-zlib was given.
24396 if test "${with_system_zlib+set}" = set; then
24397 withval="$with_system_zlib"
24406 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24407 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24408 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24409 if test "${enable_maintainer_mode+set}" = set; then
24410 enableval="$enable_maintainer_mode"
24411 maintainer_mode=$enableval
24416 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
24417 echo "${ECHO_T}$maintainer_mode" >&6
24419 if test "$maintainer_mode" = "yes"; then
24429 # Make empty files to contain the specs and options for each language.
24430 # Then add #include lines to for a compiler that has specs and/or options.
24436 # These (without "all_") are set in each config-lang.in.
24437 # `language' must be a single word so is spelled singularly.
24440 all_outputs='Makefile gccbug'
24441 # List of language makefile fragments.
24442 all_lang_makefrags=
24443 # List of language subdirectory makefiles. Deprecated.
24444 all_lang_makefiles=
24445 # Additional files for gengtype
24446 all_gtfiles="$target_gtfiles"
24448 # These are the languages that are set in --enable-languages,
24449 # and are available in the GCC tree.
24450 all_selected_languages=
24452 # Add the language fragments.
24453 # Languages are added via two mechanisms. Some information must be
24454 # recorded in makefile variables, these are defined in config-lang.in.
24455 # We accumulate them and plug them into the main Makefile.
24456 # The other mechanism is a set of hooks for each of the main targets
24457 # like `clean', `install', etc.
24459 language_hooks="Make-hooks"
24461 for lang in ${srcdir}/*/config-lang.in
24463 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24465 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24466 if test "x$lang_alias" = x
24468 echo "$lang doesn't set \$language." 1>&2
24471 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24472 subdirs="$subdirs $subdir"
24474 # $gcc_subdir is where the gcc integration files are to be found
24475 # for a language, both for internal compiler purposes (compiler
24476 # sources implementing front-end to GCC tree converters), and for
24477 # build infrastructure purposes (Make-lang.in, etc.)
24479 # This will be <subdir> (relative to $srcdir) if a line like
24480 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24481 # is found in <langdir>/config-lang.in, and will remain <langdir>
24484 # Except for the language alias (fetched above), the regular
24485 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24486 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24487 # only this and the language alias.
24489 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24490 if [ "$gcc_subdir" = "" ]; then
24491 gcc_subdir="$subdir"
24494 case ",$enable_languages," in
24496 all_selected_languages="$all_selected_languages $lang_alias"
24497 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24498 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24509 . ${srcdir}/$gcc_subdir/config-lang.in
24510 if test "x$language" = x
24512 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24517 case ",$enable_languages," in
24518 *,$lang_alias,*) ;;
24520 for i in $subdir_requires; do
24521 test -f "${srcdir}/$i/config-lang.in" && continue
24529 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24530 if test -f $srcdir/$gcc_subdir/lang.opt; then
24531 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24533 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24534 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24536 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24537 then all_lang_makefiles="$gcc_subdir/Makefile"
24539 all_languages="$all_languages $language"
24540 all_compilers="$all_compilers $compilers"
24541 all_outputs="$all_outputs $outputs"
24542 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24545 # Pick up gtfiles for c
24547 . ${srcdir}/c-config-lang.in
24548 all_gtfiles="$all_gtfiles [c] $gtfiles"
24551 for language in $all_selected_languages
24553 check_languages="$check_languages check-$language"
24556 # We link each language in with a set of hooks, reached indirectly via
24557 # lang.${target}. Only do so for selected languages.
24561 target_list="all.cross start.encap rest.encap tags \
24562 install-common install-man install-info install-pdf dvi pdf \
24563 html uninstall info man srcextra srcman srcinfo \
24564 mostlyclean clean distclean maintainer-clean"
24566 for t in $target_list
24569 for lang in $all_selected_languages
24573 echo "lang.$t: $x" >> Make-hooks
24582 echo "dir ." > .gdbinit
24583 echo "dir ${srcdir}" >> .gdbinit
24584 if test x$gdb_needs_out_file_path = xyes
24586 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24588 if test "x$subdirs" != x; then
24591 echo "dir ${srcdir}/$s" >> .gdbinit
24594 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24596 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24600 # Find a directory in which to install a shared libgcc.
24602 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24603 if test "${enable_version_specific_runtime_libs+set}" = set; then
24604 enableval="$enable_version_specific_runtime_libs"
24609 # Check whether --with-slibdir or --without-slibdir was given.
24610 if test "${with_slibdir+set}" = set; then
24611 withval="$with_slibdir"
24612 slibdir="$with_slibdir"
24614 if test "${enable_version_specific_runtime_libs+set}" = set; then
24615 slibdir='$(libsubdir)'
24616 elif test "$host" != "$target"; then
24617 slibdir='$(build_tooldir)/lib'
24619 slibdir='$(libdir)'
24625 # Check whether --with-datarootdir or --without-datarootdir was given.
24626 if test "${with_datarootdir+set}" = set; then
24627 withval="$with_datarootdir"
24628 datarootdir="\${prefix}/$with_datarootdir"
24630 datarootdir='$(prefix)/share'
24635 # Check whether --with-docdir or --without-docdir was given.
24636 if test "${with_docdir+set}" = set; then
24637 withval="$with_docdir"
24638 docdir="\${prefix}/$with_docdir"
24640 docdir='$(datarootdir)'
24645 # Check whether --with-htmldir or --without-htmldir was given.
24646 if test "${with_htmldir+set}" = set; then
24647 withval="$with_htmldir"
24648 htmldir="\${prefix}/$with_htmldir"
24650 htmldir='$(docdir)'
24654 # Substitute configuration variables
24717 if test x${build} = x${host} ; then
24718 if test x${host} = x${target} ; then
24719 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24721 echo "Links are now set up to build a cross-compiler" 1>&2
24722 echo " from ${host} to ${target}." 1>&2
24725 if test x${host} = x${target} ; then
24726 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24727 echo " for ${target}." 1>&2
24729 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24730 echo " from ${host} to ${target}." 1>&2
24742 if test "x${CLOOGLIBS}" != "x" ; then
24744 cat >>confdefs.h <<\_ACEOF
24745 #define HAVE_cloog 1
24750 # Check for plugin support
24751 # Check whether --enable-plugin or --disable-plugin was given.
24752 if test "${enable_plugin+set}" = set; then
24753 enableval="$enable_plugin"
24754 enable_plugin=$enableval
24756 enable_plugin=yes; default_plugin=yes
24760 if test x"$enable_plugin" = x"yes"; then
24761 # Check that the host supports -rdynamic and -ldl
24764 saved_LDFLAGS="$LDFLAGS"
24769 LDFLAGS="$LDFLAGS -rdynamic"
24770 echo "$as_me:$LINENO: checking for -rdynamic" >&5
24771 echo $ECHO_N "checking for -rdynamic... $ECHO_C" >&6
24772 cat >conftest.$ac_ext <<_ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h. */
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24789 (eval $ac_link) 2>conftest.er1
24791 grep -v '^ *+' conftest.er1 >conftest.err
24793 cat conftest.err >&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } &&
24796 { ac_try='test -z "$ac_c_werror_flag"
24797 || test ! -s conftest.err'
24798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799 (eval $ac_try) 2>&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); }; } &&
24803 { ac_try='test -s conftest$ac_exeext'
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; }; then
24809 echo "$as_me:$LINENO: result: yes" >&5
24810 echo "${ECHO_T}yes" >&6; have_rdynamic=yes
24812 echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24815 echo "$as_me:$LINENO: result: no" >&5
24816 echo "${ECHO_T}no" >&6
24818 rm -f conftest.err conftest.$ac_objext \
24819 conftest$ac_exeext conftest.$ac_ext
24820 if test x"$have_rdynamic" = x"yes" ; then
24821 pluginlibs="-rdynamic"
24825 LDFLAGS="$LDFLAGS -ldl"
24826 echo "$as_me:$LINENO: checking for -ldl" >&5
24827 echo $ECHO_N "checking for -ldl... $ECHO_C" >&6
24828 cat >conftest.$ac_ext <<_ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h. */
24838 volatile int f = 0; if (f) dlopen ("dummy", 0);
24843 rm -f conftest.$ac_objext conftest$ac_exeext
24844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24845 (eval $ac_link) 2>conftest.er1
24847 grep -v '^ *+' conftest.er1 >conftest.err
24849 cat conftest.err >&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } &&
24852 { ac_try='test -z "$ac_c_werror_flag"
24853 || test ! -s conftest.err'
24854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855 (eval $ac_try) 2>&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); }; } &&
24859 { ac_try='test -s conftest$ac_exeext'
24860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861 (eval $ac_try) 2>&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; }; then
24865 echo "$as_me:$LINENO: result: yes" >&5
24866 echo "${ECHO_T}yes" >&6; have_dl=yes
24868 echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24871 echo "$as_me:$LINENO: result: no" >&5
24872 echo "${ECHO_T}no" >&6
24874 rm -f conftest.err conftest.$ac_objext \
24875 conftest$ac_exeext conftest.$ac_ext
24876 if test x"$have_dl" = x"yes"; then
24877 pluginlibs="$pluginlibs -ldl"
24880 # Check that we can build shared objects with -fPIC -shared
24881 LDFLAGS="$LDFLAGS -fPIC -shared"
24882 echo "$as_me:$LINENO: checking for -fPIC -shared" >&5
24883 echo $ECHO_N "checking for -fPIC -shared... $ECHO_C" >&6
24884 cat >conftest.$ac_ext <<_ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h. */
24899 rm -f conftest.$ac_objext conftest$ac_exeext
24900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24901 (eval $ac_link) 2>conftest.er1
24903 grep -v '^ *+' conftest.er1 >conftest.err
24905 cat conftest.err >&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } &&
24908 { ac_try='test -z "$ac_c_werror_flag"
24909 || test ! -s conftest.err'
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; } &&
24915 { ac_try='test -s conftest$ac_exeext'
24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917 (eval $ac_try) 2>&5
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; }; then
24921 echo "$as_me:$LINENO: result: yes" >&5
24922 echo "${ECHO_T}yes" >&6; have_pic_shared=yes
24924 echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24927 echo "$as_me:$LINENO: result: no" >&5
24928 echo "${ECHO_T}no" >&6; have_pic_shared=no
24930 rm -f conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
24932 if test x"$have_pic_shared" != x"yes"; then
24937 # If plugin support had been requested but not available, fail.
24938 if test x"$enable_plugin" = x"no" ; then
24939 if test x"$default_plugin" != x"yes"; then
24940 { { echo "$as_me:$LINENO: error:
24941 Building GCC with plugin support requires a host that supports
24942 -fPIC, -shared, -ldl and -rdynamic." >&5
24943 echo "$as_me: error:
24944 Building GCC with plugin support requires a host that supports
24945 -fPIC, -shared, -ldl and -rdynamic." >&2;}
24946 { (exit 1); exit 1; }; }
24950 LDFLAGS="$saved_LDFLAGS"
24956 if test x"$enable_plugin" = x"yes"; then
24958 cat >>confdefs.h <<\_ACEOF
24959 #define ENABLE_PLUGIN 1
24964 # Configure the subdirectories
24965 # AC_CONFIG_SUBDIRS($subdirs)
24967 # Create the Makefile
24968 # and configure language subdirectories
24969 ac_config_files="$ac_config_files $all_outputs"
24972 ac_config_commands="$ac_config_commands default"
24974 cat >confcache <<\_ACEOF
24975 # This file is a shell script that caches the results of configure
24976 # tests run on this system so they can be shared between configure
24977 # scripts and configure runs, see configure's option --config-cache.
24978 # It is not useful on other systems. If it contains results you don't
24979 # want to keep, you may remove or edit it.
24981 # config.status only pays attention to the cache file if you give it
24982 # the --recheck option to rerun configure.
24984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24986 # following values.
24990 # The following way of writing the cache mishandles newlines in values,
24991 # but we know of no workaround that is simple, portable, and efficient.
24992 # So, don't put newlines in cache variables' values.
24993 # Ultrix sh set writes to stderr and can't be redirected directly,
24994 # and sets the high bit in the cache file unless we assign to the vars.
24997 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24999 # `set' does not quote correctly, so add quotes (double-quote
25000 # substitution turns \\\\ into \\, and sed turns \\ into \).
25003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25006 # `set' quotes correctly as required by POSIX, so do not add quotes.
25008 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25017 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25019 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25020 if test -w $cache_file; then
25021 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25022 cat confcache >$cache_file
25024 echo "not updating unwritable cache $cache_file"
25029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25030 # Let make expand exec_prefix.
25031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25033 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25034 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25035 # trailing colons and then remove the whole line if VPATH becomes empty
25036 # (actually we leave an empty line to preserve line numbers).
25037 if test "x$srcdir" = x.; then
25038 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25039 s/:*\$(srcdir):*/:/;
25040 s/:*\${srcdir}:*/:/;
25042 s/^\([^=]*=[ ]*\):*/\1/;
25048 DEFS=-DHAVE_CONFIG_H
25052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25053 # 1. Remove the extension, and $U if already installed.
25054 ac_i=`echo "$ac_i" |
25055 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25057 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25058 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25060 LIBOBJS=$ac_libobjs
25062 LTLIBOBJS=$ac_ltlibobjs
25066 : ${CONFIG_STATUS=./config.status}
25067 ac_clean_files_save=$ac_clean_files
25068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25069 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25070 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25071 cat >$CONFIG_STATUS <<_ACEOF
25073 # Generated by $as_me.
25074 # Run this file to recreate the current configuration.
25075 # Compiler output produced by configure, useful for debugging
25076 # configure, is in config.log if it exists.
25079 ac_cs_recheck=false
25081 SHELL=\${CONFIG_SHELL-$SHELL}
25084 cat >>$CONFIG_STATUS <<\_ACEOF
25085 ## --------------------- ##
25086 ## M4sh Initialization. ##
25087 ## --------------------- ##
25089 # Be Bourne compatible
25090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25093 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25094 # is contrary to our usage. Disable this feature.
25095 alias -g '${1+"$@"}'='"$@"'
25096 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25099 DUALCASE=1; export DUALCASE # for MKS sh
25101 # Support unset when possible.
25102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25109 # Work around bugs in pre-3.0 UWIN ksh.
25110 $as_unset ENV MAIL MAILPATH
25117 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25118 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25119 LC_TELEPHONE LC_TIME
25121 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25122 eval $as_var=C; export $as_var
25128 # Required to use basename.
25129 if expr a : '\(a\)' >/dev/null 2>&1; then
25135 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25136 as_basename=basename
25142 # Name of the executable.
25143 as_me=`$as_basename "$0" ||
25144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25145 X"$0" : 'X\(//\)$' \| \
25146 X"$0" : 'X\(/\)$' \| \
25147 . : '\(.\)' 2>/dev/null ||
25149 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25150 /^X\/\(\/\/\)$/{ s//\1/; q; }
25151 /^X\/\(\/\).*/{ s//\1/; q; }
25155 # PATH needs CR, and LINENO needs CR and PATH.
25156 # Avoid depending upon Character Ranges.
25157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25160 as_cr_digits='0123456789'
25161 as_cr_alnum=$as_cr_Letters$as_cr_digits
25163 # The user is always right.
25164 if test "${PATH_SEPARATOR+set}" != set; then
25165 echo "#! /bin/sh" >conf$$.sh
25166 echo "exit 0" >>conf$$.sh
25168 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25177 as_lineno_1=$LINENO
25178 as_lineno_2=$LINENO
25179 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25180 test "x$as_lineno_1" != "x$as_lineno_2" &&
25181 test "x$as_lineno_3" = "x$as_lineno_2" || {
25182 # Find who we are. Look in the path if we contain no path at all
25185 *[\\/]* ) as_myself=$0 ;;
25186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25187 for as_dir in $PATH
25190 test -z "$as_dir" && as_dir=.
25191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25196 # We did not find ourselves, most probably we were run as `sh COMMAND'
25197 # in which case we are not to be found in the path.
25198 if test "x$as_myself" = x; then
25201 if test ! -f "$as_myself"; then
25202 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25203 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25204 { (exit 1); exit 1; }; }
25206 case $CONFIG_SHELL in
25208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25212 test -z "$as_dir" && as_dir=.
25213 for as_base in sh bash ksh sh5; do
25216 if ("$as_dir/$as_base" -c '
25217 as_lineno_1=$LINENO
25218 as_lineno_2=$LINENO
25219 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25220 test "x$as_lineno_1" != "x$as_lineno_2" &&
25221 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25222 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25223 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25224 CONFIG_SHELL=$as_dir/$as_base
25225 export CONFIG_SHELL
25226 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25234 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25235 # uniformly replaced by the line number. The first 'sed' inserts a
25236 # line-number line before each line; the second 'sed' does the real
25237 # work. The second script uses 'N' to pair each line-number line
25238 # with the numbered line, and appends trailing '-' during
25239 # substitution so that $LINENO is not a special case at line end.
25240 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25241 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25242 sed '=' <$as_myself |
25247 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25250 s,^['$as_cr_digits']*\n,,
25251 ' >$as_me.lineno &&
25252 chmod +x $as_me.lineno ||
25253 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25254 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25255 { (exit 1); exit 1; }; }
25257 # Don't try to exec as it changes $[0], causing all sort of problems
25258 # (the dirname of $[0] is not the place where we might find the
25259 # original and so on. Autoconf is especially sensible to this).
25261 # Exit status is that of the last command.
25266 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25267 *c*,-n*) ECHO_N= ECHO_C='
25269 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25270 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25273 if expr a : '\(a\)' >/dev/null 2>&1; then
25279 rm -f conf$$ conf$$.exe conf$$.file
25281 if ln -s conf$$.file conf$$ 2>/dev/null; then
25282 # We could just check for DJGPP; but this test a) works b) is more generic
25283 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25284 if test -f conf$$.exe; then
25285 # Don't use ln at all; we don't have any links
25290 elif ln conf$$.file conf$$ 2>/dev/null; then
25295 rm -f conf$$ conf$$.exe conf$$.file
25297 if mkdir -p . 2>/dev/null; then
25300 test -d ./-p && rmdir ./-p
25304 as_executable_p="test -f"
25306 # Sed expression to map a string onto a valid CPP name.
25307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25309 # Sed expression to map a string onto a valid variable name.
25310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25314 # We need space, tab and new line, in precisely that order.
25324 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25325 # report actual input values of CONFIG_FILES etc. instead of their
25326 # values after options handling. Logging --version etc. is OK.
25330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25331 ## Running $as_me. ##
25336 This file was extended by $as_me, which was
25337 generated by GNU Autoconf 2.59. Invocation command line was
25339 CONFIG_FILES = $CONFIG_FILES
25340 CONFIG_HEADERS = $CONFIG_HEADERS
25341 CONFIG_LINKS = $CONFIG_LINKS
25342 CONFIG_COMMANDS = $CONFIG_COMMANDS
25346 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25350 # Files that config.status was made for.
25351 if test -n "$ac_config_files"; then
25352 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25355 if test -n "$ac_config_headers"; then
25356 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25359 if test -n "$ac_config_links"; then
25360 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25363 if test -n "$ac_config_commands"; then
25364 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25367 cat >>$CONFIG_STATUS <<\_ACEOF
25370 \`$as_me' instantiates files from templates according to the
25371 current configuration.
25373 Usage: $0 [OPTIONS] [FILE]...
25375 -h, --help print this help, then exit
25376 -V, --version print version number, then exit
25377 -q, --quiet do not print progress messages
25378 -d, --debug don't remove temporary files
25379 --recheck update $as_me by reconfiguring in the same conditions
25380 --file=FILE[:TEMPLATE]
25381 instantiate the configuration file FILE
25382 --header=FILE[:TEMPLATE]
25383 instantiate the configuration header FILE
25385 Configuration files:
25388 Configuration headers:
25391 Configuration commands:
25394 Report bugs to <bug-autoconf@gnu.org>."
25397 cat >>$CONFIG_STATUS <<_ACEOF
25400 configured by $0, generated by GNU Autoconf 2.59,
25401 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25403 Copyright (C) 2003 Free Software Foundation, Inc.
25404 This config.status script is free software; the Free Software Foundation
25405 gives unlimited permission to copy, distribute and modify it."
25409 cat >>$CONFIG_STATUS <<\_ACEOF
25410 # If no file are specified by the user, then we need to provide default
25411 # value. By we need to know if files were specified by the user.
25417 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25418 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25426 *) # This is not an option, so the user has probably given explicit
25429 ac_need_defaults=false;;
25433 # Handling of the options.
25435 cat >>$CONFIG_STATUS <<\_ACEOF
25436 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25438 --version | --vers* | -V )
25439 echo "$ac_cs_version"; exit 0 ;;
25441 # Conflict between --help and --header
25442 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25443 Try \`$0 --help' for more information." >&5
25444 echo "$as_me: error: ambiguous option: $1
25445 Try \`$0 --help' for more information." >&2;}
25446 { (exit 1); exit 1; }; };;
25447 --help | --hel | -h )
25448 echo "$ac_cs_usage"; exit 0 ;;
25449 --debug | --d* | -d )
25451 --file | --fil | --fi | --f )
25453 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25454 ac_need_defaults=false;;
25455 --header | --heade | --head | --hea )
25457 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25458 ac_need_defaults=false;;
25459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25460 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25463 # This is an error.
25464 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25465 Try \`$0 --help' for more information." >&5
25466 echo "$as_me: error: unrecognized option: $1
25467 Try \`$0 --help' for more information." >&2;}
25468 { (exit 1); exit 1; }; } ;;
25470 *) ac_config_targets="$ac_config_targets $1" ;;
25476 ac_configure_extra_args=
25478 if $ac_cs_silent; then
25480 ac_configure_extra_args="$ac_configure_extra_args --silent"
25484 cat >>$CONFIG_STATUS <<_ACEOF
25485 if \$ac_cs_recheck; then
25486 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25487 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25492 cat >>$CONFIG_STATUS <<_ACEOF
25494 # INIT-COMMANDS section.
25503 cat >>$CONFIG_STATUS <<\_ACEOF
25504 for ac_config_target in $ac_config_targets
25506 case "$ac_config_target" in
25507 # Handling of arguments.
25508 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25509 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25510 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25511 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25512 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25513 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25514 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25515 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25516 { (exit 1); exit 1; }; };;
25520 # If the user did not use the arguments to specify the items to instantiate,
25521 # then the envvar interface is used. Set only those that are not.
25522 # We use the long form for the default assignment because of an extremely
25523 # bizarre bug on SunOS 4.1.3.
25524 if $ac_need_defaults; then
25525 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25526 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25527 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25530 # Have a temporary directory for convenience. Make it in the build tree
25531 # simply because there is no reason to put it here, and in addition,
25532 # creating and moving files from /tmp can sometimes cause problems.
25533 # Create a temporary directory, and hook for its removal unless debugging.
25536 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25537 trap '{ (exit 1); exit 1; }' 1 2 13 15
25540 # Create a (secure) tmp directory for tmp files.
25543 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25544 test -n "$tmp" && test -d "$tmp"
25547 tmp=./confstat$$-$RANDOM
25548 (umask 077 && mkdir $tmp)
25551 echo "$me: cannot create a temporary directory in ." >&2
25552 { (exit 1); exit 1; }
25557 cat >>$CONFIG_STATUS <<_ACEOF
25560 # CONFIG_FILES section.
25563 # No need to generate the scripts if there are no CONFIG_FILES.
25564 # This happens for instance when ./config.status config.h
25565 if test -n "\$CONFIG_FILES"; then
25566 # Protect against being on the right side of a sed subst in config.status.
25567 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25568 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25569 s,@SHELL@,$SHELL,;t t
25570 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25571 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25572 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25573 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25574 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25575 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25576 s,@exec_prefix@,$exec_prefix,;t t
25577 s,@prefix@,$prefix,;t t
25578 s,@program_transform_name@,$program_transform_name,;t t
25579 s,@bindir@,$bindir,;t t
25580 s,@sbindir@,$sbindir,;t t
25581 s,@libexecdir@,$libexecdir,;t t
25582 s,@datadir@,$datadir,;t t
25583 s,@sysconfdir@,$sysconfdir,;t t
25584 s,@sharedstatedir@,$sharedstatedir,;t t
25585 s,@localstatedir@,$localstatedir,;t t
25586 s,@libdir@,$libdir,;t t
25587 s,@includedir@,$includedir,;t t
25588 s,@oldincludedir@,$oldincludedir,;t t
25589 s,@infodir@,$infodir,;t t
25590 s,@mandir@,$mandir,;t t
25591 s,@build_alias@,$build_alias,;t t
25592 s,@host_alias@,$host_alias,;t t
25593 s,@target_alias@,$target_alias,;t t
25594 s,@DEFS@,$DEFS,;t t
25595 s,@ECHO_C@,$ECHO_C,;t t
25596 s,@ECHO_N@,$ECHO_N,;t t
25597 s,@ECHO_T@,$ECHO_T,;t t
25598 s,@LIBS@,$LIBS,;t t
25599 s,@build@,$build,;t t
25600 s,@build_cpu@,$build_cpu,;t t
25601 s,@build_vendor@,$build_vendor,;t t
25602 s,@build_os@,$build_os,;t t
25603 s,@host@,$host,;t t
25604 s,@host_cpu@,$host_cpu,;t t
25605 s,@host_vendor@,$host_vendor,;t t
25606 s,@host_os@,$host_os,;t t
25607 s,@target@,$target,;t t
25608 s,@target_cpu@,$target_cpu,;t t
25609 s,@target_vendor@,$target_vendor,;t t
25610 s,@target_os@,$target_os,;t t
25611 s,@target_noncanonical@,$target_noncanonical,;t t
25612 s,@build_libsubdir@,$build_libsubdir,;t t
25613 s,@build_subdir@,$build_subdir,;t t
25614 s,@host_subdir@,$host_subdir,;t t
25615 s,@target_subdir@,$target_subdir,;t t
25616 s,@GENINSRC@,$GENINSRC,;t t
25618 s,@CFLAGS@,$CFLAGS,;t t
25619 s,@LDFLAGS@,$LDFLAGS,;t t
25620 s,@CPPFLAGS@,$CPPFLAGS,;t t
25621 s,@ac_ct_CC@,$ac_ct_CC,;t t
25622 s,@EXEEXT@,$EXEEXT,;t t
25623 s,@OBJEXT@,$OBJEXT,;t t
25624 s,@GNATBIND@,$GNATBIND,;t t
25625 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
25626 s,@GNATMAKE@,$GNATMAKE,;t t
25627 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
25628 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
25629 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
25631 s,@EGREP@,$EGREP,;t t
25632 s,@loose_warn@,$loose_warn,;t t
25633 s,@strict_warn@,$strict_warn,;t t
25634 s,@warn_cflags@,$warn_cflags,;t t
25635 s,@nocommon_flag@,$nocommon_flag,;t t
25636 s,@TREEBROWSER@,$TREEBROWSER,;t t
25637 s,@valgrind_path@,$valgrind_path,;t t
25638 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
25639 s,@valgrind_command@,$valgrind_command,;t t
25640 s,@coverage_flags@,$coverage_flags,;t t
25641 s,@enable_multilib@,$enable_multilib,;t t
25642 s,@enable_decimal_float@,$enable_decimal_float,;t t
25643 s,@enable_fixed_point@,$enable_fixed_point,;t t
25644 s,@enable_shared@,$enable_shared,;t t
25645 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25646 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25647 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
25648 s,@onestep@,$onestep,;t t
25649 s,@PKGVERSION@,$PKGVERSION,;t t
25650 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
25651 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
25652 s,@datarootdir@,$datarootdir,;t t
25653 s,@docdir@,$docdir,;t t
25654 s,@htmldir@,$htmldir,;t t
25655 s,@SET_MAKE@,$SET_MAKE,;t t
25657 s,@LN_S@,$LN_S,;t t
25659 s,@RANLIB@,$RANLIB,;t t
25660 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25661 s,@ranlib_flags@,$ranlib_flags,;t t
25662 s,@INSTALL@,$INSTALL,;t t
25663 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25664 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25665 s,@make_compare_target@,$make_compare_target,;t t
25666 s,@have_mktemp_command@,$have_mktemp_command,;t t
25667 s,@MAKEINFO@,$MAKEINFO,;t t
25668 s,@BUILD_INFO@,$BUILD_INFO,;t t
25669 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
25670 s,@FLEX@,$FLEX,;t t
25671 s,@BISON@,$BISON,;t t
25674 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
25675 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
25676 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
25677 s,@LIBICONV@,$LIBICONV,;t t
25678 s,@LTLIBICONV@,$LTLIBICONV,;t t
25679 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
25680 s,@manext@,$manext,;t t
25681 s,@objext@,$objext,;t t
25682 s,@gthread_flags@,$gthread_flags,;t t
25683 s,@extra_modes_file@,$extra_modes_file,;t t
25684 s,@extra_opt_files@,$extra_opt_files,;t t
25685 s,@USE_NLS@,$USE_NLS,;t t
25686 s,@LIBINTL@,$LIBINTL,;t t
25687 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25688 s,@INCINTL@,$INCINTL,;t t
25689 s,@XGETTEXT@,$XGETTEXT,;t t
25690 s,@GMSGFMT@,$GMSGFMT,;t t
25691 s,@POSUB@,$POSUB,;t t
25692 s,@CATALOGS@,$CATALOGS,;t t
25693 s,@DATADIRNAME@,$DATADIRNAME,;t t
25694 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25695 s,@GENCAT@,$GENCAT,;t t
25696 s,@CATOBJEXT@,$CATOBJEXT,;t t
25697 s,@CROSS@,$CROSS,;t t
25699 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
25700 s,@inhibit_libc@,$inhibit_libc,;t t
25701 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
25702 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25703 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25704 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
25705 s,@collect2@,$collect2,;t t
25706 s,@LIBTOOL@,$LIBTOOL,;t t
25708 s,@FGREP@,$FGREP,;t t
25709 s,@GREP@,$GREP,;t t
25711 s,@DUMPBIN@,$DUMPBIN,;t t
25712 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
25713 s,@OBJDUMP@,$OBJDUMP,;t t
25714 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25715 s,@ac_ct_AR@,$ac_ct_AR,;t t
25716 s,@STRIP@,$STRIP,;t t
25717 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25718 s,@lt_ECHO@,$lt_ECHO,;t t
25719 s,@DSYMUTIL@,$DSYMUTIL,;t t
25720 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
25721 s,@NMEDIT@,$NMEDIT,;t t
25722 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
25723 s,@LIPO@,$LIPO,;t t
25724 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
25725 s,@OTOOL@,$OTOOL,;t t
25726 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
25727 s,@OTOOL64@,$OTOOL64,;t t
25728 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
25729 s,@objdir@,$objdir,;t t
25730 s,@enable_fast_install@,$enable_fast_install,;t t
25731 s,@gcc_cv_as@,$gcc_cv_as,;t t
25732 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
25733 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
25734 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
25735 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
25736 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
25737 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
25738 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
25739 s,@libgcc_visibility@,$libgcc_visibility,;t t
25741 s,@zlibdir@,$zlibdir,;t t
25742 s,@zlibinc@,$zlibinc,;t t
25743 s,@MAINT@,$MAINT,;t t
25744 s,@gcc_tooldir@,$gcc_tooldir,;t t
25745 s,@dollar@,$dollar,;t t
25746 s,@slibdir@,$slibdir,;t t
25747 s,@subdirs@,$subdirs,;t t
25748 s,@srcdir@,$srcdir,;t t
25749 s,@all_compilers@,$all_compilers,;t t
25750 s,@all_gtfiles@,$all_gtfiles,;t t
25751 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
25752 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
25753 s,@all_languages@,$all_languages,;t t
25754 s,@all_selected_languages@,$all_selected_languages,;t t
25755 s,@build_exeext@,$build_exeext,;t t
25756 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
25757 s,@build_xm_file_list@,$build_xm_file_list,;t t
25758 s,@build_xm_include_list@,$build_xm_include_list,;t t
25759 s,@build_xm_defines@,$build_xm_defines,;t t
25760 s,@build_file_translate@,$build_file_translate,;t t
25761 s,@check_languages@,$check_languages,;t t
25762 s,@cpp_install_dir@,$cpp_install_dir,;t t
25763 s,@xmake_file@,$xmake_file,;t t
25764 s,@tmake_file@,$tmake_file,;t t
25765 s,@TM_ENDIAN_CONFIG@,$TM_ENDIAN_CONFIG,;t t
25766 s,@TM_MULTILIB_CONFIG@,$TM_MULTILIB_CONFIG,;t t
25767 s,@TM_MULTILIB_EXCEPTIONS_CONFIG@,$TM_MULTILIB_EXCEPTIONS_CONFIG,;t t
25768 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
25769 s,@extra_headers_list@,$extra_headers_list,;t t
25770 s,@extra_objs@,$extra_objs,;t t
25771 s,@extra_parts@,$extra_parts,;t t
25772 s,@extra_passes@,$extra_passes,;t t
25773 s,@extra_programs@,$extra_programs,;t t
25774 s,@float_h_file@,$float_h_file,;t t
25775 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
25776 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
25777 s,@host_exeext@,$host_exeext,;t t
25778 s,@host_xm_file_list@,$host_xm_file_list,;t t
25779 s,@host_xm_include_list@,$host_xm_include_list,;t t
25780 s,@host_xm_defines@,$host_xm_defines,;t t
25781 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
25782 s,@install@,$install,;t t
25783 s,@lang_opt_files@,$lang_opt_files,;t t
25784 s,@lang_specs_files@,$lang_specs_files,;t t
25785 s,@lang_tree_files@,$lang_tree_files,;t t
25786 s,@local_prefix@,$local_prefix,;t t
25787 s,@md_file@,$md_file,;t t
25788 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
25789 s,@out_file@,$out_file,;t t
25790 s,@out_object_file@,$out_object_file,;t t
25791 s,@thread_file@,$thread_file,;t t
25792 s,@tm_file_list@,$tm_file_list,;t t
25793 s,@tm_include_list@,$tm_include_list,;t t
25794 s,@tm_defines@,$tm_defines,;t t
25795 s,@tm_p_file_list@,$tm_p_file_list,;t t
25796 s,@tm_p_include_list@,$tm_p_include_list,;t t
25797 s,@xm_file_list@,$xm_file_list,;t t
25798 s,@xm_include_list@,$xm_include_list,;t t
25799 s,@xm_defines@,$xm_defines,;t t
25800 s,@use_gcc_stdint@,$use_gcc_stdint,;t t
25801 s,@c_target_objs@,$c_target_objs,;t t
25802 s,@cxx_target_objs@,$cxx_target_objs,;t t
25803 s,@fortran_target_objs@,$fortran_target_objs,;t t
25804 s,@target_cpu_default@,$target_cpu_default,;t t
25805 s,@GMPLIBS@,$GMPLIBS,;t t
25806 s,@GMPINC@,$GMPINC,;t t
25807 s,@PPLLIBS@,$PPLLIBS,;t t
25808 s,@PPLINC@,$PPLINC,;t t
25809 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
25810 s,@CLOOGINC@,$CLOOGINC,;t t
25811 s,@pluginlibs@,$pluginlibs,;t t
25812 s,@enable_plugin@,$enable_plugin,;t t
25813 s,@LIBOBJS@,$LIBOBJS,;t t
25814 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25815 /@language_hooks@/r $language_hooks
25816 s,@language_hooks@,,;t t
25821 cat >>$CONFIG_STATUS <<\_ACEOF
25822 # Split the substitutions into bite-sized pieces for seds with
25823 # small command number limits, like on Digital OSF/1 and HP-UX.
25824 ac_max_sed_lines=48
25825 ac_sed_frag=1 # Number of current file.
25826 ac_beg=1 # First line for current file.
25827 ac_end=$ac_max_sed_lines # Line after last line for current file.
25830 while $ac_more_lines; do
25831 if test $ac_beg -gt 1; then
25832 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25834 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25836 if test ! -s $tmp/subs.frag; then
25837 ac_more_lines=false
25839 # The purpose of the label and of the branching condition is to
25840 # speed up the sed processing (if there are no `@' at all, there
25841 # is no need to browse any of the substitutions).
25842 # These are the two extra sed commands mentioned above.
25844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25845 if test -z "$ac_sed_cmds"; then
25846 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25848 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25850 ac_sed_frag=`expr $ac_sed_frag + 1`
25852 ac_end=`expr $ac_end + $ac_max_sed_lines`
25855 if test -z "$ac_sed_cmds"; then
25858 fi # test -n "$CONFIG_FILES"
25861 cat >>$CONFIG_STATUS <<\_ACEOF
25862 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25863 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25865 - | *:- | *:-:* ) # input from stdin
25867 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25868 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25869 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25870 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25871 * ) ac_file_in=$ac_file.in ;;
25874 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25875 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25877 X"$ac_file" : 'X\(//\)[^/]' \| \
25878 X"$ac_file" : 'X\(//\)$' \| \
25879 X"$ac_file" : 'X\(/\)' \| \
25880 . : '\(.\)' 2>/dev/null ||
25882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25884 /^X\(\/\/\)$/{ s//\1/; q; }
25885 /^X\(\/\).*/{ s//\1/; q; }
25887 { if $as_mkdir_p; then
25892 while test ! -d "$as_dir"; do
25893 as_dirs="$as_dir $as_dirs"
25894 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25896 X"$as_dir" : 'X\(//\)[^/]' \| \
25897 X"$as_dir" : 'X\(//\)$' \| \
25898 X"$as_dir" : 'X\(/\)' \| \
25899 . : '\(.\)' 2>/dev/null ||
25901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25903 /^X\(\/\/\)$/{ s//\1/; q; }
25904 /^X\(\/\).*/{ s//\1/; q; }
25907 test ! -n "$as_dirs" || mkdir $as_dirs
25908 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25909 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25910 { (exit 1); exit 1; }; }; }
25914 if test "$ac_dir" != .; then
25915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25916 # A "../" for each directory in $ac_dir_suffix.
25917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25919 ac_dir_suffix= ac_top_builddir=
25923 .) # No --srcdir option. We are building in place.
25925 if test -z "$ac_top_builddir"; then
25928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25930 [\\/]* | ?:[\\/]* ) # Absolute path.
25931 ac_srcdir=$srcdir$ac_dir_suffix;
25932 ac_top_srcdir=$srcdir ;;
25933 *) # Relative path.
25934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25938 # Do not use `cd foo && pwd` to compute absolute paths, because
25939 # the directories may not exist.
25941 .) ac_abs_builddir="$ac_dir";;
25944 .) ac_abs_builddir=`pwd`;;
25945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25949 case $ac_abs_builddir in
25950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25952 case ${ac_top_builddir}. in
25953 .) ac_abs_top_builddir=$ac_abs_builddir;;
25954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25958 case $ac_abs_builddir in
25959 .) ac_abs_srcdir=$ac_srcdir;;
25962 .) ac_abs_srcdir=$ac_abs_builddir;;
25963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25967 case $ac_abs_builddir in
25968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25970 case $ac_top_srcdir in
25971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25979 if test x"$ac_file" != x-; then
25980 { echo "$as_me:$LINENO: creating $ac_file" >&5
25981 echo "$as_me: creating $ac_file" >&6;}
25984 # Let's still pretend it is `configure' which instantiates (i.e., don't
25985 # use $as_me), people would be surprised to read:
25986 # /* config.h. Generated by config.status. */
25987 if test x"$ac_file" = x-; then
25990 configure_input="$ac_file. "
25992 configure_input=$configure_input"Generated from `echo $ac_file_in |
25993 sed 's,.*/,,'` by configure."
25995 # First look for the input files in the build tree, otherwise in the
25997 ac_file_inputs=`IFS=:
25998 for f in $ac_file_in; do
26000 -) echo $tmp/stdin ;;
26002 # Absolute (can't be DOS-style, as IFS=:)
26003 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26004 echo "$as_me: error: cannot find input file: $f" >&2;}
26005 { (exit 1); exit 1; }; }
26008 if test -f "$f"; then
26011 elif test -f "$srcdir/$f"; then
26016 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26017 echo "$as_me: error: cannot find input file: $f" >&2;}
26018 { (exit 1); exit 1; }; }
26021 done` || { (exit 1); exit 1; }
26023 cat >>$CONFIG_STATUS <<_ACEOF
26027 cat >>$CONFIG_STATUS <<\_ACEOF
26029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26030 s,@configure_input@,$configure_input,;t t
26031 s,@srcdir@,$ac_srcdir,;t t
26032 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26033 s,@top_srcdir@,$ac_top_srcdir,;t t
26034 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26035 s,@builddir@,$ac_builddir,;t t
26036 s,@abs_builddir@,$ac_abs_builddir,;t t
26037 s,@top_builddir@,$ac_top_builddir,;t t
26038 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26039 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26041 if test x"$ac_file" != x-; then
26042 mv $tmp/out $ac_file
26048 # Run the commands associated with the file.
26050 as ) chmod +x as ;;
26051 collect-ld ) chmod +x collect-ld ;;
26052 nm ) chmod +x nm ;;
26056 cat >>$CONFIG_STATUS <<\_ACEOF
26059 # CONFIG_HEADER section.
26062 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26063 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26065 # ac_d sets the value in "#define NAME VALUE" lines.
26066 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26067 ac_dB='[ ].*$,\1#\2'
26070 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26071 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26072 ac_uB='$,\1#\2define\3'
26076 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26079 - | *:- | *:-:* ) # input from stdin
26081 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26082 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26083 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26085 * ) ac_file_in=$ac_file.in ;;
26088 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26089 echo "$as_me: creating $ac_file" >&6;}
26091 # First look for the input files in the build tree, otherwise in the
26093 ac_file_inputs=`IFS=:
26094 for f in $ac_file_in; do
26096 -) echo $tmp/stdin ;;
26098 # Absolute (can't be DOS-style, as IFS=:)
26099 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26100 echo "$as_me: error: cannot find input file: $f" >&2;}
26101 { (exit 1); exit 1; }; }
26102 # Do quote $f, to prevent DOS paths from being IFS'd.
26105 if test -f "$f"; then
26108 elif test -f "$srcdir/$f"; then
26113 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26114 echo "$as_me: error: cannot find input file: $f" >&2;}
26115 { (exit 1); exit 1; }; }
26118 done` || { (exit 1); exit 1; }
26119 # Remove the trailing spaces.
26120 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26124 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26125 # `conftest.undefs', that substitutes the proper values into
26126 # config.h.in to produce config.h. The first handles `#define'
26127 # templates, and the second `#undef' templates.
26128 # And first: Protect against being on the right side of a sed subst in
26129 # config.status. Protect against being in an unquoted here document
26130 # in config.status.
26131 rm -f conftest.defines conftest.undefs
26132 # Using a here document instead of a string reduces the quoting nightmare.
26133 # Putting comments in sed scripts is not portable.
26135 # `end' is used to avoid that the second main sed command (meant for
26136 # 0-ary CPP macros) applies to n-ary macro definitions.
26137 # See the Autoconf documentation for `clear'.
26138 cat >confdef2sed.sed <<\_ACEOF
26143 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26145 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26148 # If some macros were called several times there might be several times
26149 # the same #defines, which is useless. Nevertheless, we may not want to
26150 # sort them, since we want the *last* AC-DEFINE to be honored.
26151 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26152 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26153 rm -f confdef2sed.sed
26155 # This sed command replaces #undef with comments. This is necessary, for
26156 # example, in the case of _POSIX_SOURCE, which is predefined and required
26157 # on some systems where configure will not decide to define it.
26158 cat >>conftest.undefs <<\_ACEOF
26159 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26162 # Break up conftest.defines because some shells have a limit on the size
26163 # of here documents, and old seds have small limits too (100 cmds).
26164 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26165 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26166 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26167 echo ' :' >>$CONFIG_STATUS
26168 rm -f conftest.tail
26169 while grep . conftest.defines >/dev/null
26171 # Write a limited-size here document to $tmp/defines.sed.
26172 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26173 # Speed up: don't consider the non `#define' lines.
26174 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26175 # Work around the forget-to-reset-the-flag bug.
26176 echo 't clr' >>$CONFIG_STATUS
26177 echo ': clr' >>$CONFIG_STATUS
26178 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26180 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26182 mv $tmp/out $tmp/in
26184 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26185 rm -f conftest.defines
26186 mv conftest.tail conftest.defines
26188 rm -f conftest.defines
26189 echo ' fi # grep' >>$CONFIG_STATUS
26190 echo >>$CONFIG_STATUS
26192 # Break up conftest.undefs because some shells have a limit on the size
26193 # of here documents, and old seds have small limits too (100 cmds).
26194 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26195 rm -f conftest.tail
26196 while grep . conftest.undefs >/dev/null
26198 # Write a limited-size here document to $tmp/undefs.sed.
26199 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26200 # Speed up: don't consider the non `#undef'
26201 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26202 # Work around the forget-to-reset-the-flag bug.
26203 echo 't clr' >>$CONFIG_STATUS
26204 echo ': clr' >>$CONFIG_STATUS
26205 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26207 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26209 mv $tmp/out $tmp/in
26211 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26212 rm -f conftest.undefs
26213 mv conftest.tail conftest.undefs
26215 rm -f conftest.undefs
26217 cat >>$CONFIG_STATUS <<\_ACEOF
26218 # Let's still pretend it is `configure' which instantiates (i.e., don't
26219 # use $as_me), people would be surprised to read:
26220 # /* config.h. Generated by config.status. */
26221 if test x"$ac_file" = x-; then
26222 echo "/* Generated by configure. */" >$tmp/config.h
26224 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26226 cat $tmp/in >>$tmp/config.h
26228 if test x"$ac_file" != x-; then
26229 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26230 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26231 echo "$as_me: $ac_file is unchanged" >&6;}
26233 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26235 X"$ac_file" : 'X\(//\)[^/]' \| \
26236 X"$ac_file" : 'X\(//\)$' \| \
26237 X"$ac_file" : 'X\(/\)' \| \
26238 . : '\(.\)' 2>/dev/null ||
26240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26242 /^X\(\/\/\)$/{ s//\1/; q; }
26243 /^X\(\/\).*/{ s//\1/; q; }
26245 { if $as_mkdir_p; then
26250 while test ! -d "$as_dir"; do
26251 as_dirs="$as_dir $as_dirs"
26252 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26254 X"$as_dir" : 'X\(//\)[^/]' \| \
26255 X"$as_dir" : 'X\(//\)$' \| \
26256 X"$as_dir" : 'X\(/\)' \| \
26257 . : '\(.\)' 2>/dev/null ||
26259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26261 /^X\(\/\/\)$/{ s//\1/; q; }
26262 /^X\(\/\).*/{ s//\1/; q; }
26265 test ! -n "$as_dirs" || mkdir $as_dirs
26266 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26268 { (exit 1); exit 1; }; }; }
26271 mv $tmp/config.h $ac_file
26275 rm -f $tmp/config.h
26279 cat >>$CONFIG_STATUS <<\_ACEOF
26282 # CONFIG_COMMANDS section.
26284 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26285 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26286 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26287 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26288 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26289 X"$ac_dest" : 'X\(//\)[^/]' \| \
26290 X"$ac_dest" : 'X\(//\)$' \| \
26291 X"$ac_dest" : 'X\(/\)' \| \
26292 . : '\(.\)' 2>/dev/null ||
26294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26296 /^X\(\/\/\)$/{ s//\1/; q; }
26297 /^X\(\/\).*/{ s//\1/; q; }
26299 { if $as_mkdir_p; then
26304 while test ! -d "$as_dir"; do
26305 as_dirs="$as_dir $as_dirs"
26306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26308 X"$as_dir" : 'X\(//\)[^/]' \| \
26309 X"$as_dir" : 'X\(//\)$' \| \
26310 X"$as_dir" : 'X\(/\)' \| \
26311 . : '\(.\)' 2>/dev/null ||
26313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26315 /^X\(\/\/\)$/{ s//\1/; q; }
26316 /^X\(\/\).*/{ s//\1/; q; }
26319 test ! -n "$as_dirs" || mkdir $as_dirs
26320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26322 { (exit 1); exit 1; }; }; }
26326 if test "$ac_dir" != .; then
26327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26328 # A "../" for each directory in $ac_dir_suffix.
26329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26331 ac_dir_suffix= ac_top_builddir=
26335 .) # No --srcdir option. We are building in place.
26337 if test -z "$ac_top_builddir"; then
26340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26342 [\\/]* | ?:[\\/]* ) # Absolute path.
26343 ac_srcdir=$srcdir$ac_dir_suffix;
26344 ac_top_srcdir=$srcdir ;;
26345 *) # Relative path.
26346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26350 # Do not use `cd foo && pwd` to compute absolute paths, because
26351 # the directories may not exist.
26353 .) ac_abs_builddir="$ac_dir";;
26356 .) ac_abs_builddir=`pwd`;;
26357 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26358 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26361 case $ac_abs_builddir in
26362 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26364 case ${ac_top_builddir}. in
26365 .) ac_abs_top_builddir=$ac_abs_builddir;;
26366 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26367 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26370 case $ac_abs_builddir in
26371 .) ac_abs_srcdir=$ac_srcdir;;
26374 .) ac_abs_srcdir=$ac_abs_builddir;;
26375 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26376 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26379 case $ac_abs_builddir in
26380 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26382 case $ac_top_srcdir in
26383 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26384 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26385 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26390 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26391 echo "$as_me: executing $ac_dest commands" >&6;}
26394 case ${CONFIG_HEADERS} in
26395 *auto-host.h:config.in*)
26398 # Make sure all the subdirs exist.
26399 for d in $subdirs doc build
26401 test -d $d || mkdir $d
26408 cat >>$CONFIG_STATUS <<\_ACEOF
26410 { (exit 0); exit 0; }
26412 chmod +x $CONFIG_STATUS
26413 ac_clean_files=$ac_clean_files_save
26416 # configure is writing to config.log, and then calls config.status.
26417 # config.status does its own redirection, appending to config.log.
26418 # Unfortunately, on DOS this fails, as config.log is still kept open
26419 # by configure, so config.status won't be able to write to it; its
26420 # output is simply discarded. So we exec the FD to /dev/null,
26421 # effectively closing config.log, so it can be properly (re)opened and
26422 # appended to by config.status. When coming back to configure, we
26423 # need to make the FD available again.
26424 if test "$no_create" != yes; then
26426 ac_config_status_args=
26427 test "$silent" = yes &&
26428 ac_config_status_args="$ac_config_status_args --quiet"
26430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26433 # would make configure fail if this is the last instruction.
26434 $ac_cs_success || { (exit 1); exit 1; }