1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 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## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 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+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 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 \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 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 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 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 122 as_myself=$0 123 fi 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; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 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 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 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 | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 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; }; } 177 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). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if 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 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="tree.c" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_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_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep 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 stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump ORIGINAL_OBJDUMP_FOR_TARGET libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir 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 stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS' 313ac_subst_files='language_hooks' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773ac_env_GMPLIBS_set=${GMPLIBS+set} 774ac_env_GMPLIBS_value=$GMPLIBS 775ac_cv_env_GMPLIBS_set=${GMPLIBS+set} 776ac_cv_env_GMPLIBS_value=$GMPLIBS 777ac_env_GMPINC_set=${GMPINC+set} 778ac_env_GMPINC_value=$GMPINC 779ac_cv_env_GMPINC_set=${GMPINC+set} 780ac_cv_env_GMPINC_value=$GMPINC 781 782# 783# Report the --help message. 784# 785if test "$ac_init_help" = "long"; then 786 # Omit some internal or obsolete options to make the list less imposing. 787 # This message is too long to be a string in the A/UX 3.1 sh. 788 cat <<_ACEOF 789\`configure' configures this package to adapt to many kinds of systems. 790 791Usage: $0 [OPTION]... [VAR=VALUE]... 792 793To assign environment variables (e.g., CC, CFLAGS...), specify them as 794VAR=VALUE. See below for descriptions of some of the useful variables. 795 796Defaults for the options are specified in brackets. 797 798Configuration: 799 -h, --help display this help and exit 800 --help=short display options specific to this package 801 --help=recursive display the short help of all the included packages 802 -V, --version display version information and exit 803 -q, --quiet, --silent do not print \`checking...' messages 804 --cache-file=FILE cache test results in FILE [disabled] 805 -C, --config-cache alias for \`--cache-file=config.cache' 806 -n, --no-create do not create output files 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 808 809_ACEOF 810 811 cat <<_ACEOF 812Installation directories: 813 --prefix=PREFIX install architecture-independent files in PREFIX 814 [$ac_default_prefix] 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 816 [PREFIX] 817 818By default, \`make install' will install all the files in 819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 820an installation prefix other than \`$ac_default_prefix' using \`--prefix', 821for instance \`--prefix=\$HOME'. 822 823For better control, use the options below. 824 825Fine tuning of the installation directories: 826 --bindir=DIR user executables [EPREFIX/bin] 827 --sbindir=DIR system admin executables [EPREFIX/sbin] 828 --libexecdir=DIR program executables [EPREFIX/libexec] 829 --datadir=DIR read-only architecture-independent data [PREFIX/share] 830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 832 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 833 --libdir=DIR object code libraries [EPREFIX/lib] 834 --includedir=DIR C header files [PREFIX/include] 835 --oldincludedir=DIR C header files for non-gcc [/usr/include] 836 --infodir=DIR info documentation [PREFIX/info] 837 --mandir=DIR man documentation [PREFIX/man] 838_ACEOF 839 840 cat <<\_ACEOF 841 842Program names: 843 --program-prefix=PREFIX prepend PREFIX to installed program names 844 --program-suffix=SUFFIX append SUFFIX to installed program names 845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 846 847System types: 848 --build=BUILD configure for building on BUILD [guessed] 849 --host=HOST cross-compile to build programs to run on HOST [BUILD] 850 --target=TARGET configure for building compilers for TARGET [HOST] 851_ACEOF 852fi 853 854if test -n "$ac_init_help"; then 855 856 cat <<\_ACEOF 857 858Optional Features: 859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 861 --enable-generated-files-in-srcdir 862 put copies of generated files in source dir 863 intended for creating source tarballs for users 864 without texinfo bison or flex. 865 --enable-werror-always enable -Werror always 866 --enable-werror enable -Werror in bootstrap stage2 and later 867 --enable-checking=LIST 868 enable expensive run-time checks. With LIST, 869 enable only specific categories of checks. 870 Categories are: yes,no,all,none,release. 871 Flags are: assert,fold,gc,gcac,misc, 872 rtlflag,rtl,runtime,tree,valgrind. 873 --enable-mapped-location location_t is fileline integer cookie 874 --enable-coverage=LEVEL 875 enable compiler's code coverage collection. 876 Use to measure compiler performance and locate 877 unused parts of the compiler. With LEVEL, specify 878 optimization. Values are opt, noopt, 879 default is noopt 880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering 881 --enable-multilib enable library support for multiple ABIs 882 --enable-__cxa_atexit enable __cxa_atexit for C++ 883 --enable-threads enable thread usage for target GCC 884 --enable-threads=LIB use LIB thread package for target GCC 885 --enable-tls enable or disable generation of tls code 886 overriding the assembler check for tls support 887 --enable-objc-gc enable the use of Boehm's garbage collector with 888 the GNU Objective-C runtime 889 --disable-shared don't provide a shared libgcc 890 --enable-intermodule build the compiler in one step 891 --enable-languages=LIST specify which front-ends to build 892 --disable-rpath do not hardcode runtime library paths 893 --enable-initfini-array use .init_array/.fini_array sections 894 --enable-sjlj-exceptions 895 arrange to use setjmp/longjmp exception handling 896 --enable-secureplt enable -msecure-plt by default for PowerPC 897 --disable-win32-registry 898 disable lookup of installation paths in the 899 Registry on Windows hosts 900 --enable-win32-registry enable registry lookup (default) 901 --enable-win32-registry=KEY 902 use KEY instead of GCC version as the last portion 903 of the registry key 904 --enable-maintainer-mode 905 enable make rules and dependencies not useful 906 (and sometimes confusing) to the casual installer 907 --enable-version-specific-runtime-libs 908 specify that runtime libraries should be 909 installed in a compiler-specific directory 910 911Optional Packages: 912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 914 --with-local-prefix=DIR specifies directory to put local include 915 --with-gxx-include-dir=DIR 916 specifies directory to put g++ header files 917 --with-cpp-install-dir=DIR 918 install the user visible C preprocessor in DIR 919 (relative to PREFIX) as well as PREFIX/bin 920 --with-gnu-ld arrange to work with GNU ld. 921 --with-ld arrange to use the specified ld (full pathname) 922 --with-demangler-in-ld try to use demangler in GNU ld. 923 --with-gnu-as arrange to work with GNU as 924 --with-as arrange to use the specified as (full pathname) 925 --with-stabs arrange to use stabs instead of host debug format 926 --with-dwarf2 force the default debug format to be DWARF 2 927 --with-build-sysroot=sysroot 928 use sysroot as the system root during the build 929 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR. 930 --with-gnu-ld assume the C compiler uses GNU ld default=no 931 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 932 --without-libiconv-prefix don't search for libiconv in includedir and libdir 933 --with-system-libunwind use installed libunwind 934 --with-gc={page,zone} choose the garbage collection mechanism to use 935 with the compiler 936 --with-system-zlib use installed libz 937 --with-slibdir=DIR shared libraries in DIR LIBDIR 938 939Some influential environment variables: 940 CC C compiler command 941 CFLAGS C compiler flags 942 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 943 nonstandard directory <lib dir> 944 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 945 headers in a nonstandard directory <include dir> 946 CPP C preprocessor 947 GMPLIBS How to link GMP 948 GMPINC How to find GMP include files 949 950Use these variables to override the choices made by `configure' or to help 951it to find libraries and programs with nonstandard names/locations. 952 953_ACEOF 954fi 955 956if test "$ac_init_help" = "recursive"; then 957 # If there are subdirs, report their specific --help. 958 ac_popdir=`pwd` 959 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 960 test -d $ac_dir || continue 961 ac_builddir=. 962 963if test "$ac_dir" != .; then 964 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 965 # A "../" for each directory in $ac_dir_suffix. 966 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 967else 968 ac_dir_suffix= ac_top_builddir= 969fi 970 971case $srcdir in 972 .) # No --srcdir option. We are building in place. 973 ac_srcdir=. 974 if test -z "$ac_top_builddir"; then 975 ac_top_srcdir=. 976 else 977 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 978 fi ;; 979 [\\/]* | ?:[\\/]* ) # Absolute path. 980 ac_srcdir=$srcdir$ac_dir_suffix; 981 ac_top_srcdir=$srcdir ;; 982 *) # Relative path. 983 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 984 ac_top_srcdir=$ac_top_builddir$srcdir ;; 985esac 986 987# Do not use `cd foo && pwd` to compute absolute paths, because 988# the directories may not exist. 989case `pwd` in 990.) ac_abs_builddir="$ac_dir";; 991*) 992 case "$ac_dir" in 993 .) ac_abs_builddir=`pwd`;; 994 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 995 *) ac_abs_builddir=`pwd`/"$ac_dir";; 996 esac;; 997esac 998case $ac_abs_builddir in 999.) ac_abs_top_builddir=${ac_top_builddir}.;; 1000*) 1001 case ${ac_top_builddir}. in 1002 .) ac_abs_top_builddir=$ac_abs_builddir;; 1003 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1004 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1005 esac;; 1006esac 1007case $ac_abs_builddir in 1008.) ac_abs_srcdir=$ac_srcdir;; 1009*) 1010 case $ac_srcdir in 1011 .) ac_abs_srcdir=$ac_abs_builddir;; 1012 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1013 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1014 esac;; 1015esac 1016case $ac_abs_builddir in 1017.) ac_abs_top_srcdir=$ac_top_srcdir;; 1018*) 1019 case $ac_top_srcdir in 1020 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1021 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1022 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1023 esac;; 1024esac 1025 1026 cd $ac_dir 1027 # Check for guested configure; otherwise get Cygnus style configure. 1028 if test -f $ac_srcdir/configure.gnu; then 1029 echo 1030 $SHELL $ac_srcdir/configure.gnu --help=recursive 1031 elif test -f $ac_srcdir/configure; then 1032 echo 1033 $SHELL $ac_srcdir/configure --help=recursive 1034 elif test -f $ac_srcdir/configure.ac || 1035 test -f $ac_srcdir/configure.in; then 1036 echo 1037 $ac_configure --help 1038 else 1039 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1040 fi 1041 cd $ac_popdir 1042 done 1043fi 1044 1045test -n "$ac_init_help" && exit 0 1046if $ac_init_version; then 1047 cat <<\_ACEOF 1048 1049Copyright (C) 2003 Free Software Foundation, Inc. 1050This configure script is free software; the Free Software Foundation 1051gives unlimited permission to copy, distribute and modify it. 1052_ACEOF 1053 exit 0 1054fi 1055exec 5>config.log 1056cat >&5 <<_ACEOF 1057This file contains any messages produced by compilers while 1058running configure, to aid debugging if configure makes a mistake. 1059 1060It was created by $as_me, which was 1061generated by GNU Autoconf 2.59. Invocation command line was 1062 1063 $ $0 $@ 1064 1065_ACEOF 1066{ 1067cat <<_ASUNAME 1068## --------- ## 1069## Platform. ## 1070## --------- ## 1071 1072hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1073uname -m = `(uname -m) 2>/dev/null || echo unknown` 1074uname -r = `(uname -r) 2>/dev/null || echo unknown` 1075uname -s = `(uname -s) 2>/dev/null || echo unknown` 1076uname -v = `(uname -v) 2>/dev/null || echo unknown` 1077 1078/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1079/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1080 1081/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1082/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1083/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1084hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1085/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1086/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1087/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1088 1089_ASUNAME 1090 1091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1092for as_dir in $PATH 1093do 1094 IFS=$as_save_IFS 1095 test -z "$as_dir" && as_dir=. 1096 echo "PATH: $as_dir" 1097done 1098 1099} >&5 1100 1101cat >&5 <<_ACEOF 1102 1103 1104## ----------- ## 1105## Core tests. ## 1106## ----------- ## 1107 1108_ACEOF 1109 1110 1111# Keep a trace of the command line. 1112# Strip out --no-create and --no-recursion so they do not pile up. 1113# Strip out --silent because we don't want to record it for future runs. 1114# Also quote any args containing shell meta-characters. 1115# Make two passes to allow for proper duplicate-argument suppression. 1116ac_configure_args= 1117ac_configure_args0= 1118ac_configure_args1= 1119ac_sep= 1120ac_must_keep_next=false 1121for ac_pass in 1 2 1122do 1123 for ac_arg 1124 do 1125 case $ac_arg in 1126 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1128 | -silent | --silent | --silen | --sile | --sil) 1129 continue ;; 1130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1131 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1132 esac 1133 case $ac_pass in 1134 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1135 2) 1136 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1137 if test $ac_must_keep_next = true; then 1138 ac_must_keep_next=false # Got value, back to normal. 1139 else 1140 case $ac_arg in 1141 *=* | --config-cache | -C | -disable-* | --disable-* \ 1142 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1143 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1144 | -with-* | --with-* | -without-* | --without-* | --x) 1145 case "$ac_configure_args0 " in 1146 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1147 esac 1148 ;; 1149 -* ) ac_must_keep_next=true ;; 1150 esac 1151 fi 1152 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1153 # Get rid of the leading space. 1154 ac_sep=" " 1155 ;; 1156 esac 1157 done 1158done 1159$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1160$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1161 1162# When interrupted or exit'd, cleanup temporary files, and complete 1163# config.log. We remove comments because anyway the quotes in there 1164# would cause problems or look ugly. 1165# WARNING: Be sure not to use single quotes in there, as some shells, 1166# such as our DU 5.0 friend, will then `close' the trap. 1167trap 'exit_status=$? 1168 # Save into config.log some information that might help in debugging. 1169 { 1170 echo 1171 1172 cat <<\_ASBOX 1173## ---------------- ## 1174## Cache variables. ## 1175## ---------------- ## 1176_ASBOX 1177 echo 1178 # The following way of writing the cache mishandles newlines in values, 1179{ 1180 (set) 2>&1 | 1181 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1182 *ac_space=\ *) 1183 sed -n \ 1184 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1186 ;; 1187 *) 1188 sed -n \ 1189 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1190 ;; 1191 esac; 1192} 1193 echo 1194 1195 cat <<\_ASBOX 1196## ----------------- ## 1197## Output variables. ## 1198## ----------------- ## 1199_ASBOX 1200 echo 1201 for ac_var in $ac_subst_vars 1202 do 1203 eval ac_val=$`echo $ac_var` 1204 echo "$ac_var='"'"'$ac_val'"'"'" 1205 done | sort 1206 echo 1207 1208 if test -n "$ac_subst_files"; then 1209 cat <<\_ASBOX 1210## ------------- ## 1211## Output files. ## 1212## ------------- ## 1213_ASBOX 1214 echo 1215 for ac_var in $ac_subst_files 1216 do 1217 eval ac_val=$`echo $ac_var` 1218 echo "$ac_var='"'"'$ac_val'"'"'" 1219 done | sort 1220 echo 1221 fi 1222 1223 if test -s confdefs.h; then 1224 cat <<\_ASBOX 1225## ----------- ## 1226## confdefs.h. ## 1227## ----------- ## 1228_ASBOX 1229 echo 1230 sed "/^$/d" confdefs.h | sort 1231 echo 1232 fi 1233 test "$ac_signal" != 0 && 1234 echo "$as_me: caught signal $ac_signal" 1235 echo "$as_me: exit $exit_status" 1236 } >&5 1237 rm -f core *.core && 1238 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1239 exit $exit_status 1240 ' 0 1241for ac_signal in 1 2 13 15; do 1242 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1243done 1244ac_signal=0 1245 1246# confdefs.h avoids OS command line length limits that DEFS can exceed. 1247rm -rf conftest* confdefs.h 1248# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1249echo >confdefs.h 1250 1251# Predefined preprocessor variables. 1252 1253cat >>confdefs.h <<_ACEOF 1254#define PACKAGE_NAME "$PACKAGE_NAME" 1255_ACEOF 1256 1257 1258cat >>confdefs.h <<_ACEOF 1259#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1260_ACEOF 1261 1262 1263cat >>confdefs.h <<_ACEOF 1264#define PACKAGE_VERSION "$PACKAGE_VERSION" 1265_ACEOF 1266 1267 1268cat >>confdefs.h <<_ACEOF 1269#define PACKAGE_STRING "$PACKAGE_STRING" 1270_ACEOF 1271 1272 1273cat >>confdefs.h <<_ACEOF 1274#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1275_ACEOF 1276 1277 1278# Let the site file select an alternate cache file if it wants to. 1279# Prefer explicitly selected file to automatically selected ones. 1280if test -z "$CONFIG_SITE"; then 1281 if test "x$prefix" != xNONE; then 1282 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1283 else 1284 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1285 fi 1286fi 1287for ac_site_file in $CONFIG_SITE; do 1288 if test -r "$ac_site_file"; then 1289 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1290echo "$as_me: loading site script $ac_site_file" >&6;} 1291 sed 's/^/| /' "$ac_site_file" >&5 1292 . "$ac_site_file" 1293 fi 1294done 1295 1296if test -r "$cache_file"; then 1297 # Some versions of bash will fail to source /dev/null (special 1298 # files actually), so we avoid doing that. 1299 if test -f "$cache_file"; then 1300 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1301echo "$as_me: loading cache $cache_file" >&6;} 1302 case $cache_file in 1303 [\\/]* | ?:[\\/]* ) . $cache_file;; 1304 *) . ./$cache_file;; 1305 esac 1306 fi 1307else 1308 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1309echo "$as_me: creating cache $cache_file" >&6;} 1310 >$cache_file 1311fi 1312 1313# Check that the precious variables saved in the cache have kept the same 1314# value. 1315ac_cache_corrupted=false 1316for ac_var in `(set) 2>&1 | 1317 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1318 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1319 eval ac_new_set=\$ac_env_${ac_var}_set 1320 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1321 eval ac_new_val="\$ac_env_${ac_var}_value" 1322 case $ac_old_set,$ac_new_set in 1323 set,) 1324 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1325echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1326 ac_cache_corrupted=: ;; 1327 ,set) 1328 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1329echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1330 ac_cache_corrupted=: ;; 1331 ,);; 1332 *) 1333 if test "x$ac_old_val" != "x$ac_new_val"; then 1334 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1335echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1336 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1337echo "$as_me: former value: $ac_old_val" >&2;} 1338 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1339echo "$as_me: current value: $ac_new_val" >&2;} 1340 ac_cache_corrupted=: 1341 fi;; 1342 esac 1343 # Pass precious variables to config.status. 1344 if test "$ac_new_set" = set; then 1345 case $ac_new_val in 1346 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1347 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1348 *) ac_arg=$ac_var=$ac_new_val ;; 1349 esac 1350 case " $ac_configure_args " in 1351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1352 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1353 esac 1354 fi 1355done 1356if $ac_cache_corrupted; then 1357 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1358echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1359 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1360echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1361 { (exit 1); exit 1; }; } 1362fi 1363 1364ac_ext=c 1365ac_cpp='$CPP $CPPFLAGS' 1366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1368ac_compiler_gnu=$ac_cv_c_compiler_gnu 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 ac_config_headers="$ac_config_headers auto-host.h:config.in" 1390 1391 1392gcc_version=`cat $srcdir/BASE-VER` 1393 1394# Determine the host, build, and target systems 1395ac_aux_dir= 1396for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1397 if test -f $ac_dir/install-sh; then 1398 ac_aux_dir=$ac_dir 1399 ac_install_sh="$ac_aux_dir/install-sh -c" 1400 break 1401 elif test -f $ac_dir/install.sh; then 1402 ac_aux_dir=$ac_dir 1403 ac_install_sh="$ac_aux_dir/install.sh -c" 1404 break 1405 elif test -f $ac_dir/shtool; then 1406 ac_aux_dir=$ac_dir 1407 ac_install_sh="$ac_aux_dir/shtool install -c" 1408 break 1409 fi 1410done 1411if test -z "$ac_aux_dir"; then 1412 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1413echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1414 { (exit 1); exit 1; }; } 1415fi 1416ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1417ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1418ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1419 1420# Make sure we can run config.sub. 1421$ac_config_sub sun4 >/dev/null 2>&1 || 1422 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1423echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1424 { (exit 1); exit 1; }; } 1425 1426echo "$as_me:$LINENO: checking build system type" >&5 1427echo $ECHO_N "checking build system type... $ECHO_C" >&6 1428if test "${ac_cv_build+set}" = set; then 1429 echo $ECHO_N "(cached) $ECHO_C" >&6 1430else 1431 ac_cv_build_alias=$build_alias 1432test -z "$ac_cv_build_alias" && 1433 ac_cv_build_alias=`$ac_config_guess` 1434test -z "$ac_cv_build_alias" && 1435 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1436echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1437 { (exit 1); exit 1; }; } 1438ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1440echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1441 { (exit 1); exit 1; }; } 1442 1443fi 1444echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1445echo "${ECHO_T}$ac_cv_build" >&6 1446build=$ac_cv_build 1447build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1448build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1449build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1450 1451 1452echo "$as_me:$LINENO: checking host system type" >&5 1453echo $ECHO_N "checking host system type... $ECHO_C" >&6 1454if test "${ac_cv_host+set}" = set; then 1455 echo $ECHO_N "(cached) $ECHO_C" >&6 1456else 1457 ac_cv_host_alias=$host_alias 1458test -z "$ac_cv_host_alias" && 1459 ac_cv_host_alias=$ac_cv_build_alias 1460ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1461 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1462echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1463 { (exit 1); exit 1; }; } 1464 1465fi 1466echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1467echo "${ECHO_T}$ac_cv_host" >&6 1468host=$ac_cv_host 1469host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1470host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1471host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1472 1473 1474echo "$as_me:$LINENO: checking target system type" >&5 1475echo $ECHO_N "checking target system type... $ECHO_C" >&6 1476if test "${ac_cv_target+set}" = set; then 1477 echo $ECHO_N "(cached) $ECHO_C" >&6 1478else 1479 ac_cv_target_alias=$target_alias 1480test "x$ac_cv_target_alias" = "x" && 1481 ac_cv_target_alias=$ac_cv_host_alias 1482ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1483 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1484echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1485 { (exit 1); exit 1; }; } 1486 1487fi 1488echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1489echo "${ECHO_T}$ac_cv_target" >&6 1490target=$ac_cv_target 1491target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1492target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1493target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1494 1495 1496# The aliases save the names the user supplied, while $host etc. 1497# will get canonicalized. 1498test -n "$target_alias" && 1499 test "$program_prefix$program_suffix$program_transform_name" = \ 1500 NONENONEs,x,x, && 1501 program_prefix=${target_alias}- 1502 1503# Determine the noncanonical target name, for directory use. 1504 case ${build_alias} in 1505 "") build_noncanonical=${build} ;; 1506 *) build_noncanonical=${build_alias} ;; 1507esac 1508 1509 case ${host_alias} in 1510 "") host_noncanonical=${build_noncanonical} ;; 1511 *) host_noncanonical=${host_alias} ;; 1512esac 1513 1514 case ${target_alias} in 1515 "") target_noncanonical=${host_noncanonical} ;; 1516 *) target_noncanonical=${target_alias} ;; 1517esac 1518 1519 1520 1521 1522# Determine the target- and build-specific subdirectories 1523 # Prefix 'build-' so this never conflicts with target_subdir. 1524build_subdir="build-${build_noncanonical}" 1525# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 1526if ( test $srcdir = . && test -d gcc ) \ 1527 || test -d $srcdir/../host-${host_noncanonical}; then 1528 host_subdir="host-${host_noncanonical}" 1529else 1530 host_subdir=. 1531fi 1532# No prefix. 1533target_subdir=${target_noncanonical} 1534 1535 1536# Set program_transform_name 1537test "$program_prefix" != NONE && 1538 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1539# Use a double $ so make ignores it. 1540test "$program_suffix" != NONE && 1541 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1542# Double any \ or $. echo might interpret backslashes. 1543# By default was `s,x,x', remove it if useless. 1544cat <<\_ACEOF >conftest.sed 1545s/[\\$]/&&/g;s/;s,x,x,$// 1546_ACEOF 1547program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1548rm conftest.sed 1549 1550 1551# Check for bogus environment variables. 1552# Test if LIBRARY_PATH contains the notation for the current directory 1553# since this would lead to problems installing/building glibc. 1554# LIBRARY_PATH contains the current directory if one of the following 1555# is true: 1556# - one of the terminals (":" and ";") is the first or last sign 1557# - two terminals occur directly after each other 1558# - the path contains an element with a dot in it 1559echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5 1560echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6 1561case ${LIBRARY_PATH} in 1562 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 1563 library_path_setting="contains current directory" 1564 ;; 1565 *) 1566 library_path_setting="ok" 1567 ;; 1568esac 1569echo "$as_me:$LINENO: result: $library_path_setting" >&5 1570echo "${ECHO_T}$library_path_setting" >&6 1571if test "$library_path_setting" != "ok"; then 1572{ { echo "$as_me:$LINENO: error: 1573*** LIBRARY_PATH shouldn't contain the current directory when 1574*** building gcc. Please change the environment variable 1575*** and run configure again." >&5 1576echo "$as_me: error: 1577*** LIBRARY_PATH shouldn't contain the current directory when 1578*** building gcc. Please change the environment variable 1579*** and run configure again." >&2;} 1580 { (exit 1); exit 1; }; } 1581fi 1582 1583# Test if GCC_EXEC_PREFIX contains the notation for the current directory 1584# since this would lead to problems installing/building glibc. 1585# GCC_EXEC_PREFIX contains the current directory if one of the following 1586# is true: 1587# - one of the terminals (":" and ";") is the first or last sign 1588# - two terminals occur directly after each other 1589# - the path contains an element with a dot in it 1590echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5 1591echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6 1592case ${GCC_EXEC_PREFIX} in 1593 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 1594 gcc_exec_prefix_setting="contains current directory" 1595 ;; 1596 *) 1597 gcc_exec_prefix_setting="ok" 1598 ;; 1599esac 1600echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5 1601echo "${ECHO_T}$gcc_exec_prefix_setting" >&6 1602if test "$gcc_exec_prefix_setting" != "ok"; then 1603{ { echo "$as_me:$LINENO: error: 1604*** GCC_EXEC_PREFIX shouldn't contain the current directory when 1605*** building gcc. Please change the environment variable 1606*** and run configure again." >&5 1607echo "$as_me: error: 1608*** GCC_EXEC_PREFIX shouldn't contain the current directory when 1609*** building gcc. Please change the environment variable 1610*** and run configure again." >&2;} 1611 { (exit 1); exit 1; }; } 1612fi 1613 1614# ----------- 1615# Directories 1616# ----------- 1617 1618# Specify the local prefix 1619local_prefix= 1620 1621# Check whether --with-local-prefix or --without-local-prefix was given. 1622if test "${with_local_prefix+set}" = set; then 1623 withval="$with_local_prefix" 1624 case "${withval}" in 1625yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5 1626echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;} 1627 { (exit 1); exit 1; }; } ;; 1628no) ;; 1629*) local_prefix=$with_local_prefix ;; 1630esac 1631fi; 1632 1633# Default local prefix if it is empty 1634if test x$local_prefix = x; then 1635 local_prefix=/usr/local 1636fi 1637 1638# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only 1639# passed in by the toplevel make and thus we'd get different behavior 1640# depending on where we built the sources. 1641gcc_gxx_include_dir= 1642# Specify the g++ header file directory 1643 1644# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. 1645if test "${with_gxx_include_dir+set}" = set; then 1646 withval="$with_gxx_include_dir" 1647 case "${withval}" in 1648yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5 1649echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;} 1650 { (exit 1); exit 1; }; } ;; 1651no) ;; 1652*) gcc_gxx_include_dir=$with_gxx_include_dir ;; 1653esac 1654fi; 1655 1656if test x${gcc_gxx_include_dir} = x; then 1657 if test x${enable_version_specific_runtime_libs} = xyes; then 1658 gcc_gxx_include_dir='${libsubdir}/include/c++' 1659 else 1660 libstdcxx_incdir='c++/$(version)' 1661 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir} 1662 fi 1663fi 1664 1665 1666# Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. 1667if test "${with_cpp_install_dir+set}" = set; then 1668 withval="$with_cpp_install_dir" 1669 if test x$withval = xyes; then 1670 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5 1671echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;} 1672 { (exit 1); exit 1; }; } 1673elif test x$withval != xno; then 1674 cpp_install_dir=$withval 1675fi 1676fi; 1677 1678# We would like to our source tree to be readonly. However when releases or 1679# pre-releases are generated, the flex/bison generated files as well as the 1680# various formats of manuals need to be included along with the rest of the 1681# sources. Therefore we have --enable-generated-files-in-srcdir to do 1682# just that. 1683 1684echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5 1685echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6 1686 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given. 1687if test "${enable_generated_files_in_srcdir+set}" = set; then 1688 enableval="$enable_generated_files_in_srcdir" 1689 generated_files_in_srcdir=$enableval 1690else 1691 generated_files_in_srcdir=no 1692fi; 1693 1694echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5 1695echo "${ECHO_T}$generated_files_in_srcdir" >&6 1696 1697if test "$generated_files_in_srcdir" = "yes"; then 1698 GENINSRC='' 1699else 1700 GENINSRC='#' 1701fi 1702 1703 1704# ------------------- 1705# Find default linker 1706# ------------------- 1707 1708# With GNU ld 1709 1710# Check whether --with-gnu-ld or --without-gnu-ld was given. 1711if test "${with_gnu_ld+set}" = set; then 1712 withval="$with_gnu_ld" 1713 gnu_ld_flag="$with_gnu_ld" 1714else 1715 gnu_ld_flag=no 1716fi; 1717 1718# With pre-defined ld 1719 1720# Check whether --with-ld or --without-ld was given. 1721if test "${with_ld+set}" = set; then 1722 withval="$with_ld" 1723 DEFAULT_LINKER="$with_ld" 1724fi; 1725if test x"${DEFAULT_LINKER+set}" = x"set"; then 1726 if test ! -x "$DEFAULT_LINKER"; then 1727 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5 1728echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;} 1729 { (exit 1); exit 1; }; } 1730 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 1731 gnu_ld_flag=yes 1732 fi 1733 1734cat >>confdefs.h <<_ACEOF 1735#define DEFAULT_LINKER "$DEFAULT_LINKER" 1736_ACEOF 1737 1738fi 1739 1740echo "$as_me:$LINENO: checking whether a default linker was specified" >&5 1741echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6 1742if test x"${DEFAULT_LINKER+set}" = x"set"; then 1743 if test x"$gnu_ld_flag" = x"no"; then 1744 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5 1745echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6 1746 else 1747 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5 1748echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6 1749 fi 1750else 1751 echo "$as_me:$LINENO: result: no" >&5 1752echo "${ECHO_T}no" >&6 1753fi 1754 1755# With demangler in GNU ld 1756 1757# Check whether --with-demangler-in-ld or --without-demangler-in-ld was given. 1758if test "${with_demangler_in_ld+set}" = set; then 1759 withval="$with_demangler_in_ld" 1760 demangler_in_ld="$with_demangler_in_ld" 1761else 1762 demangler_in_ld=no 1763fi; 1764 1765# ---------------------- 1766# Find default assembler 1767# ---------------------- 1768 1769# With GNU as 1770 1771# Check whether --with-gnu-as or --without-gnu-as was given. 1772if test "${with_gnu_as+set}" = set; then 1773 withval="$with_gnu_as" 1774 gas_flag="$with_gnu_as" 1775else 1776 gas_flag=no 1777fi; 1778 1779 1780# Check whether --with-as or --without-as was given. 1781if test "${with_as+set}" = set; then 1782 withval="$with_as" 1783 DEFAULT_ASSEMBLER="$with_as" 1784fi; 1785if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 1786 if test ! -x "$DEFAULT_ASSEMBLER"; then 1787 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5 1788echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;} 1789 { (exit 1); exit 1; }; } 1790 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 1791 gas_flag=yes 1792 fi 1793 1794cat >>confdefs.h <<_ACEOF 1795#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" 1796_ACEOF 1797 1798fi 1799 1800echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5 1801echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6 1802if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 1803 if test x"$gas_flag" = x"no"; then 1804 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5 1805echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6 1806 else 1807 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5 1808echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6 1809 fi 1810else 1811 echo "$as_me:$LINENO: result: no" >&5 1812echo "${ECHO_T}no" >&6 1813fi 1814 1815# --------------- 1816# Find C compiler 1817# --------------- 1818 1819# If a non-executable a.out is present (e.g. created by GNU as above even if 1820# invoked with -v only), the IRIX 6 native ld just overwrites the existing 1821# file, even when creating an executable, so an execution test fails. 1822# Remove possible default executable files to avoid this. 1823# 1824# FIXME: This really belongs into AC_PROG_CC and can be removed once 1825# Autoconf includes it. 1826rm -f a.out a.exe b.out 1827 1828# Find the native compiler 1829ac_ext=c 1830ac_cpp='$CPP $CPPFLAGS' 1831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1833ac_compiler_gnu=$ac_cv_c_compiler_gnu 1834if test -n "$ac_tool_prefix"; then 1835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1836set dummy ${ac_tool_prefix}gcc; ac_word=$2 1837echo "$as_me:$LINENO: checking for $ac_word" >&5 1838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1839if test "${ac_cv_prog_CC+set}" = set; then 1840 echo $ECHO_N "(cached) $ECHO_C" >&6 1841else 1842 if test -n "$CC"; then 1843 ac_cv_prog_CC="$CC" # Let the user override the test. 1844else 1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1846for as_dir in $PATH 1847do 1848 IFS=$as_save_IFS 1849 test -z "$as_dir" && as_dir=. 1850 for ac_exec_ext in '' $ac_executable_extensions; do 1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1852 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1854 break 2 1855 fi 1856done 1857done 1858 1859fi 1860fi 1861CC=$ac_cv_prog_CC 1862if test -n "$CC"; then 1863 echo "$as_me:$LINENO: result: $CC" >&5 1864echo "${ECHO_T}$CC" >&6 1865else 1866 echo "$as_me:$LINENO: result: no" >&5 1867echo "${ECHO_T}no" >&6 1868fi 1869 1870fi 1871if test -z "$ac_cv_prog_CC"; then 1872 ac_ct_CC=$CC 1873 # Extract the first word of "gcc", so it can be a program name with args. 1874set dummy gcc; ac_word=$2 1875echo "$as_me:$LINENO: checking for $ac_word" >&5 1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1878 echo $ECHO_N "(cached) $ECHO_C" >&6 1879else 1880 if test -n "$ac_ct_CC"; then 1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1882else 1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1884for as_dir in $PATH 1885do 1886 IFS=$as_save_IFS 1887 test -z "$as_dir" && as_dir=. 1888 for ac_exec_ext in '' $ac_executable_extensions; do 1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1890 ac_cv_prog_ac_ct_CC="gcc" 1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1892 break 2 1893 fi 1894done 1895done 1896 1897fi 1898fi 1899ac_ct_CC=$ac_cv_prog_ac_ct_CC 1900if test -n "$ac_ct_CC"; then 1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1902echo "${ECHO_T}$ac_ct_CC" >&6 1903else 1904 echo "$as_me:$LINENO: result: no" >&5 1905echo "${ECHO_T}no" >&6 1906fi 1907 1908 CC=$ac_ct_CC 1909else 1910 CC="$ac_cv_prog_CC" 1911fi 1912 1913if test -z "$CC"; then 1914 if test -n "$ac_tool_prefix"; then 1915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1916set dummy ${ac_tool_prefix}cc; ac_word=$2 1917echo "$as_me:$LINENO: checking for $ac_word" >&5 1918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1919if test "${ac_cv_prog_CC+set}" = set; then 1920 echo $ECHO_N "(cached) $ECHO_C" >&6 1921else 1922 if test -n "$CC"; then 1923 ac_cv_prog_CC="$CC" # Let the user override the test. 1924else 1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1926for as_dir in $PATH 1927do 1928 IFS=$as_save_IFS 1929 test -z "$as_dir" && as_dir=. 1930 for ac_exec_ext in '' $ac_executable_extensions; do 1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1932 ac_cv_prog_CC="${ac_tool_prefix}cc" 1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1934 break 2 1935 fi 1936done 1937done 1938 1939fi 1940fi 1941CC=$ac_cv_prog_CC 1942if test -n "$CC"; then 1943 echo "$as_me:$LINENO: result: $CC" >&5 1944echo "${ECHO_T}$CC" >&6 1945else 1946 echo "$as_me:$LINENO: result: no" >&5 1947echo "${ECHO_T}no" >&6 1948fi 1949 1950fi 1951if test -z "$ac_cv_prog_CC"; then 1952 ac_ct_CC=$CC 1953 # Extract the first word of "cc", so it can be a program name with args. 1954set dummy cc; ac_word=$2 1955echo "$as_me:$LINENO: checking for $ac_word" >&5 1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1957if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1958 echo $ECHO_N "(cached) $ECHO_C" >&6 1959else 1960 if test -n "$ac_ct_CC"; then 1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1962else 1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1964for as_dir in $PATH 1965do 1966 IFS=$as_save_IFS 1967 test -z "$as_dir" && as_dir=. 1968 for ac_exec_ext in '' $ac_executable_extensions; do 1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1970 ac_cv_prog_ac_ct_CC="cc" 1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1972 break 2 1973 fi 1974done 1975done 1976 1977fi 1978fi 1979ac_ct_CC=$ac_cv_prog_ac_ct_CC 1980if test -n "$ac_ct_CC"; then 1981 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1982echo "${ECHO_T}$ac_ct_CC" >&6 1983else 1984 echo "$as_me:$LINENO: result: no" >&5 1985echo "${ECHO_T}no" >&6 1986fi 1987 1988 CC=$ac_ct_CC 1989else 1990 CC="$ac_cv_prog_CC" 1991fi 1992 1993fi 1994if test -z "$CC"; then 1995 # Extract the first word of "cc", so it can be a program name with args. 1996set dummy cc; ac_word=$2 1997echo "$as_me:$LINENO: checking for $ac_word" >&5 1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1999if test "${ac_cv_prog_CC+set}" = set; then 2000 echo $ECHO_N "(cached) $ECHO_C" >&6 2001else 2002 if test -n "$CC"; then 2003 ac_cv_prog_CC="$CC" # Let the user override the test. 2004else 2005 ac_prog_rejected=no 2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2007for as_dir in $PATH 2008do 2009 IFS=$as_save_IFS 2010 test -z "$as_dir" && as_dir=. 2011 for ac_exec_ext in '' $ac_executable_extensions; do 2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2013 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2014 ac_prog_rejected=yes 2015 continue 2016 fi 2017 ac_cv_prog_CC="cc" 2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2019 break 2 2020 fi 2021done 2022done 2023 2024if test $ac_prog_rejected = yes; then 2025 # We found a bogon in the path, so make sure we never use it. 2026 set dummy $ac_cv_prog_CC 2027 shift 2028 if test $# != 0; then 2029 # We chose a different compiler from the bogus one. 2030 # However, it has the same basename, so the bogon will be chosen 2031 # first if we set CC to just the basename; use the full file name. 2032 shift 2033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2034 fi 2035fi 2036fi 2037fi 2038CC=$ac_cv_prog_CC 2039if test -n "$CC"; then 2040 echo "$as_me:$LINENO: result: $CC" >&5 2041echo "${ECHO_T}$CC" >&6 2042else 2043 echo "$as_me:$LINENO: result: no" >&5 2044echo "${ECHO_T}no" >&6 2045fi 2046 2047fi 2048if test -z "$CC"; then 2049 if test -n "$ac_tool_prefix"; then 2050 for ac_prog in cl 2051 do 2052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2053set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2054echo "$as_me:$LINENO: checking for $ac_word" >&5 2055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2056if test "${ac_cv_prog_CC+set}" = set; then 2057 echo $ECHO_N "(cached) $ECHO_C" >&6 2058else 2059 if test -n "$CC"; then 2060 ac_cv_prog_CC="$CC" # Let the user override the test. 2061else 2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2063for as_dir in $PATH 2064do 2065 IFS=$as_save_IFS 2066 test -z "$as_dir" && as_dir=. 2067 for ac_exec_ext in '' $ac_executable_extensions; do 2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2071 break 2 2072 fi 2073done 2074done 2075 2076fi 2077fi 2078CC=$ac_cv_prog_CC 2079if test -n "$CC"; then 2080 echo "$as_me:$LINENO: result: $CC" >&5 2081echo "${ECHO_T}$CC" >&6 2082else 2083 echo "$as_me:$LINENO: result: no" >&5 2084echo "${ECHO_T}no" >&6 2085fi 2086 2087 test -n "$CC" && break 2088 done 2089fi 2090if test -z "$CC"; then 2091 ac_ct_CC=$CC 2092 for ac_prog in cl 2093do 2094 # Extract the first word of "$ac_prog", so it can be a program name with args. 2095set dummy $ac_prog; ac_word=$2 2096echo "$as_me:$LINENO: checking for $ac_word" >&5 2097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2098if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2099 echo $ECHO_N "(cached) $ECHO_C" >&6 2100else 2101 if test -n "$ac_ct_CC"; then 2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2103else 2104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2105for as_dir in $PATH 2106do 2107 IFS=$as_save_IFS 2108 test -z "$as_dir" && as_dir=. 2109 for ac_exec_ext in '' $ac_executable_extensions; do 2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2111 ac_cv_prog_ac_ct_CC="$ac_prog" 2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2113 break 2 2114 fi 2115done 2116done 2117 2118fi 2119fi 2120ac_ct_CC=$ac_cv_prog_ac_ct_CC 2121if test -n "$ac_ct_CC"; then 2122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2123echo "${ECHO_T}$ac_ct_CC" >&6 2124else 2125 echo "$as_me:$LINENO: result: no" >&5 2126echo "${ECHO_T}no" >&6 2127fi 2128 2129 test -n "$ac_ct_CC" && break 2130done 2131 2132 CC=$ac_ct_CC 2133fi 2134 2135fi 2136 2137 2138test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2139See \`config.log' for more details." >&5 2140echo "$as_me: error: no acceptable C compiler found in \$PATH 2141See \`config.log' for more details." >&2;} 2142 { (exit 1); exit 1; }; } 2143 2144# Provide some information about the compiler. 2145echo "$as_me:$LINENO:" \ 2146 "checking for C compiler version" >&5 2147ac_compiler=`set X $ac_compile; echo $2` 2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2149 (eval $ac_compiler --version </dev/null >&5) 2>&5 2150 ac_status=$? 2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2152 (exit $ac_status); } 2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2154 (eval $ac_compiler -v </dev/null >&5) 2>&5 2155 ac_status=$? 2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2157 (exit $ac_status); } 2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2159 (eval $ac_compiler -V </dev/null >&5) 2>&5 2160 ac_status=$? 2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2162 (exit $ac_status); } 2163 2164cat >conftest.$ac_ext <<_ACEOF 2165/* confdefs.h. */ 2166_ACEOF 2167cat confdefs.h >>conftest.$ac_ext 2168cat >>conftest.$ac_ext <<_ACEOF 2169/* end confdefs.h. */ 2170 2171int 2172main () 2173{ 2174 2175 ; 2176 return 0; 2177} 2178_ACEOF 2179ac_clean_files_save=$ac_clean_files 2180ac_clean_files="$ac_clean_files a.out a.exe b.out" 2181# Try to create an executable without -o first, disregard a.out. 2182# It will help us diagnose broken compilers, and finding out an intuition 2183# of exeext. 2184echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2187if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2188 (eval $ac_link_default) 2>&5 2189 ac_status=$? 2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2191 (exit $ac_status); }; then 2192 # Find the output, starting from the most likely. This scheme is 2193# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2194# resort. 2195 2196# Be careful to initialize this variable, since it used to be cached. 2197# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2198ac_cv_exeext= 2199# b.out is created by i960 compilers. 2200for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2201do 2202 test -f "$ac_file" || continue 2203 case $ac_file in 2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2205 ;; 2206 conftest.$ac_ext ) 2207 # This is the source file. 2208 ;; 2209 [ab].out ) 2210 # We found the default executable, but exeext='' is most 2211 # certainly right. 2212 break;; 2213 *.* ) 2214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2215 # FIXME: I believe we export ac_cv_exeext for Libtool, 2216 # but it would be cool to find out if it's true. Does anybody 2217 # maintain Libtool? --akim. 2218 export ac_cv_exeext 2219 break;; 2220 * ) 2221 break;; 2222 esac 2223done 2224else 2225 echo "$as_me: failed program was:" >&5 2226sed 's/^/| /' conftest.$ac_ext >&5 2227 2228{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2229See \`config.log' for more details." >&5 2230echo "$as_me: error: C compiler cannot create executables 2231See \`config.log' for more details." >&2;} 2232 { (exit 77); exit 77; }; } 2233fi 2234 2235ac_exeext=$ac_cv_exeext 2236echo "$as_me:$LINENO: result: $ac_file" >&5 2237echo "${ECHO_T}$ac_file" >&6 2238 2239# Check the compiler produces executables we can run. If not, either 2240# the compiler is broken, or we cross compile. 2241echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2242echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2243# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2244# If not cross compiling, check that we can run a simple program. 2245if test "$cross_compiling" != yes; then 2246 if { ac_try='./$ac_file' 2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2248 (eval $ac_try) 2>&5 2249 ac_status=$? 2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2251 (exit $ac_status); }; }; then 2252 cross_compiling=no 2253 else 2254 if test "$cross_compiling" = maybe; then 2255 cross_compiling=yes 2256 else 2257 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2258If you meant to cross compile, use \`--host'. 2259See \`config.log' for more details." >&5 2260echo "$as_me: error: cannot run C compiled programs. 2261If you meant to cross compile, use \`--host'. 2262See \`config.log' for more details." >&2;} 2263 { (exit 1); exit 1; }; } 2264 fi 2265 fi 2266fi 2267echo "$as_me:$LINENO: result: yes" >&5 2268echo "${ECHO_T}yes" >&6 2269 2270rm -f a.out a.exe conftest$ac_cv_exeext b.out 2271ac_clean_files=$ac_clean_files_save 2272# Check the compiler produces executables we can run. If not, either 2273# the compiler is broken, or we cross compile. 2274echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2275echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2276echo "$as_me:$LINENO: result: $cross_compiling" >&5 2277echo "${ECHO_T}$cross_compiling" >&6 2278 2279echo "$as_me:$LINENO: checking for suffix of executables" >&5 2280echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2282 (eval $ac_link) 2>&5 2283 ac_status=$? 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2285 (exit $ac_status); }; then 2286 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2287# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2288# work properly (i.e., refer to `conftest.exe'), while it won't with 2289# `rm'. 2290for ac_file in conftest.exe conftest conftest.*; do 2291 test -f "$ac_file" || continue 2292 case $ac_file in 2293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2295 export ac_cv_exeext 2296 break;; 2297 * ) break;; 2298 esac 2299done 2300else 2301 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2302See \`config.log' for more details." >&5 2303echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2304See \`config.log' for more details." >&2;} 2305 { (exit 1); exit 1; }; } 2306fi 2307 2308rm -f conftest$ac_cv_exeext 2309echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2310echo "${ECHO_T}$ac_cv_exeext" >&6 2311 2312rm -f conftest.$ac_ext 2313EXEEXT=$ac_cv_exeext 2314ac_exeext=$EXEEXT 2315echo "$as_me:$LINENO: checking for suffix of object files" >&5 2316echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2317if test "${ac_cv_objext+set}" = set; then 2318 echo $ECHO_N "(cached) $ECHO_C" >&6 2319else 2320 cat >conftest.$ac_ext <<_ACEOF 2321/* confdefs.h. */ 2322_ACEOF 2323cat confdefs.h >>conftest.$ac_ext 2324cat >>conftest.$ac_ext <<_ACEOF 2325/* end confdefs.h. */ 2326 2327int 2328main () 2329{ 2330 2331 ; 2332 return 0; 2333} 2334_ACEOF 2335rm -f conftest.o conftest.obj 2336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2337 (eval $ac_compile) 2>&5 2338 ac_status=$? 2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2340 (exit $ac_status); }; then 2341 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2342 case $ac_file in 2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2345 break;; 2346 esac 2347done 2348else 2349 echo "$as_me: failed program was:" >&5 2350sed 's/^/| /' conftest.$ac_ext >&5 2351 2352{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2353See \`config.log' for more details." >&5 2354echo "$as_me: error: cannot compute suffix of object files: cannot compile 2355See \`config.log' for more details." >&2;} 2356 { (exit 1); exit 1; }; } 2357fi 2358 2359rm -f conftest.$ac_cv_objext conftest.$ac_ext 2360fi 2361echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2362echo "${ECHO_T}$ac_cv_objext" >&6 2363OBJEXT=$ac_cv_objext 2364ac_objext=$OBJEXT 2365echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2366echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2367if test "${ac_cv_c_compiler_gnu+set}" = set; then 2368 echo $ECHO_N "(cached) $ECHO_C" >&6 2369else 2370 cat >conftest.$ac_ext <<_ACEOF 2371/* confdefs.h. */ 2372_ACEOF 2373cat confdefs.h >>conftest.$ac_ext 2374cat >>conftest.$ac_ext <<_ACEOF 2375/* end confdefs.h. */ 2376 2377int 2378main () 2379{ 2380#ifndef __GNUC__ 2381 choke me 2382#endif 2383 2384 ; 2385 return 0; 2386} 2387_ACEOF 2388rm -f conftest.$ac_objext 2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2390 (eval $ac_compile) 2>conftest.er1 2391 ac_status=$? 2392 grep -v '^ *+' conftest.er1 >conftest.err 2393 rm -f conftest.er1 2394 cat conftest.err >&5 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); } && 2397 { ac_try='test -z "$ac_c_werror_flag" 2398 || test ! -s conftest.err' 2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2400 (eval $ac_try) 2>&5 2401 ac_status=$? 2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2403 (exit $ac_status); }; } && 2404 { ac_try='test -s conftest.$ac_objext' 2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2406 (eval $ac_try) 2>&5 2407 ac_status=$? 2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2409 (exit $ac_status); }; }; then 2410 ac_compiler_gnu=yes 2411else 2412 echo "$as_me: failed program was:" >&5 2413sed 's/^/| /' conftest.$ac_ext >&5 2414 2415ac_compiler_gnu=no 2416fi 2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2418ac_cv_c_compiler_gnu=$ac_compiler_gnu 2419 2420fi 2421echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2422echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2423GCC=`test $ac_compiler_gnu = yes && echo yes` 2424ac_test_CFLAGS=${CFLAGS+set} 2425ac_save_CFLAGS=$CFLAGS 2426CFLAGS="-g" 2427echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2428echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2429if test "${ac_cv_prog_cc_g+set}" = set; then 2430 echo $ECHO_N "(cached) $ECHO_C" >&6 2431else 2432 cat >conftest.$ac_ext <<_ACEOF 2433/* confdefs.h. */ 2434_ACEOF 2435cat confdefs.h >>conftest.$ac_ext 2436cat >>conftest.$ac_ext <<_ACEOF 2437/* end confdefs.h. */ 2438 2439int 2440main () 2441{ 2442 2443 ; 2444 return 0; 2445} 2446_ACEOF 2447rm -f conftest.$ac_objext 2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2449 (eval $ac_compile) 2>conftest.er1 2450 ac_status=$? 2451 grep -v '^ *+' conftest.er1 >conftest.err 2452 rm -f conftest.er1 2453 cat conftest.err >&5 2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2455 (exit $ac_status); } && 2456 { ac_try='test -z "$ac_c_werror_flag" 2457 || test ! -s conftest.err' 2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2459 (eval $ac_try) 2>&5 2460 ac_status=$? 2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2462 (exit $ac_status); }; } && 2463 { ac_try='test -s conftest.$ac_objext' 2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2465 (eval $ac_try) 2>&5 2466 ac_status=$? 2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2468 (exit $ac_status); }; }; then 2469 ac_cv_prog_cc_g=yes 2470else 2471 echo "$as_me: failed program was:" >&5 2472sed 's/^/| /' conftest.$ac_ext >&5 2473 2474ac_cv_prog_cc_g=no 2475fi 2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2477fi 2478echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2479echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2480if test "$ac_test_CFLAGS" = set; then 2481 CFLAGS=$ac_save_CFLAGS 2482elif test $ac_cv_prog_cc_g = yes; then 2483 if test "$GCC" = yes; then 2484 CFLAGS="-g -O2" 2485 else 2486 CFLAGS="-g" 2487 fi 2488else 2489 if test "$GCC" = yes; then 2490 CFLAGS="-O2" 2491 else 2492 CFLAGS= 2493 fi 2494fi 2495echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2496echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2497if test "${ac_cv_prog_cc_stdc+set}" = set; then 2498 echo $ECHO_N "(cached) $ECHO_C" >&6 2499else 2500 ac_cv_prog_cc_stdc=no 2501ac_save_CC=$CC 2502cat >conftest.$ac_ext <<_ACEOF 2503/* confdefs.h. */ 2504_ACEOF 2505cat confdefs.h >>conftest.$ac_ext 2506cat >>conftest.$ac_ext <<_ACEOF 2507/* end confdefs.h. */ 2508#include <stdarg.h> 2509#include <stdio.h> 2510#include <sys/types.h> 2511#include <sys/stat.h> 2512/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2513struct buf { int x; }; 2514FILE * (*rcsopen) (struct buf *, struct stat *, int); 2515static char *e (p, i) 2516 char **p; 2517 int i; 2518{ 2519 return p[i]; 2520} 2521static char *f (char * (*g) (char **, int), char **p, ...) 2522{ 2523 char *s; 2524 va_list v; 2525 va_start (v,p); 2526 s = g (p, va_arg (v,int)); 2527 va_end (v); 2528 return s; 2529} 2530 2531/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2532 function prototypes and stuff, but not '\xHH' hex character constants. 2533 These don't provoke an error unfortunately, instead are silently treated 2534 as 'x'. The following induces an error, until -std1 is added to get 2535 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2536 array size at least. It's necessary to write '\x00'==0 to get something 2537 that's true only with -std1. */ 2538int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2539 2540int test (int i, double x); 2541struct s1 {int (*f) (int a);}; 2542struct s2 {int (*f) (double a);}; 2543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2544int argc; 2545char **argv; 2546int 2547main () 2548{ 2549return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2550 ; 2551 return 0; 2552} 2553_ACEOF 2554# Don't try gcc -ansi; that turns off useful extensions and 2555# breaks some systems' header files. 2556# AIX -qlanglvl=ansi 2557# Ultrix and OSF/1 -std1 2558# HP-UX 10.20 and later -Ae 2559# HP-UX older versions -Aa -D_HPUX_SOURCE 2560# SVR4 -Xc -D__EXTENSIONS__ 2561for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2562do 2563 CC="$ac_save_CC $ac_arg" 2564 rm -f conftest.$ac_objext 2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2566 (eval $ac_compile) 2>conftest.er1 2567 ac_status=$? 2568 grep -v '^ *+' conftest.er1 >conftest.err 2569 rm -f conftest.er1 2570 cat conftest.err >&5 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); } && 2573 { ac_try='test -z "$ac_c_werror_flag" 2574 || test ! -s conftest.err' 2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2576 (eval $ac_try) 2>&5 2577 ac_status=$? 2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2579 (exit $ac_status); }; } && 2580 { ac_try='test -s conftest.$ac_objext' 2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2582 (eval $ac_try) 2>&5 2583 ac_status=$? 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2585 (exit $ac_status); }; }; then 2586 ac_cv_prog_cc_stdc=$ac_arg 2587break 2588else 2589 echo "$as_me: failed program was:" >&5 2590sed 's/^/| /' conftest.$ac_ext >&5 2591 2592fi 2593rm -f conftest.err conftest.$ac_objext 2594done 2595rm -f conftest.$ac_ext conftest.$ac_objext 2596CC=$ac_save_CC 2597 2598fi 2599 2600case "x$ac_cv_prog_cc_stdc" in 2601 x|xno) 2602 echo "$as_me:$LINENO: result: none needed" >&5 2603echo "${ECHO_T}none needed" >&6 ;; 2604 *) 2605 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2606echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2607 CC="$CC $ac_cv_prog_cc_stdc" ;; 2608esac 2609 2610# Some people use a C++ compiler to compile C. Since we use `exit', 2611# in C++ we need to declare it. In case someone uses the same compiler 2612# for both compiling C and C++ we need to have the C++ compiler decide 2613# the declaration of exit, since it's the most demanding environment. 2614cat >conftest.$ac_ext <<_ACEOF 2615#ifndef __cplusplus 2616 choke me 2617#endif 2618_ACEOF 2619rm -f conftest.$ac_objext 2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2621 (eval $ac_compile) 2>conftest.er1 2622 ac_status=$? 2623 grep -v '^ *+' conftest.er1 >conftest.err 2624 rm -f conftest.er1 2625 cat conftest.err >&5 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2627 (exit $ac_status); } && 2628 { ac_try='test -z "$ac_c_werror_flag" 2629 || test ! -s conftest.err' 2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2631 (eval $ac_try) 2>&5 2632 ac_status=$? 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); }; } && 2635 { ac_try='test -s conftest.$ac_objext' 2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2637 (eval $ac_try) 2>&5 2638 ac_status=$? 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); }; }; then 2641 for ac_declaration in \ 2642 '' \ 2643 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2644 'extern "C" void std::exit (int); using std::exit;' \ 2645 'extern "C" void exit (int) throw ();' \ 2646 'extern "C" void exit (int);' \ 2647 'void exit (int);' 2648do 2649 cat >conftest.$ac_ext <<_ACEOF 2650/* confdefs.h. */ 2651_ACEOF 2652cat confdefs.h >>conftest.$ac_ext 2653cat >>conftest.$ac_ext <<_ACEOF 2654/* end confdefs.h. */ 2655$ac_declaration 2656#include <stdlib.h> 2657int 2658main () 2659{ 2660exit (42); 2661 ; 2662 return 0; 2663} 2664_ACEOF 2665rm -f conftest.$ac_objext 2666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2667 (eval $ac_compile) 2>conftest.er1 2668 ac_status=$? 2669 grep -v '^ *+' conftest.er1 >conftest.err 2670 rm -f conftest.er1 2671 cat conftest.err >&5 2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2673 (exit $ac_status); } && 2674 { ac_try='test -z "$ac_c_werror_flag" 2675 || test ! -s conftest.err' 2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2677 (eval $ac_try) 2>&5 2678 ac_status=$? 2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2680 (exit $ac_status); }; } && 2681 { ac_try='test -s conftest.$ac_objext' 2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2683 (eval $ac_try) 2>&5 2684 ac_status=$? 2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2686 (exit $ac_status); }; }; then 2687 : 2688else 2689 echo "$as_me: failed program was:" >&5 2690sed 's/^/| /' conftest.$ac_ext >&5 2691 2692continue 2693fi 2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2695 cat >conftest.$ac_ext <<_ACEOF 2696/* confdefs.h. */ 2697_ACEOF 2698cat confdefs.h >>conftest.$ac_ext 2699cat >>conftest.$ac_ext <<_ACEOF 2700/* end confdefs.h. */ 2701$ac_declaration 2702int 2703main () 2704{ 2705exit (42); 2706 ; 2707 return 0; 2708} 2709_ACEOF 2710rm -f conftest.$ac_objext 2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2712 (eval $ac_compile) 2>conftest.er1 2713 ac_status=$? 2714 grep -v '^ *+' conftest.er1 >conftest.err 2715 rm -f conftest.er1 2716 cat conftest.err >&5 2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2718 (exit $ac_status); } && 2719 { ac_try='test -z "$ac_c_werror_flag" 2720 || test ! -s conftest.err' 2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2722 (eval $ac_try) 2>&5 2723 ac_status=$? 2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2725 (exit $ac_status); }; } && 2726 { ac_try='test -s conftest.$ac_objext' 2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2728 (eval $ac_try) 2>&5 2729 ac_status=$? 2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2731 (exit $ac_status); }; }; then 2732 break 2733else 2734 echo "$as_me: failed program was:" >&5 2735sed 's/^/| /' conftest.$ac_ext >&5 2736 2737fi 2738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2739done 2740rm -f conftest* 2741if test -n "$ac_declaration"; then 2742 echo '#ifdef __cplusplus' >>confdefs.h 2743 echo $ac_declaration >>confdefs.h 2744 echo '#endif' >>confdefs.h 2745fi 2746 2747else 2748 echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751fi 2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2753ac_ext=c 2754ac_cpp='$CPP $CPPFLAGS' 2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2757ac_compiler_gnu=$ac_cv_c_compiler_gnu 2758 2759if test "x$CC" != xcc; then 2760 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 2761echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 2762else 2763 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 2764echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 2765fi 2766set dummy $CC; ac_cc=`echo $2 | 2767 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 2768if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then 2769 echo $ECHO_N "(cached) $ECHO_C" >&6 2770else 2771 cat >conftest.$ac_ext <<_ACEOF 2772/* confdefs.h. */ 2773_ACEOF 2774cat confdefs.h >>conftest.$ac_ext 2775cat >>conftest.$ac_ext <<_ACEOF 2776/* end confdefs.h. */ 2777 2778int 2779main () 2780{ 2781 2782 ; 2783 return 0; 2784} 2785_ACEOF 2786# Make sure it works both with $CC and with simple cc. 2787# We do the test twice because some compilers refuse to overwrite an 2788# existing .o file with -o, though they will create one. 2789ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' 2790if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2791 (eval $ac_try) 2>&5 2792 ac_status=$? 2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2794 (exit $ac_status); } && 2795 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2796 (eval $ac_try) 2>&5 2797 ac_status=$? 2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2799 (exit $ac_status); }; 2800then 2801 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 2802 if test "x$CC" != xcc; then 2803 # Test first that cc exists at all. 2804 if { ac_try='cc -c conftest.$ac_ext >&5' 2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2806 (eval $ac_try) 2>&5 2807 ac_status=$? 2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2809 (exit $ac_status); }; }; then 2810 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' 2811 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2812 (eval $ac_try) 2>&5 2813 ac_status=$? 2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2815 (exit $ac_status); } && 2816 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2817 (eval $ac_try) 2>&5 2818 ac_status=$? 2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2820 (exit $ac_status); }; 2821 then 2822 # cc works too. 2823 : 2824 else 2825 # cc exists but doesn't like -o. 2826 eval ac_cv_prog_cc_${ac_cc}_c_o=no 2827 fi 2828 fi 2829 fi 2830else 2831 eval ac_cv_prog_cc_${ac_cc}_c_o=no 2832fi 2833rm -f conftest* 2834 2835fi 2836if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 2837 echo "$as_me:$LINENO: result: yes" >&5 2838echo "${ECHO_T}yes" >&6 2839else 2840 echo "$as_me:$LINENO: result: no" >&5 2841echo "${ECHO_T}no" >&6 2842 2843cat >>confdefs.h <<\_ACEOF 2844#define NO_MINUS_C_MINUS_O 1 2845_ACEOF 2846 2847fi 2848 2849# expand $ac_aux_dir to an absolute path 2850am_aux_dir=`cd $ac_aux_dir && pwd` 2851 2852# FIXME: we rely on the cache variable name because 2853# there is no other way. 2854set dummy $CC 2855ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 2856if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 2857 # Losing compiler, so override with the script. 2858 # FIXME: It is wrong to rewrite CC. 2859 # But if we don't then we get into trouble of one sort or another. 2860 # A longer-term fix would be to have automake use am__CC in this case, 2861 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 2862 CC="$am_aux_dir/compile $CC" 2863fi 2864 2865# autoconf is lame and doesn't give us any substitution variable for this. 2866if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then 2867 NO_MINUS_C_MINUS_O=yes 2868else 2869 OUTPUT_OPTION='-o $@' 2870fi 2871 2872 2873 2874# ------------------------- 2875# Check C compiler features 2876# ------------------------- 2877 2878ac_ext=c 2879ac_cpp='$CPP $CPPFLAGS' 2880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2882ac_compiler_gnu=$ac_cv_c_compiler_gnu 2883echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2884echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2885# On Suns, sometimes $CPP names a directory. 2886if test -n "$CPP" && test -d "$CPP"; then 2887 CPP= 2888fi 2889if test -z "$CPP"; then 2890 if test "${ac_cv_prog_CPP+set}" = set; then 2891 echo $ECHO_N "(cached) $ECHO_C" >&6 2892else 2893 # Double quotes because CPP needs to be expanded 2894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2895 do 2896 ac_preproc_ok=false 2897for ac_c_preproc_warn_flag in '' yes 2898do 2899 # Use a header file that comes with gcc, so configuring glibc 2900 # with a fresh cross-compiler works. 2901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2902 # <limits.h> exists even on freestanding compilers. 2903 # On the NeXT, cc -E runs the code through the compiler's parser, 2904 # not just through cpp. "Syntax error" is here to catch this case. 2905 cat >conftest.$ac_ext <<_ACEOF 2906/* confdefs.h. */ 2907_ACEOF 2908cat confdefs.h >>conftest.$ac_ext 2909cat >>conftest.$ac_ext <<_ACEOF 2910/* end confdefs.h. */ 2911#ifdef __STDC__ 2912# include <limits.h> 2913#else 2914# include <assert.h> 2915#endif 2916 Syntax error 2917_ACEOF 2918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2920 ac_status=$? 2921 grep -v '^ *+' conftest.er1 >conftest.err 2922 rm -f conftest.er1 2923 cat conftest.err >&5 2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2925 (exit $ac_status); } >/dev/null; then 2926 if test -s conftest.err; then 2927 ac_cpp_err=$ac_c_preproc_warn_flag 2928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2929 else 2930 ac_cpp_err= 2931 fi 2932else 2933 ac_cpp_err=yes 2934fi 2935if test -z "$ac_cpp_err"; then 2936 : 2937else 2938 echo "$as_me: failed program was:" >&5 2939sed 's/^/| /' conftest.$ac_ext >&5 2940 2941 # Broken: fails on valid input. 2942continue 2943fi 2944rm -f conftest.err conftest.$ac_ext 2945 2946 # OK, works on sane cases. Now check whether non-existent headers 2947 # can be detected and how. 2948 cat >conftest.$ac_ext <<_ACEOF 2949/* confdefs.h. */ 2950_ACEOF 2951cat confdefs.h >>conftest.$ac_ext 2952cat >>conftest.$ac_ext <<_ACEOF 2953/* end confdefs.h. */ 2954#include <ac_nonexistent.h> 2955_ACEOF 2956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2958 ac_status=$? 2959 grep -v '^ *+' conftest.er1 >conftest.err 2960 rm -f conftest.er1 2961 cat conftest.err >&5 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); } >/dev/null; then 2964 if test -s conftest.err; then 2965 ac_cpp_err=$ac_c_preproc_warn_flag 2966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2967 else 2968 ac_cpp_err= 2969 fi 2970else 2971 ac_cpp_err=yes 2972fi 2973if test -z "$ac_cpp_err"; then 2974 # Broken: success on invalid input. 2975continue 2976else 2977 echo "$as_me: failed program was:" >&5 2978sed 's/^/| /' conftest.$ac_ext >&5 2979 2980 # Passes both tests. 2981ac_preproc_ok=: 2982break 2983fi 2984rm -f conftest.err conftest.$ac_ext 2985 2986done 2987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2988rm -f conftest.err conftest.$ac_ext 2989if $ac_preproc_ok; then 2990 break 2991fi 2992 2993 done 2994 ac_cv_prog_CPP=$CPP 2995 2996fi 2997 CPP=$ac_cv_prog_CPP 2998else 2999 ac_cv_prog_CPP=$CPP 3000fi 3001echo "$as_me:$LINENO: result: $CPP" >&5 3002echo "${ECHO_T}$CPP" >&6 3003ac_preproc_ok=false 3004for ac_c_preproc_warn_flag in '' yes 3005do 3006 # Use a header file that comes with gcc, so configuring glibc 3007 # with a fresh cross-compiler works. 3008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3009 # <limits.h> exists even on freestanding compilers. 3010 # On the NeXT, cc -E runs the code through the compiler's parser, 3011 # not just through cpp. "Syntax error" is here to catch this case. 3012 cat >conftest.$ac_ext <<_ACEOF 3013/* confdefs.h. */ 3014_ACEOF 3015cat confdefs.h >>conftest.$ac_ext 3016cat >>conftest.$ac_ext <<_ACEOF 3017/* end confdefs.h. */ 3018#ifdef __STDC__ 3019# include <limits.h> 3020#else 3021# include <assert.h> 3022#endif 3023 Syntax error 3024_ACEOF 3025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3027 ac_status=$? 3028 grep -v '^ *+' conftest.er1 >conftest.err 3029 rm -f conftest.er1 3030 cat conftest.err >&5 3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3032 (exit $ac_status); } >/dev/null; then 3033 if test -s conftest.err; then 3034 ac_cpp_err=$ac_c_preproc_warn_flag 3035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3036 else 3037 ac_cpp_err= 3038 fi 3039else 3040 ac_cpp_err=yes 3041fi 3042if test -z "$ac_cpp_err"; then 3043 : 3044else 3045 echo "$as_me: failed program was:" >&5 3046sed 's/^/| /' conftest.$ac_ext >&5 3047 3048 # Broken: fails on valid input. 3049continue 3050fi 3051rm -f conftest.err conftest.$ac_ext 3052 3053 # OK, works on sane cases. Now check whether non-existent headers 3054 # can be detected and how. 3055 cat >conftest.$ac_ext <<_ACEOF 3056/* confdefs.h. */ 3057_ACEOF 3058cat confdefs.h >>conftest.$ac_ext 3059cat >>conftest.$ac_ext <<_ACEOF 3060/* end confdefs.h. */ 3061#include <ac_nonexistent.h> 3062_ACEOF 3063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3065 ac_status=$? 3066 grep -v '^ *+' conftest.er1 >conftest.err 3067 rm -f conftest.er1 3068 cat conftest.err >&5 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); } >/dev/null; then 3071 if test -s conftest.err; then 3072 ac_cpp_err=$ac_c_preproc_warn_flag 3073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3074 else 3075 ac_cpp_err= 3076 fi 3077else 3078 ac_cpp_err=yes 3079fi 3080if test -z "$ac_cpp_err"; then 3081 # Broken: success on invalid input. 3082continue 3083else 3084 echo "$as_me: failed program was:" >&5 3085sed 's/^/| /' conftest.$ac_ext >&5 3086 3087 # Passes both tests. 3088ac_preproc_ok=: 3089break 3090fi 3091rm -f conftest.err conftest.$ac_ext 3092 3093done 3094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3095rm -f conftest.err conftest.$ac_ext 3096if $ac_preproc_ok; then 3097 : 3098else 3099 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3100See \`config.log' for more details." >&5 3101echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3102See \`config.log' for more details." >&2;} 3103 { (exit 1); exit 1; }; } 3104fi 3105 3106ac_ext=c 3107ac_cpp='$CPP $CPPFLAGS' 3108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3110ac_compiler_gnu=$ac_cv_c_compiler_gnu 3111 3112 3113echo "$as_me:$LINENO: checking for inline" >&5 3114echo $ECHO_N "checking for inline... $ECHO_C" >&6 3115if test "${ac_cv_c_inline+set}" = set; then 3116 echo $ECHO_N "(cached) $ECHO_C" >&6 3117else 3118 ac_cv_c_inline=no 3119for ac_kw in inline __inline__ __inline; do 3120 cat >conftest.$ac_ext <<_ACEOF 3121/* confdefs.h. */ 3122_ACEOF 3123cat confdefs.h >>conftest.$ac_ext 3124cat >>conftest.$ac_ext <<_ACEOF 3125/* end confdefs.h. */ 3126#ifndef __cplusplus 3127typedef int foo_t; 3128static $ac_kw foo_t static_foo () {return 0; } 3129$ac_kw foo_t foo () {return 0; } 3130#endif 3131 3132_ACEOF 3133rm -f conftest.$ac_objext 3134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3135 (eval $ac_compile) 2>conftest.er1 3136 ac_status=$? 3137 grep -v '^ *+' conftest.er1 >conftest.err 3138 rm -f conftest.er1 3139 cat conftest.err >&5 3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3141 (exit $ac_status); } && 3142 { ac_try='test -z "$ac_c_werror_flag" 3143 || test ! -s conftest.err' 3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3145 (eval $ac_try) 2>&5 3146 ac_status=$? 3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3148 (exit $ac_status); }; } && 3149 { ac_try='test -s conftest.$ac_objext' 3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3151 (eval $ac_try) 2>&5 3152 ac_status=$? 3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3154 (exit $ac_status); }; }; then 3155 ac_cv_c_inline=$ac_kw; break 3156else 3157 echo "$as_me: failed program was:" >&5 3158sed 's/^/| /' conftest.$ac_ext >&5 3159 3160fi 3161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3162done 3163 3164fi 3165echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 3166echo "${ECHO_T}$ac_cv_c_inline" >&6 3167 3168 3169case $ac_cv_c_inline in 3170 inline | yes) ;; 3171 *) 3172 case $ac_cv_c_inline in 3173 no) ac_val=;; 3174 *) ac_val=$ac_cv_c_inline;; 3175 esac 3176 cat >>confdefs.h <<_ACEOF 3177#ifndef __cplusplus 3178#define inline $ac_val 3179#endif 3180_ACEOF 3181 ;; 3182esac 3183 3184 3185# sizeof(char) is 1 by definition. 3186 3187echo "$as_me:$LINENO: checking for egrep" >&5 3188echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3189if test "${ac_cv_prog_egrep+set}" = set; then 3190 echo $ECHO_N "(cached) $ECHO_C" >&6 3191else 3192 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3193 then ac_cv_prog_egrep='grep -E' 3194 else ac_cv_prog_egrep='egrep' 3195 fi 3196fi 3197echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3198echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3199 EGREP=$ac_cv_prog_egrep 3200 3201 3202echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3203echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3204if test "${ac_cv_header_stdc+set}" = set; then 3205 echo $ECHO_N "(cached) $ECHO_C" >&6 3206else 3207 cat >conftest.$ac_ext <<_ACEOF 3208/* confdefs.h. */ 3209_ACEOF 3210cat confdefs.h >>conftest.$ac_ext 3211cat >>conftest.$ac_ext <<_ACEOF 3212/* end confdefs.h. */ 3213#include <stdlib.h> 3214#include <stdarg.h> 3215#include <string.h> 3216#include <float.h> 3217 3218int 3219main () 3220{ 3221 3222 ; 3223 return 0; 3224} 3225_ACEOF 3226rm -f conftest.$ac_objext 3227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3228 (eval $ac_compile) 2>conftest.er1 3229 ac_status=$? 3230 grep -v '^ *+' conftest.er1 >conftest.err 3231 rm -f conftest.er1 3232 cat conftest.err >&5 3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 (exit $ac_status); } && 3235 { ac_try='test -z "$ac_c_werror_flag" 3236 || test ! -s conftest.err' 3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3238 (eval $ac_try) 2>&5 3239 ac_status=$? 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); }; } && 3242 { ac_try='test -s conftest.$ac_objext' 3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3244 (eval $ac_try) 2>&5 3245 ac_status=$? 3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3247 (exit $ac_status); }; }; then 3248 ac_cv_header_stdc=yes 3249else 3250 echo "$as_me: failed program was:" >&5 3251sed 's/^/| /' conftest.$ac_ext >&5 3252 3253ac_cv_header_stdc=no 3254fi 3255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3256 3257if test $ac_cv_header_stdc = yes; then 3258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3259 cat >conftest.$ac_ext <<_ACEOF 3260/* confdefs.h. */ 3261_ACEOF 3262cat confdefs.h >>conftest.$ac_ext 3263cat >>conftest.$ac_ext <<_ACEOF 3264/* end confdefs.h. */ 3265#include <string.h> 3266 3267_ACEOF 3268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3269 $EGREP "memchr" >/dev/null 2>&1; then 3270 : 3271else 3272 ac_cv_header_stdc=no 3273fi 3274rm -f conftest* 3275 3276fi 3277 3278if test $ac_cv_header_stdc = yes; then 3279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3280 cat >conftest.$ac_ext <<_ACEOF 3281/* confdefs.h. */ 3282_ACEOF 3283cat confdefs.h >>conftest.$ac_ext 3284cat >>conftest.$ac_ext <<_ACEOF 3285/* end confdefs.h. */ 3286#include <stdlib.h> 3287 3288_ACEOF 3289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3290 $EGREP "free" >/dev/null 2>&1; then 3291 : 3292else 3293 ac_cv_header_stdc=no 3294fi 3295rm -f conftest* 3296 3297fi 3298 3299if test $ac_cv_header_stdc = yes; then 3300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3301 if test "$cross_compiling" = yes; then 3302 : 3303else 3304 cat >conftest.$ac_ext <<_ACEOF 3305/* confdefs.h. */ 3306_ACEOF 3307cat confdefs.h >>conftest.$ac_ext 3308cat >>conftest.$ac_ext <<_ACEOF 3309/* end confdefs.h. */ 3310#include <ctype.h> 3311#if ((' ' & 0x0FF) == 0x020) 3312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3314#else 3315# define ISLOWER(c) \ 3316 (('a' <= (c) && (c) <= 'i') \ 3317 || ('j' <= (c) && (c) <= 'r') \ 3318 || ('s' <= (c) && (c) <= 'z')) 3319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3320#endif 3321 3322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3323int 3324main () 3325{ 3326 int i; 3327 for (i = 0; i < 256; i++) 3328 if (XOR (islower (i), ISLOWER (i)) 3329 || toupper (i) != TOUPPER (i)) 3330 exit(2); 3331 exit (0); 3332} 3333_ACEOF 3334rm -f conftest$ac_exeext 3335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3336 (eval $ac_link) 2>&5 3337 ac_status=$? 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3341 (eval $ac_try) 2>&5 3342 ac_status=$? 3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3344 (exit $ac_status); }; }; then 3345 : 3346else 3347 echo "$as_me: program exited with status $ac_status" >&5 3348echo "$as_me: failed program was:" >&5 3349sed 's/^/| /' conftest.$ac_ext >&5 3350 3351( exit $ac_status ) 3352ac_cv_header_stdc=no 3353fi 3354rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3355fi 3356fi 3357fi 3358echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3359echo "${ECHO_T}$ac_cv_header_stdc" >&6 3360if test $ac_cv_header_stdc = yes; then 3361 3362cat >>confdefs.h <<\_ACEOF 3363#define STDC_HEADERS 1 3364_ACEOF 3365 3366fi 3367 3368# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3379 inttypes.h stdint.h unistd.h 3380do 3381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3382echo "$as_me:$LINENO: checking for $ac_header" >&5 3383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3384if eval "test \"\${$as_ac_Header+set}\" = set"; then 3385 echo $ECHO_N "(cached) $ECHO_C" >&6 3386else 3387 cat >conftest.$ac_ext <<_ACEOF 3388/* confdefs.h. */ 3389_ACEOF 3390cat confdefs.h >>conftest.$ac_ext 3391cat >>conftest.$ac_ext <<_ACEOF 3392/* end confdefs.h. */ 3393$ac_includes_default 3394 3395#include <$ac_header> 3396_ACEOF 3397rm -f conftest.$ac_objext 3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3399 (eval $ac_compile) 2>conftest.er1 3400 ac_status=$? 3401 grep -v '^ *+' conftest.er1 >conftest.err 3402 rm -f conftest.er1 3403 cat conftest.err >&5 3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3405 (exit $ac_status); } && 3406 { ac_try='test -z "$ac_c_werror_flag" 3407 || test ! -s conftest.err' 3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3409 (eval $ac_try) 2>&5 3410 ac_status=$? 3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3412 (exit $ac_status); }; } && 3413 { ac_try='test -s conftest.$ac_objext' 3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3415 (eval $ac_try) 2>&5 3416 ac_status=$? 3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3418 (exit $ac_status); }; }; then 3419 eval "$as_ac_Header=yes" 3420else 3421 echo "$as_me: failed program was:" >&5 3422sed 's/^/| /' conftest.$ac_ext >&5 3423 3424eval "$as_ac_Header=no" 3425fi 3426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3427fi 3428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3430if test `eval echo '${'$as_ac_Header'}'` = yes; then 3431 cat >>confdefs.h <<_ACEOF 3432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3433_ACEOF 3434 3435fi 3436 3437done 3438 3439 3440echo "$as_me:$LINENO: checking for void *" >&5 3441echo $ECHO_N "checking for void *... $ECHO_C" >&6 3442if test "${ac_cv_type_void_p+set}" = set; then 3443 echo $ECHO_N "(cached) $ECHO_C" >&6 3444else 3445 cat >conftest.$ac_ext <<_ACEOF 3446/* confdefs.h. */ 3447_ACEOF 3448cat confdefs.h >>conftest.$ac_ext 3449cat >>conftest.$ac_ext <<_ACEOF 3450/* end confdefs.h. */ 3451$ac_includes_default 3452int 3453main () 3454{ 3455if ((void * *) 0) 3456 return 0; 3457if (sizeof (void *)) 3458 return 0; 3459 ; 3460 return 0; 3461} 3462_ACEOF 3463rm -f conftest.$ac_objext 3464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3465 (eval $ac_compile) 2>conftest.er1 3466 ac_status=$? 3467 grep -v '^ *+' conftest.er1 >conftest.err 3468 rm -f conftest.er1 3469 cat conftest.err >&5 3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3471 (exit $ac_status); } && 3472 { ac_try='test -z "$ac_c_werror_flag" 3473 || test ! -s conftest.err' 3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3475 (eval $ac_try) 2>&5 3476 ac_status=$? 3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3478 (exit $ac_status); }; } && 3479 { ac_try='test -s conftest.$ac_objext' 3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3481 (eval $ac_try) 2>&5 3482 ac_status=$? 3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3484 (exit $ac_status); }; }; then 3485 ac_cv_type_void_p=yes 3486else 3487 echo "$as_me: failed program was:" >&5 3488sed 's/^/| /' conftest.$ac_ext >&5 3489 3490ac_cv_type_void_p=no 3491fi 3492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3493fi 3494echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 3495echo "${ECHO_T}$ac_cv_type_void_p" >&6 3496 3497echo "$as_me:$LINENO: checking size of void *" >&5 3498echo $ECHO_N "checking size of void *... $ECHO_C" >&6 3499if test "${ac_cv_sizeof_void_p+set}" = set; then 3500 echo $ECHO_N "(cached) $ECHO_C" >&6 3501else 3502 if test "$ac_cv_type_void_p" = yes; then 3503 # The cast to unsigned long works around a bug in the HP C Compiler 3504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3506 # This bug is HP SR number 8606223364. 3507 if test "$cross_compiling" = yes; then 3508 # Depending upon the size, compute the lo and hi bounds. 3509cat >conftest.$ac_ext <<_ACEOF 3510/* confdefs.h. */ 3511_ACEOF 3512cat confdefs.h >>conftest.$ac_ext 3513cat >>conftest.$ac_ext <<_ACEOF 3514/* end confdefs.h. */ 3515$ac_includes_default 3516int 3517main () 3518{ 3519static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; 3520test_array [0] = 0 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526rm -f conftest.$ac_objext 3527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3528 (eval $ac_compile) 2>conftest.er1 3529 ac_status=$? 3530 grep -v '^ *+' conftest.er1 >conftest.err 3531 rm -f conftest.er1 3532 cat conftest.err >&5 3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3534 (exit $ac_status); } && 3535 { ac_try='test -z "$ac_c_werror_flag" 3536 || test ! -s conftest.err' 3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3538 (eval $ac_try) 2>&5 3539 ac_status=$? 3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3541 (exit $ac_status); }; } && 3542 { ac_try='test -s conftest.$ac_objext' 3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3544 (eval $ac_try) 2>&5 3545 ac_status=$? 3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3547 (exit $ac_status); }; }; then 3548 ac_lo=0 ac_mid=0 3549 while :; do 3550 cat >conftest.$ac_ext <<_ACEOF 3551/* confdefs.h. */ 3552_ACEOF 3553cat confdefs.h >>conftest.$ac_ext 3554cat >>conftest.$ac_ext <<_ACEOF 3555/* end confdefs.h. */ 3556$ac_includes_default 3557int 3558main () 3559{ 3560static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 3561test_array [0] = 0 3562 3563 ; 3564 return 0; 3565} 3566_ACEOF 3567rm -f conftest.$ac_objext 3568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3569 (eval $ac_compile) 2>conftest.er1 3570 ac_status=$? 3571 grep -v '^ *+' conftest.er1 >conftest.err 3572 rm -f conftest.er1 3573 cat conftest.err >&5 3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3575 (exit $ac_status); } && 3576 { ac_try='test -z "$ac_c_werror_flag" 3577 || test ! -s conftest.err' 3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3579 (eval $ac_try) 2>&5 3580 ac_status=$? 3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3582 (exit $ac_status); }; } && 3583 { ac_try='test -s conftest.$ac_objext' 3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3585 (eval $ac_try) 2>&5 3586 ac_status=$? 3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3588 (exit $ac_status); }; }; then 3589 ac_hi=$ac_mid; break 3590else 3591 echo "$as_me: failed program was:" >&5 3592sed 's/^/| /' conftest.$ac_ext >&5 3593 3594ac_lo=`expr $ac_mid + 1` 3595 if test $ac_lo -le $ac_mid; then 3596 ac_lo= ac_hi= 3597 break 3598 fi 3599 ac_mid=`expr 2 '*' $ac_mid + 1` 3600fi 3601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3602 done 3603else 3604 echo "$as_me: failed program was:" >&5 3605sed 's/^/| /' conftest.$ac_ext >&5 3606 3607cat >conftest.$ac_ext <<_ACEOF 3608/* confdefs.h. */ 3609_ACEOF 3610cat confdefs.h >>conftest.$ac_ext 3611cat >>conftest.$ac_ext <<_ACEOF 3612/* end confdefs.h. */ 3613$ac_includes_default 3614int 3615main () 3616{ 3617static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; 3618test_array [0] = 0 3619 3620 ; 3621 return 0; 3622} 3623_ACEOF 3624rm -f conftest.$ac_objext 3625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3626 (eval $ac_compile) 2>conftest.er1 3627 ac_status=$? 3628 grep -v '^ *+' conftest.er1 >conftest.err 3629 rm -f conftest.er1 3630 cat conftest.err >&5 3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3632 (exit $ac_status); } && 3633 { ac_try='test -z "$ac_c_werror_flag" 3634 || test ! -s conftest.err' 3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3636 (eval $ac_try) 2>&5 3637 ac_status=$? 3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3639 (exit $ac_status); }; } && 3640 { ac_try='test -s conftest.$ac_objext' 3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3642 (eval $ac_try) 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); }; }; then 3646 ac_hi=-1 ac_mid=-1 3647 while :; do 3648 cat >conftest.$ac_ext <<_ACEOF 3649/* confdefs.h. */ 3650_ACEOF 3651cat confdefs.h >>conftest.$ac_ext 3652cat >>conftest.$ac_ext <<_ACEOF 3653/* end confdefs.h. */ 3654$ac_includes_default 3655int 3656main () 3657{ 3658static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; 3659test_array [0] = 0 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665rm -f conftest.$ac_objext 3666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3667 (eval $ac_compile) 2>conftest.er1 3668 ac_status=$? 3669 grep -v '^ *+' conftest.er1 >conftest.err 3670 rm -f conftest.er1 3671 cat conftest.err >&5 3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3673 (exit $ac_status); } && 3674 { ac_try='test -z "$ac_c_werror_flag" 3675 || test ! -s conftest.err' 3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3677 (eval $ac_try) 2>&5 3678 ac_status=$? 3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3680 (exit $ac_status); }; } && 3681 { ac_try='test -s conftest.$ac_objext' 3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3683 (eval $ac_try) 2>&5 3684 ac_status=$? 3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3686 (exit $ac_status); }; }; then 3687 ac_lo=$ac_mid; break 3688else 3689 echo "$as_me: failed program was:" >&5 3690sed 's/^/| /' conftest.$ac_ext >&5 3691 3692ac_hi=`expr '(' $ac_mid ')' - 1` 3693 if test $ac_mid -le $ac_hi; then 3694 ac_lo= ac_hi= 3695 break 3696 fi 3697 ac_mid=`expr 2 '*' $ac_mid` 3698fi 3699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3700 done 3701else 3702 echo "$as_me: failed program was:" >&5 3703sed 's/^/| /' conftest.$ac_ext >&5 3704 3705ac_lo= ac_hi= 3706fi 3707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3708fi 3709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3710# Binary search between lo and hi bounds. 3711while test "x$ac_lo" != "x$ac_hi"; do 3712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3713 cat >conftest.$ac_ext <<_ACEOF 3714/* confdefs.h. */ 3715_ACEOF 3716cat confdefs.h >>conftest.$ac_ext 3717cat >>conftest.$ac_ext <<_ACEOF 3718/* end confdefs.h. */ 3719$ac_includes_default 3720int 3721main () 3722{ 3723static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 3724test_array [0] = 0 3725 3726 ; 3727 return 0; 3728} 3729_ACEOF 3730rm -f conftest.$ac_objext 3731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3732 (eval $ac_compile) 2>conftest.er1 3733 ac_status=$? 3734 grep -v '^ *+' conftest.er1 >conftest.err 3735 rm -f conftest.er1 3736 cat conftest.err >&5 3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3738 (exit $ac_status); } && 3739 { ac_try='test -z "$ac_c_werror_flag" 3740 || test ! -s conftest.err' 3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3742 (eval $ac_try) 2>&5 3743 ac_status=$? 3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3745 (exit $ac_status); }; } && 3746 { ac_try='test -s conftest.$ac_objext' 3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3748 (eval $ac_try) 2>&5 3749 ac_status=$? 3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3751 (exit $ac_status); }; }; then 3752 ac_hi=$ac_mid 3753else 3754 echo "$as_me: failed program was:" >&5 3755sed 's/^/| /' conftest.$ac_ext >&5 3756 3757ac_lo=`expr '(' $ac_mid ')' + 1` 3758fi 3759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3760done 3761case $ac_lo in 3762?*) ac_cv_sizeof_void_p=$ac_lo;; 3763'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 3764See \`config.log' for more details." >&5 3765echo "$as_me: error: cannot compute sizeof (void *), 77 3766See \`config.log' for more details." >&2;} 3767 { (exit 1); exit 1; }; } ;; 3768esac 3769else 3770 if test "$cross_compiling" = yes; then 3771 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3772See \`config.log' for more details." >&5 3773echo "$as_me: error: cannot run test program while cross compiling 3774See \`config.log' for more details." >&2;} 3775 { (exit 1); exit 1; }; } 3776else 3777 cat >conftest.$ac_ext <<_ACEOF 3778/* confdefs.h. */ 3779_ACEOF 3780cat confdefs.h >>conftest.$ac_ext 3781cat >>conftest.$ac_ext <<_ACEOF 3782/* end confdefs.h. */ 3783$ac_includes_default 3784long longval () { return (long) (sizeof (void *)); } 3785unsigned long ulongval () { return (long) (sizeof (void *)); } 3786#include <stdio.h> 3787#include <stdlib.h> 3788int 3789main () 3790{ 3791 3792 FILE *f = fopen ("conftest.val", "w"); 3793 if (! f) 3794 exit (1); 3795 if (((long) (sizeof (void *))) < 0) 3796 { 3797 long i = longval (); 3798 if (i != ((long) (sizeof (void *)))) 3799 exit (1); 3800 fprintf (f, "%ld\n", i); 3801 } 3802 else 3803 { 3804 unsigned long i = ulongval (); 3805 if (i != ((long) (sizeof (void *)))) 3806 exit (1); 3807 fprintf (f, "%lu\n", i); 3808 } 3809 exit (ferror (f) || fclose (f) != 0); 3810 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815rm -f conftest$ac_exeext 3816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3817 (eval $ac_link) 2>&5 3818 ac_status=$? 3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3822 (eval $ac_try) 2>&5 3823 ac_status=$? 3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3825 (exit $ac_status); }; }; then 3826 ac_cv_sizeof_void_p=`cat conftest.val` 3827else 3828 echo "$as_me: program exited with status $ac_status" >&5 3829echo "$as_me: failed program was:" >&5 3830sed 's/^/| /' conftest.$ac_ext >&5 3831 3832( exit $ac_status ) 3833{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 3834See \`config.log' for more details." >&5 3835echo "$as_me: error: cannot compute sizeof (void *), 77 3836See \`config.log' for more details." >&2;} 3837 { (exit 1); exit 1; }; } 3838fi 3839rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3840fi 3841fi 3842rm -f conftest.val 3843else 3844 ac_cv_sizeof_void_p=0 3845fi 3846fi 3847echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 3848echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 3849cat >>confdefs.h <<_ACEOF 3850#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 3851_ACEOF 3852 3853 3854echo "$as_me:$LINENO: checking for short" >&5 3855echo $ECHO_N "checking for short... $ECHO_C" >&6 3856if test "${ac_cv_type_short+set}" = set; then 3857 echo $ECHO_N "(cached) $ECHO_C" >&6 3858else 3859 cat >conftest.$ac_ext <<_ACEOF 3860/* confdefs.h. */ 3861_ACEOF 3862cat confdefs.h >>conftest.$ac_ext 3863cat >>conftest.$ac_ext <<_ACEOF 3864/* end confdefs.h. */ 3865$ac_includes_default 3866int 3867main () 3868{ 3869if ((short *) 0) 3870 return 0; 3871if (sizeof (short)) 3872 return 0; 3873 ; 3874 return 0; 3875} 3876_ACEOF 3877rm -f conftest.$ac_objext 3878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3879 (eval $ac_compile) 2>conftest.er1 3880 ac_status=$? 3881 grep -v '^ *+' conftest.er1 >conftest.err 3882 rm -f conftest.er1 3883 cat conftest.err >&5 3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3885 (exit $ac_status); } && 3886 { ac_try='test -z "$ac_c_werror_flag" 3887 || test ! -s conftest.err' 3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3889 (eval $ac_try) 2>&5 3890 ac_status=$? 3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); }; } && 3893 { ac_try='test -s conftest.$ac_objext' 3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3895 (eval $ac_try) 2>&5 3896 ac_status=$? 3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3898 (exit $ac_status); }; }; then 3899 ac_cv_type_short=yes 3900else 3901 echo "$as_me: failed program was:" >&5 3902sed 's/^/| /' conftest.$ac_ext >&5 3903 3904ac_cv_type_short=no 3905fi 3906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3907fi 3908echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 3909echo "${ECHO_T}$ac_cv_type_short" >&6 3910 3911echo "$as_me:$LINENO: checking size of short" >&5 3912echo $ECHO_N "checking size of short... $ECHO_C" >&6 3913if test "${ac_cv_sizeof_short+set}" = set; then 3914 echo $ECHO_N "(cached) $ECHO_C" >&6 3915else 3916 if test "$ac_cv_type_short" = yes; then 3917 # The cast to unsigned long works around a bug in the HP C Compiler 3918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3920 # This bug is HP SR number 8606223364. 3921 if test "$cross_compiling" = yes; then 3922 # Depending upon the size, compute the lo and hi bounds. 3923cat >conftest.$ac_ext <<_ACEOF 3924/* confdefs.h. */ 3925_ACEOF 3926cat confdefs.h >>conftest.$ac_ext 3927cat >>conftest.$ac_ext <<_ACEOF 3928/* end confdefs.h. */ 3929$ac_includes_default 3930int 3931main () 3932{ 3933static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 3934test_array [0] = 0 3935 3936 ; 3937 return 0; 3938} 3939_ACEOF 3940rm -f conftest.$ac_objext 3941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3942 (eval $ac_compile) 2>conftest.er1 3943 ac_status=$? 3944 grep -v '^ *+' conftest.er1 >conftest.err 3945 rm -f conftest.er1 3946 cat conftest.err >&5 3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3948 (exit $ac_status); } && 3949 { ac_try='test -z "$ac_c_werror_flag" 3950 || test ! -s conftest.err' 3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3952 (eval $ac_try) 2>&5 3953 ac_status=$? 3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3955 (exit $ac_status); }; } && 3956 { ac_try='test -s conftest.$ac_objext' 3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3958 (eval $ac_try) 2>&5 3959 ac_status=$? 3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3961 (exit $ac_status); }; }; then 3962 ac_lo=0 ac_mid=0 3963 while :; do 3964 cat >conftest.$ac_ext <<_ACEOF 3965/* confdefs.h. */ 3966_ACEOF 3967cat confdefs.h >>conftest.$ac_ext 3968cat >>conftest.$ac_ext <<_ACEOF 3969/* end confdefs.h. */ 3970$ac_includes_default 3971int 3972main () 3973{ 3974static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 3975test_array [0] = 0 3976 3977 ; 3978 return 0; 3979} 3980_ACEOF 3981rm -f conftest.$ac_objext 3982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3983 (eval $ac_compile) 2>conftest.er1 3984 ac_status=$? 3985 grep -v '^ *+' conftest.er1 >conftest.err 3986 rm -f conftest.er1 3987 cat conftest.err >&5 3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3989 (exit $ac_status); } && 3990 { ac_try='test -z "$ac_c_werror_flag" 3991 || test ! -s conftest.err' 3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3993 (eval $ac_try) 2>&5 3994 ac_status=$? 3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3996 (exit $ac_status); }; } && 3997 { ac_try='test -s conftest.$ac_objext' 3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3999 (eval $ac_try) 2>&5 4000 ac_status=$? 4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4002 (exit $ac_status); }; }; then 4003 ac_hi=$ac_mid; break 4004else 4005 echo "$as_me: failed program was:" >&5 4006sed 's/^/| /' conftest.$ac_ext >&5 4007 4008ac_lo=`expr $ac_mid + 1` 4009 if test $ac_lo -le $ac_mid; then 4010 ac_lo= ac_hi= 4011 break 4012 fi 4013 ac_mid=`expr 2 '*' $ac_mid + 1` 4014fi 4015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4016 done 4017else 4018 echo "$as_me: failed program was:" >&5 4019sed 's/^/| /' conftest.$ac_ext >&5 4020 4021cat >conftest.$ac_ext <<_ACEOF 4022/* confdefs.h. */ 4023_ACEOF 4024cat confdefs.h >>conftest.$ac_ext 4025cat >>conftest.$ac_ext <<_ACEOF 4026/* end confdefs.h. */ 4027$ac_includes_default 4028int 4029main () 4030{ 4031static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 4032test_array [0] = 0 4033 4034 ; 4035 return 0; 4036} 4037_ACEOF 4038rm -f conftest.$ac_objext 4039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4040 (eval $ac_compile) 2>conftest.er1 4041 ac_status=$? 4042 grep -v '^ *+' conftest.er1 >conftest.err 4043 rm -f conftest.er1 4044 cat conftest.err >&5 4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4046 (exit $ac_status); } && 4047 { ac_try='test -z "$ac_c_werror_flag" 4048 || test ! -s conftest.err' 4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4050 (eval $ac_try) 2>&5 4051 ac_status=$? 4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4053 (exit $ac_status); }; } && 4054 { ac_try='test -s conftest.$ac_objext' 4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4056 (eval $ac_try) 2>&5 4057 ac_status=$? 4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4059 (exit $ac_status); }; }; then 4060 ac_hi=-1 ac_mid=-1 4061 while :; do 4062 cat >conftest.$ac_ext <<_ACEOF 4063/* confdefs.h. */ 4064_ACEOF 4065cat confdefs.h >>conftest.$ac_ext 4066cat >>conftest.$ac_ext <<_ACEOF 4067/* end confdefs.h. */ 4068$ac_includes_default 4069int 4070main () 4071{ 4072static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 4073test_array [0] = 0 4074 4075 ; 4076 return 0; 4077} 4078_ACEOF 4079rm -f conftest.$ac_objext 4080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4081 (eval $ac_compile) 2>conftest.er1 4082 ac_status=$? 4083 grep -v '^ *+' conftest.er1 >conftest.err 4084 rm -f conftest.er1 4085 cat conftest.err >&5 4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4087 (exit $ac_status); } && 4088 { ac_try='test -z "$ac_c_werror_flag" 4089 || test ! -s conftest.err' 4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4091 (eval $ac_try) 2>&5 4092 ac_status=$? 4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4094 (exit $ac_status); }; } && 4095 { ac_try='test -s conftest.$ac_objext' 4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4097 (eval $ac_try) 2>&5 4098 ac_status=$? 4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4100 (exit $ac_status); }; }; then 4101 ac_lo=$ac_mid; break 4102else 4103 echo "$as_me: failed program was:" >&5 4104sed 's/^/| /' conftest.$ac_ext >&5 4105 4106ac_hi=`expr '(' $ac_mid ')' - 1` 4107 if test $ac_mid -le $ac_hi; then 4108 ac_lo= ac_hi= 4109 break 4110 fi 4111 ac_mid=`expr 2 '*' $ac_mid` 4112fi 4113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4114 done 4115else 4116 echo "$as_me: failed program was:" >&5 4117sed 's/^/| /' conftest.$ac_ext >&5 4118 4119ac_lo= ac_hi= 4120fi 4121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4122fi 4123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4124# Binary search between lo and hi bounds. 4125while test "x$ac_lo" != "x$ac_hi"; do 4126 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4127 cat >conftest.$ac_ext <<_ACEOF 4128/* confdefs.h. */ 4129_ACEOF 4130cat confdefs.h >>conftest.$ac_ext 4131cat >>conftest.$ac_ext <<_ACEOF 4132/* end confdefs.h. */ 4133$ac_includes_default 4134int 4135main () 4136{ 4137static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4138test_array [0] = 0 4139 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144rm -f conftest.$ac_objext 4145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4146 (eval $ac_compile) 2>conftest.er1 4147 ac_status=$? 4148 grep -v '^ *+' conftest.er1 >conftest.err 4149 rm -f conftest.er1 4150 cat conftest.err >&5 4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4152 (exit $ac_status); } && 4153 { ac_try='test -z "$ac_c_werror_flag" 4154 || test ! -s conftest.err' 4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4156 (eval $ac_try) 2>&5 4157 ac_status=$? 4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159 (exit $ac_status); }; } && 4160 { ac_try='test -s conftest.$ac_objext' 4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4162 (eval $ac_try) 2>&5 4163 ac_status=$? 4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4165 (exit $ac_status); }; }; then 4166 ac_hi=$ac_mid 4167else 4168 echo "$as_me: failed program was:" >&5 4169sed 's/^/| /' conftest.$ac_ext >&5 4170 4171ac_lo=`expr '(' $ac_mid ')' + 1` 4172fi 4173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4174done 4175case $ac_lo in 4176?*) ac_cv_sizeof_short=$ac_lo;; 4177'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 4178See \`config.log' for more details." >&5 4179echo "$as_me: error: cannot compute sizeof (short), 77 4180See \`config.log' for more details." >&2;} 4181 { (exit 1); exit 1; }; } ;; 4182esac 4183else 4184 if test "$cross_compiling" = yes; then 4185 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4186See \`config.log' for more details." >&5 4187echo "$as_me: error: cannot run test program while cross compiling 4188See \`config.log' for more details." >&2;} 4189 { (exit 1); exit 1; }; } 4190else 4191 cat >conftest.$ac_ext <<_ACEOF 4192/* confdefs.h. */ 4193_ACEOF 4194cat confdefs.h >>conftest.$ac_ext 4195cat >>conftest.$ac_ext <<_ACEOF 4196/* end confdefs.h. */ 4197$ac_includes_default 4198long longval () { return (long) (sizeof (short)); } 4199unsigned long ulongval () { return (long) (sizeof (short)); } 4200#include <stdio.h> 4201#include <stdlib.h> 4202int 4203main () 4204{ 4205 4206 FILE *f = fopen ("conftest.val", "w"); 4207 if (! f) 4208 exit (1); 4209 if (((long) (sizeof (short))) < 0) 4210 { 4211 long i = longval (); 4212 if (i != ((long) (sizeof (short)))) 4213 exit (1); 4214 fprintf (f, "%ld\n", i); 4215 } 4216 else 4217 { 4218 unsigned long i = ulongval (); 4219 if (i != ((long) (sizeof (short)))) 4220 exit (1); 4221 fprintf (f, "%lu\n", i); 4222 } 4223 exit (ferror (f) || fclose (f) != 0); 4224 4225 ; 4226 return 0; 4227} 4228_ACEOF 4229rm -f conftest$ac_exeext 4230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4231 (eval $ac_link) 2>&5 4232 ac_status=$? 4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4236 (eval $ac_try) 2>&5 4237 ac_status=$? 4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); }; }; then 4240 ac_cv_sizeof_short=`cat conftest.val` 4241else 4242 echo "$as_me: program exited with status $ac_status" >&5 4243echo "$as_me: failed program was:" >&5 4244sed 's/^/| /' conftest.$ac_ext >&5 4245 4246( exit $ac_status ) 4247{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 4248See \`config.log' for more details." >&5 4249echo "$as_me: error: cannot compute sizeof (short), 77 4250See \`config.log' for more details." >&2;} 4251 { (exit 1); exit 1; }; } 4252fi 4253rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4254fi 4255fi 4256rm -f conftest.val 4257else 4258 ac_cv_sizeof_short=0 4259fi 4260fi 4261echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 4262echo "${ECHO_T}$ac_cv_sizeof_short" >&6 4263cat >>confdefs.h <<_ACEOF 4264#define SIZEOF_SHORT $ac_cv_sizeof_short 4265_ACEOF 4266 4267 4268echo "$as_me:$LINENO: checking for int" >&5 4269echo $ECHO_N "checking for int... $ECHO_C" >&6 4270if test "${ac_cv_type_int+set}" = set; then 4271 echo $ECHO_N "(cached) $ECHO_C" >&6 4272else 4273 cat >conftest.$ac_ext <<_ACEOF 4274/* confdefs.h. */ 4275_ACEOF 4276cat confdefs.h >>conftest.$ac_ext 4277cat >>conftest.$ac_ext <<_ACEOF 4278/* end confdefs.h. */ 4279$ac_includes_default 4280int 4281main () 4282{ 4283if ((int *) 0) 4284 return 0; 4285if (sizeof (int)) 4286 return 0; 4287 ; 4288 return 0; 4289} 4290_ACEOF 4291rm -f conftest.$ac_objext 4292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4293 (eval $ac_compile) 2>conftest.er1 4294 ac_status=$? 4295 grep -v '^ *+' conftest.er1 >conftest.err 4296 rm -f conftest.er1 4297 cat conftest.err >&5 4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4299 (exit $ac_status); } && 4300 { ac_try='test -z "$ac_c_werror_flag" 4301 || test ! -s conftest.err' 4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4303 (eval $ac_try) 2>&5 4304 ac_status=$? 4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4306 (exit $ac_status); }; } && 4307 { ac_try='test -s conftest.$ac_objext' 4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4309 (eval $ac_try) 2>&5 4310 ac_status=$? 4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4312 (exit $ac_status); }; }; then 4313 ac_cv_type_int=yes 4314else 4315 echo "$as_me: failed program was:" >&5 4316sed 's/^/| /' conftest.$ac_ext >&5 4317 4318ac_cv_type_int=no 4319fi 4320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4321fi 4322echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 4323echo "${ECHO_T}$ac_cv_type_int" >&6 4324 4325echo "$as_me:$LINENO: checking size of int" >&5 4326echo $ECHO_N "checking size of int... $ECHO_C" >&6 4327if test "${ac_cv_sizeof_int+set}" = set; then 4328 echo $ECHO_N "(cached) $ECHO_C" >&6 4329else 4330 if test "$ac_cv_type_int" = yes; then 4331 # The cast to unsigned long works around a bug in the HP C Compiler 4332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4334 # This bug is HP SR number 8606223364. 4335 if test "$cross_compiling" = yes; then 4336 # Depending upon the size, compute the lo and hi bounds. 4337cat >conftest.$ac_ext <<_ACEOF 4338/* confdefs.h. */ 4339_ACEOF 4340cat confdefs.h >>conftest.$ac_ext 4341cat >>conftest.$ac_ext <<_ACEOF 4342/* end confdefs.h. */ 4343$ac_includes_default 4344int 4345main () 4346{ 4347static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 4348test_array [0] = 0 4349 4350 ; 4351 return 0; 4352} 4353_ACEOF 4354rm -f conftest.$ac_objext 4355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4356 (eval $ac_compile) 2>conftest.er1 4357 ac_status=$? 4358 grep -v '^ *+' conftest.er1 >conftest.err 4359 rm -f conftest.er1 4360 cat conftest.err >&5 4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 (exit $ac_status); } && 4363 { ac_try='test -z "$ac_c_werror_flag" 4364 || test ! -s conftest.err' 4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4366 (eval $ac_try) 2>&5 4367 ac_status=$? 4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4369 (exit $ac_status); }; } && 4370 { ac_try='test -s conftest.$ac_objext' 4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4372 (eval $ac_try) 2>&5 4373 ac_status=$? 4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4375 (exit $ac_status); }; }; then 4376 ac_lo=0 ac_mid=0 4377 while :; do 4378 cat >conftest.$ac_ext <<_ACEOF 4379/* confdefs.h. */ 4380_ACEOF 4381cat confdefs.h >>conftest.$ac_ext 4382cat >>conftest.$ac_ext <<_ACEOF 4383/* end confdefs.h. */ 4384$ac_includes_default 4385int 4386main () 4387{ 4388static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4389test_array [0] = 0 4390 4391 ; 4392 return 0; 4393} 4394_ACEOF 4395rm -f conftest.$ac_objext 4396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4397 (eval $ac_compile) 2>conftest.er1 4398 ac_status=$? 4399 grep -v '^ *+' conftest.er1 >conftest.err 4400 rm -f conftest.er1 4401 cat conftest.err >&5 4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4403 (exit $ac_status); } && 4404 { ac_try='test -z "$ac_c_werror_flag" 4405 || test ! -s conftest.err' 4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4407 (eval $ac_try) 2>&5 4408 ac_status=$? 4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4410 (exit $ac_status); }; } && 4411 { ac_try='test -s conftest.$ac_objext' 4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4413 (eval $ac_try) 2>&5 4414 ac_status=$? 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); }; }; then 4417 ac_hi=$ac_mid; break 4418else 4419 echo "$as_me: failed program was:" >&5 4420sed 's/^/| /' conftest.$ac_ext >&5 4421 4422ac_lo=`expr $ac_mid + 1` 4423 if test $ac_lo -le $ac_mid; then 4424 ac_lo= ac_hi= 4425 break 4426 fi 4427 ac_mid=`expr 2 '*' $ac_mid + 1` 4428fi 4429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4430 done 4431else 4432 echo "$as_me: failed program was:" >&5 4433sed 's/^/| /' conftest.$ac_ext >&5 4434 4435cat >conftest.$ac_ext <<_ACEOF 4436/* confdefs.h. */ 4437_ACEOF 4438cat confdefs.h >>conftest.$ac_ext 4439cat >>conftest.$ac_ext <<_ACEOF 4440/* end confdefs.h. */ 4441$ac_includes_default 4442int 4443main () 4444{ 4445static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 4446test_array [0] = 0 4447 4448 ; 4449 return 0; 4450} 4451_ACEOF 4452rm -f conftest.$ac_objext 4453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4454 (eval $ac_compile) 2>conftest.er1 4455 ac_status=$? 4456 grep -v '^ *+' conftest.er1 >conftest.err 4457 rm -f conftest.er1 4458 cat conftest.err >&5 4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4460 (exit $ac_status); } && 4461 { ac_try='test -z "$ac_c_werror_flag" 4462 || test ! -s conftest.err' 4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4464 (eval $ac_try) 2>&5 4465 ac_status=$? 4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4467 (exit $ac_status); }; } && 4468 { ac_try='test -s conftest.$ac_objext' 4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4470 (eval $ac_try) 2>&5 4471 ac_status=$? 4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4473 (exit $ac_status); }; }; then 4474 ac_hi=-1 ac_mid=-1 4475 while :; do 4476 cat >conftest.$ac_ext <<_ACEOF 4477/* confdefs.h. */ 4478_ACEOF 4479cat confdefs.h >>conftest.$ac_ext 4480cat >>conftest.$ac_ext <<_ACEOF 4481/* end confdefs.h. */ 4482$ac_includes_default 4483int 4484main () 4485{ 4486static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 4487test_array [0] = 0 4488 4489 ; 4490 return 0; 4491} 4492_ACEOF 4493rm -f conftest.$ac_objext 4494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4495 (eval $ac_compile) 2>conftest.er1 4496 ac_status=$? 4497 grep -v '^ *+' conftest.er1 >conftest.err 4498 rm -f conftest.er1 4499 cat conftest.err >&5 4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4501 (exit $ac_status); } && 4502 { ac_try='test -z "$ac_c_werror_flag" 4503 || test ! -s conftest.err' 4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4505 (eval $ac_try) 2>&5 4506 ac_status=$? 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); }; } && 4509 { ac_try='test -s conftest.$ac_objext' 4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4511 (eval $ac_try) 2>&5 4512 ac_status=$? 4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4514 (exit $ac_status); }; }; then 4515 ac_lo=$ac_mid; break 4516else 4517 echo "$as_me: failed program was:" >&5 4518sed 's/^/| /' conftest.$ac_ext >&5 4519 4520ac_hi=`expr '(' $ac_mid ')' - 1` 4521 if test $ac_mid -le $ac_hi; then 4522 ac_lo= ac_hi= 4523 break 4524 fi 4525 ac_mid=`expr 2 '*' $ac_mid` 4526fi 4527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4528 done 4529else 4530 echo "$as_me: failed program was:" >&5 4531sed 's/^/| /' conftest.$ac_ext >&5 4532 4533ac_lo= ac_hi= 4534fi 4535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4536fi 4537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4538# Binary search between lo and hi bounds. 4539while test "x$ac_lo" != "x$ac_hi"; do 4540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4541 cat >conftest.$ac_ext <<_ACEOF 4542/* confdefs.h. */ 4543_ACEOF 4544cat confdefs.h >>conftest.$ac_ext 4545cat >>conftest.$ac_ext <<_ACEOF 4546/* end confdefs.h. */ 4547$ac_includes_default 4548int 4549main () 4550{ 4551static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4552test_array [0] = 0 4553 4554 ; 4555 return 0; 4556} 4557_ACEOF 4558rm -f conftest.$ac_objext 4559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4560 (eval $ac_compile) 2>conftest.er1 4561 ac_status=$? 4562 grep -v '^ *+' conftest.er1 >conftest.err 4563 rm -f conftest.er1 4564 cat conftest.err >&5 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); } && 4567 { ac_try='test -z "$ac_c_werror_flag" 4568 || test ! -s conftest.err' 4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4570 (eval $ac_try) 2>&5 4571 ac_status=$? 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); }; } && 4574 { ac_try='test -s conftest.$ac_objext' 4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4576 (eval $ac_try) 2>&5 4577 ac_status=$? 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4579 (exit $ac_status); }; }; then 4580 ac_hi=$ac_mid 4581else 4582 echo "$as_me: failed program was:" >&5 4583sed 's/^/| /' conftest.$ac_ext >&5 4584 4585ac_lo=`expr '(' $ac_mid ')' + 1` 4586fi 4587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4588done 4589case $ac_lo in 4590?*) ac_cv_sizeof_int=$ac_lo;; 4591'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4592See \`config.log' for more details." >&5 4593echo "$as_me: error: cannot compute sizeof (int), 77 4594See \`config.log' for more details." >&2;} 4595 { (exit 1); exit 1; }; } ;; 4596esac 4597else 4598 if test "$cross_compiling" = yes; then 4599 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4600See \`config.log' for more details." >&5 4601echo "$as_me: error: cannot run test program while cross compiling 4602See \`config.log' for more details." >&2;} 4603 { (exit 1); exit 1; }; } 4604else 4605 cat >conftest.$ac_ext <<_ACEOF 4606/* confdefs.h. */ 4607_ACEOF 4608cat confdefs.h >>conftest.$ac_ext 4609cat >>conftest.$ac_ext <<_ACEOF 4610/* end confdefs.h. */ 4611$ac_includes_default 4612long longval () { return (long) (sizeof (int)); } 4613unsigned long ulongval () { return (long) (sizeof (int)); } 4614#include <stdio.h> 4615#include <stdlib.h> 4616int 4617main () 4618{ 4619 4620 FILE *f = fopen ("conftest.val", "w"); 4621 if (! f) 4622 exit (1); 4623 if (((long) (sizeof (int))) < 0) 4624 { 4625 long i = longval (); 4626 if (i != ((long) (sizeof (int)))) 4627 exit (1); 4628 fprintf (f, "%ld\n", i); 4629 } 4630 else 4631 { 4632 unsigned long i = ulongval (); 4633 if (i != ((long) (sizeof (int)))) 4634 exit (1); 4635 fprintf (f, "%lu\n", i); 4636 } 4637 exit (ferror (f) || fclose (f) != 0); 4638 4639 ; 4640 return 0; 4641} 4642_ACEOF 4643rm -f conftest$ac_exeext 4644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4645 (eval $ac_link) 2>&5 4646 ac_status=$? 4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4650 (eval $ac_try) 2>&5 4651 ac_status=$? 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4653 (exit $ac_status); }; }; then 4654 ac_cv_sizeof_int=`cat conftest.val` 4655else 4656 echo "$as_me: program exited with status $ac_status" >&5 4657echo "$as_me: failed program was:" >&5 4658sed 's/^/| /' conftest.$ac_ext >&5 4659 4660( exit $ac_status ) 4661{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4662See \`config.log' for more details." >&5 4663echo "$as_me: error: cannot compute sizeof (int), 77 4664See \`config.log' for more details." >&2;} 4665 { (exit 1); exit 1; }; } 4666fi 4667rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4668fi 4669fi 4670rm -f conftest.val 4671else 4672 ac_cv_sizeof_int=0 4673fi 4674fi 4675echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 4676echo "${ECHO_T}$ac_cv_sizeof_int" >&6 4677cat >>confdefs.h <<_ACEOF 4678#define SIZEOF_INT $ac_cv_sizeof_int 4679_ACEOF 4680 4681 4682echo "$as_me:$LINENO: checking for long" >&5 4683echo $ECHO_N "checking for long... $ECHO_C" >&6 4684if test "${ac_cv_type_long+set}" = set; then 4685 echo $ECHO_N "(cached) $ECHO_C" >&6 4686else 4687 cat >conftest.$ac_ext <<_ACEOF 4688/* confdefs.h. */ 4689_ACEOF 4690cat confdefs.h >>conftest.$ac_ext 4691cat >>conftest.$ac_ext <<_ACEOF 4692/* end confdefs.h. */ 4693$ac_includes_default 4694int 4695main () 4696{ 4697if ((long *) 0) 4698 return 0; 4699if (sizeof (long)) 4700 return 0; 4701 ; 4702 return 0; 4703} 4704_ACEOF 4705rm -f conftest.$ac_objext 4706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4707 (eval $ac_compile) 2>conftest.er1 4708 ac_status=$? 4709 grep -v '^ *+' conftest.er1 >conftest.err 4710 rm -f conftest.er1 4711 cat conftest.err >&5 4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4713 (exit $ac_status); } && 4714 { ac_try='test -z "$ac_c_werror_flag" 4715 || test ! -s conftest.err' 4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4717 (eval $ac_try) 2>&5 4718 ac_status=$? 4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4720 (exit $ac_status); }; } && 4721 { ac_try='test -s conftest.$ac_objext' 4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4723 (eval $ac_try) 2>&5 4724 ac_status=$? 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); }; }; then 4727 ac_cv_type_long=yes 4728else 4729 echo "$as_me: failed program was:" >&5 4730sed 's/^/| /' conftest.$ac_ext >&5 4731 4732ac_cv_type_long=no 4733fi 4734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4735fi 4736echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 4737echo "${ECHO_T}$ac_cv_type_long" >&6 4738 4739echo "$as_me:$LINENO: checking size of long" >&5 4740echo $ECHO_N "checking size of long... $ECHO_C" >&6 4741if test "${ac_cv_sizeof_long+set}" = set; then 4742 echo $ECHO_N "(cached) $ECHO_C" >&6 4743else 4744 if test "$ac_cv_type_long" = yes; then 4745 # The cast to unsigned long works around a bug in the HP C Compiler 4746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4748 # This bug is HP SR number 8606223364. 4749 if test "$cross_compiling" = yes; then 4750 # Depending upon the size, compute the lo and hi bounds. 4751cat >conftest.$ac_ext <<_ACEOF 4752/* confdefs.h. */ 4753_ACEOF 4754cat confdefs.h >>conftest.$ac_ext 4755cat >>conftest.$ac_ext <<_ACEOF 4756/* end confdefs.h. */ 4757$ac_includes_default 4758int 4759main () 4760{ 4761static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 4762test_array [0] = 0 4763 4764 ; 4765 return 0; 4766} 4767_ACEOF 4768rm -f conftest.$ac_objext 4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4770 (eval $ac_compile) 2>conftest.er1 4771 ac_status=$? 4772 grep -v '^ *+' conftest.er1 >conftest.err 4773 rm -f conftest.er1 4774 cat conftest.err >&5 4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4776 (exit $ac_status); } && 4777 { ac_try='test -z "$ac_c_werror_flag" 4778 || test ! -s conftest.err' 4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4780 (eval $ac_try) 2>&5 4781 ac_status=$? 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); }; } && 4784 { ac_try='test -s conftest.$ac_objext' 4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4786 (eval $ac_try) 2>&5 4787 ac_status=$? 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); }; }; then 4790 ac_lo=0 ac_mid=0 4791 while :; do 4792 cat >conftest.$ac_ext <<_ACEOF 4793/* confdefs.h. */ 4794_ACEOF 4795cat confdefs.h >>conftest.$ac_ext 4796cat >>conftest.$ac_ext <<_ACEOF 4797/* end confdefs.h. */ 4798$ac_includes_default 4799int 4800main () 4801{ 4802static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 4803test_array [0] = 0 4804 4805 ; 4806 return 0; 4807} 4808_ACEOF 4809rm -f conftest.$ac_objext 4810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4811 (eval $ac_compile) 2>conftest.er1 4812 ac_status=$? 4813 grep -v '^ *+' conftest.er1 >conftest.err 4814 rm -f conftest.er1 4815 cat conftest.err >&5 4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4817 (exit $ac_status); } && 4818 { ac_try='test -z "$ac_c_werror_flag" 4819 || test ! -s conftest.err' 4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4821 (eval $ac_try) 2>&5 4822 ac_status=$? 4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4824 (exit $ac_status); }; } && 4825 { ac_try='test -s conftest.$ac_objext' 4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4827 (eval $ac_try) 2>&5 4828 ac_status=$? 4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4830 (exit $ac_status); }; }; then 4831 ac_hi=$ac_mid; break 4832else 4833 echo "$as_me: failed program was:" >&5 4834sed 's/^/| /' conftest.$ac_ext >&5 4835 4836ac_lo=`expr $ac_mid + 1` 4837 if test $ac_lo -le $ac_mid; then 4838 ac_lo= ac_hi= 4839 break 4840 fi 4841 ac_mid=`expr 2 '*' $ac_mid + 1` 4842fi 4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4844 done 4845else 4846 echo "$as_me: failed program was:" >&5 4847sed 's/^/| /' conftest.$ac_ext >&5 4848 4849cat >conftest.$ac_ext <<_ACEOF 4850/* confdefs.h. */ 4851_ACEOF 4852cat confdefs.h >>conftest.$ac_ext 4853cat >>conftest.$ac_ext <<_ACEOF 4854/* end confdefs.h. */ 4855$ac_includes_default 4856int 4857main () 4858{ 4859static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 4860test_array [0] = 0 4861 4862 ; 4863 return 0; 4864} 4865_ACEOF 4866rm -f conftest.$ac_objext 4867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4868 (eval $ac_compile) 2>conftest.er1 4869 ac_status=$? 4870 grep -v '^ *+' conftest.er1 >conftest.err 4871 rm -f conftest.er1 4872 cat conftest.err >&5 4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4874 (exit $ac_status); } && 4875 { ac_try='test -z "$ac_c_werror_flag" 4876 || test ! -s conftest.err' 4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4878 (eval $ac_try) 2>&5 4879 ac_status=$? 4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4881 (exit $ac_status); }; } && 4882 { ac_try='test -s conftest.$ac_objext' 4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4884 (eval $ac_try) 2>&5 4885 ac_status=$? 4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4887 (exit $ac_status); }; }; then 4888 ac_hi=-1 ac_mid=-1 4889 while :; do 4890 cat >conftest.$ac_ext <<_ACEOF 4891/* confdefs.h. */ 4892_ACEOF 4893cat confdefs.h >>conftest.$ac_ext 4894cat >>conftest.$ac_ext <<_ACEOF 4895/* end confdefs.h. */ 4896$ac_includes_default 4897int 4898main () 4899{ 4900static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 4901test_array [0] = 0 4902 4903 ; 4904 return 0; 4905} 4906_ACEOF 4907rm -f conftest.$ac_objext 4908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4909 (eval $ac_compile) 2>conftest.er1 4910 ac_status=$? 4911 grep -v '^ *+' conftest.er1 >conftest.err 4912 rm -f conftest.er1 4913 cat conftest.err >&5 4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4915 (exit $ac_status); } && 4916 { ac_try='test -z "$ac_c_werror_flag" 4917 || test ! -s conftest.err' 4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4919 (eval $ac_try) 2>&5 4920 ac_status=$? 4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4922 (exit $ac_status); }; } && 4923 { ac_try='test -s conftest.$ac_objext' 4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4925 (eval $ac_try) 2>&5 4926 ac_status=$? 4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4928 (exit $ac_status); }; }; then 4929 ac_lo=$ac_mid; break 4930else 4931 echo "$as_me: failed program was:" >&5 4932sed 's/^/| /' conftest.$ac_ext >&5 4933 4934ac_hi=`expr '(' $ac_mid ')' - 1` 4935 if test $ac_mid -le $ac_hi; then 4936 ac_lo= ac_hi= 4937 break 4938 fi 4939 ac_mid=`expr 2 '*' $ac_mid` 4940fi 4941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4942 done 4943else 4944 echo "$as_me: failed program was:" >&5 4945sed 's/^/| /' conftest.$ac_ext >&5 4946 4947ac_lo= ac_hi= 4948fi 4949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4950fi 4951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4952# Binary search between lo and hi bounds. 4953while test "x$ac_lo" != "x$ac_hi"; do 4954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4955 cat >conftest.$ac_ext <<_ACEOF 4956/* confdefs.h. */ 4957_ACEOF 4958cat confdefs.h >>conftest.$ac_ext 4959cat >>conftest.$ac_ext <<_ACEOF 4960/* end confdefs.h. */ 4961$ac_includes_default 4962int 4963main () 4964{ 4965static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 4966test_array [0] = 0 4967 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972rm -f conftest.$ac_objext 4973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4974 (eval $ac_compile) 2>conftest.er1 4975 ac_status=$? 4976 grep -v '^ *+' conftest.er1 >conftest.err 4977 rm -f conftest.er1 4978 cat conftest.err >&5 4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4980 (exit $ac_status); } && 4981 { ac_try='test -z "$ac_c_werror_flag" 4982 || test ! -s conftest.err' 4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4984 (eval $ac_try) 2>&5 4985 ac_status=$? 4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4987 (exit $ac_status); }; } && 4988 { ac_try='test -s conftest.$ac_objext' 4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4990 (eval $ac_try) 2>&5 4991 ac_status=$? 4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 (exit $ac_status); }; }; then 4994 ac_hi=$ac_mid 4995else 4996 echo "$as_me: failed program was:" >&5 4997sed 's/^/| /' conftest.$ac_ext >&5 4998 4999ac_lo=`expr '(' $ac_mid ')' + 1` 5000fi 5001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5002done 5003case $ac_lo in 5004?*) ac_cv_sizeof_long=$ac_lo;; 5005'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5006See \`config.log' for more details." >&5 5007echo "$as_me: error: cannot compute sizeof (long), 77 5008See \`config.log' for more details." >&2;} 5009 { (exit 1); exit 1; }; } ;; 5010esac 5011else 5012 if test "$cross_compiling" = yes; then 5013 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5014See \`config.log' for more details." >&5 5015echo "$as_me: error: cannot run test program while cross compiling 5016See \`config.log' for more details." >&2;} 5017 { (exit 1); exit 1; }; } 5018else 5019 cat >conftest.$ac_ext <<_ACEOF 5020/* confdefs.h. */ 5021_ACEOF 5022cat confdefs.h >>conftest.$ac_ext 5023cat >>conftest.$ac_ext <<_ACEOF 5024/* end confdefs.h. */ 5025$ac_includes_default 5026long longval () { return (long) (sizeof (long)); } 5027unsigned long ulongval () { return (long) (sizeof (long)); } 5028#include <stdio.h> 5029#include <stdlib.h> 5030int 5031main () 5032{ 5033 5034 FILE *f = fopen ("conftest.val", "w"); 5035 if (! f) 5036 exit (1); 5037 if (((long) (sizeof (long))) < 0) 5038 { 5039 long i = longval (); 5040 if (i != ((long) (sizeof (long)))) 5041 exit (1); 5042 fprintf (f, "%ld\n", i); 5043 } 5044 else 5045 { 5046 unsigned long i = ulongval (); 5047 if (i != ((long) (sizeof (long)))) 5048 exit (1); 5049 fprintf (f, "%lu\n", i); 5050 } 5051 exit (ferror (f) || fclose (f) != 0); 5052 5053 ; 5054 return 0; 5055} 5056_ACEOF 5057rm -f conftest$ac_exeext 5058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5059 (eval $ac_link) 2>&5 5060 ac_status=$? 5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5064 (eval $ac_try) 2>&5 5065 ac_status=$? 5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5067 (exit $ac_status); }; }; then 5068 ac_cv_sizeof_long=`cat conftest.val` 5069else 5070 echo "$as_me: program exited with status $ac_status" >&5 5071echo "$as_me: failed program was:" >&5 5072sed 's/^/| /' conftest.$ac_ext >&5 5073 5074( exit $ac_status ) 5075{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5076See \`config.log' for more details." >&5 5077echo "$as_me: error: cannot compute sizeof (long), 77 5078See \`config.log' for more details." >&2;} 5079 { (exit 1); exit 1; }; } 5080fi 5081rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5082fi 5083fi 5084rm -f conftest.val 5085else 5086 ac_cv_sizeof_long=0 5087fi 5088fi 5089echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 5090echo "${ECHO_T}$ac_cv_sizeof_long" >&6 5091cat >>confdefs.h <<_ACEOF 5092#define SIZEOF_LONG $ac_cv_sizeof_long 5093_ACEOF 5094 5095 5096echo "$as_me:$LINENO: checking for long long" >&5 5097echo $ECHO_N "checking for long long... $ECHO_C" >&6 5098if test "${ac_cv_type_long_long+set}" = set; then 5099 echo $ECHO_N "(cached) $ECHO_C" >&6 5100else 5101 cat >conftest.$ac_ext <<_ACEOF 5102/* confdefs.h. */ 5103_ACEOF 5104cat confdefs.h >>conftest.$ac_ext 5105cat >>conftest.$ac_ext <<_ACEOF 5106/* end confdefs.h. */ 5107$ac_includes_default 5108int 5109main () 5110{ 5111if ((long long *) 0) 5112 return 0; 5113if (sizeof (long long)) 5114 return 0; 5115 ; 5116 return 0; 5117} 5118_ACEOF 5119rm -f conftest.$ac_objext 5120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5121 (eval $ac_compile) 2>conftest.er1 5122 ac_status=$? 5123 grep -v '^ *+' conftest.er1 >conftest.err 5124 rm -f conftest.er1 5125 cat conftest.err >&5 5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5127 (exit $ac_status); } && 5128 { ac_try='test -z "$ac_c_werror_flag" 5129 || test ! -s conftest.err' 5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5131 (eval $ac_try) 2>&5 5132 ac_status=$? 5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5134 (exit $ac_status); }; } && 5135 { ac_try='test -s conftest.$ac_objext' 5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5137 (eval $ac_try) 2>&5 5138 ac_status=$? 5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5140 (exit $ac_status); }; }; then 5141 ac_cv_type_long_long=yes 5142else 5143 echo "$as_me: failed program was:" >&5 5144sed 's/^/| /' conftest.$ac_ext >&5 5145 5146ac_cv_type_long_long=no 5147fi 5148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5149fi 5150echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5151echo "${ECHO_T}$ac_cv_type_long_long" >&6 5152if test $ac_cv_type_long_long = yes; then 5153 5154cat >>confdefs.h <<_ACEOF 5155#define HAVE_LONG_LONG 1 5156_ACEOF 5157 5158echo "$as_me:$LINENO: checking for long long" >&5 5159echo $ECHO_N "checking for long long... $ECHO_C" >&6 5160if test "${ac_cv_type_long_long+set}" = set; then 5161 echo $ECHO_N "(cached) $ECHO_C" >&6 5162else 5163 cat >conftest.$ac_ext <<_ACEOF 5164/* confdefs.h. */ 5165_ACEOF 5166cat confdefs.h >>conftest.$ac_ext 5167cat >>conftest.$ac_ext <<_ACEOF 5168/* end confdefs.h. */ 5169$ac_includes_default 5170int 5171main () 5172{ 5173if ((long long *) 0) 5174 return 0; 5175if (sizeof (long long)) 5176 return 0; 5177 ; 5178 return 0; 5179} 5180_ACEOF 5181rm -f conftest.$ac_objext 5182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5183 (eval $ac_compile) 2>conftest.er1 5184 ac_status=$? 5185 grep -v '^ *+' conftest.er1 >conftest.err 5186 rm -f conftest.er1 5187 cat conftest.err >&5 5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5189 (exit $ac_status); } && 5190 { ac_try='test -z "$ac_c_werror_flag" 5191 || test ! -s conftest.err' 5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5193 (eval $ac_try) 2>&5 5194 ac_status=$? 5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5196 (exit $ac_status); }; } && 5197 { ac_try='test -s conftest.$ac_objext' 5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5199 (eval $ac_try) 2>&5 5200 ac_status=$? 5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5202 (exit $ac_status); }; }; then 5203 ac_cv_type_long_long=yes 5204else 5205 echo "$as_me: failed program was:" >&5 5206sed 's/^/| /' conftest.$ac_ext >&5 5207 5208ac_cv_type_long_long=no 5209fi 5210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5211fi 5212echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5213echo "${ECHO_T}$ac_cv_type_long_long" >&6 5214 5215echo "$as_me:$LINENO: checking size of long long" >&5 5216echo $ECHO_N "checking size of long long... $ECHO_C" >&6 5217if test "${ac_cv_sizeof_long_long+set}" = set; then 5218 echo $ECHO_N "(cached) $ECHO_C" >&6 5219else 5220 if test "$ac_cv_type_long_long" = yes; then 5221 # The cast to unsigned long works around a bug in the HP C Compiler 5222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5224 # This bug is HP SR number 8606223364. 5225 if test "$cross_compiling" = yes; then 5226 # Depending upon the size, compute the lo and hi bounds. 5227cat >conftest.$ac_ext <<_ACEOF 5228/* confdefs.h. */ 5229_ACEOF 5230cat confdefs.h >>conftest.$ac_ext 5231cat >>conftest.$ac_ext <<_ACEOF 5232/* end confdefs.h. */ 5233$ac_includes_default 5234int 5235main () 5236{ 5237static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 5238test_array [0] = 0 5239 5240 ; 5241 return 0; 5242} 5243_ACEOF 5244rm -f conftest.$ac_objext 5245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5246 (eval $ac_compile) 2>conftest.er1 5247 ac_status=$? 5248 grep -v '^ *+' conftest.er1 >conftest.err 5249 rm -f conftest.er1 5250 cat conftest.err >&5 5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5252 (exit $ac_status); } && 5253 { ac_try='test -z "$ac_c_werror_flag" 5254 || test ! -s conftest.err' 5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5256 (eval $ac_try) 2>&5 5257 ac_status=$? 5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5259 (exit $ac_status); }; } && 5260 { ac_try='test -s conftest.$ac_objext' 5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5262 (eval $ac_try) 2>&5 5263 ac_status=$? 5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5265 (exit $ac_status); }; }; then 5266 ac_lo=0 ac_mid=0 5267 while :; do 5268 cat >conftest.$ac_ext <<_ACEOF 5269/* confdefs.h. */ 5270_ACEOF 5271cat confdefs.h >>conftest.$ac_ext 5272cat >>conftest.$ac_ext <<_ACEOF 5273/* end confdefs.h. */ 5274$ac_includes_default 5275int 5276main () 5277{ 5278static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 5279test_array [0] = 0 5280 5281 ; 5282 return 0; 5283} 5284_ACEOF 5285rm -f conftest.$ac_objext 5286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5287 (eval $ac_compile) 2>conftest.er1 5288 ac_status=$? 5289 grep -v '^ *+' conftest.er1 >conftest.err 5290 rm -f conftest.er1 5291 cat conftest.err >&5 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); } && 5294 { ac_try='test -z "$ac_c_werror_flag" 5295 || test ! -s conftest.err' 5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5297 (eval $ac_try) 2>&5 5298 ac_status=$? 5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5300 (exit $ac_status); }; } && 5301 { ac_try='test -s conftest.$ac_objext' 5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5303 (eval $ac_try) 2>&5 5304 ac_status=$? 5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5306 (exit $ac_status); }; }; then 5307 ac_hi=$ac_mid; break 5308else 5309 echo "$as_me: failed program was:" >&5 5310sed 's/^/| /' conftest.$ac_ext >&5 5311 5312ac_lo=`expr $ac_mid + 1` 5313 if test $ac_lo -le $ac_mid; then 5314 ac_lo= ac_hi= 5315 break 5316 fi 5317 ac_mid=`expr 2 '*' $ac_mid + 1` 5318fi 5319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5320 done 5321else 5322 echo "$as_me: failed program was:" >&5 5323sed 's/^/| /' conftest.$ac_ext >&5 5324 5325cat >conftest.$ac_ext <<_ACEOF 5326/* confdefs.h. */ 5327_ACEOF 5328cat confdefs.h >>conftest.$ac_ext 5329cat >>conftest.$ac_ext <<_ACEOF 5330/* end confdefs.h. */ 5331$ac_includes_default 5332int 5333main () 5334{ 5335static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 5336test_array [0] = 0 5337 5338 ; 5339 return 0; 5340} 5341_ACEOF 5342rm -f conftest.$ac_objext 5343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5344 (eval $ac_compile) 2>conftest.er1 5345 ac_status=$? 5346 grep -v '^ *+' conftest.er1 >conftest.err 5347 rm -f conftest.er1 5348 cat conftest.err >&5 5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5350 (exit $ac_status); } && 5351 { ac_try='test -z "$ac_c_werror_flag" 5352 || test ! -s conftest.err' 5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5354 (eval $ac_try) 2>&5 5355 ac_status=$? 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); }; } && 5358 { ac_try='test -s conftest.$ac_objext' 5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5360 (eval $ac_try) 2>&5 5361 ac_status=$? 5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5363 (exit $ac_status); }; }; then 5364 ac_hi=-1 ac_mid=-1 5365 while :; do 5366 cat >conftest.$ac_ext <<_ACEOF 5367/* confdefs.h. */ 5368_ACEOF 5369cat confdefs.h >>conftest.$ac_ext 5370cat >>conftest.$ac_ext <<_ACEOF 5371/* end confdefs.h. */ 5372$ac_includes_default 5373int 5374main () 5375{ 5376static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 5377test_array [0] = 0 5378 5379 ; 5380 return 0; 5381} 5382_ACEOF 5383rm -f conftest.$ac_objext 5384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5385 (eval $ac_compile) 2>conftest.er1 5386 ac_status=$? 5387 grep -v '^ *+' conftest.er1 >conftest.err 5388 rm -f conftest.er1 5389 cat conftest.err >&5 5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5391 (exit $ac_status); } && 5392 { ac_try='test -z "$ac_c_werror_flag" 5393 || test ! -s conftest.err' 5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5395 (eval $ac_try) 2>&5 5396 ac_status=$? 5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5398 (exit $ac_status); }; } && 5399 { ac_try='test -s conftest.$ac_objext' 5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5401 (eval $ac_try) 2>&5 5402 ac_status=$? 5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5404 (exit $ac_status); }; }; then 5405 ac_lo=$ac_mid; break 5406else 5407 echo "$as_me: failed program was:" >&5 5408sed 's/^/| /' conftest.$ac_ext >&5 5409 5410ac_hi=`expr '(' $ac_mid ')' - 1` 5411 if test $ac_mid -le $ac_hi; then 5412 ac_lo= ac_hi= 5413 break 5414 fi 5415 ac_mid=`expr 2 '*' $ac_mid` 5416fi 5417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5418 done 5419else 5420 echo "$as_me: failed program was:" >&5 5421sed 's/^/| /' conftest.$ac_ext >&5 5422 5423ac_lo= ac_hi= 5424fi 5425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5426fi 5427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5428# Binary search between lo and hi bounds. 5429while test "x$ac_lo" != "x$ac_hi"; do 5430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5431 cat >conftest.$ac_ext <<_ACEOF 5432/* confdefs.h. */ 5433_ACEOF 5434cat confdefs.h >>conftest.$ac_ext 5435cat >>conftest.$ac_ext <<_ACEOF 5436/* end confdefs.h. */ 5437$ac_includes_default 5438int 5439main () 5440{ 5441static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 5442test_array [0] = 0 5443 5444 ; 5445 return 0; 5446} 5447_ACEOF 5448rm -f conftest.$ac_objext 5449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5450 (eval $ac_compile) 2>conftest.er1 5451 ac_status=$? 5452 grep -v '^ *+' conftest.er1 >conftest.err 5453 rm -f conftest.er1 5454 cat conftest.err >&5 5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5456 (exit $ac_status); } && 5457 { ac_try='test -z "$ac_c_werror_flag" 5458 || test ! -s conftest.err' 5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5460 (eval $ac_try) 2>&5 5461 ac_status=$? 5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5463 (exit $ac_status); }; } && 5464 { ac_try='test -s conftest.$ac_objext' 5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5466 (eval $ac_try) 2>&5 5467 ac_status=$? 5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5469 (exit $ac_status); }; }; then 5470 ac_hi=$ac_mid 5471else 5472 echo "$as_me: failed program was:" >&5 5473sed 's/^/| /' conftest.$ac_ext >&5 5474 5475ac_lo=`expr '(' $ac_mid ')' + 1` 5476fi 5477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5478done 5479case $ac_lo in 5480?*) ac_cv_sizeof_long_long=$ac_lo;; 5481'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 5482See \`config.log' for more details." >&5 5483echo "$as_me: error: cannot compute sizeof (long long), 77 5484See \`config.log' for more details." >&2;} 5485 { (exit 1); exit 1; }; } ;; 5486esac 5487else 5488 if test "$cross_compiling" = yes; then 5489 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5490See \`config.log' for more details." >&5 5491echo "$as_me: error: cannot run test program while cross compiling 5492See \`config.log' for more details." >&2;} 5493 { (exit 1); exit 1; }; } 5494else 5495 cat >conftest.$ac_ext <<_ACEOF 5496/* confdefs.h. */ 5497_ACEOF 5498cat confdefs.h >>conftest.$ac_ext 5499cat >>conftest.$ac_ext <<_ACEOF 5500/* end confdefs.h. */ 5501$ac_includes_default 5502long longval () { return (long) (sizeof (long long)); } 5503unsigned long ulongval () { return (long) (sizeof (long long)); } 5504#include <stdio.h> 5505#include <stdlib.h> 5506int 5507main () 5508{ 5509 5510 FILE *f = fopen ("conftest.val", "w"); 5511 if (! f) 5512 exit (1); 5513 if (((long) (sizeof (long long))) < 0) 5514 { 5515 long i = longval (); 5516 if (i != ((long) (sizeof (long long)))) 5517 exit (1); 5518 fprintf (f, "%ld\n", i); 5519 } 5520 else 5521 { 5522 unsigned long i = ulongval (); 5523 if (i != ((long) (sizeof (long long)))) 5524 exit (1); 5525 fprintf (f, "%lu\n", i); 5526 } 5527 exit (ferror (f) || fclose (f) != 0); 5528 5529 ; 5530 return 0; 5531} 5532_ACEOF 5533rm -f conftest$ac_exeext 5534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5535 (eval $ac_link) 2>&5 5536 ac_status=$? 5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5540 (eval $ac_try) 2>&5 5541 ac_status=$? 5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5543 (exit $ac_status); }; }; then 5544 ac_cv_sizeof_long_long=`cat conftest.val` 5545else 5546 echo "$as_me: program exited with status $ac_status" >&5 5547echo "$as_me: failed program was:" >&5 5548sed 's/^/| /' conftest.$ac_ext >&5 5549 5550( exit $ac_status ) 5551{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 5552See \`config.log' for more details." >&5 5553echo "$as_me: error: cannot compute sizeof (long long), 77 5554See \`config.log' for more details." >&2;} 5555 { (exit 1); exit 1; }; } 5556fi 5557rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5558fi 5559fi 5560rm -f conftest.val 5561else 5562 ac_cv_sizeof_long_long=0 5563fi 5564fi 5565echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 5566echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 5567cat >>confdefs.h <<_ACEOF 5568#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 5569_ACEOF 5570 5571 5572fi 5573 5574echo "$as_me:$LINENO: checking for __int64" >&5 5575echo $ECHO_N "checking for __int64... $ECHO_C" >&6 5576if test "${ac_cv_type___int64+set}" = set; then 5577 echo $ECHO_N "(cached) $ECHO_C" >&6 5578else 5579 cat >conftest.$ac_ext <<_ACEOF 5580/* confdefs.h. */ 5581_ACEOF 5582cat confdefs.h >>conftest.$ac_ext 5583cat >>conftest.$ac_ext <<_ACEOF 5584/* end confdefs.h. */ 5585$ac_includes_default 5586int 5587main () 5588{ 5589if ((__int64 *) 0) 5590 return 0; 5591if (sizeof (__int64)) 5592 return 0; 5593 ; 5594 return 0; 5595} 5596_ACEOF 5597rm -f conftest.$ac_objext 5598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5599 (eval $ac_compile) 2>conftest.er1 5600 ac_status=$? 5601 grep -v '^ *+' conftest.er1 >conftest.err 5602 rm -f conftest.er1 5603 cat conftest.err >&5 5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5605 (exit $ac_status); } && 5606 { ac_try='test -z "$ac_c_werror_flag" 5607 || test ! -s conftest.err' 5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5609 (eval $ac_try) 2>&5 5610 ac_status=$? 5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5612 (exit $ac_status); }; } && 5613 { ac_try='test -s conftest.$ac_objext' 5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5615 (eval $ac_try) 2>&5 5616 ac_status=$? 5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5618 (exit $ac_status); }; }; then 5619 ac_cv_type___int64=yes 5620else 5621 echo "$as_me: failed program was:" >&5 5622sed 's/^/| /' conftest.$ac_ext >&5 5623 5624ac_cv_type___int64=no 5625fi 5626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5627fi 5628echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5 5629echo "${ECHO_T}$ac_cv_type___int64" >&6 5630if test $ac_cv_type___int64 = yes; then 5631 5632cat >>confdefs.h <<_ACEOF 5633#define HAVE___INT64 1 5634_ACEOF 5635 5636echo "$as_me:$LINENO: checking for __int64" >&5 5637echo $ECHO_N "checking for __int64... $ECHO_C" >&6 5638if test "${ac_cv_type___int64+set}" = set; then 5639 echo $ECHO_N "(cached) $ECHO_C" >&6 5640else 5641 cat >conftest.$ac_ext <<_ACEOF 5642/* confdefs.h. */ 5643_ACEOF 5644cat confdefs.h >>conftest.$ac_ext 5645cat >>conftest.$ac_ext <<_ACEOF 5646/* end confdefs.h. */ 5647$ac_includes_default 5648int 5649main () 5650{ 5651if ((__int64 *) 0) 5652 return 0; 5653if (sizeof (__int64)) 5654 return 0; 5655 ; 5656 return 0; 5657} 5658_ACEOF 5659rm -f conftest.$ac_objext 5660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5661 (eval $ac_compile) 2>conftest.er1 5662 ac_status=$? 5663 grep -v '^ *+' conftest.er1 >conftest.err 5664 rm -f conftest.er1 5665 cat conftest.err >&5 5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5667 (exit $ac_status); } && 5668 { ac_try='test -z "$ac_c_werror_flag" 5669 || test ! -s conftest.err' 5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5671 (eval $ac_try) 2>&5 5672 ac_status=$? 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); }; } && 5675 { ac_try='test -s conftest.$ac_objext' 5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5677 (eval $ac_try) 2>&5 5678 ac_status=$? 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); }; }; then 5681 ac_cv_type___int64=yes 5682else 5683 echo "$as_me: failed program was:" >&5 5684sed 's/^/| /' conftest.$ac_ext >&5 5685 5686ac_cv_type___int64=no 5687fi 5688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5689fi 5690echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5 5691echo "${ECHO_T}$ac_cv_type___int64" >&6 5692 5693echo "$as_me:$LINENO: checking size of __int64" >&5 5694echo $ECHO_N "checking size of __int64... $ECHO_C" >&6 5695if test "${ac_cv_sizeof___int64+set}" = set; then 5696 echo $ECHO_N "(cached) $ECHO_C" >&6 5697else 5698 if test "$ac_cv_type___int64" = yes; then 5699 # The cast to unsigned long works around a bug in the HP C Compiler 5700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5702 # This bug is HP SR number 8606223364. 5703 if test "$cross_compiling" = yes; then 5704 # Depending upon the size, compute the lo and hi bounds. 5705cat >conftest.$ac_ext <<_ACEOF 5706/* confdefs.h. */ 5707_ACEOF 5708cat confdefs.h >>conftest.$ac_ext 5709cat >>conftest.$ac_ext <<_ACEOF 5710/* end confdefs.h. */ 5711$ac_includes_default 5712int 5713main () 5714{ 5715static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)]; 5716test_array [0] = 0 5717 5718 ; 5719 return 0; 5720} 5721_ACEOF 5722rm -f conftest.$ac_objext 5723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5724 (eval $ac_compile) 2>conftest.er1 5725 ac_status=$? 5726 grep -v '^ *+' conftest.er1 >conftest.err 5727 rm -f conftest.er1 5728 cat conftest.err >&5 5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5730 (exit $ac_status); } && 5731 { ac_try='test -z "$ac_c_werror_flag" 5732 || test ! -s conftest.err' 5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5734 (eval $ac_try) 2>&5 5735 ac_status=$? 5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5737 (exit $ac_status); }; } && 5738 { ac_try='test -s conftest.$ac_objext' 5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5740 (eval $ac_try) 2>&5 5741 ac_status=$? 5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5743 (exit $ac_status); }; }; then 5744 ac_lo=0 ac_mid=0 5745 while :; do 5746 cat >conftest.$ac_ext <<_ACEOF 5747/* confdefs.h. */ 5748_ACEOF 5749cat confdefs.h >>conftest.$ac_ext 5750cat >>conftest.$ac_ext <<_ACEOF 5751/* end confdefs.h. */ 5752$ac_includes_default 5753int 5754main () 5755{ 5756static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; 5757test_array [0] = 0 5758 5759 ; 5760 return 0; 5761} 5762_ACEOF 5763rm -f conftest.$ac_objext 5764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5765 (eval $ac_compile) 2>conftest.er1 5766 ac_status=$? 5767 grep -v '^ *+' conftest.er1 >conftest.err 5768 rm -f conftest.er1 5769 cat conftest.err >&5 5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5771 (exit $ac_status); } && 5772 { ac_try='test -z "$ac_c_werror_flag" 5773 || test ! -s conftest.err' 5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5775 (eval $ac_try) 2>&5 5776 ac_status=$? 5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5778 (exit $ac_status); }; } && 5779 { ac_try='test -s conftest.$ac_objext' 5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5781 (eval $ac_try) 2>&5 5782 ac_status=$? 5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5784 (exit $ac_status); }; }; then 5785 ac_hi=$ac_mid; break 5786else 5787 echo "$as_me: failed program was:" >&5 5788sed 's/^/| /' conftest.$ac_ext >&5 5789 5790ac_lo=`expr $ac_mid + 1` 5791 if test $ac_lo -le $ac_mid; then 5792 ac_lo= ac_hi= 5793 break 5794 fi 5795 ac_mid=`expr 2 '*' $ac_mid + 1` 5796fi 5797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5798 done 5799else 5800 echo "$as_me: failed program was:" >&5 5801sed 's/^/| /' conftest.$ac_ext >&5 5802 5803cat >conftest.$ac_ext <<_ACEOF 5804/* confdefs.h. */ 5805_ACEOF 5806cat confdefs.h >>conftest.$ac_ext 5807cat >>conftest.$ac_ext <<_ACEOF 5808/* end confdefs.h. */ 5809$ac_includes_default 5810int 5811main () 5812{ 5813static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)]; 5814test_array [0] = 0 5815 5816 ; 5817 return 0; 5818} 5819_ACEOF 5820rm -f conftest.$ac_objext 5821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5822 (eval $ac_compile) 2>conftest.er1 5823 ac_status=$? 5824 grep -v '^ *+' conftest.er1 >conftest.err 5825 rm -f conftest.er1 5826 cat conftest.err >&5 5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5828 (exit $ac_status); } && 5829 { ac_try='test -z "$ac_c_werror_flag" 5830 || test ! -s conftest.err' 5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5832 (eval $ac_try) 2>&5 5833 ac_status=$? 5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5835 (exit $ac_status); }; } && 5836 { ac_try='test -s conftest.$ac_objext' 5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5838 (eval $ac_try) 2>&5 5839 ac_status=$? 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); }; }; then 5842 ac_hi=-1 ac_mid=-1 5843 while :; do 5844 cat >conftest.$ac_ext <<_ACEOF 5845/* confdefs.h. */ 5846_ACEOF 5847cat confdefs.h >>conftest.$ac_ext 5848cat >>conftest.$ac_ext <<_ACEOF 5849/* end confdefs.h. */ 5850$ac_includes_default 5851int 5852main () 5853{ 5854static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)]; 5855test_array [0] = 0 5856 5857 ; 5858 return 0; 5859} 5860_ACEOF 5861rm -f conftest.$ac_objext 5862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5863 (eval $ac_compile) 2>conftest.er1 5864 ac_status=$? 5865 grep -v '^ *+' conftest.er1 >conftest.err 5866 rm -f conftest.er1 5867 cat conftest.err >&5 5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5869 (exit $ac_status); } && 5870 { ac_try='test -z "$ac_c_werror_flag" 5871 || test ! -s conftest.err' 5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5873 (eval $ac_try) 2>&5 5874 ac_status=$? 5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5876 (exit $ac_status); }; } && 5877 { ac_try='test -s conftest.$ac_objext' 5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5879 (eval $ac_try) 2>&5 5880 ac_status=$? 5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5882 (exit $ac_status); }; }; then 5883 ac_lo=$ac_mid; break 5884else 5885 echo "$as_me: failed program was:" >&5 5886sed 's/^/| /' conftest.$ac_ext >&5 5887 5888ac_hi=`expr '(' $ac_mid ')' - 1` 5889 if test $ac_mid -le $ac_hi; then 5890 ac_lo= ac_hi= 5891 break 5892 fi 5893 ac_mid=`expr 2 '*' $ac_mid` 5894fi 5895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5896 done 5897else 5898 echo "$as_me: failed program was:" >&5 5899sed 's/^/| /' conftest.$ac_ext >&5 5900 5901ac_lo= ac_hi= 5902fi 5903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5904fi 5905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5906# Binary search between lo and hi bounds. 5907while test "x$ac_lo" != "x$ac_hi"; do 5908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5909 cat >conftest.$ac_ext <<_ACEOF 5910/* confdefs.h. */ 5911_ACEOF 5912cat confdefs.h >>conftest.$ac_ext 5913cat >>conftest.$ac_ext <<_ACEOF 5914/* end confdefs.h. */ 5915$ac_includes_default 5916int 5917main () 5918{ 5919static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; 5920test_array [0] = 0 5921 5922 ; 5923 return 0; 5924} 5925_ACEOF 5926rm -f conftest.$ac_objext 5927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5928 (eval $ac_compile) 2>conftest.er1 5929 ac_status=$? 5930 grep -v '^ *+' conftest.er1 >conftest.err 5931 rm -f conftest.er1 5932 cat conftest.err >&5 5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5934 (exit $ac_status); } && 5935 { ac_try='test -z "$ac_c_werror_flag" 5936 || test ! -s conftest.err' 5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5938 (eval $ac_try) 2>&5 5939 ac_status=$? 5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5941 (exit $ac_status); }; } && 5942 { ac_try='test -s conftest.$ac_objext' 5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5944 (eval $ac_try) 2>&5 5945 ac_status=$? 5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5947 (exit $ac_status); }; }; then 5948 ac_hi=$ac_mid 5949else 5950 echo "$as_me: failed program was:" >&5 5951sed 's/^/| /' conftest.$ac_ext >&5 5952 5953ac_lo=`expr '(' $ac_mid ')' + 1` 5954fi 5955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5956done 5957case $ac_lo in 5958?*) ac_cv_sizeof___int64=$ac_lo;; 5959'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 5960See \`config.log' for more details." >&5 5961echo "$as_me: error: cannot compute sizeof (__int64), 77 5962See \`config.log' for more details." >&2;} 5963 { (exit 1); exit 1; }; } ;; 5964esac 5965else 5966 if test "$cross_compiling" = yes; then 5967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5968See \`config.log' for more details." >&5 5969echo "$as_me: error: cannot run test program while cross compiling 5970See \`config.log' for more details." >&2;} 5971 { (exit 1); exit 1; }; } 5972else 5973 cat >conftest.$ac_ext <<_ACEOF 5974/* confdefs.h. */ 5975_ACEOF 5976cat confdefs.h >>conftest.$ac_ext 5977cat >>conftest.$ac_ext <<_ACEOF 5978/* end confdefs.h. */ 5979$ac_includes_default 5980long longval () { return (long) (sizeof (__int64)); } 5981unsigned long ulongval () { return (long) (sizeof (__int64)); } 5982#include <stdio.h> 5983#include <stdlib.h> 5984int 5985main () 5986{ 5987 5988 FILE *f = fopen ("conftest.val", "w"); 5989 if (! f) 5990 exit (1); 5991 if (((long) (sizeof (__int64))) < 0) 5992 { 5993 long i = longval (); 5994 if (i != ((long) (sizeof (__int64)))) 5995 exit (1); 5996 fprintf (f, "%ld\n", i); 5997 } 5998 else 5999 { 6000 unsigned long i = ulongval (); 6001 if (i != ((long) (sizeof (__int64)))) 6002 exit (1); 6003 fprintf (f, "%lu\n", i); 6004 } 6005 exit (ferror (f) || fclose (f) != 0); 6006 6007 ; 6008 return 0; 6009} 6010_ACEOF 6011rm -f conftest$ac_exeext 6012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6013 (eval $ac_link) 2>&5 6014 ac_status=$? 6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6018 (eval $ac_try) 2>&5 6019 ac_status=$? 6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6021 (exit $ac_status); }; }; then 6022 ac_cv_sizeof___int64=`cat conftest.val` 6023else 6024 echo "$as_me: program exited with status $ac_status" >&5 6025echo "$as_me: failed program was:" >&5 6026sed 's/^/| /' conftest.$ac_ext >&5 6027 6028( exit $ac_status ) 6029{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 6030See \`config.log' for more details." >&5 6031echo "$as_me: error: cannot compute sizeof (__int64), 77 6032See \`config.log' for more details." >&2;} 6033 { (exit 1); exit 1; }; } 6034fi 6035rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6036fi 6037fi 6038rm -f conftest.val 6039else 6040 ac_cv_sizeof___int64=0 6041fi 6042fi 6043echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5 6044echo "${ECHO_T}$ac_cv_sizeof___int64" >&6 6045cat >>confdefs.h <<_ACEOF 6046#define SIZEOF___INT64 $ac_cv_sizeof___int64 6047_ACEOF 6048 6049 6050fi 6051 6052 6053# --------------------- 6054# Warnings and checking 6055# --------------------- 6056 6057# Check $CC warning features (if it's GCC). 6058# We want to use -pedantic, but we don't want warnings about 6059# * 'long long' 6060# * variadic macros 6061# So, we only use -pedantic if we can disable those warnings. 6062 6063echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5 6064echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6 6065if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then 6066 echo $ECHO_N "(cached) $ECHO_C" >&6 6067else 6068 save_CFLAGS="$CFLAGS" 6069 CFLAGS="-Wno-long-long" 6070 cat >conftest.$ac_ext <<_ACEOF 6071/* confdefs.h. */ 6072_ACEOF 6073cat confdefs.h >>conftest.$ac_ext 6074cat >>conftest.$ac_ext <<_ACEOF 6075/* end confdefs.h. */ 6076 6077_ACEOF 6078rm -f conftest.$ac_objext 6079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6080 (eval $ac_compile) 2>conftest.er1 6081 ac_status=$? 6082 grep -v '^ *+' conftest.er1 >conftest.err 6083 rm -f conftest.er1 6084 cat conftest.err >&5 6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6086 (exit $ac_status); } && 6087 { ac_try='test -z "$ac_c_werror_flag" 6088 || test ! -s conftest.err' 6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6090 (eval $ac_try) 2>&5 6091 ac_status=$? 6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6093 (exit $ac_status); }; } && 6094 { ac_try='test -s conftest.$ac_objext' 6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6096 (eval $ac_try) 2>&5 6097 ac_status=$? 6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6099 (exit $ac_status); }; }; then 6100 ac_cv_prog_cc_w_no_long_long=yes 6101else 6102 echo "$as_me: failed program was:" >&5 6103sed 's/^/| /' conftest.$ac_ext >&5 6104 6105ac_cv_prog_cc_w_no_long_long=no 6106fi 6107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6108 CFLAGS="$save_CFLAGS" 6109 6110fi 6111echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5 6112echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6 6113 6114echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5 6115echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6 6116if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118else 6119 save_CFLAGS="$CFLAGS" 6120 CFLAGS="-Wno-variadic-macros" 6121 cat >conftest.$ac_ext <<_ACEOF 6122/* confdefs.h. */ 6123_ACEOF 6124cat confdefs.h >>conftest.$ac_ext 6125cat >>conftest.$ac_ext <<_ACEOF 6126/* end confdefs.h. */ 6127 6128_ACEOF 6129rm -f conftest.$ac_objext 6130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6131 (eval $ac_compile) 2>conftest.er1 6132 ac_status=$? 6133 grep -v '^ *+' conftest.er1 >conftest.err 6134 rm -f conftest.er1 6135 cat conftest.err >&5 6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6137 (exit $ac_status); } && 6138 { ac_try='test -z "$ac_c_werror_flag" 6139 || test ! -s conftest.err' 6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6141 (eval $ac_try) 2>&5 6142 ac_status=$? 6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6144 (exit $ac_status); }; } && 6145 { ac_try='test -s conftest.$ac_objext' 6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6147 (eval $ac_try) 2>&5 6148 ac_status=$? 6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6150 (exit $ac_status); }; }; then 6151 ac_cv_prog_cc_w_no_variadic_macros=yes 6152else 6153 echo "$as_me: failed program was:" >&5 6154sed 's/^/| /' conftest.$ac_ext >&5 6155 6156ac_cv_prog_cc_w_no_variadic_macros=no 6157fi 6158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6159 CFLAGS="$save_CFLAGS" 6160 6161fi 6162echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5 6163echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6 6164 6165strict1_warn= 6166if test $ac_cv_prog_cc_w_no_long_long = yes \ 6167 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then 6168 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros" 6169fi 6170 6171# Add -Wold-style-definition if it's accepted 6172echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5 6173echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6 6174if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then 6175 echo $ECHO_N "(cached) $ECHO_C" >&6 6176else 6177 save_CFLAGS="$CFLAGS" 6178 CFLAGS="-Wold-style-definition" 6179 cat >conftest.$ac_ext <<_ACEOF 6180/* confdefs.h. */ 6181_ACEOF 6182cat confdefs.h >>conftest.$ac_ext 6183cat >>conftest.$ac_ext <<_ACEOF 6184/* end confdefs.h. */ 6185 6186_ACEOF 6187rm -f conftest.$ac_objext 6188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6189 (eval $ac_compile) 2>conftest.er1 6190 ac_status=$? 6191 grep -v '^ *+' conftest.er1 >conftest.err 6192 rm -f conftest.er1 6193 cat conftest.err >&5 6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6195 (exit $ac_status); } && 6196 { ac_try='test -z "$ac_c_werror_flag" 6197 || test ! -s conftest.err' 6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6199 (eval $ac_try) 2>&5 6200 ac_status=$? 6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6202 (exit $ac_status); }; } && 6203 { ac_try='test -s conftest.$ac_objext' 6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6205 (eval $ac_try) 2>&5 6206 ac_status=$? 6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6208 (exit $ac_status); }; }; then 6209 ac_cv_prog_cc_w_old_style_definition=yes 6210else 6211 echo "$as_me: failed program was:" >&5 6212sed 's/^/| /' conftest.$ac_ext >&5 6213 6214ac_cv_prog_cc_w_old_style_definition=no 6215fi 6216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6217 CFLAGS="$save_CFLAGS" 6218 6219fi 6220echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5 6221echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6 6222if test $ac_cv_prog_cc_w_old_style_definition = yes ; then 6223 strict1_warn="${strict1_warn} -Wold-style-definition" 6224fi 6225 6226# Add -Wmissing-format-attribute if it's accepted 6227echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5 6228echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6 6229if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then 6230 echo $ECHO_N "(cached) $ECHO_C" >&6 6231else 6232 save_CFLAGS="$CFLAGS" 6233 CFLAGS="-Wmissing-format-attribute" 6234 cat >conftest.$ac_ext <<_ACEOF 6235/* confdefs.h. */ 6236_ACEOF 6237cat confdefs.h >>conftest.$ac_ext 6238cat >>conftest.$ac_ext <<_ACEOF 6239/* end confdefs.h. */ 6240 6241_ACEOF 6242rm -f conftest.$ac_objext 6243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6244 (eval $ac_compile) 2>conftest.er1 6245 ac_status=$? 6246 grep -v '^ *+' conftest.er1 >conftest.err 6247 rm -f conftest.er1 6248 cat conftest.err >&5 6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6250 (exit $ac_status); } && 6251 { ac_try='test -z "$ac_c_werror_flag" 6252 || test ! -s conftest.err' 6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6254 (eval $ac_try) 2>&5 6255 ac_status=$? 6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6257 (exit $ac_status); }; } && 6258 { ac_try='test -s conftest.$ac_objext' 6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6260 (eval $ac_try) 2>&5 6261 ac_status=$? 6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6263 (exit $ac_status); }; }; then 6264 ac_cv_prog_cc_w_missing_format_attribute=yes 6265else 6266 echo "$as_me: failed program was:" >&5 6267sed 's/^/| /' conftest.$ac_ext >&5 6268 6269ac_cv_prog_cc_w_missing_format_attribute=no 6270fi 6271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6272 CFLAGS="$save_CFLAGS" 6273 6274fi 6275echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5 6276echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6 6277if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then 6278 strict1_warn="${strict1_warn} -Wmissing-format-attribute" 6279fi 6280 6281# Enable -Werror, period. 6282# Check whether --enable-werror_always or --disable-werror_always was given. 6283if test "${enable_werror_always+set}" = set; then 6284 enableval="$enable_werror_always" 6285 6286else 6287 enable_werror_always=no 6288fi; 6289if test x${enable_werror_always} = xyes ; then 6290 strict1_warn="${strict1_warn} -Werror" 6291 WERROR=-Werror 6292fi 6293 6294 6295 6296# If the native compiler is GCC, we can enable warnings even in stage1. 6297# That's useful for people building cross-compilers, or just running a 6298# quick `make'. 6299warn_cflags= 6300if test "x$GCC" = "xyes"; then 6301 warn_cflags='$(GCC_WARN_CFLAGS)' 6302fi 6303 6304 6305# Enable -Werror in bootstrap stage2 and later. 6306is_release= 6307if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then 6308 is_release=yes 6309fi 6310# Check whether --enable-werror or --disable-werror was given. 6311if test "${enable_werror+set}" = set; then 6312 enableval="$enable_werror" 6313 6314else 6315 if test x$is_release = x ; then 6316 # Default to "yes" on development branches. 6317 enable_werror=yes 6318else 6319 # Default to "no" on release branches. 6320 enable_werror=no 6321fi 6322fi; 6323if test x$enable_werror = xyes ; then 6324 WERROR=-Werror 6325fi 6326 6327 6328# Enable expensive internal checks 6329# Check whether --enable-checking or --disable-checking was given. 6330if test "${enable_checking+set}" = set; then 6331 enableval="$enable_checking" 6332 ac_checking_flags="${enableval}" 6333else 6334 6335# Determine the default checks. 6336if test x$is_release = x ; then 6337 ac_checking_flags=yes 6338else 6339 ac_checking_flags=release 6340fi 6341fi; 6342ac_assert_checking=1 6343ac_checking= 6344ac_fold_checking= 6345ac_gc_checking= 6346ac_gc_always_collect= 6347ac_rtl_checking= 6348ac_rtlflag_checking= 6349ac_runtime_checking=1 6350ac_tree_checking= 6351ac_valgrind_checking= 6352IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 6353for check in $ac_checking_flags 6354do 6355 case $check in 6356 # these set all the flags to specific states 6357 yes) ac_assert_checking=1 ; ac_checking=1 ; 6358 ac_fold_checking= ; ac_gc_checking=1 ; 6359 ac_gc_always_collect= ; ac_rtl_checking= ; 6360 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 6361 ac_tree_checking=1 ; ac_valgrind_checking= ;; 6362 no|none) ac_assert_checking= ; ac_checking= ; 6363 ac_fold_checking= ; ac_gc_checking= ; 6364 ac_gc_always_collect= ; ac_rtl_checking= ; 6365 ac_rtlflag_checking= ; ac_runtime_checking= ; 6366 ac_tree_checking= ; ac_valgrind_checking= ;; 6367 all) ac_assert_checking=1 ; ac_checking=1 ; 6368 ac_fold_checking=1 ; ac_gc_checking=1 ; 6369 ac_gc_always_collect=1 ; ac_rtl_checking=1 ; 6370 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 6371 ac_tree_checking=1 ; ac_valgrind_checking= ;; 6372 release) ac_assert_checking=1 ; ac_checking= ; 6373 ac_fold_checking= ; ac_gc_checking= ; 6374 ac_gc_always_collect= ; ac_rtl_checking= ; 6375 ac_rtlflag_checking= ; ac_runtime_checking=1 ; 6376 ac_tree_checking= ; ac_valgrind_checking= ;; 6377 # these enable particular checks 6378 assert) ac_assert_checking=1 ;; 6379 fold) ac_fold_checking=1 ;; 6380 gc) ac_gc_checking=1 ;; 6381 gcac) ac_gc_always_collect=1 ;; 6382 misc) ac_checking=1 ;; 6383 rtl) ac_rtl_checking=1 ;; 6384 rtlflag) ac_rtlflag_checking=1 ;; 6385 runtime) ac_runtime_checking=1 ;; 6386 tree) ac_tree_checking=1 ;; 6387 valgrind) ac_valgrind_checking=1 ;; 6388 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5 6389echo "$as_me: error: unknown check category $check" >&2;} 6390 { (exit 1); exit 1; }; } ;; 6391 esac 6392done 6393IFS="$ac_save_IFS" 6394 6395nocommon_flag="" 6396if test x$ac_checking != x ; then 6397 6398cat >>confdefs.h <<\_ACEOF 6399#define ENABLE_CHECKING 1 6400_ACEOF 6401 6402 nocommon_flag=-fno-common 6403fi 6404 6405if test x$ac_assert_checking != x ; then 6406 6407cat >>confdefs.h <<\_ACEOF 6408#define ENABLE_ASSERT_CHECKING 1 6409_ACEOF 6410 6411fi 6412 6413if test x$ac_runtime_checking != x ; then 6414 6415cat >>confdefs.h <<\_ACEOF 6416#define ENABLE_RUNTIME_CHECKING 1 6417_ACEOF 6418 6419fi 6420if test x$ac_tree_checking != x ; then 6421 6422cat >>confdefs.h <<\_ACEOF 6423#define ENABLE_TREE_CHECKING 1 6424_ACEOF 6425 6426 TREEBROWSER=tree-browser.o 6427fi 6428 6429if test x$ac_rtl_checking != x ; then 6430 6431cat >>confdefs.h <<\_ACEOF 6432#define ENABLE_RTL_CHECKING 1 6433_ACEOF 6434 6435fi 6436if test x$ac_rtlflag_checking != x ; then 6437 6438cat >>confdefs.h <<\_ACEOF 6439#define ENABLE_RTL_FLAG_CHECKING 1 6440_ACEOF 6441 6442fi 6443if test x$ac_gc_checking != x ; then 6444 6445cat >>confdefs.h <<\_ACEOF 6446#define ENABLE_GC_CHECKING 1 6447_ACEOF 6448 6449fi 6450if test x$ac_gc_always_collect != x ; then 6451 6452cat >>confdefs.h <<\_ACEOF 6453#define ENABLE_GC_ALWAYS_COLLECT 1 6454_ACEOF 6455 6456fi 6457if test x$ac_fold_checking != x ; then 6458 6459cat >>confdefs.h <<\_ACEOF 6460#define ENABLE_FOLD_CHECKING 1 6461_ACEOF 6462 6463fi 6464valgrind_path_defines= 6465valgrind_command= 6466 6467if test "${ac_cv_header_valgrind_h+set}" = set; then 6468 echo "$as_me:$LINENO: checking for valgrind.h" >&5 6469echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6 6470if test "${ac_cv_header_valgrind_h+set}" = set; then 6471 echo $ECHO_N "(cached) $ECHO_C" >&6 6472fi 6473echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5 6474echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6 6475else 6476 # Is the header compilable? 6477echo "$as_me:$LINENO: checking valgrind.h usability" >&5 6478echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6 6479cat >conftest.$ac_ext <<_ACEOF 6480/* confdefs.h. */ 6481_ACEOF 6482cat confdefs.h >>conftest.$ac_ext 6483cat >>conftest.$ac_ext <<_ACEOF 6484/* end confdefs.h. */ 6485$ac_includes_default 6486#include <valgrind.h> 6487_ACEOF 6488rm -f conftest.$ac_objext 6489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6490 (eval $ac_compile) 2>conftest.er1 6491 ac_status=$? 6492 grep -v '^ *+' conftest.er1 >conftest.err 6493 rm -f conftest.er1 6494 cat conftest.err >&5 6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6496 (exit $ac_status); } && 6497 { ac_try='test -z "$ac_c_werror_flag" 6498 || test ! -s conftest.err' 6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6500 (eval $ac_try) 2>&5 6501 ac_status=$? 6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6503 (exit $ac_status); }; } && 6504 { ac_try='test -s conftest.$ac_objext' 6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6506 (eval $ac_try) 2>&5 6507 ac_status=$? 6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6509 (exit $ac_status); }; }; then 6510 ac_header_compiler=yes 6511else 6512 echo "$as_me: failed program was:" >&5 6513sed 's/^/| /' conftest.$ac_ext >&5 6514 6515ac_header_compiler=no 6516fi 6517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6519echo "${ECHO_T}$ac_header_compiler" >&6 6520 6521# Is the header present? 6522echo "$as_me:$LINENO: checking valgrind.h presence" >&5 6523echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6 6524cat >conftest.$ac_ext <<_ACEOF 6525/* confdefs.h. */ 6526_ACEOF 6527cat confdefs.h >>conftest.$ac_ext 6528cat >>conftest.$ac_ext <<_ACEOF 6529/* end confdefs.h. */ 6530#include <valgrind.h> 6531_ACEOF 6532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6534 ac_status=$? 6535 grep -v '^ *+' conftest.er1 >conftest.err 6536 rm -f conftest.er1 6537 cat conftest.err >&5 6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6539 (exit $ac_status); } >/dev/null; then 6540 if test -s conftest.err; then 6541 ac_cpp_err=$ac_c_preproc_warn_flag 6542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6543 else 6544 ac_cpp_err= 6545 fi 6546else 6547 ac_cpp_err=yes 6548fi 6549if test -z "$ac_cpp_err"; then 6550 ac_header_preproc=yes 6551else 6552 echo "$as_me: failed program was:" >&5 6553sed 's/^/| /' conftest.$ac_ext >&5 6554 6555 ac_header_preproc=no 6556fi 6557rm -f conftest.err conftest.$ac_ext 6558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6559echo "${ECHO_T}$ac_header_preproc" >&6 6560 6561# So? What about this header? 6562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6563 yes:no: ) 6564 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5 6565echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6566 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5 6567echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;} 6568 ac_header_preproc=yes 6569 ;; 6570 no:yes:* ) 6571 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5 6572echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;} 6573 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5 6574echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;} 6575 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5 6576echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;} 6577 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5 6578echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;} 6579 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5 6580echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;} 6581 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5 6582echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;} 6583 ( 6584 cat <<\_ASBOX 6585## ------------------------------------------ ## 6586## Report this to the AC_PACKAGE_NAME lists. ## 6587## ------------------------------------------ ## 6588_ASBOX 6589 ) | 6590 sed "s/^/$as_me: WARNING: /" >&2 6591 ;; 6592esac 6593echo "$as_me:$LINENO: checking for valgrind.h" >&5 6594echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6 6595if test "${ac_cv_header_valgrind_h+set}" = set; then 6596 echo $ECHO_N "(cached) $ECHO_C" >&6 6597else 6598 ac_cv_header_valgrind_h=$ac_header_preproc 6599fi 6600echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5 6601echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6 6602 6603fi 6604if test $ac_cv_header_valgrind_h = yes; then 6605 have_valgrind_h=yes 6606else 6607 have_valgrind_h=no 6608fi 6609 6610 6611 6612if test x$ac_valgrind_checking != x ; then 6613 # It is certainly possible that there's valgrind but no valgrind.h. 6614 # GCC relies on making annotations so we must have both. 6615 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5 6616echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6 6617 cat >conftest.$ac_ext <<_ACEOF 6618/* confdefs.h. */ 6619_ACEOF 6620cat confdefs.h >>conftest.$ac_ext 6621cat >>conftest.$ac_ext <<_ACEOF 6622/* end confdefs.h. */ 6623#include <valgrind/memcheck.h> 6624#ifndef VALGRIND_DISCARD 6625#error VALGRIND_DISCARD not defined 6626#endif 6627_ACEOF 6628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6630 ac_status=$? 6631 grep -v '^ *+' conftest.er1 >conftest.err 6632 rm -f conftest.er1 6633 cat conftest.err >&5 6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6635 (exit $ac_status); } >/dev/null; then 6636 if test -s conftest.err; then 6637 ac_cpp_err=$ac_c_preproc_warn_flag 6638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6639 else 6640 ac_cpp_err= 6641 fi 6642else 6643 ac_cpp_err=yes 6644fi 6645if test -z "$ac_cpp_err"; then 6646 gcc_cv_header_valgrind_memcheck_h=yes 6647else 6648 echo "$as_me: failed program was:" >&5 6649sed 's/^/| /' conftest.$ac_ext >&5 6650 6651 gcc_cv_header_valgrind_memcheck_h=no 6652fi 6653rm -f conftest.err conftest.$ac_ext 6654 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5 6655echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6 6656 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5 6657echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6 6658 cat >conftest.$ac_ext <<_ACEOF 6659/* confdefs.h. */ 6660_ACEOF 6661cat confdefs.h >>conftest.$ac_ext 6662cat >>conftest.$ac_ext <<_ACEOF 6663/* end confdefs.h. */ 6664#include <memcheck.h> 6665#ifndef VALGRIND_DISCARD 6666#error VALGRIND_DISCARD not defined 6667#endif 6668_ACEOF 6669if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6671 ac_status=$? 6672 grep -v '^ *+' conftest.er1 >conftest.err 6673 rm -f conftest.er1 6674 cat conftest.err >&5 6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6676 (exit $ac_status); } >/dev/null; then 6677 if test -s conftest.err; then 6678 ac_cpp_err=$ac_c_preproc_warn_flag 6679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6680 else 6681 ac_cpp_err= 6682 fi 6683else 6684 ac_cpp_err=yes 6685fi 6686if test -z "$ac_cpp_err"; then 6687 gcc_cv_header_memcheck_h=yes 6688else 6689 echo "$as_me: failed program was:" >&5 6690sed 's/^/| /' conftest.$ac_ext >&5 6691 6692 gcc_cv_header_memcheck_h=no 6693fi 6694rm -f conftest.err conftest.$ac_ext 6695 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5 6696echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6 6697 6698# Prepare PATH_SEPARATOR. 6699# The user is always right. 6700if test "${PATH_SEPARATOR+set}" != set; then 6701 echo "#! /bin/sh" >conf$$.sh 6702 echo "exit 0" >>conf$$.sh 6703 chmod +x conf$$.sh 6704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6705 PATH_SEPARATOR=';' 6706 else 6707 PATH_SEPARATOR=: 6708 fi 6709 rm -f conf$$.sh 6710fi 6711 6712# Find out how to test for executable files. Don't use a zero-byte file, 6713# as systems may use methods other than mode bits to determine executability. 6714cat >conf$$.file <<_ASEOF 6715#! /bin/sh 6716exit 0 6717_ASEOF 6718chmod +x conf$$.file 6719if test -x conf$$.file >/dev/null 2>&1; then 6720 ac_executable_p="test -x" 6721else 6722 ac_executable_p="test -f" 6723fi 6724rm -f conf$$.file 6725 6726# Extract the first word of "valgrind", so it can be a program name with args. 6727set dummy valgrind; ac_word=$2 6728echo "$as_me:$LINENO: checking for $ac_word" >&5 6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6730if test "${ac_cv_path_valgrind_path+set}" = set; then 6731 echo $ECHO_N "(cached) $ECHO_C" >&6 6732else 6733 case "$valgrind_path" in 6734 [\\/]* | ?:[\\/]*) 6735 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path. 6736 ;; 6737 *) 6738 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 6739 for ac_dir in $PATH; do 6740 IFS="$ac_save_IFS" 6741 test -z "$ac_dir" && ac_dir=. 6742 for ac_exec_ext in '' $ac_executable_extensions; do 6743 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 6744 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then 6745 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext" 6746 break 2 6747 fi 6748 fi 6749 done 6750 done 6751 IFS="$ac_save_IFS" 6752 ;; 6753esac 6754fi 6755valgrind_path="$ac_cv_path_valgrind_path" 6756if test -n "$valgrind_path"; then 6757 echo "$as_me:$LINENO: result: $valgrind_path" >&5 6758echo "${ECHO_T}$valgrind_path" >&6 6759else 6760 echo "$as_me:$LINENO: result: no" >&5 6761echo "${ECHO_T}no" >&6 6762fi 6763 6764 if test "x$valgrind_path" = "x" \ 6765 || (test $have_valgrind_h = no \ 6766 && test $gcc_cv_header_memcheck_h = no \ 6767 && test $gcc_cv_header_valgrind_memcheck_h = no); then 6768 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5 6769echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;} 6770 { (exit 1); exit 1; }; } 6771 fi 6772 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"' 6773 valgrind_command="$valgrind_path -q" 6774 6775cat >>confdefs.h <<\_ACEOF 6776#define ENABLE_VALGRIND_CHECKING 1 6777_ACEOF 6778 6779 if test $gcc_cv_header_valgrind_memcheck_h = yes; then 6780 6781cat >>confdefs.h <<\_ACEOF 6782#define HAVE_VALGRIND_MEMCHECK_H 1 6783_ACEOF 6784 6785 fi 6786 if test $gcc_cv_header_memcheck_h = yes; then 6787 6788cat >>confdefs.h <<\_ACEOF 6789#define HAVE_MEMCHECK_H 1 6790_ACEOF 6791 6792 fi 6793fi 6794 6795 6796 6797# Check whether --enable-mapped-location or --disable-mapped-location was given. 6798if test "${enable_mapped_location+set}" = set; then 6799 enableval="$enable_mapped_location" 6800 6801else 6802 enable_mapped_location=no 6803fi; 6804 6805if test "$enable_mapped_location" = yes ; then 6806 6807cat >>confdefs.h <<\_ACEOF 6808#define USE_MAPPED_LOCATION 1 6809_ACEOF 6810 6811fi 6812 6813# Enable code coverage collection 6814# Check whether --enable-coverage or --disable-coverage was given. 6815if test "${enable_coverage+set}" = set; then 6816 enableval="$enable_coverage" 6817 case "${enableval}" in 6818 yes|noopt) 6819 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0" 6820 ;; 6821 opt) 6822 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2" 6823 ;; 6824 no) 6825 # a.k.a. --disable-coverage 6826 coverage_flags="" 6827 ;; 6828 *) 6829 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5 6830echo "$as_me: error: unknown coverage setting $enableval" >&2;} 6831 { (exit 1); exit 1; }; } 6832 ;; 6833esac 6834else 6835 coverage_flags="" 6836fi; 6837 6838 6839# Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given. 6840if test "${enable_gather_detailed_mem_stats+set}" = set; then 6841 enableval="$enable_gather_detailed_mem_stats" 6842 6843else 6844 enable_gather_detailed_mem_stats=no 6845fi; 6846if test x$enable_gather_detailed_mem_stats = xyes ; then 6847 6848cat >>confdefs.h <<\_ACEOF 6849#define GATHER_STATISTICS 1 6850_ACEOF 6851 6852fi 6853 6854# ------------------------------- 6855# Miscenalleous configure options 6856# ------------------------------- 6857 6858# With stabs 6859 6860# Check whether --with-stabs or --without-stabs was given. 6861if test "${with_stabs+set}" = set; then 6862 withval="$with_stabs" 6863 stabs="$with_stabs" 6864else 6865 stabs=no 6866fi; 6867 6868# Determine whether or not multilibs are enabled. 6869# Check whether --enable-multilib or --disable-multilib was given. 6870if test "${enable_multilib+set}" = set; then 6871 enableval="$enable_multilib" 6872 6873else 6874 enable_multilib=yes 6875fi; 6876 6877 6878# Enable __cxa_atexit for C++. 6879# Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given. 6880if test "${enable___cxa_atexit+set}" = set; then 6881 enableval="$enable___cxa_atexit" 6882 6883fi; 6884 6885# Enable threads 6886# Pass with no value to take the default 6887# Pass with a value to specify a thread package 6888# Check whether --enable-threads or --disable-threads was given. 6889if test "${enable_threads+set}" = set; then 6890 enableval="$enable_threads" 6891 6892else 6893 enable_threads='' 6894fi; 6895 6896# Check whether --enable-tls or --disable-tls was given. 6897if test "${enable_tls+set}" = set; then 6898 enableval="$enable_tls" 6899 6900 case $enable_tls in 6901 yes | no) ;; 6902 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls. 6903Valid choices are 'yes' and 'no'." >&5 6904echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls. 6905Valid choices are 'yes' and 'no'." >&2;} 6906 { (exit 1); exit 1; }; } ;; 6907 esac 6908 6909else 6910 enable_tls='' 6911fi; 6912 6913# Check whether --enable-objc-gc or --disable-objc-gc was given. 6914if test "${enable_objc_gc+set}" = set; then 6915 enableval="$enable_objc_gc" 6916 if test x$enable_objc_gc = xno; then 6917 objc_boehm_gc='' 6918else 6919 objc_boehm_gc=1 6920fi 6921else 6922 objc_boehm_gc='' 6923fi; 6924 6925 6926# Check whether --with-dwarf2 or --without-dwarf2 was given. 6927if test "${with_dwarf2+set}" = set; then 6928 withval="$with_dwarf2" 6929 dwarf2="$with_dwarf2" 6930else 6931 dwarf2=no 6932fi; 6933 6934# Check whether --enable-shared or --disable-shared was given. 6935if test "${enable_shared+set}" = set; then 6936 enableval="$enable_shared" 6937 6938 case $enable_shared in 6939 yes | no) ;; 6940 *) 6941 enable_shared=no 6942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 6943 for pkg in $enableval; do 6944 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then 6945 enable_shared=yes 6946 fi 6947 done 6948 IFS="$ac_save_ifs" 6949 ;; 6950 esac 6951 6952else 6953 enable_shared=yes 6954fi; 6955 6956 6957 6958# Check whether --with-build-sysroot or --without-build-sysroot was given. 6959if test "${with_build_sysroot+set}" = set; then 6960 withval="$with_build_sysroot" 6961 6962fi; 6963 6964 6965# Check whether --with-sysroot or --without-sysroot was given. 6966if test "${with_sysroot+set}" = set; then 6967 withval="$with_sysroot" 6968 6969 case ${with_sysroot} in 6970 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;; 6971 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; 6972 esac 6973 6974 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' 6975 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)' 6976 6977 if test "x$exec_prefix" = xNONE; then 6978 if test "x$prefix" = xNONE; then 6979 test_prefix=/usr/local 6980 else 6981 test_prefix=$prefix 6982 fi 6983 else 6984 test_prefix=$exec_prefix 6985 fi 6986 case ${TARGET_SYSTEM_ROOT} in 6987 "${test_prefix}"|"${test_prefix}/"*|\ 6988 '${exec_prefix}'|'${exec_prefix}/'*) 6989 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" 6990 TARGET_SYSTEM_ROOT_DEFINE="$t" 6991 ;; 6992 esac 6993 6994else 6995 6996 TARGET_SYSTEM_ROOT= 6997 TARGET_SYSTEM_ROOT_DEFINE= 6998 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include' 6999 7000fi; 7001 7002 7003 7004 7005# Build with intermodule optimisations 7006# Check whether --enable-intermodule or --disable-intermodule was given. 7007if test "${enable_intermodule+set}" = set; then 7008 enableval="$enable_intermodule" 7009 case ${enable_intermodule} in 7010 yes) onestep="-onestep";; 7011 *) onestep="";; 7012esac 7013else 7014 onestep="" 7015fi; 7016 7017 7018# Sanity check enable_languages in case someone does not run the toplevel 7019# configure # script. 7020# Check whether --enable-languages or --disable-languages was given. 7021if test "${enable_languages+set}" = set; then 7022 enableval="$enable_languages" 7023 case ,${enable_languages}, in 7024 ,,|,yes,) 7025 # go safe -- we cannot be much sure without the toplevel 7026 # configure's 7027 # analysis of which target libs are present and usable 7028 enable_languages=c 7029 ;; 7030 *,all,*) 7031 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5 7032echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;} 7033 { (exit 1); exit 1; }; } 7034 ;; 7035 *,c,*) 7036 ;; 7037 *) 7038 enable_languages=c,${enable_languages} 7039 ;; 7040esac 7041else 7042 enable_languages=c 7043fi; 7044 7045subdirs= 7046for lang in ${srcdir}/*/config-lang.in 7047do 7048 case $lang in 7049 # The odd quoting in the next line works around 7050 # an apparent bug in bash 1.12 on linux. 7051 ${srcdir}/[*]/config-lang.in) ;; 7052 *) 7053 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` 7054 if test "x$lang_alias" = x 7055 then 7056 echo "$lang doesn't set \$language." 1>&2 7057 exit 1 7058 fi 7059 case ",$enable_languages," in 7060 *,$lang_alias,*) 7061 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;; 7062 esac 7063 ;; 7064 esac 7065done 7066 7067 7068# ------------------------- 7069# Checks for other programs 7070# ------------------------- 7071 7072echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7073echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 7074set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 7075if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 7076 echo $ECHO_N "(cached) $ECHO_C" >&6 7077else 7078 cat >conftest.make <<\_ACEOF 7079all: 7080 @echo 'ac_maketemp="$(MAKE)"' 7081_ACEOF 7082# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 7083eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 7084if test -n "$ac_maketemp"; then 7085 eval ac_cv_prog_make_${ac_make}_set=yes 7086else 7087 eval ac_cv_prog_make_${ac_make}_set=no 7088fi 7089rm -f conftest.make 7090fi 7091if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 7092 echo "$as_me:$LINENO: result: yes" >&5 7093echo "${ECHO_T}yes" >&6 7094 SET_MAKE= 7095else 7096 echo "$as_me:$LINENO: result: no" >&5 7097echo "${ECHO_T}no" >&6 7098 SET_MAKE="MAKE=${MAKE-make}" 7099fi 7100 7101 7102# Find some useful tools 7103for ac_prog in gawk mawk nawk awk 7104do 7105 # Extract the first word of "$ac_prog", so it can be a program name with args. 7106set dummy $ac_prog; ac_word=$2 7107echo "$as_me:$LINENO: checking for $ac_word" >&5 7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7109if test "${ac_cv_prog_AWK+set}" = set; then 7110 echo $ECHO_N "(cached) $ECHO_C" >&6 7111else 7112 if test -n "$AWK"; then 7113 ac_cv_prog_AWK="$AWK" # Let the user override the test. 7114else 7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7116for as_dir in $PATH 7117do 7118 IFS=$as_save_IFS 7119 test -z "$as_dir" && as_dir=. 7120 for ac_exec_ext in '' $ac_executable_extensions; do 7121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7122 ac_cv_prog_AWK="$ac_prog" 7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7124 break 2 7125 fi 7126done 7127done 7128 7129fi 7130fi 7131AWK=$ac_cv_prog_AWK 7132if test -n "$AWK"; then 7133 echo "$as_me:$LINENO: result: $AWK" >&5 7134echo "${ECHO_T}$AWK" >&6 7135else 7136 echo "$as_me:$LINENO: result: no" >&5 7137echo "${ECHO_T}no" >&6 7138fi 7139 7140 test -n "$AWK" && break 7141done 7142 7143# We need awk to create options.c and options.h. 7144# Bail out if it's missing. 7145case ${AWK} in 7146 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5 7147echo "$as_me: error: can't build without awk, bailing out" >&2;} 7148 { (exit 1); exit 1; }; } ;; 7149esac 7150 7151echo "$as_me:$LINENO: checking whether ln -s works" >&5 7152echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 7153if test "${gcc_cv_prog_LN_S+set}" = set; then 7154 echo $ECHO_N "(cached) $ECHO_C" >&6 7155else 7156 rm -f conftestdata_t 7157echo >conftestdata_f 7158if ln -s conftestdata_f conftestdata_t 2>/dev/null 7159then 7160 gcc_cv_prog_LN_S="ln -s" 7161else 7162 if ln conftestdata_f conftestdata_t 2>/dev/null 7163 then 7164 gcc_cv_prog_LN_S=ln 7165 else 7166 if cp -p conftestdata_f conftestdata_t 2>/dev/null 7167 then 7168 gcc_cv_prog_LN_S="cp -p" 7169 else 7170 gcc_cv_prog_LN_S=cp 7171 fi 7172 fi 7173fi 7174rm -f conftestdata_f conftestdata_t 7175 7176fi 7177LN_S="$gcc_cv_prog_LN_S" 7178if test "$gcc_cv_prog_LN_S" = "ln -s"; then 7179 echo "$as_me:$LINENO: result: yes" >&5 7180echo "${ECHO_T}yes" >&6 7181else 7182 if test "$gcc_cv_prog_LN_S" = "ln"; then 7183 echo "$as_me:$LINENO: result: no, using ln" >&5 7184echo "${ECHO_T}no, using ln" >&6 7185 else 7186 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5 7187echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6 7188 fi 7189fi 7190 7191echo "$as_me:$LINENO: checking whether ln works" >&5 7192echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 7193if test "${acx_cv_prog_LN+set}" = set; then 7194 echo $ECHO_N "(cached) $ECHO_C" >&6 7195else 7196 rm -f conftestdata_t 7197echo >conftestdata_f 7198if ln conftestdata_f conftestdata_t 2>/dev/null 7199then 7200 acx_cv_prog_LN=ln 7201else 7202 acx_cv_prog_LN=no 7203fi 7204rm -f conftestdata_f conftestdata_t 7205 7206fi 7207if test $acx_cv_prog_LN = no; then 7208 LN="$LN_S" 7209 echo "$as_me:$LINENO: result: no, using $LN" >&5 7210echo "${ECHO_T}no, using $LN" >&6 7211else 7212 LN="$acx_cv_prog_LN" 7213 echo "$as_me:$LINENO: result: yes" >&5 7214echo "${ECHO_T}yes" >&6 7215fi 7216 7217if test -n "$ac_tool_prefix"; then 7218 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7219set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7220echo "$as_me:$LINENO: checking for $ac_word" >&5 7221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7222if test "${ac_cv_prog_RANLIB+set}" = set; then 7223 echo $ECHO_N "(cached) $ECHO_C" >&6 7224else 7225 if test -n "$RANLIB"; then 7226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7227else 7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7229for as_dir in $PATH 7230do 7231 IFS=$as_save_IFS 7232 test -z "$as_dir" && as_dir=. 7233 for ac_exec_ext in '' $ac_executable_extensions; do 7234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7235 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7237 break 2 7238 fi 7239done 7240done 7241 7242fi 7243fi 7244RANLIB=$ac_cv_prog_RANLIB 7245if test -n "$RANLIB"; then 7246 echo "$as_me:$LINENO: result: $RANLIB" >&5 7247echo "${ECHO_T}$RANLIB" >&6 7248else 7249 echo "$as_me:$LINENO: result: no" >&5 7250echo "${ECHO_T}no" >&6 7251fi 7252 7253fi 7254if test -z "$ac_cv_prog_RANLIB"; then 7255 ac_ct_RANLIB=$RANLIB 7256 # Extract the first word of "ranlib", so it can be a program name with args. 7257set dummy ranlib; ac_word=$2 7258echo "$as_me:$LINENO: checking for $ac_word" >&5 7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7260if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7261 echo $ECHO_N "(cached) $ECHO_C" >&6 7262else 7263 if test -n "$ac_ct_RANLIB"; then 7264 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7265else 7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7267for as_dir in $PATH 7268do 7269 IFS=$as_save_IFS 7270 test -z "$as_dir" && as_dir=. 7271 for ac_exec_ext in '' $ac_executable_extensions; do 7272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7273 ac_cv_prog_ac_ct_RANLIB="ranlib" 7274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7275 break 2 7276 fi 7277done 7278done 7279 7280 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7281fi 7282fi 7283ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7284if test -n "$ac_ct_RANLIB"; then 7285 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7286echo "${ECHO_T}$ac_ct_RANLIB" >&6 7287else 7288 echo "$as_me:$LINENO: result: no" >&5 7289echo "${ECHO_T}no" >&6 7290fi 7291 7292 RANLIB=$ac_ct_RANLIB 7293else 7294 RANLIB="$ac_cv_prog_RANLIB" 7295fi 7296 7297case "${host}" in 7298*-*-darwin*) 7299 # By default, the Darwin ranlib will not treat common symbols as 7300 # definitions when building the archive table of contents. Other 7301 # ranlibs do that; pass an option to the Darwin ranlib that makes 7302 # it behave similarly. 7303 ranlib_flags="-c" 7304 ;; 7305*) 7306 ranlib_flags="" 7307esac 7308 7309 7310# Find a good install program. We prefer a C program (faster), 7311# so one script is as good as another. But avoid the broken or 7312# incompatible versions: 7313# SysV /etc/install, /usr/sbin/install 7314# SunOS /usr/etc/install 7315# IRIX /sbin/install 7316# AIX /bin/install 7317# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7318# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7319# ./install, which can be erroneously created by make from ./install.sh. 7320echo "$as_me:$LINENO: checking for a BSD compatible install" >&5 7321echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 7322if test -z "$INSTALL"; then 7323if test "${ac_cv_path_install+set}" = set; then 7324 echo $ECHO_N "(cached) $ECHO_C" >&6 7325else 7326 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 7327 for ac_dir in $PATH; do 7328 # Account for people who put trailing slashes in PATH elements. 7329 case "$ac_dir/" in 7330 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 7331 *) 7332 # OSF1 and SCO ODT 3.0 have their own names for install. 7333 for ac_prog in ginstall scoinst install; do 7334 if test -f $ac_dir/$ac_prog; then 7335 if test $ac_prog = install && 7336 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 7337 # AIX install. It has an incompatible calling convention. 7338 # OSF/1 installbsd also uses dspmsg, but is usable. 7339 : 7340 else 7341 ac_cv_path_install="$ac_dir/$ac_prog -c" 7342 break 2 7343 fi 7344 fi 7345 done 7346 ;; 7347 esac 7348 done 7349 IFS="$ac_save_IFS" 7350 7351fi 7352 if test "${ac_cv_path_install+set}" = set; then 7353 INSTALL="$ac_cv_path_install" 7354 else 7355 # As a last resort, use the slow shell script. We don't cache a 7356 # path for INSTALL within a source directory, because that will 7357 # break other packages using the cache if that directory is 7358 # removed, or if the path is relative. 7359 INSTALL="$ac_install_sh" 7360 fi 7361fi 7362echo "$as_me:$LINENO: result: $INSTALL" >&5 7363echo "${ECHO_T}$INSTALL" >&6 7364 7365# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7366# It thinks the first close brace ends the variable substitution. 7367test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7368 7369test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7370 7371 7372# See if cmp has --ignore-initial. 7373echo "$as_me:$LINENO: checking for cmp's capabilities" >&5 7374echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6 7375if test "${gcc_cv_prog_cmp_skip+set}" = set; then 7376 echo $ECHO_N "(cached) $ECHO_C" >&6 7377else 7378 echo abfoo >t1 7379 echo cdfoo >t2 7380 gcc_cv_prog_cmp_skip=slowcompare 7381 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 7382 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 7383 : 7384 else 7385 gcc_cv_prog_cmp_skip=gnucompare 7386 fi 7387 fi 7388 if test $gcc_cv_prog_cmp_skip = slowcompare ; then 7389 if cmp t1 t2 2 2 > /dev/null 2>&1; then 7390 if cmp t1 t2 1 1 > /dev/null 2>&1; then 7391 : 7392 else 7393 gcc_cv_prog_cmp_skip=fastcompare 7394 fi 7395 fi 7396 fi 7397 rm t1 t2 7398 7399fi 7400echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5 7401echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6 7402make_compare_target=$gcc_cv_prog_cmp_skip 7403 7404 7405 7406# See if we have the mktemp command. 7407# Extract the first word of "mktemp", so it can be a program name with args. 7408set dummy mktemp; ac_word=$2 7409echo "$as_me:$LINENO: checking for $ac_word" >&5 7410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7411if test "${ac_cv_prog_have_mktemp_command+set}" = set; then 7412 echo $ECHO_N "(cached) $ECHO_C" >&6 7413else 7414 if test -n "$have_mktemp_command"; then 7415 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test. 7416else 7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7418for as_dir in $PATH 7419do 7420 IFS=$as_save_IFS 7421 test -z "$as_dir" && as_dir=. 7422 for ac_exec_ext in '' $ac_executable_extensions; do 7423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7424 ac_cv_prog_have_mktemp_command="yes" 7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7426 break 2 7427 fi 7428done 7429done 7430 7431 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no" 7432fi 7433fi 7434have_mktemp_command=$ac_cv_prog_have_mktemp_command 7435if test -n "$have_mktemp_command"; then 7436 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5 7437echo "${ECHO_T}$have_mktemp_command" >&6 7438else 7439 echo "$as_me:$LINENO: result: no" >&5 7440echo "${ECHO_T}no" >&6 7441fi 7442 7443 7444MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing" 7445 7446# See if makeinfo has been installed and is modern enough 7447# that we can use it. 7448 7449ac_executable_extensions="$build_exeext" 7450 7451# Extract the first word of "makeinfo", so it can be a program name with args. 7452set dummy makeinfo; ac_word=$2 7453echo "$as_me:$LINENO: checking for $ac_word" >&5 7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7455if test "${ac_cv_prog_MAKEINFO+set}" = set; then 7456 echo $ECHO_N "(cached) $ECHO_C" >&6 7457else 7458 if test -n "$MAKEINFO"; then 7459 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 7460else 7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7462for as_dir in $PATH 7463do 7464 IFS=$as_save_IFS 7465 test -z "$as_dir" && as_dir=. 7466 for ac_exec_ext in '' $ac_executable_extensions; do 7467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7468 ac_cv_prog_MAKEINFO="makeinfo" 7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7470 break 2 7471 fi 7472done 7473done 7474 7475fi 7476fi 7477MAKEINFO=$ac_cv_prog_MAKEINFO 7478if test -n "$MAKEINFO"; then 7479 echo "$as_me:$LINENO: result: $MAKEINFO" >&5 7480echo "${ECHO_T}$MAKEINFO" >&6 7481else 7482 echo "$as_me:$LINENO: result: no" >&5 7483echo "${ECHO_T}no" >&6 7484fi 7485 7486if test -n "$MAKEINFO"; then 7487 # Found it, now check the version. 7488 echo "$as_me:$LINENO: checking for modern makeinfo" >&5 7489echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6 7490if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then 7491 echo $ECHO_N "(cached) $ECHO_C" >&6 7492else 7493 ac_prog_version=`$MAKEINFO --version 2>&1 | 7494 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 7495 echo "configure:7495: version of makeinfo is $ac_prog_version" >&5 7496 case $ac_prog_version in 7497 '') gcc_cv_prog_makeinfo_modern=no;; 7498 4.[2-9]*) 7499 gcc_cv_prog_makeinfo_modern=yes;; 7500 *) gcc_cv_prog_makeinfo_modern=no;; 7501 esac 7502 7503fi 7504echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5 7505echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6 7506else 7507 gcc_cv_prog_makeinfo_modern=no 7508fi 7509 7510if test $gcc_cv_prog_makeinfo_modern = no; then 7511 MAKEINFO="$MISSING makeinfo" 7512 { echo "$as_me:$LINENO: WARNING: 7513*** Makeinfo is missing or too old. 7514*** Info documentation will not be built." >&5 7515echo "$as_me: WARNING: 7516*** Makeinfo is missing or too old. 7517*** Info documentation will not be built." >&2;} 7518 BUILD_INFO= 7519else 7520 BUILD_INFO=info 7521fi 7522 7523 7524# Is pod2man recent enough to regenerate manpages? 7525echo "$as_me:$LINENO: checking for recent Pod::Man" >&5 7526echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6 7527if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then 7528 echo "$as_me:$LINENO: result: yes" >&5 7529echo "${ECHO_T}yes" >&6 7530 GENERATED_MANPAGES=generated-manpages 7531else 7532 echo "$as_me:$LINENO: result: no" >&5 7533echo "${ECHO_T}no" >&6 7534 GENERATED_MANPAGES= 7535fi 7536 7537 7538# How about lex? 7539for ac_prog in flex 7540do 7541 # Extract the first word of "$ac_prog", so it can be a program name with args. 7542set dummy $ac_prog; ac_word=$2 7543echo "$as_me:$LINENO: checking for $ac_word" >&5 7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7545if test "${ac_cv_prog_FLEX+set}" = set; then 7546 echo $ECHO_N "(cached) $ECHO_C" >&6 7547else 7548 if test -n "$FLEX"; then 7549 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 7550else 7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7552for as_dir in $PATH 7553do 7554 IFS=$as_save_IFS 7555 test -z "$as_dir" && as_dir=. 7556 for ac_exec_ext in '' $ac_executable_extensions; do 7557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7558 ac_cv_prog_FLEX="$ac_prog" 7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7560 break 2 7561 fi 7562done 7563done 7564 7565fi 7566fi 7567FLEX=$ac_cv_prog_FLEX 7568if test -n "$FLEX"; then 7569 echo "$as_me:$LINENO: result: $FLEX" >&5 7570echo "${ECHO_T}$FLEX" >&6 7571else 7572 echo "$as_me:$LINENO: result: no" >&5 7573echo "${ECHO_T}no" >&6 7574fi 7575 7576 test -n "$FLEX" && break 7577done 7578test -n "$FLEX" || FLEX="$MISSING flex" 7579 7580 7581# Bison? 7582for ac_prog in bison 7583do 7584 # Extract the first word of "$ac_prog", so it can be a program name with args. 7585set dummy $ac_prog; ac_word=$2 7586echo "$as_me:$LINENO: checking for $ac_word" >&5 7587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7588if test "${ac_cv_prog_BISON+set}" = set; then 7589 echo $ECHO_N "(cached) $ECHO_C" >&6 7590else 7591 if test -n "$BISON"; then 7592 ac_cv_prog_BISON="$BISON" # Let the user override the test. 7593else 7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7595for as_dir in $PATH 7596do 7597 IFS=$as_save_IFS 7598 test -z "$as_dir" && as_dir=. 7599 for ac_exec_ext in '' $ac_executable_extensions; do 7600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7601 ac_cv_prog_BISON="$ac_prog" 7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7603 break 2 7604 fi 7605done 7606done 7607 7608fi 7609fi 7610BISON=$ac_cv_prog_BISON 7611if test -n "$BISON"; then 7612 echo "$as_me:$LINENO: result: $BISON" >&5 7613echo "${ECHO_T}$BISON" >&6 7614else 7615 echo "$as_me:$LINENO: result: no" >&5 7616echo "${ECHO_T}no" >&6 7617fi 7618 7619 test -n "$BISON" && break 7620done 7621test -n "$BISON" || BISON="$MISSING bison" 7622 7623 7624# Binutils are not build modules, unlike bison/flex/makeinfo. So we 7625# check for build == host before using them. 7626 7627# NM 7628if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \ 7629 && test -d ../binutils ; then 7630 NM='$(objdir)/../binutils/nm-new' 7631else 7632 # Extract the first word of "nm", so it can be a program name with args. 7633set dummy nm; ac_word=$2 7634echo "$as_me:$LINENO: checking for $ac_word" >&5 7635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7636if test "${ac_cv_prog_NM+set}" = set; then 7637 echo $ECHO_N "(cached) $ECHO_C" >&6 7638else 7639 if test -n "$NM"; then 7640 ac_cv_prog_NM="$NM" # Let the user override the test. 7641else 7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7643for as_dir in $PATH 7644do 7645 IFS=$as_save_IFS 7646 test -z "$as_dir" && as_dir=. 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7649 ac_cv_prog_NM="nm" 7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653done 7654done 7655 7656 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm" 7657fi 7658fi 7659NM=$ac_cv_prog_NM 7660if test -n "$NM"; then 7661 echo "$as_me:$LINENO: result: $NM" >&5 7662echo "${ECHO_T}$NM" >&6 7663else 7664 echo "$as_me:$LINENO: result: no" >&5 7665echo "${ECHO_T}no" >&6 7666fi 7667 7668fi 7669 7670# AR 7671if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \ 7672 && test -d ../binutils ; then 7673 AR='$(objdir)/../binutils/ar' 7674else 7675 # Extract the first word of "ar", so it can be a program name with args. 7676set dummy ar; ac_word=$2 7677echo "$as_me:$LINENO: checking for $ac_word" >&5 7678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7679if test "${ac_cv_prog_AR+set}" = set; then 7680 echo $ECHO_N "(cached) $ECHO_C" >&6 7681else 7682 if test -n "$AR"; then 7683 ac_cv_prog_AR="$AR" # Let the user override the test. 7684else 7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7686for as_dir in $PATH 7687do 7688 IFS=$as_save_IFS 7689 test -z "$as_dir" && as_dir=. 7690 for ac_exec_ext in '' $ac_executable_extensions; do 7691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7692 ac_cv_prog_AR="ar" 7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7694 break 2 7695 fi 7696done 7697done 7698 7699 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar" 7700fi 7701fi 7702AR=$ac_cv_prog_AR 7703if test -n "$AR"; then 7704 echo "$as_me:$LINENO: result: $AR" >&5 7705echo "${ECHO_T}$AR" >&6 7706else 7707 echo "$as_me:$LINENO: result: no" >&5 7708echo "${ECHO_T}no" >&6 7709fi 7710 7711fi 7712 7713 7714# -------------------- 7715# Checks for C headers 7716# -------------------- 7717 7718echo "$as_me:$LINENO: checking for GNU C library" >&5 7719echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6 7720if test "${gcc_cv_glibc+set}" = set; then 7721 echo $ECHO_N "(cached) $ECHO_C" >&6 7722else 7723 cat >conftest.$ac_ext <<_ACEOF 7724/* confdefs.h. */ 7725_ACEOF 7726cat confdefs.h >>conftest.$ac_ext 7727cat >>conftest.$ac_ext <<_ACEOF 7728/* end confdefs.h. */ 7729#include <features.h> 7730int 7731main () 7732{ 7733 7734#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 7735#error Not a GNU C library system 7736#endif 7737 ; 7738 return 0; 7739} 7740_ACEOF 7741rm -f conftest.$ac_objext 7742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7743 (eval $ac_compile) 2>conftest.er1 7744 ac_status=$? 7745 grep -v '^ *+' conftest.er1 >conftest.err 7746 rm -f conftest.er1 7747 cat conftest.err >&5 7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7749 (exit $ac_status); } && 7750 { ac_try='test -z "$ac_c_werror_flag" 7751 || test ! -s conftest.err' 7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7753 (eval $ac_try) 2>&5 7754 ac_status=$? 7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7756 (exit $ac_status); }; } && 7757 { ac_try='test -s conftest.$ac_objext' 7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7759 (eval $ac_try) 2>&5 7760 ac_status=$? 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7762 (exit $ac_status); }; }; then 7763 gcc_cv_glibc=yes 7764else 7765 echo "$as_me: failed program was:" >&5 7766sed 's/^/| /' conftest.$ac_ext >&5 7767 7768gcc_cv_glibc=no 7769fi 7770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7771fi 7772 7773echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5 7774echo "${ECHO_T}$gcc_cv_glibc" >&6 7775if test $gcc_cv_glibc = yes; then 7776 7777cat >>confdefs.h <<\_ACEOF 7778#define _GNU_SOURCE 1 7779_ACEOF 7780 7781fi 7782 7783# Need to reject headers which give warnings, so that the -Werror bootstrap 7784# works later. *sigh* This needs to come before all header checks. 7785 7786ac_c_preproc_warn_flag=yes 7787 7788echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7789echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 7790if test "${ac_cv_header_stdc+set}" = set; then 7791 echo $ECHO_N "(cached) $ECHO_C" >&6 7792else 7793 cat >conftest.$ac_ext <<_ACEOF 7794/* confdefs.h. */ 7795_ACEOF 7796cat confdefs.h >>conftest.$ac_ext 7797cat >>conftest.$ac_ext <<_ACEOF 7798/* end confdefs.h. */ 7799#include <stdlib.h> 7800#include <stdarg.h> 7801#include <string.h> 7802#include <float.h> 7803 7804int 7805main () 7806{ 7807 7808 ; 7809 return 0; 7810} 7811_ACEOF 7812rm -f conftest.$ac_objext 7813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7814 (eval $ac_compile) 2>conftest.er1 7815 ac_status=$? 7816 grep -v '^ *+' conftest.er1 >conftest.err 7817 rm -f conftest.er1 7818 cat conftest.err >&5 7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7820 (exit $ac_status); } && 7821 { ac_try='test -z "$ac_c_werror_flag" 7822 || test ! -s conftest.err' 7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7824 (eval $ac_try) 2>&5 7825 ac_status=$? 7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7827 (exit $ac_status); }; } && 7828 { ac_try='test -s conftest.$ac_objext' 7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7830 (eval $ac_try) 2>&5 7831 ac_status=$? 7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7833 (exit $ac_status); }; }; then 7834 ac_cv_header_stdc=yes 7835else 7836 echo "$as_me: failed program was:" >&5 7837sed 's/^/| /' conftest.$ac_ext >&5 7838 7839ac_cv_header_stdc=no 7840fi 7841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7842 7843if test $ac_cv_header_stdc = yes; then 7844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7845 cat >conftest.$ac_ext <<_ACEOF 7846/* confdefs.h. */ 7847_ACEOF 7848cat confdefs.h >>conftest.$ac_ext 7849cat >>conftest.$ac_ext <<_ACEOF 7850/* end confdefs.h. */ 7851#include <string.h> 7852 7853_ACEOF 7854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7855 $EGREP "memchr" >/dev/null 2>&1; then 7856 : 7857else 7858 ac_cv_header_stdc=no 7859fi 7860rm -f conftest* 7861 7862fi 7863 7864if test $ac_cv_header_stdc = yes; then 7865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7866 cat >conftest.$ac_ext <<_ACEOF 7867/* confdefs.h. */ 7868_ACEOF 7869cat confdefs.h >>conftest.$ac_ext 7870cat >>conftest.$ac_ext <<_ACEOF 7871/* end confdefs.h. */ 7872#include <stdlib.h> 7873 7874_ACEOF 7875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7876 $EGREP "free" >/dev/null 2>&1; then 7877 : 7878else 7879 ac_cv_header_stdc=no 7880fi 7881rm -f conftest* 7882 7883fi 7884 7885if test $ac_cv_header_stdc = yes; then 7886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7887 if test "$cross_compiling" = yes; then 7888 : 7889else 7890 cat >conftest.$ac_ext <<_ACEOF 7891/* confdefs.h. */ 7892_ACEOF 7893cat confdefs.h >>conftest.$ac_ext 7894cat >>conftest.$ac_ext <<_ACEOF 7895/* end confdefs.h. */ 7896#include <ctype.h> 7897#if ((' ' & 0x0FF) == 0x020) 7898# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7899# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7900#else 7901# define ISLOWER(c) \ 7902 (('a' <= (c) && (c) <= 'i') \ 7903 || ('j' <= (c) && (c) <= 'r') \ 7904 || ('s' <= (c) && (c) <= 'z')) 7905# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7906#endif 7907 7908#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7909int 7910main () 7911{ 7912 int i; 7913 for (i = 0; i < 256; i++) 7914 if (XOR (islower (i), ISLOWER (i)) 7915 || toupper (i) != TOUPPER (i)) 7916 exit(2); 7917 exit (0); 7918} 7919_ACEOF 7920rm -f conftest$ac_exeext 7921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7922 (eval $ac_link) 2>&5 7923 ac_status=$? 7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7927 (eval $ac_try) 2>&5 7928 ac_status=$? 7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7930 (exit $ac_status); }; }; then 7931 : 7932else 7933 echo "$as_me: program exited with status $ac_status" >&5 7934echo "$as_me: failed program was:" >&5 7935sed 's/^/| /' conftest.$ac_ext >&5 7936 7937( exit $ac_status ) 7938ac_cv_header_stdc=no 7939fi 7940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7941fi 7942fi 7943fi 7944echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7945echo "${ECHO_T}$ac_cv_header_stdc" >&6 7946if test $ac_cv_header_stdc = yes; then 7947 7948cat >>confdefs.h <<\_ACEOF 7949#define STDC_HEADERS 1 7950_ACEOF 7951 7952fi 7953 7954echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 7955echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 7956if test "${ac_cv_header_time+set}" = set; then 7957 echo $ECHO_N "(cached) $ECHO_C" >&6 7958else 7959 cat >conftest.$ac_ext <<_ACEOF 7960/* confdefs.h. */ 7961_ACEOF 7962cat confdefs.h >>conftest.$ac_ext 7963cat >>conftest.$ac_ext <<_ACEOF 7964/* end confdefs.h. */ 7965#include <sys/types.h> 7966#include <sys/time.h> 7967#include <time.h> 7968 7969int 7970main () 7971{ 7972if ((struct tm *) 0) 7973return 0; 7974 ; 7975 return 0; 7976} 7977_ACEOF 7978rm -f conftest.$ac_objext 7979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7980 (eval $ac_compile) 2>conftest.er1 7981 ac_status=$? 7982 grep -v '^ *+' conftest.er1 >conftest.err 7983 rm -f conftest.er1 7984 cat conftest.err >&5 7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7986 (exit $ac_status); } && 7987 { ac_try='test -z "$ac_c_werror_flag" 7988 || test ! -s conftest.err' 7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7990 (eval $ac_try) 2>&5 7991 ac_status=$? 7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7993 (exit $ac_status); }; } && 7994 { ac_try='test -s conftest.$ac_objext' 7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7996 (eval $ac_try) 2>&5 7997 ac_status=$? 7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7999 (exit $ac_status); }; }; then 8000 ac_cv_header_time=yes 8001else 8002 echo "$as_me: failed program was:" >&5 8003sed 's/^/| /' conftest.$ac_ext >&5 8004 8005ac_cv_header_time=no 8006fi 8007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8008fi 8009echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 8010echo "${ECHO_T}$ac_cv_header_time" >&6 8011if test $ac_cv_header_time = yes; then 8012 8013cat >>confdefs.h <<\_ACEOF 8014#define TIME_WITH_SYS_TIME 1 8015_ACEOF 8016 8017fi 8018 8019echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 8020echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 8021if test "${gcc_cv_header_string+set}" = set; then 8022 echo $ECHO_N "(cached) $ECHO_C" >&6 8023else 8024 cat >conftest.$ac_ext <<_ACEOF 8025/* confdefs.h. */ 8026_ACEOF 8027cat confdefs.h >>conftest.$ac_ext 8028cat >>conftest.$ac_ext <<_ACEOF 8029/* end confdefs.h. */ 8030#include <string.h> 8031#include <strings.h> 8032int 8033main () 8034{ 8035 8036 ; 8037 return 0; 8038} 8039_ACEOF 8040rm -f conftest.$ac_objext 8041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8042 (eval $ac_compile) 2>conftest.er1 8043 ac_status=$? 8044 grep -v '^ *+' conftest.er1 >conftest.err 8045 rm -f conftest.er1 8046 cat conftest.err >&5 8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8048 (exit $ac_status); } && 8049 { ac_try='test -z "$ac_c_werror_flag" 8050 || test ! -s conftest.err' 8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8052 (eval $ac_try) 2>&5 8053 ac_status=$? 8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8055 (exit $ac_status); }; } && 8056 { ac_try='test -s conftest.$ac_objext' 8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8058 (eval $ac_try) 2>&5 8059 ac_status=$? 8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8061 (exit $ac_status); }; }; then 8062 gcc_cv_header_string=yes 8063else 8064 echo "$as_me: failed program was:" >&5 8065sed 's/^/| /' conftest.$ac_ext >&5 8066 8067gcc_cv_header_string=no 8068fi 8069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8070fi 8071echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 8072echo "${ECHO_T}$gcc_cv_header_string" >&6 8073if test $gcc_cv_header_string = yes; then 8074 8075cat >>confdefs.h <<\_ACEOF 8076#define STRING_WITH_STRINGS 1 8077_ACEOF 8078 8079fi 8080 8081echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 8082echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 8083if test "${ac_cv_header_sys_wait_h+set}" = set; then 8084 echo $ECHO_N "(cached) $ECHO_C" >&6 8085else 8086 cat >conftest.$ac_ext <<_ACEOF 8087/* confdefs.h. */ 8088_ACEOF 8089cat confdefs.h >>conftest.$ac_ext 8090cat >>conftest.$ac_ext <<_ACEOF 8091/* end confdefs.h. */ 8092#include <sys/types.h> 8093#include <sys/wait.h> 8094#ifndef WEXITSTATUS 8095# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 8096#endif 8097#ifndef WIFEXITED 8098# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 8099#endif 8100 8101int 8102main () 8103{ 8104 int s; 8105 wait (&s); 8106 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 8107 ; 8108 return 0; 8109} 8110_ACEOF 8111rm -f conftest.$ac_objext 8112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8113 (eval $ac_compile) 2>conftest.er1 8114 ac_status=$? 8115 grep -v '^ *+' conftest.er1 >conftest.err 8116 rm -f conftest.er1 8117 cat conftest.err >&5 8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 (exit $ac_status); } && 8120 { ac_try='test -z "$ac_c_werror_flag" 8121 || test ! -s conftest.err' 8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8123 (eval $ac_try) 2>&5 8124 ac_status=$? 8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8126 (exit $ac_status); }; } && 8127 { ac_try='test -s conftest.$ac_objext' 8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8129 (eval $ac_try) 2>&5 8130 ac_status=$? 8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8132 (exit $ac_status); }; }; then 8133 ac_cv_header_sys_wait_h=yes 8134else 8135 echo "$as_me: failed program was:" >&5 8136sed 's/^/| /' conftest.$ac_ext >&5 8137 8138ac_cv_header_sys_wait_h=no 8139fi 8140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8141fi 8142echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 8143echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 8144if test $ac_cv_header_sys_wait_h = yes; then 8145 8146cat >>confdefs.h <<\_ACEOF 8147#define HAVE_SYS_WAIT_H 1 8148_ACEOF 8149 8150fi 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \ 8175 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \ 8176 sys/resource.h sys/param.h sys/times.h sys/stat.h \ 8177 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h 8178do 8179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8180echo "$as_me:$LINENO: checking for $ac_header" >&5 8181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8182if eval "test \"\${$as_ac_Header+set}\" = set"; then 8183 echo $ECHO_N "(cached) $ECHO_C" >&6 8184else 8185 cat >conftest.$ac_ext <<_ACEOF 8186/* confdefs.h. */ 8187_ACEOF 8188cat confdefs.h >>conftest.$ac_ext 8189cat >>conftest.$ac_ext <<_ACEOF 8190/* end confdefs.h. */ 8191#include <$ac_header> 8192_ACEOF 8193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8195 ac_status=$? 8196 grep -v '^ *+' conftest.er1 >conftest.err 8197 rm -f conftest.er1 8198 cat conftest.err >&5 8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8200 (exit $ac_status); } >/dev/null; then 8201 if test -s conftest.err; then 8202 ac_cpp_err=$ac_c_preproc_warn_flag 8203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8204 else 8205 ac_cpp_err= 8206 fi 8207else 8208 ac_cpp_err=yes 8209fi 8210if test -z "$ac_cpp_err"; then 8211 eval "$as_ac_Header=yes" 8212else 8213 echo "$as_me: failed program was:" >&5 8214sed 's/^/| /' conftest.$ac_ext >&5 8215 8216 eval "$as_ac_Header=no" 8217fi 8218rm -f conftest.err conftest.$ac_ext 8219fi 8220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8222if test `eval echo '${'$as_ac_Header'}'` = yes; then 8223 cat >>confdefs.h <<_ACEOF 8224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8225_ACEOF 8226 8227fi 8228done 8229 8230 8231# Check for thread headers. 8232echo "$as_me:$LINENO: checking for thread.h" >&5 8233echo $ECHO_N "checking for thread.h... $ECHO_C" >&6 8234if test "${ac_cv_header_thread_h+set}" = set; then 8235 echo $ECHO_N "(cached) $ECHO_C" >&6 8236else 8237 cat >conftest.$ac_ext <<_ACEOF 8238/* confdefs.h. */ 8239_ACEOF 8240cat confdefs.h >>conftest.$ac_ext 8241cat >>conftest.$ac_ext <<_ACEOF 8242/* end confdefs.h. */ 8243#include <thread.h> 8244_ACEOF 8245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8247 ac_status=$? 8248 grep -v '^ *+' conftest.er1 >conftest.err 8249 rm -f conftest.er1 8250 cat conftest.err >&5 8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8252 (exit $ac_status); } >/dev/null; then 8253 if test -s conftest.err; then 8254 ac_cpp_err=$ac_c_preproc_warn_flag 8255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8256 else 8257 ac_cpp_err= 8258 fi 8259else 8260 ac_cpp_err=yes 8261fi 8262if test -z "$ac_cpp_err"; then 8263 ac_cv_header_thread_h=yes 8264else 8265 echo "$as_me: failed program was:" >&5 8266sed 's/^/| /' conftest.$ac_ext >&5 8267 8268 ac_cv_header_thread_h=no 8269fi 8270rm -f conftest.err conftest.$ac_ext 8271fi 8272echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5 8273echo "${ECHO_T}$ac_cv_header_thread_h" >&6 8274if test $ac_cv_header_thread_h = yes; then 8275 have_thread_h=yes 8276else 8277 have_thread_h= 8278fi 8279 8280echo "$as_me:$LINENO: checking for pthread.h" >&5 8281echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 8282if test "${ac_cv_header_pthread_h+set}" = set; then 8283 echo $ECHO_N "(cached) $ECHO_C" >&6 8284else 8285 cat >conftest.$ac_ext <<_ACEOF 8286/* confdefs.h. */ 8287_ACEOF 8288cat confdefs.h >>conftest.$ac_ext 8289cat >>conftest.$ac_ext <<_ACEOF 8290/* end confdefs.h. */ 8291#include <pthread.h> 8292_ACEOF 8293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8295 ac_status=$? 8296 grep -v '^ *+' conftest.er1 >conftest.err 8297 rm -f conftest.er1 8298 cat conftest.err >&5 8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8300 (exit $ac_status); } >/dev/null; then 8301 if test -s conftest.err; then 8302 ac_cpp_err=$ac_c_preproc_warn_flag 8303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8304 else 8305 ac_cpp_err= 8306 fi 8307else 8308 ac_cpp_err=yes 8309fi 8310if test -z "$ac_cpp_err"; then 8311 ac_cv_header_pthread_h=yes 8312else 8313 echo "$as_me: failed program was:" >&5 8314sed 's/^/| /' conftest.$ac_ext >&5 8315 8316 ac_cv_header_pthread_h=no 8317fi 8318rm -f conftest.err conftest.$ac_ext 8319fi 8320echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 8321echo "${ECHO_T}$ac_cv_header_pthread_h" >&6 8322if test $ac_cv_header_pthread_h = yes; then 8323 have_pthread_h=yes 8324else 8325 have_pthread_h= 8326fi 8327 8328 8329# These tests can't be done till we know if we have limits.h. 8330echo "$as_me:$LINENO: checking for CHAR_BIT" >&5 8331echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6 8332if test "${gcc_cv_decl_char_bit+set}" = set; then 8333 echo $ECHO_N "(cached) $ECHO_C" >&6 8334else 8335 cat >conftest.$ac_ext <<_ACEOF 8336/* confdefs.h. */ 8337_ACEOF 8338cat confdefs.h >>conftest.$ac_ext 8339cat >>conftest.$ac_ext <<_ACEOF 8340/* end confdefs.h. */ 8341#ifdef HAVE_LIMITS_H 8342#include <limits.h> 8343#endif 8344#ifdef CHAR_BIT 8345found 8346#endif 8347_ACEOF 8348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8349 $EGREP "found" >/dev/null 2>&1; then 8350 gcc_cv_decl_char_bit=yes 8351else 8352 gcc_cv_decl_char_bit=no 8353fi 8354rm -f conftest* 8355 8356 8357fi 8358echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5 8359echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6 8360if test $gcc_cv_decl_char_bit = no; then 8361 echo "$as_me:$LINENO: checking number of bits in a byte" >&5 8362echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6 8363if test "${gcc_cv_c_nbby+set}" = set; then 8364 echo $ECHO_N "(cached) $ECHO_C" >&6 8365else 8366 i=8 8367 gcc_cv_c_nbby= 8368 while test $i -lt 65; do 8369 cat >conftest.$ac_ext <<_ACEOF 8370/* confdefs.h. */ 8371_ACEOF 8372cat confdefs.h >>conftest.$ac_ext 8373cat >>conftest.$ac_ext <<_ACEOF 8374/* end confdefs.h. */ 8375 8376int 8377main () 8378{ 8379switch(0) { 8380 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i): 8381 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)): 8382 ; } 8383 ; 8384 return 0; 8385} 8386_ACEOF 8387rm -f conftest.$ac_objext 8388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8389 (eval $ac_compile) 2>conftest.er1 8390 ac_status=$? 8391 grep -v '^ *+' conftest.er1 >conftest.err 8392 rm -f conftest.er1 8393 cat conftest.err >&5 8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8395 (exit $ac_status); } && 8396 { ac_try='test -z "$ac_c_werror_flag" 8397 || test ! -s conftest.err' 8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8399 (eval $ac_try) 2>&5 8400 ac_status=$? 8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8402 (exit $ac_status); }; } && 8403 { ac_try='test -s conftest.$ac_objext' 8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8405 (eval $ac_try) 2>&5 8406 ac_status=$? 8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8408 (exit $ac_status); }; }; then 8409 gcc_cv_c_nbby=$i; break 8410else 8411 echo "$as_me: failed program was:" >&5 8412sed 's/^/| /' conftest.$ac_ext >&5 8413 8414fi 8415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8416 i=`expr $i + 1` 8417 done 8418 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed 8419 8420fi 8421echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5 8422echo "${ECHO_T}$gcc_cv_c_nbby" >&6 8423if test $gcc_cv_c_nbby = failed; then 8424 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5 8425echo "$as_me: error: cannot determine number of bits in a byte" >&2;} 8426 { (exit 1); exit 1; }; } 8427else 8428 8429cat >>confdefs.h <<_ACEOF 8430#define CHAR_BIT $gcc_cv_c_nbby 8431_ACEOF 8432 8433fi 8434fi 8435echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 8436echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 8437if test "${ac_cv_c_bigendian+set}" = set; then 8438 echo $ECHO_N "(cached) $ECHO_C" >&6 8439else 8440 # See if sys/param.h defines the BYTE_ORDER macro. 8441cat >conftest.$ac_ext <<_ACEOF 8442/* confdefs.h. */ 8443_ACEOF 8444cat confdefs.h >>conftest.$ac_ext 8445cat >>conftest.$ac_ext <<_ACEOF 8446/* end confdefs.h. */ 8447#include <sys/types.h> 8448#include <sys/param.h> 8449 8450int 8451main () 8452{ 8453#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 8454 bogus endian macros 8455#endif 8456 8457 ; 8458 return 0; 8459} 8460_ACEOF 8461rm -f conftest.$ac_objext 8462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8463 (eval $ac_compile) 2>conftest.er1 8464 ac_status=$? 8465 grep -v '^ *+' conftest.er1 >conftest.err 8466 rm -f conftest.er1 8467 cat conftest.err >&5 8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8469 (exit $ac_status); } && 8470 { ac_try='test -z "$ac_c_werror_flag" 8471 || test ! -s conftest.err' 8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8473 (eval $ac_try) 2>&5 8474 ac_status=$? 8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8476 (exit $ac_status); }; } && 8477 { ac_try='test -s conftest.$ac_objext' 8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8479 (eval $ac_try) 2>&5 8480 ac_status=$? 8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8482 (exit $ac_status); }; }; then 8483 # It does; now see whether it defined to BIG_ENDIAN or not. 8484cat >conftest.$ac_ext <<_ACEOF 8485/* confdefs.h. */ 8486_ACEOF 8487cat confdefs.h >>conftest.$ac_ext 8488cat >>conftest.$ac_ext <<_ACEOF 8489/* end confdefs.h. */ 8490#include <sys/types.h> 8491#include <sys/param.h> 8492 8493int 8494main () 8495{ 8496#if BYTE_ORDER != BIG_ENDIAN 8497 not big endian 8498#endif 8499 8500 ; 8501 return 0; 8502} 8503_ACEOF 8504rm -f conftest.$ac_objext 8505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8506 (eval $ac_compile) 2>conftest.er1 8507 ac_status=$? 8508 grep -v '^ *+' conftest.er1 >conftest.err 8509 rm -f conftest.er1 8510 cat conftest.err >&5 8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8512 (exit $ac_status); } && 8513 { ac_try='test -z "$ac_c_werror_flag" 8514 || test ! -s conftest.err' 8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8516 (eval $ac_try) 2>&5 8517 ac_status=$? 8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8519 (exit $ac_status); }; } && 8520 { ac_try='test -s conftest.$ac_objext' 8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8522 (eval $ac_try) 2>&5 8523 ac_status=$? 8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8525 (exit $ac_status); }; }; then 8526 ac_cv_c_bigendian=yes 8527else 8528 echo "$as_me: failed program was:" >&5 8529sed 's/^/| /' conftest.$ac_ext >&5 8530 8531ac_cv_c_bigendian=no 8532fi 8533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8534else 8535 echo "$as_me: failed program was:" >&5 8536sed 's/^/| /' conftest.$ac_ext >&5 8537 8538# It does not; compile a test program. 8539if test "$cross_compiling" = yes; then 8540 # try to guess the endianness by grepping values into an object file 8541 ac_cv_c_bigendian=unknown 8542 cat >conftest.$ac_ext <<_ACEOF 8543/* confdefs.h. */ 8544_ACEOF 8545cat confdefs.h >>conftest.$ac_ext 8546cat >>conftest.$ac_ext <<_ACEOF 8547/* end confdefs.h. */ 8548short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8549short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8550void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 8551short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8552short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8553void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 8554int 8555main () 8556{ 8557 _ascii (); _ebcdic (); 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562rm -f conftest.$ac_objext 8563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8564 (eval $ac_compile) 2>conftest.er1 8565 ac_status=$? 8566 grep -v '^ *+' conftest.er1 >conftest.err 8567 rm -f conftest.er1 8568 cat conftest.err >&5 8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8570 (exit $ac_status); } && 8571 { ac_try='test -z "$ac_c_werror_flag" 8572 || test ! -s conftest.err' 8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8574 (eval $ac_try) 2>&5 8575 ac_status=$? 8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8577 (exit $ac_status); }; } && 8578 { ac_try='test -s conftest.$ac_objext' 8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8580 (eval $ac_try) 2>&5 8581 ac_status=$? 8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8583 (exit $ac_status); }; }; then 8584 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 8585 ac_cv_c_bigendian=yes 8586fi 8587if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 8588 if test "$ac_cv_c_bigendian" = unknown; then 8589 ac_cv_c_bigendian=no 8590 else 8591 # finding both strings is unlikely to happen, but who knows? 8592 ac_cv_c_bigendian=unknown 8593 fi 8594fi 8595else 8596 echo "$as_me: failed program was:" >&5 8597sed 's/^/| /' conftest.$ac_ext >&5 8598 8599fi 8600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8601else 8602 cat >conftest.$ac_ext <<_ACEOF 8603/* confdefs.h. */ 8604_ACEOF 8605cat confdefs.h >>conftest.$ac_ext 8606cat >>conftest.$ac_ext <<_ACEOF 8607/* end confdefs.h. */ 8608int 8609main () 8610{ 8611 /* Are we little or big endian? From Harbison&Steele. */ 8612 union 8613 { 8614 long l; 8615 char c[sizeof (long)]; 8616 } u; 8617 u.l = 1; 8618 exit (u.c[sizeof (long) - 1] == 1); 8619} 8620_ACEOF 8621rm -f conftest$ac_exeext 8622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8623 (eval $ac_link) 2>&5 8624 ac_status=$? 8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8628 (eval $ac_try) 2>&5 8629 ac_status=$? 8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8631 (exit $ac_status); }; }; then 8632 ac_cv_c_bigendian=no 8633else 8634 echo "$as_me: program exited with status $ac_status" >&5 8635echo "$as_me: failed program was:" >&5 8636sed 's/^/| /' conftest.$ac_ext >&5 8637 8638( exit $ac_status ) 8639ac_cv_c_bigendian=yes 8640fi 8641rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8642fi 8643fi 8644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8645fi 8646echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 8647echo "${ECHO_T}$ac_cv_c_bigendian" >&6 8648case $ac_cv_c_bigendian in 8649 yes) 8650 8651cat >>confdefs.h <<\_ACEOF 8652#define WORDS_BIGENDIAN 1 8653_ACEOF 8654 ;; 8655 no) 8656 ;; 8657 *) 8658 { { echo "$as_me:$LINENO: error: unknown endianness 8659presetting ac_cv_c_bigendian=no (or yes) will help" >&5 8660echo "$as_me: error: unknown endianness 8661presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 8662 { (exit 1); exit 1; }; } ;; 8663esac 8664 8665 8666# -------- 8667# UNSORTED 8668# -------- 8669 8670# Stage specific cflags for build. 8671stage1_cflags= 8672case $build in 8673vax-*-*) 8674 if test x$GCC = xyes 8675 then 8676 stage1_cflags="-Wa,-J" 8677 else 8678 stage1_cflags="-J" 8679 fi 8680 ;; 8681powerpc-*-darwin*) 8682 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC 8683 # sources; use -no-cpp-precomp to get to GNU cpp. 8684 # Apple's GCC has bugs in designated initializer handling, so disable 8685 # that too. 8686 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0" 8687 ;; 8688esac 8689 8690 8691# These libraries may be used by collect2. 8692# We may need a special search path to get them linked. 8693echo "$as_me:$LINENO: checking for collect2 libraries" >&5 8694echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6 8695if test "${gcc_cv_collect2_libs+set}" = set; then 8696 echo $ECHO_N "(cached) $ECHO_C" >&6 8697else 8698 save_LIBS="$LIBS" 8699for libs in '' -lld -lmld \ 8700 '-L/usr/lib/cmplrs/cc2.11 -lmld' \ 8701 '-L/usr/lib/cmplrs/cc3.11 -lmld' 8702do 8703 LIBS="$libs" 8704 cat >conftest.$ac_ext <<_ACEOF 8705/* confdefs.h. */ 8706_ACEOF 8707cat confdefs.h >>conftest.$ac_ext 8708cat >>conftest.$ac_ext <<_ACEOF 8709/* end confdefs.h. */ 8710 8711/* Override any gcc2 internal prototype to avoid an error. */ 8712#ifdef __cplusplus 8713extern "C" 8714#endif 8715/* We use char because int might match the return type of a gcc2 8716 builtin and then its argument prototype would still apply. */ 8717char ldopen (); 8718int 8719main () 8720{ 8721ldopen (); 8722 ; 8723 return 0; 8724} 8725_ACEOF 8726rm -f conftest.$ac_objext conftest$ac_exeext 8727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8728 (eval $ac_link) 2>conftest.er1 8729 ac_status=$? 8730 grep -v '^ *+' conftest.er1 >conftest.err 8731 rm -f conftest.er1 8732 cat conftest.err >&5 8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8734 (exit $ac_status); } && 8735 { ac_try='test -z "$ac_c_werror_flag" 8736 || test ! -s conftest.err' 8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8738 (eval $ac_try) 2>&5 8739 ac_status=$? 8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8741 (exit $ac_status); }; } && 8742 { ac_try='test -s conftest$ac_exeext' 8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8744 (eval $ac_try) 2>&5 8745 ac_status=$? 8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8747 (exit $ac_status); }; }; then 8748 gcc_cv_collect2_libs="$libs"; break 8749else 8750 echo "$as_me: failed program was:" >&5 8751sed 's/^/| /' conftest.$ac_ext >&5 8752 8753fi 8754rm -f conftest.err conftest.$ac_objext \ 8755 conftest$ac_exeext conftest.$ac_ext 8756done 8757LIBS="$save_LIBS" 8758test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required' 8759fi 8760echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5 8761echo "${ECHO_T}$gcc_cv_collect2_libs" >&6 8762case $gcc_cv_collect2_libs in 8763 "none required") ;; 8764 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;; 8765esac 8766 8767 8768# When building Ada code on Alpha, we need exc_resume which is usually in 8769# -lexc. So test for it. 8770save_LIBS="$LIBS" 8771LIBS= 8772echo "$as_me:$LINENO: checking for library containing exc_resume" >&5 8773echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6 8774if test "${ac_cv_search_exc_resume+set}" = set; then 8775 echo $ECHO_N "(cached) $ECHO_C" >&6 8776else 8777 ac_func_search_save_LIBS=$LIBS 8778ac_cv_search_exc_resume=no 8779cat >conftest.$ac_ext <<_ACEOF 8780/* confdefs.h. */ 8781_ACEOF 8782cat confdefs.h >>conftest.$ac_ext 8783cat >>conftest.$ac_ext <<_ACEOF 8784/* end confdefs.h. */ 8785 8786/* Override any gcc2 internal prototype to avoid an error. */ 8787#ifdef __cplusplus 8788extern "C" 8789#endif 8790/* We use char because int might match the return type of a gcc2 8791 builtin and then its argument prototype would still apply. */ 8792char exc_resume (); 8793int 8794main () 8795{ 8796exc_resume (); 8797 ; 8798 return 0; 8799} 8800_ACEOF 8801rm -f conftest.$ac_objext conftest$ac_exeext 8802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8803 (eval $ac_link) 2>conftest.er1 8804 ac_status=$? 8805 grep -v '^ *+' conftest.er1 >conftest.err 8806 rm -f conftest.er1 8807 cat conftest.err >&5 8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8809 (exit $ac_status); } && 8810 { ac_try='test -z "$ac_c_werror_flag" 8811 || test ! -s conftest.err' 8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8813 (eval $ac_try) 2>&5 8814 ac_status=$? 8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8816 (exit $ac_status); }; } && 8817 { ac_try='test -s conftest$ac_exeext' 8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8819 (eval $ac_try) 2>&5 8820 ac_status=$? 8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8822 (exit $ac_status); }; }; then 8823 ac_cv_search_exc_resume="none required" 8824else 8825 echo "$as_me: failed program was:" >&5 8826sed 's/^/| /' conftest.$ac_ext >&5 8827 8828fi 8829rm -f conftest.err conftest.$ac_objext \ 8830 conftest$ac_exeext conftest.$ac_ext 8831if test "$ac_cv_search_exc_resume" = no; then 8832 for ac_lib in exc; do 8833 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8834 cat >conftest.$ac_ext <<_ACEOF 8835/* confdefs.h. */ 8836_ACEOF 8837cat confdefs.h >>conftest.$ac_ext 8838cat >>conftest.$ac_ext <<_ACEOF 8839/* end confdefs.h. */ 8840 8841/* Override any gcc2 internal prototype to avoid an error. */ 8842#ifdef __cplusplus 8843extern "C" 8844#endif 8845/* We use char because int might match the return type of a gcc2 8846 builtin and then its argument prototype would still apply. */ 8847char exc_resume (); 8848int 8849main () 8850{ 8851exc_resume (); 8852 ; 8853 return 0; 8854} 8855_ACEOF 8856rm -f conftest.$ac_objext conftest$ac_exeext 8857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8858 (eval $ac_link) 2>conftest.er1 8859 ac_status=$? 8860 grep -v '^ *+' conftest.er1 >conftest.err 8861 rm -f conftest.er1 8862 cat conftest.err >&5 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 (exit $ac_status); } && 8865 { ac_try='test -z "$ac_c_werror_flag" 8866 || test ! -s conftest.err' 8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8868 (eval $ac_try) 2>&5 8869 ac_status=$? 8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8871 (exit $ac_status); }; } && 8872 { ac_try='test -s conftest$ac_exeext' 8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8874 (eval $ac_try) 2>&5 8875 ac_status=$? 8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8877 (exit $ac_status); }; }; then 8878 ac_cv_search_exc_resume="-l$ac_lib" 8879break 8880else 8881 echo "$as_me: failed program was:" >&5 8882sed 's/^/| /' conftest.$ac_ext >&5 8883 8884fi 8885rm -f conftest.err conftest.$ac_objext \ 8886 conftest$ac_exeext conftest.$ac_ext 8887 done 8888fi 8889LIBS=$ac_func_search_save_LIBS 8890fi 8891echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5 8892echo "${ECHO_T}$ac_cv_search_exc_resume" >&6 8893if test "$ac_cv_search_exc_resume" != no; then 8894 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS" 8895 8896fi 8897 8898GNAT_LIBEXC="$LIBS" 8899LIBS="$save_LIBS" 8900 8901 8902# Some systems put ldexp and frexp in libm instead of libc; assume 8903# they're both in the same place. jcf-dump needs them. 8904save_LIBS="$LIBS" 8905LIBS= 8906echo "$as_me:$LINENO: checking for library containing ldexp" >&5 8907echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6 8908if test "${ac_cv_search_ldexp+set}" = set; then 8909 echo $ECHO_N "(cached) $ECHO_C" >&6 8910else 8911 ac_func_search_save_LIBS=$LIBS 8912ac_cv_search_ldexp=no 8913cat >conftest.$ac_ext <<_ACEOF 8914/* confdefs.h. */ 8915_ACEOF 8916cat confdefs.h >>conftest.$ac_ext 8917cat >>conftest.$ac_ext <<_ACEOF 8918/* end confdefs.h. */ 8919 8920/* Override any gcc2 internal prototype to avoid an error. */ 8921#ifdef __cplusplus 8922extern "C" 8923#endif 8924/* We use char because int might match the return type of a gcc2 8925 builtin and then its argument prototype would still apply. */ 8926char ldexp (); 8927int 8928main () 8929{ 8930ldexp (); 8931 ; 8932 return 0; 8933} 8934_ACEOF 8935rm -f conftest.$ac_objext conftest$ac_exeext 8936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8937 (eval $ac_link) 2>conftest.er1 8938 ac_status=$? 8939 grep -v '^ *+' conftest.er1 >conftest.err 8940 rm -f conftest.er1 8941 cat conftest.err >&5 8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8943 (exit $ac_status); } && 8944 { ac_try='test -z "$ac_c_werror_flag" 8945 || test ! -s conftest.err' 8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8947 (eval $ac_try) 2>&5 8948 ac_status=$? 8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8950 (exit $ac_status); }; } && 8951 { ac_try='test -s conftest$ac_exeext' 8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8953 (eval $ac_try) 2>&5 8954 ac_status=$? 8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8956 (exit $ac_status); }; }; then 8957 ac_cv_search_ldexp="none required" 8958else 8959 echo "$as_me: failed program was:" >&5 8960sed 's/^/| /' conftest.$ac_ext >&5 8961 8962fi 8963rm -f conftest.err conftest.$ac_objext \ 8964 conftest$ac_exeext conftest.$ac_ext 8965if test "$ac_cv_search_ldexp" = no; then 8966 for ac_lib in m; do 8967 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8968 cat >conftest.$ac_ext <<_ACEOF 8969/* confdefs.h. */ 8970_ACEOF 8971cat confdefs.h >>conftest.$ac_ext 8972cat >>conftest.$ac_ext <<_ACEOF 8973/* end confdefs.h. */ 8974 8975/* Override any gcc2 internal prototype to avoid an error. */ 8976#ifdef __cplusplus 8977extern "C" 8978#endif 8979/* We use char because int might match the return type of a gcc2 8980 builtin and then its argument prototype would still apply. */ 8981char ldexp (); 8982int 8983main () 8984{ 8985ldexp (); 8986 ; 8987 return 0; 8988} 8989_ACEOF 8990rm -f conftest.$ac_objext conftest$ac_exeext 8991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8992 (eval $ac_link) 2>conftest.er1 8993 ac_status=$? 8994 grep -v '^ *+' conftest.er1 >conftest.err 8995 rm -f conftest.er1 8996 cat conftest.err >&5 8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8998 (exit $ac_status); } && 8999 { ac_try='test -z "$ac_c_werror_flag" 9000 || test ! -s conftest.err' 9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9002 (eval $ac_try) 2>&5 9003 ac_status=$? 9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9005 (exit $ac_status); }; } && 9006 { ac_try='test -s conftest$ac_exeext' 9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9008 (eval $ac_try) 2>&5 9009 ac_status=$? 9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9011 (exit $ac_status); }; }; then 9012 ac_cv_search_ldexp="-l$ac_lib" 9013break 9014else 9015 echo "$as_me: failed program was:" >&5 9016sed 's/^/| /' conftest.$ac_ext >&5 9017 9018fi 9019rm -f conftest.err conftest.$ac_objext \ 9020 conftest$ac_exeext conftest.$ac_ext 9021 done 9022fi 9023LIBS=$ac_func_search_save_LIBS 9024fi 9025echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5 9026echo "${ECHO_T}$ac_cv_search_ldexp" >&6 9027if test "$ac_cv_search_ldexp" != no; then 9028 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS" 9029 9030fi 9031 9032LDEXP_LIB="$LIBS" 9033LIBS="$save_LIBS" 9034 9035 9036# Use <inttypes.h> only if it exists, 9037# doesn't clash with <sys/types.h>, and declares intmax_t. 9038echo "$as_me:$LINENO: checking for inttypes.h" >&5 9039echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 9040if test "${gcc_cv_header_inttypes_h+set}" = set; then 9041 echo $ECHO_N "(cached) $ECHO_C" >&6 9042else 9043 cat >conftest.$ac_ext <<_ACEOF 9044/* confdefs.h. */ 9045_ACEOF 9046cat confdefs.h >>conftest.$ac_ext 9047cat >>conftest.$ac_ext <<_ACEOF 9048/* end confdefs.h. */ 9049#include <sys/types.h> 9050#include <inttypes.h> 9051int 9052main () 9053{ 9054intmax_t i = -1; 9055 ; 9056 return 0; 9057} 9058_ACEOF 9059rm -f conftest.$ac_objext 9060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9061 (eval $ac_compile) 2>conftest.er1 9062 ac_status=$? 9063 grep -v '^ *+' conftest.er1 >conftest.err 9064 rm -f conftest.er1 9065 cat conftest.err >&5 9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9067 (exit $ac_status); } && 9068 { ac_try='test -z "$ac_c_werror_flag" 9069 || test ! -s conftest.err' 9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9071 (eval $ac_try) 2>&5 9072 ac_status=$? 9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9074 (exit $ac_status); }; } && 9075 { ac_try='test -s conftest.$ac_objext' 9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9077 (eval $ac_try) 2>&5 9078 ac_status=$? 9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9080 (exit $ac_status); }; }; then 9081 gcc_cv_header_inttypes_h=yes 9082else 9083 echo "$as_me: failed program was:" >&5 9084sed 's/^/| /' conftest.$ac_ext >&5 9085 9086gcc_cv_header_inttypes_h=no 9087fi 9088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9089fi 9090 9091echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5 9092echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6 9093if test $gcc_cv_header_inttypes_h = yes; then 9094 9095cat >>confdefs.h <<\_ACEOF 9096#define HAVE_INTTYPES_H 1 9097_ACEOF 9098 9099fi 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138for ac_func in times clock kill getrlimit setrlimit atoll atoq \ 9139 sysconf strsignal getrusage nl_langinfo scandir alphasort \ 9140 gettimeofday mbstowcs wcswidth mmap mincore setlocale \ 9141 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 9142do 9143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9144echo "$as_me:$LINENO: checking for $ac_func" >&5 9145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9146if eval "test \"\${$as_ac_var+set}\" = set"; then 9147 echo $ECHO_N "(cached) $ECHO_C" >&6 9148else 9149 cat >conftest.$ac_ext <<_ACEOF 9150/* confdefs.h. */ 9151_ACEOF 9152cat confdefs.h >>conftest.$ac_ext 9153cat >>conftest.$ac_ext <<_ACEOF 9154/* end confdefs.h. */ 9155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9156 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9157#define $ac_func innocuous_$ac_func 9158 9159/* System header to define __stub macros and hopefully few prototypes, 9160 which can conflict with char $ac_func (); below. 9161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9162 <limits.h> exists even on freestanding compilers. */ 9163 9164#ifdef __STDC__ 9165# include <limits.h> 9166#else 9167# include <assert.h> 9168#endif 9169 9170#undef $ac_func 9171 9172/* Override any gcc2 internal prototype to avoid an error. */ 9173#ifdef __cplusplus 9174extern "C" 9175{ 9176#endif 9177/* We use char because int might match the return type of a gcc2 9178 builtin and then its argument prototype would still apply. */ 9179char $ac_func (); 9180/* The GNU C library defines this for functions which it implements 9181 to always fail with ENOSYS. Some functions are actually named 9182 something starting with __ and the normal name is an alias. */ 9183#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9184choke me 9185#else 9186char (*f) () = $ac_func; 9187#endif 9188#ifdef __cplusplus 9189} 9190#endif 9191 9192int 9193main () 9194{ 9195return f != $ac_func; 9196 ; 9197 return 0; 9198} 9199_ACEOF 9200rm -f conftest.$ac_objext conftest$ac_exeext 9201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9202 (eval $ac_link) 2>conftest.er1 9203 ac_status=$? 9204 grep -v '^ *+' conftest.er1 >conftest.err 9205 rm -f conftest.er1 9206 cat conftest.err >&5 9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9208 (exit $ac_status); } && 9209 { ac_try='test -z "$ac_c_werror_flag" 9210 || test ! -s conftest.err' 9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9212 (eval $ac_try) 2>&5 9213 ac_status=$? 9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9215 (exit $ac_status); }; } && 9216 { ac_try='test -s conftest$ac_exeext' 9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9218 (eval $ac_try) 2>&5 9219 ac_status=$? 9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9221 (exit $ac_status); }; }; then 9222 eval "$as_ac_var=yes" 9223else 9224 echo "$as_me: failed program was:" >&5 9225sed 's/^/| /' conftest.$ac_ext >&5 9226 9227eval "$as_ac_var=no" 9228fi 9229rm -f conftest.err conftest.$ac_objext \ 9230 conftest$ac_exeext conftest.$ac_ext 9231fi 9232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9233echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9234if test `eval echo '${'$as_ac_var'}'` = yes; then 9235 cat >>confdefs.h <<_ACEOF 9236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9237_ACEOF 9238 9239fi 9240done 9241 9242 9243if test x$ac_cv_func_mbstowcs = xyes; then 9244 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5 9245echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6 9246if test "${gcc_cv_func_mbstowcs_works+set}" = set; then 9247 echo $ECHO_N "(cached) $ECHO_C" >&6 9248else 9249 if test "$cross_compiling" = yes; then 9250 gcc_cv_func_mbstowcs_works=yes 9251else 9252 cat >conftest.$ac_ext <<_ACEOF 9253/* confdefs.h. */ 9254_ACEOF 9255cat confdefs.h >>conftest.$ac_ext 9256cat >>conftest.$ac_ext <<_ACEOF 9257/* end confdefs.h. */ 9258#include <stdlib.h> 9259int main() 9260{ 9261 mbstowcs(0, "", 0); 9262 return 0; 9263} 9264_ACEOF 9265rm -f conftest$ac_exeext 9266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9267 (eval $ac_link) 2>&5 9268 ac_status=$? 9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9272 (eval $ac_try) 2>&5 9273 ac_status=$? 9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9275 (exit $ac_status); }; }; then 9276 gcc_cv_func_mbstowcs_works=yes 9277else 9278 echo "$as_me: program exited with status $ac_status" >&5 9279echo "$as_me: failed program was:" >&5 9280sed 's/^/| /' conftest.$ac_ext >&5 9281 9282( exit $ac_status ) 9283gcc_cv_func_mbstowcs_works=no 9284fi 9285rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9286fi 9287fi 9288echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5 9289echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6 9290 if test x$gcc_cv_func_mbstowcs_works = xyes; then 9291 9292cat >>confdefs.h <<\_ACEOF 9293#define HAVE_WORKING_MBSTOWCS 1 9294_ACEOF 9295 9296 fi 9297fi 9298 9299echo "$as_me:$LINENO: checking for ssize_t" >&5 9300echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 9301if test "${ac_cv_type_ssize_t+set}" = set; then 9302 echo $ECHO_N "(cached) $ECHO_C" >&6 9303else 9304 cat >conftest.$ac_ext <<_ACEOF 9305/* confdefs.h. */ 9306_ACEOF 9307cat confdefs.h >>conftest.$ac_ext 9308cat >>conftest.$ac_ext <<_ACEOF 9309/* end confdefs.h. */ 9310$ac_includes_default 9311int 9312main () 9313{ 9314if ((ssize_t *) 0) 9315 return 0; 9316if (sizeof (ssize_t)) 9317 return 0; 9318 ; 9319 return 0; 9320} 9321_ACEOF 9322rm -f conftest.$ac_objext 9323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9324 (eval $ac_compile) 2>conftest.er1 9325 ac_status=$? 9326 grep -v '^ *+' conftest.er1 >conftest.err 9327 rm -f conftest.er1 9328 cat conftest.err >&5 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 (exit $ac_status); } && 9331 { ac_try='test -z "$ac_c_werror_flag" 9332 || test ! -s conftest.err' 9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9334 (eval $ac_try) 2>&5 9335 ac_status=$? 9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9337 (exit $ac_status); }; } && 9338 { ac_try='test -s conftest.$ac_objext' 9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9340 (eval $ac_try) 2>&5 9341 ac_status=$? 9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9343 (exit $ac_status); }; }; then 9344 ac_cv_type_ssize_t=yes 9345else 9346 echo "$as_me: failed program was:" >&5 9347sed 's/^/| /' conftest.$ac_ext >&5 9348 9349ac_cv_type_ssize_t=no 9350fi 9351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9352fi 9353echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 9354echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 9355if test $ac_cv_type_ssize_t = yes; then 9356 : 9357else 9358 9359cat >>confdefs.h <<_ACEOF 9360#define ssize_t int 9361_ACEOF 9362 9363fi 9364 9365 9366# Try to determine the array type of the second argument of getgroups 9367# for the target system (int or gid_t). 9368echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 9369echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 9370if test "${ac_cv_type_uid_t+set}" = set; then 9371 echo $ECHO_N "(cached) $ECHO_C" >&6 9372else 9373 cat >conftest.$ac_ext <<_ACEOF 9374/* confdefs.h. */ 9375_ACEOF 9376cat confdefs.h >>conftest.$ac_ext 9377cat >>conftest.$ac_ext <<_ACEOF 9378/* end confdefs.h. */ 9379#include <sys/types.h> 9380 9381_ACEOF 9382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9383 $EGREP "uid_t" >/dev/null 2>&1; then 9384 ac_cv_type_uid_t=yes 9385else 9386 ac_cv_type_uid_t=no 9387fi 9388rm -f conftest* 9389 9390fi 9391echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 9392echo "${ECHO_T}$ac_cv_type_uid_t" >&6 9393if test $ac_cv_type_uid_t = no; then 9394 9395cat >>confdefs.h <<\_ACEOF 9396#define uid_t int 9397_ACEOF 9398 9399 9400cat >>confdefs.h <<\_ACEOF 9401#define gid_t int 9402_ACEOF 9403 9404fi 9405 9406echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5 9407echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6 9408if test "${ac_cv_type_getgroups+set}" = set; then 9409 echo $ECHO_N "(cached) $ECHO_C" >&6 9410else 9411 if test "$cross_compiling" = yes; then 9412 ac_cv_type_getgroups=cross 9413else 9414 cat >conftest.$ac_ext <<_ACEOF 9415/* confdefs.h. */ 9416_ACEOF 9417cat confdefs.h >>conftest.$ac_ext 9418cat >>conftest.$ac_ext <<_ACEOF 9419/* end confdefs.h. */ 9420/* Thanks to Mike Rendell for this test. */ 9421#include <sys/types.h> 9422#define NGID 256 9423#undef MAX 9424#define MAX(x, y) ((x) > (y) ? (x) : (y)) 9425 9426int 9427main () 9428{ 9429 gid_t gidset[NGID]; 9430 int i, n; 9431 union { gid_t gval; long lval; } val; 9432 9433 val.lval = -1; 9434 for (i = 0; i < NGID; i++) 9435 gidset[i] = val.gval; 9436 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 9437 gidset); 9438 /* Exit non-zero if getgroups seems to require an array of ints. This 9439 happens when gid_t is short but getgroups modifies an array of ints. */ 9440 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); 9441} 9442_ACEOF 9443rm -f conftest$ac_exeext 9444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9445 (eval $ac_link) 2>&5 9446 ac_status=$? 9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9450 (eval $ac_try) 2>&5 9451 ac_status=$? 9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9453 (exit $ac_status); }; }; then 9454 ac_cv_type_getgroups=gid_t 9455else 9456 echo "$as_me: program exited with status $ac_status" >&5 9457echo "$as_me: failed program was:" >&5 9458sed 's/^/| /' conftest.$ac_ext >&5 9459 9460( exit $ac_status ) 9461ac_cv_type_getgroups=int 9462fi 9463rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9464fi 9465if test $ac_cv_type_getgroups = cross; then 9466 cat >conftest.$ac_ext <<_ACEOF 9467/* confdefs.h. */ 9468_ACEOF 9469cat confdefs.h >>conftest.$ac_ext 9470cat >>conftest.$ac_ext <<_ACEOF 9471/* end confdefs.h. */ 9472#include <unistd.h> 9473 9474_ACEOF 9475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9476 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then 9477 ac_cv_type_getgroups=gid_t 9478else 9479 ac_cv_type_getgroups=int 9480fi 9481rm -f conftest* 9482 9483fi 9484fi 9485echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5 9486echo "${ECHO_T}$ac_cv_type_getgroups" >&6 9487 9488cat >>confdefs.h <<_ACEOF 9489#define GETGROUPS_T $ac_cv_type_getgroups 9490_ACEOF 9491 9492 9493if test "${target}" = "${build}"; then 9494 TARGET_GETGROUPS_T=$ac_cv_type_getgroups 9495else 9496 case "${target}" in 9497 # This condition may need some tweaking. It should include all 9498 # targets where the array type of the second argument of getgroups 9499 # is int and the type of gid_t is not equivalent to int. 9500 *-*-sunos* | *-*-ultrix*) 9501 TARGET_GETGROUPS_T=int 9502 ;; 9503 *) 9504 TARGET_GETGROUPS_T=gid_t 9505 ;; 9506 esac 9507fi 9508 9509 9510 9511echo "$as_me:$LINENO: checking for sys/mman.h" >&5 9512echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6 9513if test "${ac_cv_header_sys_mman_h+set}" = set; then 9514 echo $ECHO_N "(cached) $ECHO_C" >&6 9515else 9516 cat >conftest.$ac_ext <<_ACEOF 9517/* confdefs.h. */ 9518_ACEOF 9519cat confdefs.h >>conftest.$ac_ext 9520cat >>conftest.$ac_ext <<_ACEOF 9521/* end confdefs.h. */ 9522#include <sys/mman.h> 9523_ACEOF 9524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9526 ac_status=$? 9527 grep -v '^ *+' conftest.er1 >conftest.err 9528 rm -f conftest.er1 9529 cat conftest.err >&5 9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9531 (exit $ac_status); } >/dev/null; then 9532 if test -s conftest.err; then 9533 ac_cpp_err=$ac_c_preproc_warn_flag 9534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9535 else 9536 ac_cpp_err= 9537 fi 9538else 9539 ac_cpp_err=yes 9540fi 9541if test -z "$ac_cpp_err"; then 9542 ac_cv_header_sys_mman_h=yes 9543else 9544 echo "$as_me: failed program was:" >&5 9545sed 's/^/| /' conftest.$ac_ext >&5 9546 9547 ac_cv_header_sys_mman_h=no 9548fi 9549rm -f conftest.err conftest.$ac_ext 9550fi 9551echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5 9552echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6 9553if test $ac_cv_header_sys_mman_h = yes; then 9554 gcc_header_sys_mman_h=yes 9555else 9556 gcc_header_sys_mman_h=no 9557fi 9558 9559echo "$as_me:$LINENO: checking for mmap" >&5 9560echo $ECHO_N "checking for mmap... $ECHO_C" >&6 9561if test "${ac_cv_func_mmap+set}" = set; then 9562 echo $ECHO_N "(cached) $ECHO_C" >&6 9563else 9564 cat >conftest.$ac_ext <<_ACEOF 9565/* confdefs.h. */ 9566_ACEOF 9567cat confdefs.h >>conftest.$ac_ext 9568cat >>conftest.$ac_ext <<_ACEOF 9569/* end confdefs.h. */ 9570/* Define mmap to an innocuous variant, in case <limits.h> declares mmap. 9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9572#define mmap innocuous_mmap 9573 9574/* System header to define __stub macros and hopefully few prototypes, 9575 which can conflict with char mmap (); below. 9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9577 <limits.h> exists even on freestanding compilers. */ 9578 9579#ifdef __STDC__ 9580# include <limits.h> 9581#else 9582# include <assert.h> 9583#endif 9584 9585#undef mmap 9586 9587/* Override any gcc2 internal prototype to avoid an error. */ 9588#ifdef __cplusplus 9589extern "C" 9590{ 9591#endif 9592/* We use char because int might match the return type of a gcc2 9593 builtin and then its argument prototype would still apply. */ 9594char mmap (); 9595/* The GNU C library defines this for functions which it implements 9596 to always fail with ENOSYS. Some functions are actually named 9597 something starting with __ and the normal name is an alias. */ 9598#if defined (__stub_mmap) || defined (__stub___mmap) 9599choke me 9600#else 9601char (*f) () = mmap; 9602#endif 9603#ifdef __cplusplus 9604} 9605#endif 9606 9607int 9608main () 9609{ 9610return f != mmap; 9611 ; 9612 return 0; 9613} 9614_ACEOF 9615rm -f conftest.$ac_objext conftest$ac_exeext 9616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9617 (eval $ac_link) 2>conftest.er1 9618 ac_status=$? 9619 grep -v '^ *+' conftest.er1 >conftest.err 9620 rm -f conftest.er1 9621 cat conftest.err >&5 9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9623 (exit $ac_status); } && 9624 { ac_try='test -z "$ac_c_werror_flag" 9625 || test ! -s conftest.err' 9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9627 (eval $ac_try) 2>&5 9628 ac_status=$? 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 (exit $ac_status); }; } && 9631 { ac_try='test -s conftest$ac_exeext' 9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9633 (eval $ac_try) 2>&5 9634 ac_status=$? 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9636 (exit $ac_status); }; }; then 9637 ac_cv_func_mmap=yes 9638else 9639 echo "$as_me: failed program was:" >&5 9640sed 's/^/| /' conftest.$ac_ext >&5 9641 9642ac_cv_func_mmap=no 9643fi 9644rm -f conftest.err conftest.$ac_objext \ 9645 conftest$ac_exeext conftest.$ac_ext 9646fi 9647echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5 9648echo "${ECHO_T}$ac_cv_func_mmap" >&6 9649if test $ac_cv_func_mmap = yes; then 9650 gcc_func_mmap=yes 9651else 9652 gcc_func_mmap=no 9653fi 9654 9655if test "$gcc_header_sys_mman_h" != yes \ 9656 || test "$gcc_func_mmap" != yes; then 9657 gcc_cv_func_mmap_file=no 9658 gcc_cv_func_mmap_dev_zero=no 9659 gcc_cv_func_mmap_anon=no 9660else 9661 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5 9662echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6 9663if test "${gcc_cv_func_mmap_file+set}" = set; then 9664 echo $ECHO_N "(cached) $ECHO_C" >&6 9665else 9666 # Add a system to this blacklist if 9667 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a 9668 # memory area containing the same data that you'd get if you applied 9669 # read() to the same fd. The only system known to have a problem here 9670 # is VMS, where text files have record structure. 9671 case "$host_os" in 9672 vms* | ultrix*) 9673 gcc_cv_func_mmap_file=no ;; 9674 *) 9675 gcc_cv_func_mmap_file=yes;; 9676 esac 9677fi 9678echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5 9679echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6 9680 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5 9681echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6 9682if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then 9683 echo $ECHO_N "(cached) $ECHO_C" >&6 9684else 9685 # Add a system to this blacklist if it has mmap() but /dev/zero 9686 # does not exist, or if mmapping /dev/zero does not give anonymous 9687 # zeroed pages with both the following properties: 9688 # 1. If you map N consecutive pages in with one call, and then 9689 # unmap any subset of those pages, the pages that were not 9690 # explicitly unmapped remain accessible. 9691 # 2. If you map two adjacent blocks of memory and then unmap them 9692 # both at once, they must both go away. 9693 # Systems known to be in this category are Windows (all variants), 9694 # VMS, and Darwin. 9695 case "$host_os" in 9696 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) 9697 gcc_cv_func_mmap_dev_zero=no ;; 9698 *) 9699 gcc_cv_func_mmap_dev_zero=yes;; 9700 esac 9701fi 9702echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5 9703echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6 9704 9705 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for. 9706 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5 9707echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6 9708if test "${gcc_cv_decl_map_anon+set}" = set; then 9709 echo $ECHO_N "(cached) $ECHO_C" >&6 9710else 9711 cat >conftest.$ac_ext <<_ACEOF 9712/* confdefs.h. */ 9713_ACEOF 9714cat confdefs.h >>conftest.$ac_ext 9715cat >>conftest.$ac_ext <<_ACEOF 9716/* end confdefs.h. */ 9717#include <sys/types.h> 9718#include <sys/mman.h> 9719#include <unistd.h> 9720 9721#ifndef MAP_ANONYMOUS 9722#define MAP_ANONYMOUS MAP_ANON 9723#endif 9724 9725int 9726main () 9727{ 9728int n = MAP_ANONYMOUS; 9729 ; 9730 return 0; 9731} 9732_ACEOF 9733rm -f conftest.$ac_objext 9734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9735 (eval $ac_compile) 2>conftest.er1 9736 ac_status=$? 9737 grep -v '^ *+' conftest.er1 >conftest.err 9738 rm -f conftest.er1 9739 cat conftest.err >&5 9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9741 (exit $ac_status); } && 9742 { ac_try='test -z "$ac_c_werror_flag" 9743 || test ! -s conftest.err' 9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9745 (eval $ac_try) 2>&5 9746 ac_status=$? 9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9748 (exit $ac_status); }; } && 9749 { ac_try='test -s conftest.$ac_objext' 9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9751 (eval $ac_try) 2>&5 9752 ac_status=$? 9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9754 (exit $ac_status); }; }; then 9755 gcc_cv_decl_map_anon=yes 9756else 9757 echo "$as_me: failed program was:" >&5 9758sed 's/^/| /' conftest.$ac_ext >&5 9759 9760gcc_cv_decl_map_anon=no 9761fi 9762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9763fi 9764echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5 9765echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6 9766 9767 if test $gcc_cv_decl_map_anon = no; then 9768 gcc_cv_func_mmap_anon=no 9769 else 9770 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5 9771echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6 9772if test "${gcc_cv_func_mmap_anon+set}" = set; then 9773 echo $ECHO_N "(cached) $ECHO_C" >&6 9774else 9775 # Add a system to this blacklist if it has mmap() and MAP_ANON or 9776 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 9777 # doesn't give anonymous zeroed pages with the same properties listed 9778 # above for use of /dev/zero. 9779 # Systems known to be in this category are Windows, VMS, and SCO Unix. 9780 case "$host_os" in 9781 vms* | cygwin* | pe | mingw* | sco* | udk* ) 9782 gcc_cv_func_mmap_anon=no ;; 9783 *) 9784 gcc_cv_func_mmap_anon=yes;; 9785 esac 9786fi 9787echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5 9788echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6 9789 fi 9790fi 9791 9792if test $gcc_cv_func_mmap_file = yes; then 9793 9794cat >>confdefs.h <<\_ACEOF 9795#define HAVE_MMAP_FILE 1 9796_ACEOF 9797 9798fi 9799if test $gcc_cv_func_mmap_dev_zero = yes; then 9800 9801cat >>confdefs.h <<\_ACEOF 9802#define HAVE_MMAP_DEV_ZERO 1 9803_ACEOF 9804 9805fi 9806if test $gcc_cv_func_mmap_anon = yes; then 9807 9808cat >>confdefs.h <<\_ACEOF 9809#define HAVE_MMAP_ANON 1 9810_ACEOF 9811 9812fi 9813 9814 9815case "${host}" in 9816*-*-*vms*) 9817 # Under VMS, vfork works very differently than on Unix. The standard test 9818 # won't work, and it isn't easily adaptable. It makes more sense to 9819 # just force it. 9820 ac_cv_func_vfork_works=yes 9821 ;; 9822esac 9823echo "$as_me:$LINENO: checking for pid_t" >&5 9824echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 9825if test "${ac_cv_type_pid_t+set}" = set; then 9826 echo $ECHO_N "(cached) $ECHO_C" >&6 9827else 9828 cat >conftest.$ac_ext <<_ACEOF 9829/* confdefs.h. */ 9830_ACEOF 9831cat confdefs.h >>conftest.$ac_ext 9832cat >>conftest.$ac_ext <<_ACEOF 9833/* end confdefs.h. */ 9834$ac_includes_default 9835int 9836main () 9837{ 9838if ((pid_t *) 0) 9839 return 0; 9840if (sizeof (pid_t)) 9841 return 0; 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846rm -f conftest.$ac_objext 9847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9848 (eval $ac_compile) 2>conftest.er1 9849 ac_status=$? 9850 grep -v '^ *+' conftest.er1 >conftest.err 9851 rm -f conftest.er1 9852 cat conftest.err >&5 9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9854 (exit $ac_status); } && 9855 { ac_try='test -z "$ac_c_werror_flag" 9856 || test ! -s conftest.err' 9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9858 (eval $ac_try) 2>&5 9859 ac_status=$? 9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9861 (exit $ac_status); }; } && 9862 { ac_try='test -s conftest.$ac_objext' 9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9864 (eval $ac_try) 2>&5 9865 ac_status=$? 9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9867 (exit $ac_status); }; }; then 9868 ac_cv_type_pid_t=yes 9869else 9870 echo "$as_me: failed program was:" >&5 9871sed 's/^/| /' conftest.$ac_ext >&5 9872 9873ac_cv_type_pid_t=no 9874fi 9875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9876fi 9877echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 9878echo "${ECHO_T}$ac_cv_type_pid_t" >&6 9879if test $ac_cv_type_pid_t = yes; then 9880 : 9881else 9882 9883cat >>confdefs.h <<_ACEOF 9884#define pid_t int 9885_ACEOF 9886 9887fi 9888 9889 9890 9891for ac_header in unistd.h vfork.h 9892do 9893as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9894echo "$as_me:$LINENO: checking for $ac_header" >&5 9895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9896if eval "test \"\${$as_ac_Header+set}\" = set"; then 9897 echo $ECHO_N "(cached) $ECHO_C" >&6 9898else 9899 cat >conftest.$ac_ext <<_ACEOF 9900/* confdefs.h. */ 9901_ACEOF 9902cat confdefs.h >>conftest.$ac_ext 9903cat >>conftest.$ac_ext <<_ACEOF 9904/* end confdefs.h. */ 9905#include <$ac_header> 9906_ACEOF 9907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9909 ac_status=$? 9910 grep -v '^ *+' conftest.er1 >conftest.err 9911 rm -f conftest.er1 9912 cat conftest.err >&5 9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9914 (exit $ac_status); } >/dev/null; then 9915 if test -s conftest.err; then 9916 ac_cpp_err=$ac_c_preproc_warn_flag 9917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9918 else 9919 ac_cpp_err= 9920 fi 9921else 9922 ac_cpp_err=yes 9923fi 9924if test -z "$ac_cpp_err"; then 9925 eval "$as_ac_Header=yes" 9926else 9927 echo "$as_me: failed program was:" >&5 9928sed 's/^/| /' conftest.$ac_ext >&5 9929 9930 eval "$as_ac_Header=no" 9931fi 9932rm -f conftest.err conftest.$ac_ext 9933fi 9934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9936if test `eval echo '${'$as_ac_Header'}'` = yes; then 9937 cat >>confdefs.h <<_ACEOF 9938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9939_ACEOF 9940 9941fi 9942done 9943 9944 9945 9946for ac_func in fork vfork 9947do 9948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9949echo "$as_me:$LINENO: checking for $ac_func" >&5 9950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9951if eval "test \"\${$as_ac_var+set}\" = set"; then 9952 echo $ECHO_N "(cached) $ECHO_C" >&6 9953else 9954 cat >conftest.$ac_ext <<_ACEOF 9955/* confdefs.h. */ 9956_ACEOF 9957cat confdefs.h >>conftest.$ac_ext 9958cat >>conftest.$ac_ext <<_ACEOF 9959/* end confdefs.h. */ 9960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9961 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9962#define $ac_func innocuous_$ac_func 9963 9964/* System header to define __stub macros and hopefully few prototypes, 9965 which can conflict with char $ac_func (); below. 9966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9967 <limits.h> exists even on freestanding compilers. */ 9968 9969#ifdef __STDC__ 9970# include <limits.h> 9971#else 9972# include <assert.h> 9973#endif 9974 9975#undef $ac_func 9976 9977/* Override any gcc2 internal prototype to avoid an error. */ 9978#ifdef __cplusplus 9979extern "C" 9980{ 9981#endif 9982/* We use char because int might match the return type of a gcc2 9983 builtin and then its argument prototype would still apply. */ 9984char $ac_func (); 9985/* The GNU C library defines this for functions which it implements 9986 to always fail with ENOSYS. Some functions are actually named 9987 something starting with __ and the normal name is an alias. */ 9988#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9989choke me 9990#else 9991char (*f) () = $ac_func; 9992#endif 9993#ifdef __cplusplus 9994} 9995#endif 9996 9997int 9998main () 9999{ 10000return f != $ac_func; 10001 ; 10002 return 0; 10003} 10004_ACEOF 10005rm -f conftest.$ac_objext conftest$ac_exeext 10006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10007 (eval $ac_link) 2>conftest.er1 10008 ac_status=$? 10009 grep -v '^ *+' conftest.er1 >conftest.err 10010 rm -f conftest.er1 10011 cat conftest.err >&5 10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10013 (exit $ac_status); } && 10014 { ac_try='test -z "$ac_c_werror_flag" 10015 || test ! -s conftest.err' 10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10017 (eval $ac_try) 2>&5 10018 ac_status=$? 10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10020 (exit $ac_status); }; } && 10021 { ac_try='test -s conftest$ac_exeext' 10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10023 (eval $ac_try) 2>&5 10024 ac_status=$? 10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10026 (exit $ac_status); }; }; then 10027 eval "$as_ac_var=yes" 10028else 10029 echo "$as_me: failed program was:" >&5 10030sed 's/^/| /' conftest.$ac_ext >&5 10031 10032eval "$as_ac_var=no" 10033fi 10034rm -f conftest.err conftest.$ac_objext \ 10035 conftest$ac_exeext conftest.$ac_ext 10036fi 10037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10039if test `eval echo '${'$as_ac_var'}'` = yes; then 10040 cat >>confdefs.h <<_ACEOF 10041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10042_ACEOF 10043 10044fi 10045done 10046 10047if test "x$ac_cv_func_fork" = xyes; then 10048 echo "$as_me:$LINENO: checking for working fork" >&5 10049echo $ECHO_N "checking for working fork... $ECHO_C" >&6 10050if test "${ac_cv_func_fork_works+set}" = set; then 10051 echo $ECHO_N "(cached) $ECHO_C" >&6 10052else 10053 if test "$cross_compiling" = yes; then 10054 ac_cv_func_fork_works=cross 10055else 10056 cat >conftest.$ac_ext <<_ACEOF 10057/* By Ruediger Kuhlmann. */ 10058 #include <sys/types.h> 10059 #if HAVE_UNISTD_H 10060 # include <unistd.h> 10061 #endif 10062 /* Some systems only have a dummy stub for fork() */ 10063 int main () 10064 { 10065 if (fork() < 0) 10066 exit (1); 10067 exit (0); 10068 } 10069_ACEOF 10070rm -f conftest$ac_exeext 10071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10072 (eval $ac_link) 2>&5 10073 ac_status=$? 10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10077 (eval $ac_try) 2>&5 10078 ac_status=$? 10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10080 (exit $ac_status); }; }; then 10081 ac_cv_func_fork_works=yes 10082else 10083 echo "$as_me: program exited with status $ac_status" >&5 10084echo "$as_me: failed program was:" >&5 10085sed 's/^/| /' conftest.$ac_ext >&5 10086 10087( exit $ac_status ) 10088ac_cv_func_fork_works=no 10089fi 10090rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10091fi 10092fi 10093echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 10094echo "${ECHO_T}$ac_cv_func_fork_works" >&6 10095 10096else 10097 ac_cv_func_fork_works=$ac_cv_func_fork 10098fi 10099if test "x$ac_cv_func_fork_works" = xcross; then 10100 case $host in 10101 *-*-amigaos* | *-*-msdosdjgpp*) 10102 # Override, as these systems have only a dummy fork() stub 10103 ac_cv_func_fork_works=no 10104 ;; 10105 *) 10106 ac_cv_func_fork_works=yes 10107 ;; 10108 esac 10109 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 10110echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 10111fi 10112ac_cv_func_vfork_works=$ac_cv_func_vfork 10113if test "x$ac_cv_func_vfork" = xyes; then 10114 echo "$as_me:$LINENO: checking for working vfork" >&5 10115echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 10116if test "${ac_cv_func_vfork_works+set}" = set; then 10117 echo $ECHO_N "(cached) $ECHO_C" >&6 10118else 10119 if test "$cross_compiling" = yes; then 10120 ac_cv_func_vfork_works=cross 10121else 10122 cat >conftest.$ac_ext <<_ACEOF 10123/* confdefs.h. */ 10124_ACEOF 10125cat confdefs.h >>conftest.$ac_ext 10126cat >>conftest.$ac_ext <<_ACEOF 10127/* end confdefs.h. */ 10128/* Thanks to Paul Eggert for this test. */ 10129#include <stdio.h> 10130#include <stdlib.h> 10131#include <sys/types.h> 10132#include <sys/stat.h> 10133#include <sys/wait.h> 10134#if HAVE_UNISTD_H 10135# include <unistd.h> 10136#endif 10137#if HAVE_VFORK_H 10138# include <vfork.h> 10139#endif 10140/* On some sparc systems, changes by the child to local and incoming 10141 argument registers are propagated back to the parent. The compiler 10142 is told about this with #include <vfork.h>, but some compilers 10143 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 10144 static variable whose address is put into a register that is 10145 clobbered by the vfork. */ 10146static void 10147#ifdef __cplusplus 10148sparc_address_test (int arg) 10149# else 10150sparc_address_test (arg) int arg; 10151#endif 10152{ 10153 static pid_t child; 10154 if (!child) { 10155 child = vfork (); 10156 if (child < 0) { 10157 perror ("vfork"); 10158 _exit(2); 10159 } 10160 if (!child) { 10161 arg = getpid(); 10162 write(-1, "", 0); 10163 _exit (arg); 10164 } 10165 } 10166} 10167 10168int 10169main () 10170{ 10171 pid_t parent = getpid (); 10172 pid_t child; 10173 10174 sparc_address_test (0); 10175 10176 child = vfork (); 10177 10178 if (child == 0) { 10179 /* Here is another test for sparc vfork register problems. This 10180 test uses lots of local variables, at least as many local 10181 variables as main has allocated so far including compiler 10182 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 10183 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 10184 reuse the register of parent for one of the local variables, 10185 since it will think that parent can't possibly be used any more 10186 in this routine. Assigning to the local variable will thus 10187 munge parent in the parent process. */ 10188 pid_t 10189 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 10190 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 10191 /* Convince the compiler that p..p7 are live; otherwise, it might 10192 use the same hardware register for all 8 local variables. */ 10193 if (p != p1 || p != p2 || p != p3 || p != p4 10194 || p != p5 || p != p6 || p != p7) 10195 _exit(1); 10196 10197 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 10198 from child file descriptors. If the child closes a descriptor 10199 before it execs or exits, this munges the parent's descriptor 10200 as well. Test for this by closing stdout in the child. */ 10201 _exit(close(fileno(stdout)) != 0); 10202 } else { 10203 int status; 10204 struct stat st; 10205 10206 while (wait(&status) != child) 10207 ; 10208 exit( 10209 /* Was there some problem with vforking? */ 10210 child < 0 10211 10212 /* Did the child fail? (This shouldn't happen.) */ 10213 || status 10214 10215 /* Did the vfork/compiler bug occur? */ 10216 || parent != getpid() 10217 10218 /* Did the file descriptor bug occur? */ 10219 || fstat(fileno(stdout), &st) != 0 10220 ); 10221 } 10222} 10223_ACEOF 10224rm -f conftest$ac_exeext 10225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10226 (eval $ac_link) 2>&5 10227 ac_status=$? 10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10231 (eval $ac_try) 2>&5 10232 ac_status=$? 10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10234 (exit $ac_status); }; }; then 10235 ac_cv_func_vfork_works=yes 10236else 10237 echo "$as_me: program exited with status $ac_status" >&5 10238echo "$as_me: failed program was:" >&5 10239sed 's/^/| /' conftest.$ac_ext >&5 10240 10241( exit $ac_status ) 10242ac_cv_func_vfork_works=no 10243fi 10244rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10245fi 10246fi 10247echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 10248echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 10249 10250fi; 10251if test "x$ac_cv_func_fork_works" = xcross; then 10252 ac_cv_func_vfork_works=$ac_cv_func_vfork 10253 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 10254echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 10255fi 10256 10257if test "x$ac_cv_func_vfork_works" = xyes; then 10258 10259cat >>confdefs.h <<\_ACEOF 10260#define HAVE_WORKING_VFORK 1 10261_ACEOF 10262 10263else 10264 10265cat >>confdefs.h <<\_ACEOF 10266#define vfork fork 10267_ACEOF 10268 10269fi 10270if test "x$ac_cv_func_fork_works" = xyes; then 10271 10272cat >>confdefs.h <<\_ACEOF 10273#define HAVE_WORKING_FORK 1 10274_ACEOF 10275 10276fi 10277 10278 10279 10280 if test "X$prefix" = "XNONE"; then 10281 acl_final_prefix="$ac_default_prefix" 10282 else 10283 acl_final_prefix="$prefix" 10284 fi 10285 if test "X$exec_prefix" = "XNONE"; then 10286 acl_final_exec_prefix='${prefix}' 10287 else 10288 acl_final_exec_prefix="$exec_prefix" 10289 fi 10290 acl_save_prefix="$prefix" 10291 prefix="$acl_final_prefix" 10292 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10293 prefix="$acl_save_prefix" 10294 10295 10296# Check whether --with-gnu-ld or --without-gnu-ld was given. 10297if test "${with_gnu_ld+set}" = set; then 10298 withval="$with_gnu_ld" 10299 test "$withval" = no || with_gnu_ld=yes 10300else 10301 with_gnu_ld=no 10302fi; 10303# Prepare PATH_SEPARATOR. 10304# The user is always right. 10305if test "${PATH_SEPARATOR+set}" != set; then 10306 echo "#! /bin/sh" >conf$$.sh 10307 echo "exit 0" >>conf$$.sh 10308 chmod +x conf$$.sh 10309 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10310 PATH_SEPARATOR=';' 10311 else 10312 PATH_SEPARATOR=: 10313 fi 10314 rm -f conf$$.sh 10315fi 10316ac_prog=ld 10317if test "$GCC" = yes; then 10318 # Check if gcc -print-prog-name=ld gives a path. 10319 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 10320echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 10321 case $host in 10322 *-*-mingw*) 10323 # gcc leaves a trailing carriage return which upsets mingw 10324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10325 *) 10326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10327 esac 10328 case $ac_prog in 10329 # Accept absolute paths. 10330 [\\/]* | [A-Za-z]:[\\/]*) 10331 re_direlt='/[^/][^/]*/\.\./' 10332 # Canonicalize the path of ld 10333 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10334 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10335 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10336 done 10337 test -z "$LD" && LD="$ac_prog" 10338 ;; 10339 "") 10340 # If it fails, then pretend we aren't using GCC. 10341 ac_prog=ld 10342 ;; 10343 *) 10344 # If it is relative, then search for the first ld in PATH. 10345 with_gnu_ld=unknown 10346 ;; 10347 esac 10348elif test "$with_gnu_ld" = yes; then 10349 echo "$as_me:$LINENO: checking for GNU ld" >&5 10350echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10351else 10352 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10353echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10354fi 10355if test "${acl_cv_path_LD+set}" = set; then 10356 echo $ECHO_N "(cached) $ECHO_C" >&6 10357else 10358 if test -z "$LD"; then 10359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 10360 for ac_dir in $PATH; do 10361 test -z "$ac_dir" && ac_dir=. 10362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10363 acl_cv_path_LD="$ac_dir/$ac_prog" 10364 # Check to see if the program is GNU ld. I'd rather use --version, 10365 # but apparently some GNU ld's only accept -v. 10366 # Break only if it was the GNU/non-GNU ld that we prefer. 10367 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 10368 test "$with_gnu_ld" != no && break 10369 else 10370 test "$with_gnu_ld" != yes && break 10371 fi 10372 fi 10373 done 10374 IFS="$ac_save_ifs" 10375else 10376 acl_cv_path_LD="$LD" # Let the user override the test with a path. 10377fi 10378fi 10379 10380LD="$acl_cv_path_LD" 10381if test -n "$LD"; then 10382 echo "$as_me:$LINENO: result: $LD" >&5 10383echo "${ECHO_T}$LD" >&6 10384else 10385 echo "$as_me:$LINENO: result: no" >&5 10386echo "${ECHO_T}no" >&6 10387fi 10388test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10389echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10390 { (exit 1); exit 1; }; } 10391echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10392echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10393if test "${acl_cv_prog_gnu_ld+set}" = set; then 10394 echo $ECHO_N "(cached) $ECHO_C" >&6 10395else 10396 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10397if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 10398 acl_cv_prog_gnu_ld=yes 10399else 10400 acl_cv_prog_gnu_ld=no 10401fi 10402fi 10403echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 10404echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 10405with_gnu_ld=$acl_cv_prog_gnu_ld 10406 10407 10408 10409 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 10410echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 10411if test "${acl_cv_rpath+set}" = set; then 10412 echo $ECHO_N "(cached) $ECHO_C" >&6 10413else 10414 10415 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 10416 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 10417 . ./conftest.sh 10418 rm -f ./conftest.sh 10419 acl_cv_rpath=done 10420 10421fi 10422echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 10423echo "${ECHO_T}$acl_cv_rpath" >&6 10424 wl="$acl_cv_wl" 10425 libext="$acl_cv_libext" 10426 shlibext="$acl_cv_shlibext" 10427 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 10428 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 10429 hardcode_direct="$acl_cv_hardcode_direct" 10430 hardcode_minus_L="$acl_cv_hardcode_minus_L" 10431 # Check whether --enable-rpath or --disable-rpath was given. 10432if test "${enable_rpath+set}" = set; then 10433 enableval="$enable_rpath" 10434 : 10435else 10436 enable_rpath=yes 10437fi; 10438 10439 10440 10441 10442 10443 10444 10445 use_additional=yes 10446 10447 acl_save_prefix="$prefix" 10448 prefix="$acl_final_prefix" 10449 acl_save_exec_prefix="$exec_prefix" 10450 exec_prefix="$acl_final_exec_prefix" 10451 10452 eval additional_includedir=\"$includedir\" 10453 eval additional_libdir=\"$libdir\" 10454 10455 exec_prefix="$acl_save_exec_prefix" 10456 prefix="$acl_save_prefix" 10457 10458 10459# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 10460if test "${with_libiconv_prefix+set}" = set; then 10461 withval="$with_libiconv_prefix" 10462 10463 if test "X$withval" = "Xno"; then 10464 use_additional=no 10465 else 10466 if test "X$withval" = "X"; then 10467 10468 acl_save_prefix="$prefix" 10469 prefix="$acl_final_prefix" 10470 acl_save_exec_prefix="$exec_prefix" 10471 exec_prefix="$acl_final_exec_prefix" 10472 10473 eval additional_includedir=\"$includedir\" 10474 eval additional_libdir=\"$libdir\" 10475 10476 exec_prefix="$acl_save_exec_prefix" 10477 prefix="$acl_save_prefix" 10478 10479 else 10480 additional_includedir="$withval/include" 10481 additional_libdir="$withval/lib" 10482 fi 10483 fi 10484 10485fi; 10486 LIBICONV= 10487 LTLIBICONV= 10488 INCICONV= 10489 rpathdirs= 10490 ltrpathdirs= 10491 names_already_handled= 10492 names_next_round='iconv ' 10493 while test -n "$names_next_round"; do 10494 names_this_round="$names_next_round" 10495 names_next_round= 10496 for name in $names_this_round; do 10497 already_handled= 10498 for n in $names_already_handled; do 10499 if test "$n" = "$name"; then 10500 already_handled=yes 10501 break 10502 fi 10503 done 10504 if test -z "$already_handled"; then 10505 names_already_handled="$names_already_handled $name" 10506 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10507 eval value=\"\$HAVE_LIB$uppername\" 10508 if test -n "$value"; then 10509 if test "$value" = yes; then 10510 eval value=\"\$LIB$uppername\" 10511 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10512 eval value=\"\$LTLIB$uppername\" 10513 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10514 else 10515 : 10516 fi 10517 else 10518 found_dir= 10519 found_la= 10520 found_so= 10521 found_a= 10522 if test $use_additional = yes; then 10523 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10524 found_dir="$additional_libdir" 10525 found_so="$additional_libdir/lib$name.$shlibext" 10526 if test -f "$additional_libdir/lib$name.la"; then 10527 found_la="$additional_libdir/lib$name.la" 10528 fi 10529 else 10530 if test -f "$additional_libdir/lib$name.$libext"; then 10531 found_dir="$additional_libdir" 10532 found_a="$additional_libdir/lib$name.$libext" 10533 if test -f "$additional_libdir/lib$name.la"; then 10534 found_la="$additional_libdir/lib$name.la" 10535 fi 10536 fi 10537 fi 10538 fi 10539 if test "X$found_dir" = "X"; then 10540 for x in $LDFLAGS $LTLIBICONV; do 10541 10542 acl_save_prefix="$prefix" 10543 prefix="$acl_final_prefix" 10544 acl_save_exec_prefix="$exec_prefix" 10545 exec_prefix="$acl_final_exec_prefix" 10546 eval x=\"$x\" 10547 exec_prefix="$acl_save_exec_prefix" 10548 prefix="$acl_save_prefix" 10549 10550 case "$x" in 10551 -L*) 10552 dir=`echo "X$x" | sed -e 's/^X-L//'` 10553 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 10554 found_dir="$dir" 10555 found_so="$dir/lib$name.$shlibext" 10556 if test -f "$dir/lib$name.la"; then 10557 found_la="$dir/lib$name.la" 10558 fi 10559 else 10560 if test -f "$dir/lib$name.$libext"; then 10561 found_dir="$dir" 10562 found_a="$dir/lib$name.$libext" 10563 if test -f "$dir/lib$name.la"; then 10564 found_la="$dir/lib$name.la" 10565 fi 10566 fi 10567 fi 10568 ;; 10569 esac 10570 if test "X$found_dir" != "X"; then 10571 break 10572 fi 10573 done 10574 fi 10575 if test "X$found_dir" != "X"; then 10576 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 10577 if test "X$found_so" != "X"; then 10578 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 10579 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10580 else 10581 haveit= 10582 for x in $ltrpathdirs; do 10583 if test "X$x" = "X$found_dir"; then 10584 haveit=yes 10585 break 10586 fi 10587 done 10588 if test -z "$haveit"; then 10589 ltrpathdirs="$ltrpathdirs $found_dir" 10590 fi 10591 if test "$hardcode_direct" = yes; then 10592 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10593 else 10594 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10595 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10596 haveit= 10597 for x in $rpathdirs; do 10598 if test "X$x" = "X$found_dir"; then 10599 haveit=yes 10600 break 10601 fi 10602 done 10603 if test -z "$haveit"; then 10604 rpathdirs="$rpathdirs $found_dir" 10605 fi 10606 else 10607 haveit= 10608 for x in $LDFLAGS $LIBICONV; do 10609 10610 acl_save_prefix="$prefix" 10611 prefix="$acl_final_prefix" 10612 acl_save_exec_prefix="$exec_prefix" 10613 exec_prefix="$acl_final_exec_prefix" 10614 eval x=\"$x\" 10615 exec_prefix="$acl_save_exec_prefix" 10616 prefix="$acl_save_prefix" 10617 10618 if test "X$x" = "X-L$found_dir"; then 10619 haveit=yes 10620 break 10621 fi 10622 done 10623 if test -z "$haveit"; then 10624 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 10625 fi 10626 if test "$hardcode_minus_L" != no; then 10627 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10628 else 10629 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10630 fi 10631 fi 10632 fi 10633 fi 10634 else 10635 if test "X$found_a" != "X"; then 10636 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 10637 else 10638 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 10639 fi 10640 fi 10641 additional_includedir= 10642 case "$found_dir" in 10643 */lib | */lib/) 10644 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10645 additional_includedir="$basedir/include" 10646 ;; 10647 esac 10648 if test "X$additional_includedir" != "X"; then 10649 if test "X$additional_includedir" != "X/usr/include"; then 10650 haveit= 10651 if test "X$additional_includedir" = "X/usr/local/include"; then 10652 if test -n "$GCC"; then 10653 case $host_os in 10654 linux*) haveit=yes;; 10655 esac 10656 fi 10657 fi 10658 if test -z "$haveit"; then 10659 for x in $CPPFLAGS $INCICONV; do 10660 10661 acl_save_prefix="$prefix" 10662 prefix="$acl_final_prefix" 10663 acl_save_exec_prefix="$exec_prefix" 10664 exec_prefix="$acl_final_exec_prefix" 10665 eval x=\"$x\" 10666 exec_prefix="$acl_save_exec_prefix" 10667 prefix="$acl_save_prefix" 10668 10669 if test "X$x" = "X-I$additional_includedir"; then 10670 haveit=yes 10671 break 10672 fi 10673 done 10674 if test -z "$haveit"; then 10675 if test -d "$additional_includedir"; then 10676 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 10677 fi 10678 fi 10679 fi 10680 fi 10681 fi 10682 if test -n "$found_la"; then 10683 save_libdir="$libdir" 10684 case "$found_la" in 10685 */* | *\\*) . "$found_la" ;; 10686 *) . "./$found_la" ;; 10687 esac 10688 libdir="$save_libdir" 10689 for dep in $dependency_libs; do 10690 case "$dep" in 10691 -L*) 10692 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10693 if test "X$additional_libdir" != "X/usr/lib"; then 10694 haveit= 10695 if test "X$additional_libdir" = "X/usr/local/lib"; then 10696 if test -n "$GCC"; then 10697 case $host_os in 10698 linux*) haveit=yes;; 10699 esac 10700 fi 10701 fi 10702 if test -z "$haveit"; then 10703 haveit= 10704 for x in $LDFLAGS $LIBICONV; do 10705 10706 acl_save_prefix="$prefix" 10707 prefix="$acl_final_prefix" 10708 acl_save_exec_prefix="$exec_prefix" 10709 exec_prefix="$acl_final_exec_prefix" 10710 eval x=\"$x\" 10711 exec_prefix="$acl_save_exec_prefix" 10712 prefix="$acl_save_prefix" 10713 10714 if test "X$x" = "X-L$additional_libdir"; then 10715 haveit=yes 10716 break 10717 fi 10718 done 10719 if test -z "$haveit"; then 10720 if test -d "$additional_libdir"; then 10721 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 10722 fi 10723 fi 10724 haveit= 10725 for x in $LDFLAGS $LTLIBICONV; do 10726 10727 acl_save_prefix="$prefix" 10728 prefix="$acl_final_prefix" 10729 acl_save_exec_prefix="$exec_prefix" 10730 exec_prefix="$acl_final_exec_prefix" 10731 eval x=\"$x\" 10732 exec_prefix="$acl_save_exec_prefix" 10733 prefix="$acl_save_prefix" 10734 10735 if test "X$x" = "X-L$additional_libdir"; then 10736 haveit=yes 10737 break 10738 fi 10739 done 10740 if test -z "$haveit"; then 10741 if test -d "$additional_libdir"; then 10742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 10743 fi 10744 fi 10745 fi 10746 fi 10747 ;; 10748 -R*) 10749 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10750 if test "$enable_rpath" != no; then 10751 haveit= 10752 for x in $rpathdirs; do 10753 if test "X$x" = "X$dir"; then 10754 haveit=yes 10755 break 10756 fi 10757 done 10758 if test -z "$haveit"; then 10759 rpathdirs="$rpathdirs $dir" 10760 fi 10761 haveit= 10762 for x in $ltrpathdirs; do 10763 if test "X$x" = "X$dir"; then 10764 haveit=yes 10765 break 10766 fi 10767 done 10768 if test -z "$haveit"; then 10769 ltrpathdirs="$ltrpathdirs $dir" 10770 fi 10771 fi 10772 ;; 10773 -l*) 10774 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10775 ;; 10776 *.la) 10777 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10778 ;; 10779 *) 10780 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 10781 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 10782 ;; 10783 esac 10784 done 10785 fi 10786 else 10787 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10788 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 10789 fi 10790 fi 10791 fi 10792 done 10793 done 10794 if test "X$rpathdirs" != "X"; then 10795 if test -n "$hardcode_libdir_separator"; then 10796 alldirs= 10797 for found_dir in $rpathdirs; do 10798 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10799 done 10800 acl_save_libdir="$libdir" 10801 libdir="$alldirs" 10802 eval flag=\"$hardcode_libdir_flag_spec\" 10803 libdir="$acl_save_libdir" 10804 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10805 else 10806 for found_dir in $rpathdirs; do 10807 acl_save_libdir="$libdir" 10808 libdir="$found_dir" 10809 eval flag=\"$hardcode_libdir_flag_spec\" 10810 libdir="$acl_save_libdir" 10811 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10812 done 10813 fi 10814 fi 10815 if test "X$ltrpathdirs" != "X"; then 10816 for found_dir in $ltrpathdirs; do 10817 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 10818 done 10819 fi 10820 10821 10822 10823 10824 10825 10826 10827 am_save_CPPFLAGS="$CPPFLAGS" 10828 10829 for element in $INCICONV; do 10830 haveit= 10831 for x in $CPPFLAGS; do 10832 10833 acl_save_prefix="$prefix" 10834 prefix="$acl_final_prefix" 10835 acl_save_exec_prefix="$exec_prefix" 10836 exec_prefix="$acl_final_exec_prefix" 10837 eval x=\"$x\" 10838 exec_prefix="$acl_save_exec_prefix" 10839 prefix="$acl_save_prefix" 10840 10841 if test "X$x" = "X$element"; then 10842 haveit=yes 10843 break 10844 fi 10845 done 10846 if test -z "$haveit"; then 10847 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10848 fi 10849 done 10850 10851 10852 echo "$as_me:$LINENO: checking for iconv" >&5 10853echo $ECHO_N "checking for iconv... $ECHO_C" >&6 10854if test "${am_cv_func_iconv+set}" = set; then 10855 echo $ECHO_N "(cached) $ECHO_C" >&6 10856else 10857 10858 am_cv_func_iconv="no, consider installing GNU libiconv" 10859 am_cv_lib_iconv=no 10860 cat >conftest.$ac_ext <<_ACEOF 10861/* confdefs.h. */ 10862_ACEOF 10863cat confdefs.h >>conftest.$ac_ext 10864cat >>conftest.$ac_ext <<_ACEOF 10865/* end confdefs.h. */ 10866#include <stdlib.h> 10867#include <iconv.h> 10868int 10869main () 10870{ 10871iconv_t cd = iconv_open("",""); 10872 iconv(cd,NULL,NULL,NULL,NULL); 10873 iconv_close(cd); 10874 ; 10875 return 0; 10876} 10877_ACEOF 10878rm -f conftest.$ac_objext conftest$ac_exeext 10879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10880 (eval $ac_link) 2>conftest.er1 10881 ac_status=$? 10882 grep -v '^ *+' conftest.er1 >conftest.err 10883 rm -f conftest.er1 10884 cat conftest.err >&5 10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10886 (exit $ac_status); } && 10887 { ac_try='test -z "$ac_c_werror_flag" 10888 || test ! -s conftest.err' 10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10890 (eval $ac_try) 2>&5 10891 ac_status=$? 10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10893 (exit $ac_status); }; } && 10894 { ac_try='test -s conftest$ac_exeext' 10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10896 (eval $ac_try) 2>&5 10897 ac_status=$? 10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10899 (exit $ac_status); }; }; then 10900 am_cv_func_iconv=yes 10901else 10902 echo "$as_me: failed program was:" >&5 10903sed 's/^/| /' conftest.$ac_ext >&5 10904 10905fi 10906rm -f conftest.err conftest.$ac_objext \ 10907 conftest$ac_exeext conftest.$ac_ext 10908 if test "$am_cv_func_iconv" != yes; then 10909 am_save_LIBS="$LIBS" 10910 LIBS="$LIBS $LIBICONV" 10911 cat >conftest.$ac_ext <<_ACEOF 10912/* confdefs.h. */ 10913_ACEOF 10914cat confdefs.h >>conftest.$ac_ext 10915cat >>conftest.$ac_ext <<_ACEOF 10916/* end confdefs.h. */ 10917#include <stdlib.h> 10918#include <iconv.h> 10919int 10920main () 10921{ 10922iconv_t cd = iconv_open("",""); 10923 iconv(cd,NULL,NULL,NULL,NULL); 10924 iconv_close(cd); 10925 ; 10926 return 0; 10927} 10928_ACEOF 10929rm -f conftest.$ac_objext conftest$ac_exeext 10930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10931 (eval $ac_link) 2>conftest.er1 10932 ac_status=$? 10933 grep -v '^ *+' conftest.er1 >conftest.err 10934 rm -f conftest.er1 10935 cat conftest.err >&5 10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10937 (exit $ac_status); } && 10938 { ac_try='test -z "$ac_c_werror_flag" 10939 || test ! -s conftest.err' 10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10941 (eval $ac_try) 2>&5 10942 ac_status=$? 10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10944 (exit $ac_status); }; } && 10945 { ac_try='test -s conftest$ac_exeext' 10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10947 (eval $ac_try) 2>&5 10948 ac_status=$? 10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10950 (exit $ac_status); }; }; then 10951 am_cv_lib_iconv=yes 10952 am_cv_func_iconv=yes 10953else 10954 echo "$as_me: failed program was:" >&5 10955sed 's/^/| /' conftest.$ac_ext >&5 10956 10957fi 10958rm -f conftest.err conftest.$ac_objext \ 10959 conftest$ac_exeext conftest.$ac_ext 10960 LIBS="$am_save_LIBS" 10961 fi 10962 10963fi 10964echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 10965echo "${ECHO_T}$am_cv_func_iconv" >&6 10966 if test "$am_cv_func_iconv" = yes; then 10967 10968cat >>confdefs.h <<\_ACEOF 10969#define HAVE_ICONV 1 10970_ACEOF 10971 10972 fi 10973 if test "$am_cv_lib_iconv" = yes; then 10974 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 10975echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 10976 echo "$as_me:$LINENO: result: $LIBICONV" >&5 10977echo "${ECHO_T}$LIBICONV" >&6 10978 else 10979 CPPFLAGS="$am_save_CPPFLAGS" 10980 LIBICONV= 10981 LTLIBICONV= 10982 fi 10983 10984 10985 10986 if test "$am_cv_func_iconv" = yes; then 10987 echo "$as_me:$LINENO: checking for iconv declaration" >&5 10988echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 10989 if test "${am_cv_proto_iconv+set}" = set; then 10990 echo $ECHO_N "(cached) $ECHO_C" >&6 10991else 10992 10993 cat >conftest.$ac_ext <<_ACEOF 10994/* confdefs.h. */ 10995_ACEOF 10996cat confdefs.h >>conftest.$ac_ext 10997cat >>conftest.$ac_ext <<_ACEOF 10998/* end confdefs.h. */ 10999 11000#include <stdlib.h> 11001#include <iconv.h> 11002extern 11003#ifdef __cplusplus 11004"C" 11005#endif 11006#if defined(__STDC__) || defined(__cplusplus) 11007size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 11008#else 11009size_t iconv(); 11010#endif 11011 11012int 11013main () 11014{ 11015 11016 ; 11017 return 0; 11018} 11019_ACEOF 11020rm -f conftest.$ac_objext 11021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11022 (eval $ac_compile) 2>conftest.er1 11023 ac_status=$? 11024 grep -v '^ *+' conftest.er1 >conftest.err 11025 rm -f conftest.er1 11026 cat conftest.err >&5 11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11028 (exit $ac_status); } && 11029 { ac_try='test -z "$ac_c_werror_flag" 11030 || test ! -s conftest.err' 11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11032 (eval $ac_try) 2>&5 11033 ac_status=$? 11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11035 (exit $ac_status); }; } && 11036 { ac_try='test -s conftest.$ac_objext' 11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11038 (eval $ac_try) 2>&5 11039 ac_status=$? 11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11041 (exit $ac_status); }; }; then 11042 am_cv_proto_iconv_arg1="" 11043else 11044 echo "$as_me: failed program was:" >&5 11045sed 's/^/| /' conftest.$ac_ext >&5 11046 11047am_cv_proto_iconv_arg1="const" 11048fi 11049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11050 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);" 11051fi 11052 11053 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 11054 echo "$as_me:$LINENO: result: ${ac_t:- 11055 }$am_cv_proto_iconv" >&5 11056echo "${ECHO_T}${ac_t:- 11057 }$am_cv_proto_iconv" >&6 11058 11059cat >>confdefs.h <<_ACEOF 11060#define ICONV_CONST $am_cv_proto_iconv_arg1 11061_ACEOF 11062 11063 fi 11064 11065# Until we have in-tree GNU iconv: 11066LIBICONV_DEP= 11067 11068 11069 11070 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 11071echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 11072if test "${am_cv_val_LC_MESSAGES+set}" = set; then 11073 echo $ECHO_N "(cached) $ECHO_C" >&6 11074else 11075 cat >conftest.$ac_ext <<_ACEOF 11076/* confdefs.h. */ 11077_ACEOF 11078cat confdefs.h >>conftest.$ac_ext 11079cat >>conftest.$ac_ext <<_ACEOF 11080/* end confdefs.h. */ 11081#include <locale.h> 11082int 11083main () 11084{ 11085return LC_MESSAGES 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090rm -f conftest.$ac_objext conftest$ac_exeext 11091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11092 (eval $ac_link) 2>conftest.er1 11093 ac_status=$? 11094 grep -v '^ *+' conftest.er1 >conftest.err 11095 rm -f conftest.er1 11096 cat conftest.err >&5 11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11098 (exit $ac_status); } && 11099 { ac_try='test -z "$ac_c_werror_flag" 11100 || test ! -s conftest.err' 11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11102 (eval $ac_try) 2>&5 11103 ac_status=$? 11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11105 (exit $ac_status); }; } && 11106 { ac_try='test -s conftest$ac_exeext' 11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11108 (eval $ac_try) 2>&5 11109 ac_status=$? 11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11111 (exit $ac_status); }; }; then 11112 am_cv_val_LC_MESSAGES=yes 11113else 11114 echo "$as_me: failed program was:" >&5 11115sed 's/^/| /' conftest.$ac_ext >&5 11116 11117am_cv_val_LC_MESSAGES=no 11118fi 11119rm -f conftest.err conftest.$ac_objext \ 11120 conftest$ac_exeext conftest.$ac_ext 11121fi 11122echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 11123echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 11124 if test $am_cv_val_LC_MESSAGES = yes; then 11125 11126cat >>confdefs.h <<\_ACEOF 11127#define HAVE_LC_MESSAGES 1 11128_ACEOF 11129 11130 fi 11131 11132 11133 11134 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 11135echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 11136if test "${am_cv_langinfo_codeset+set}" = set; then 11137 echo $ECHO_N "(cached) $ECHO_C" >&6 11138else 11139 cat >conftest.$ac_ext <<_ACEOF 11140/* confdefs.h. */ 11141_ACEOF 11142cat confdefs.h >>conftest.$ac_ext 11143cat >>conftest.$ac_ext <<_ACEOF 11144/* end confdefs.h. */ 11145#include <langinfo.h> 11146int 11147main () 11148{ 11149char* cs = nl_langinfo(CODESET); 11150 ; 11151 return 0; 11152} 11153_ACEOF 11154rm -f conftest.$ac_objext conftest$ac_exeext 11155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11156 (eval $ac_link) 2>conftest.er1 11157 ac_status=$? 11158 grep -v '^ *+' conftest.er1 >conftest.err 11159 rm -f conftest.er1 11160 cat conftest.err >&5 11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11162 (exit $ac_status); } && 11163 { ac_try='test -z "$ac_c_werror_flag" 11164 || test ! -s conftest.err' 11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11166 (eval $ac_try) 2>&5 11167 ac_status=$? 11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11169 (exit $ac_status); }; } && 11170 { ac_try='test -s conftest$ac_exeext' 11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11172 (eval $ac_try) 2>&5 11173 ac_status=$? 11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11175 (exit $ac_status); }; }; then 11176 am_cv_langinfo_codeset=yes 11177else 11178 echo "$as_me: failed program was:" >&5 11179sed 's/^/| /' conftest.$ac_ext >&5 11180 11181am_cv_langinfo_codeset=no 11182fi 11183rm -f conftest.err conftest.$ac_objext \ 11184 conftest$ac_exeext conftest.$ac_ext 11185 11186fi 11187echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 11188echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 11189 if test $am_cv_langinfo_codeset = yes; then 11190 11191cat >>confdefs.h <<\_ACEOF 11192#define HAVE_LANGINFO_CODESET 1 11193_ACEOF 11194 11195 fi 11196 11197 11198# We will need to find libiberty.h and ansidecl.h 11199saved_CFLAGS="$CFLAGS" 11200CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \ 11241 strsignal strstr strverscmp \ 11242 errno snprintf vsnprintf vasprintf malloc realloc calloc \ 11243 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 11244do 11245 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11246echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 11247echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 11248if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then 11249 echo $ECHO_N "(cached) $ECHO_C" >&6 11250else 11251 cat >conftest.$ac_ext <<_ACEOF 11252/* confdefs.h. */ 11253_ACEOF 11254cat confdefs.h >>conftest.$ac_ext 11255cat >>conftest.$ac_ext <<_ACEOF 11256/* end confdefs.h. */ 11257#undef $ac_tr_decl 11258#define $ac_tr_decl 1 11259 11260#include "ansidecl.h" 11261#include "system.h" 11262 11263int 11264main () 11265{ 11266#ifndef $ac_func 11267char *(*pfn) = (char *(*)) $ac_func ; 11268#endif 11269 ; 11270 return 0; 11271} 11272_ACEOF 11273rm -f conftest.$ac_objext 11274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11275 (eval $ac_compile) 2>conftest.er1 11276 ac_status=$? 11277 grep -v '^ *+' conftest.er1 >conftest.err 11278 rm -f conftest.er1 11279 cat conftest.err >&5 11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11281 (exit $ac_status); } && 11282 { ac_try='test -z "$ac_c_werror_flag" 11283 || test ! -s conftest.err' 11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11285 (eval $ac_try) 2>&5 11286 ac_status=$? 11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11288 (exit $ac_status); }; } && 11289 { ac_try='test -s conftest.$ac_objext' 11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11291 (eval $ac_try) 2>&5 11292 ac_status=$? 11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11294 (exit $ac_status); }; }; then 11295 eval "gcc_cv_have_decl_$ac_func=yes" 11296else 11297 echo "$as_me: failed program was:" >&5 11298sed 's/^/| /' conftest.$ac_ext >&5 11299 11300eval "gcc_cv_have_decl_$ac_func=no" 11301fi 11302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11303fi 11304 11305if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11306 echo "$as_me:$LINENO: result: yes" >&5 11307echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF 11308#define $ac_tr_decl 1 11309_ACEOF 11310 11311else 11312 echo "$as_me:$LINENO: result: no" >&5 11313echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF 11314#define $ac_tr_decl 0 11315_ACEOF 11316 11317fi 11318 11319done 11320 11321 11322 11323 11324 11325for ac_func in getrlimit setrlimit getrusage 11326do 11327 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11328echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 11329echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 11330if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then 11331 echo $ECHO_N "(cached) $ECHO_C" >&6 11332else 11333 cat >conftest.$ac_ext <<_ACEOF 11334/* confdefs.h. */ 11335_ACEOF 11336cat confdefs.h >>conftest.$ac_ext 11337cat >>conftest.$ac_ext <<_ACEOF 11338/* end confdefs.h. */ 11339#undef $ac_tr_decl 11340#define $ac_tr_decl 1 11341 11342#include "ansidecl.h" 11343#include "system.h" 11344#ifdef HAVE_SYS_RESOURCE_H 11345#include <sys/resource.h> 11346#endif 11347 11348 11349int 11350main () 11351{ 11352#ifndef $ac_func 11353char *(*pfn) = (char *(*)) $ac_func ; 11354#endif 11355 ; 11356 return 0; 11357} 11358_ACEOF 11359rm -f conftest.$ac_objext 11360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11361 (eval $ac_compile) 2>conftest.er1 11362 ac_status=$? 11363 grep -v '^ *+' conftest.er1 >conftest.err 11364 rm -f conftest.er1 11365 cat conftest.err >&5 11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11367 (exit $ac_status); } && 11368 { ac_try='test -z "$ac_c_werror_flag" 11369 || test ! -s conftest.err' 11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11371 (eval $ac_try) 2>&5 11372 ac_status=$? 11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11374 (exit $ac_status); }; } && 11375 { ac_try='test -s conftest.$ac_objext' 11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11377 (eval $ac_try) 2>&5 11378 ac_status=$? 11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11380 (exit $ac_status); }; }; then 11381 eval "gcc_cv_have_decl_$ac_func=yes" 11382else 11383 echo "$as_me: failed program was:" >&5 11384sed 's/^/| /' conftest.$ac_ext >&5 11385 11386eval "gcc_cv_have_decl_$ac_func=no" 11387fi 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11389fi 11390 11391if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11392 echo "$as_me:$LINENO: result: yes" >&5 11393echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF 11394#define $ac_tr_decl 1 11395_ACEOF 11396 11397else 11398 echo "$as_me:$LINENO: result: no" >&5 11399echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF 11400#define $ac_tr_decl 0 11401_ACEOF 11402 11403fi 11404 11405done 11406 11407 11408cat >conftest.$ac_ext <<_ACEOF 11409/* confdefs.h. */ 11410_ACEOF 11411cat confdefs.h >>conftest.$ac_ext 11412cat >>conftest.$ac_ext <<_ACEOF 11413/* end confdefs.h. */ 11414 11415#include "ansidecl.h" 11416#include "system.h" 11417#ifdef HAVE_SYS_RESOURCE_H 11418#include <sys/resource.h> 11419#endif 11420 11421int 11422main () 11423{ 11424rlim_t l = 0; 11425 ; 11426 return 0; 11427} 11428_ACEOF 11429rm -f conftest.$ac_objext 11430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11431 (eval $ac_compile) 2>conftest.er1 11432 ac_status=$? 11433 grep -v '^ *+' conftest.er1 >conftest.err 11434 rm -f conftest.er1 11435 cat conftest.err >&5 11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11437 (exit $ac_status); } && 11438 { ac_try='test -z "$ac_c_werror_flag" 11439 || test ! -s conftest.err' 11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11441 (eval $ac_try) 2>&5 11442 ac_status=$? 11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11444 (exit $ac_status); }; } && 11445 { ac_try='test -s conftest.$ac_objext' 11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11447 (eval $ac_try) 2>&5 11448 ac_status=$? 11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11450 (exit $ac_status); }; }; then 11451 : 11452else 11453 echo "$as_me: failed program was:" >&5 11454sed 's/^/| /' conftest.$ac_ext >&5 11455 11456 11457cat >>confdefs.h <<\_ACEOF 11458#define rlim_t long 11459_ACEOF 11460 11461fi 11462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11463 11464# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible 11465# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname 11466# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs 11467# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME. 11468 11469for ac_func in ldgetname 11470do 11471 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11472echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 11473echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 11474if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then 11475 echo $ECHO_N "(cached) $ECHO_C" >&6 11476else 11477 cat >conftest.$ac_ext <<_ACEOF 11478/* confdefs.h. */ 11479_ACEOF 11480cat confdefs.h >>conftest.$ac_ext 11481cat >>conftest.$ac_ext <<_ACEOF 11482/* end confdefs.h. */ 11483#undef $ac_tr_decl 11484#define $ac_tr_decl 1 11485 11486#include "ansidecl.h" 11487#include "system.h" 11488#ifdef HAVE_LDFCN_H 11489#undef FREAD 11490#undef FWRITE 11491#include <ldfcn.h> 11492#endif 11493 11494 11495int 11496main () 11497{ 11498#ifndef $ac_func 11499char *(*pfn) = (char *(*)) $ac_func ; 11500#endif 11501 ; 11502 return 0; 11503} 11504_ACEOF 11505rm -f conftest.$ac_objext 11506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11507 (eval $ac_compile) 2>conftest.er1 11508 ac_status=$? 11509 grep -v '^ *+' conftest.er1 >conftest.err 11510 rm -f conftest.er1 11511 cat conftest.err >&5 11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11513 (exit $ac_status); } && 11514 { ac_try='test -z "$ac_c_werror_flag" 11515 || test ! -s conftest.err' 11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11517 (eval $ac_try) 2>&5 11518 ac_status=$? 11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11520 (exit $ac_status); }; } && 11521 { ac_try='test -s conftest.$ac_objext' 11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11523 (eval $ac_try) 2>&5 11524 ac_status=$? 11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11526 (exit $ac_status); }; }; then 11527 eval "gcc_cv_have_decl_$ac_func=yes" 11528else 11529 echo "$as_me: failed program was:" >&5 11530sed 's/^/| /' conftest.$ac_ext >&5 11531 11532eval "gcc_cv_have_decl_$ac_func=no" 11533fi 11534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11535fi 11536 11537if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11538 echo "$as_me:$LINENO: result: yes" >&5 11539echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF 11540#define $ac_tr_decl 1 11541_ACEOF 11542 11543else 11544 echo "$as_me:$LINENO: result: no" >&5 11545echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF 11546#define $ac_tr_decl 0 11547_ACEOF 11548 11549fi 11550 11551done 11552 11553 11554 11555for ac_func in times 11556do 11557 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11558echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 11559echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 11560if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then 11561 echo $ECHO_N "(cached) $ECHO_C" >&6 11562else 11563 cat >conftest.$ac_ext <<_ACEOF 11564/* confdefs.h. */ 11565_ACEOF 11566cat confdefs.h >>conftest.$ac_ext 11567cat >>conftest.$ac_ext <<_ACEOF 11568/* end confdefs.h. */ 11569#undef $ac_tr_decl 11570#define $ac_tr_decl 1 11571 11572#include "ansidecl.h" 11573#include "system.h" 11574#ifdef HAVE_SYS_TIMES_H 11575#include <sys/times.h> 11576#endif 11577 11578 11579int 11580main () 11581{ 11582#ifndef $ac_func 11583char *(*pfn) = (char *(*)) $ac_func ; 11584#endif 11585 ; 11586 return 0; 11587} 11588_ACEOF 11589rm -f conftest.$ac_objext 11590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11591 (eval $ac_compile) 2>conftest.er1 11592 ac_status=$? 11593 grep -v '^ *+' conftest.er1 >conftest.err 11594 rm -f conftest.er1 11595 cat conftest.err >&5 11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11597 (exit $ac_status); } && 11598 { ac_try='test -z "$ac_c_werror_flag" 11599 || test ! -s conftest.err' 11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11601 (eval $ac_try) 2>&5 11602 ac_status=$? 11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11604 (exit $ac_status); }; } && 11605 { ac_try='test -s conftest.$ac_objext' 11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11607 (eval $ac_try) 2>&5 11608 ac_status=$? 11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11610 (exit $ac_status); }; }; then 11611 eval "gcc_cv_have_decl_$ac_func=yes" 11612else 11613 echo "$as_me: failed program was:" >&5 11614sed 's/^/| /' conftest.$ac_ext >&5 11615 11616eval "gcc_cv_have_decl_$ac_func=no" 11617fi 11618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11619fi 11620 11621if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11622 echo "$as_me:$LINENO: result: yes" >&5 11623echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF 11624#define $ac_tr_decl 1 11625_ACEOF 11626 11627else 11628 echo "$as_me:$LINENO: result: no" >&5 11629echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF 11630#define $ac_tr_decl 0 11631_ACEOF 11632 11633fi 11634 11635done 11636 11637 11638# More time-related stuff. 11639echo "$as_me:$LINENO: checking for struct tms" >&5 11640echo $ECHO_N "checking for struct tms... $ECHO_C" >&6 11641if test "${ac_cv_struct_tms+set}" = set; then 11642 echo $ECHO_N "(cached) $ECHO_C" >&6 11643else 11644 11645cat >conftest.$ac_ext <<_ACEOF 11646/* confdefs.h. */ 11647_ACEOF 11648cat confdefs.h >>conftest.$ac_ext 11649cat >>conftest.$ac_ext <<_ACEOF 11650/* end confdefs.h. */ 11651 11652#include "ansidecl.h" 11653#include "system.h" 11654#ifdef HAVE_SYS_TIMES_H 11655#include <sys/times.h> 11656#endif 11657 11658int 11659main () 11660{ 11661struct tms tms; 11662 ; 11663 return 0; 11664} 11665_ACEOF 11666rm -f conftest.$ac_objext 11667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11668 (eval $ac_compile) 2>conftest.er1 11669 ac_status=$? 11670 grep -v '^ *+' conftest.er1 >conftest.err 11671 rm -f conftest.er1 11672 cat conftest.err >&5 11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11674 (exit $ac_status); } && 11675 { ac_try='test -z "$ac_c_werror_flag" 11676 || test ! -s conftest.err' 11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11678 (eval $ac_try) 2>&5 11679 ac_status=$? 11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11681 (exit $ac_status); }; } && 11682 { ac_try='test -s conftest.$ac_objext' 11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11684 (eval $ac_try) 2>&5 11685 ac_status=$? 11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11687 (exit $ac_status); }; }; then 11688 ac_cv_struct_tms=yes 11689else 11690 echo "$as_me: failed program was:" >&5 11691sed 's/^/| /' conftest.$ac_ext >&5 11692 11693ac_cv_struct_tms=no 11694fi 11695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11696fi 11697echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5 11698echo "${ECHO_T}$ac_cv_struct_tms" >&6 11699if test $ac_cv_struct_tms = yes; then 11700 11701cat >>confdefs.h <<\_ACEOF 11702#define HAVE_STRUCT_TMS 1 11703_ACEOF 11704 11705fi 11706 11707# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE. 11708# revisit after autoconf 2.50. 11709echo "$as_me:$LINENO: checking for clock_t" >&5 11710echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 11711if test "${gcc_cv_type_clock_t+set}" = set; then 11712 echo $ECHO_N "(cached) $ECHO_C" >&6 11713else 11714 11715cat >conftest.$ac_ext <<_ACEOF 11716/* confdefs.h. */ 11717_ACEOF 11718cat confdefs.h >>conftest.$ac_ext 11719cat >>conftest.$ac_ext <<_ACEOF 11720/* end confdefs.h. */ 11721 11722#include "ansidecl.h" 11723#include "system.h" 11724 11725int 11726main () 11727{ 11728clock_t x; 11729 ; 11730 return 0; 11731} 11732_ACEOF 11733rm -f conftest.$ac_objext 11734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11735 (eval $ac_compile) 2>conftest.er1 11736 ac_status=$? 11737 grep -v '^ *+' conftest.er1 >conftest.err 11738 rm -f conftest.er1 11739 cat conftest.err >&5 11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11741 (exit $ac_status); } && 11742 { ac_try='test -z "$ac_c_werror_flag" 11743 || test ! -s conftest.err' 11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11745 (eval $ac_try) 2>&5 11746 ac_status=$? 11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11748 (exit $ac_status); }; } && 11749 { ac_try='test -s conftest.$ac_objext' 11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11751 (eval $ac_try) 2>&5 11752 ac_status=$? 11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11754 (exit $ac_status); }; }; then 11755 gcc_cv_type_clock_t=yes 11756else 11757 echo "$as_me: failed program was:" >&5 11758sed 's/^/| /' conftest.$ac_ext >&5 11759 11760gcc_cv_type_clock_t=no 11761fi 11762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11763fi 11764echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5 11765echo "${ECHO_T}$gcc_cv_type_clock_t" >&6 11766if test $gcc_cv_type_clock_t = yes; then 11767 11768cat >>confdefs.h <<\_ACEOF 11769#define HAVE_CLOCK_T 1 11770_ACEOF 11771 11772fi 11773 11774# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests. 11775CFLAGS="$saved_CFLAGS" 11776 11777# Check whether --enable-initfini-array or --disable-initfini-array was given. 11778if test "${enable_initfini_array+set}" = set; then 11779 enableval="$enable_initfini_array" 11780 11781else 11782 11783echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5 11784echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6 11785if test "${gcc_cv_initfini_array+set}" = set; then 11786 echo $ECHO_N "(cached) $ECHO_C" >&6 11787else 11788 if test "$cross_compiling" = yes; then 11789 gcc_cv_initfini_array=no 11790else 11791 cat >conftest.$ac_ext <<_ACEOF 11792/* confdefs.h. */ 11793_ACEOF 11794cat confdefs.h >>conftest.$ac_ext 11795cat >>conftest.$ac_ext <<_ACEOF 11796/* end confdefs.h. */ 11797 11798static int x = -1; 11799int main (void) { return x; } 11800int foo (void) { x = 0; } 11801int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; 11802_ACEOF 11803rm -f conftest$ac_exeext 11804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11805 (eval $ac_link) 2>&5 11806 ac_status=$? 11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11810 (eval $ac_try) 2>&5 11811 ac_status=$? 11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11813 (exit $ac_status); }; }; then 11814 gcc_cv_initfini_array=yes 11815else 11816 echo "$as_me: program exited with status $ac_status" >&5 11817echo "$as_me: failed program was:" >&5 11818sed 's/^/| /' conftest.$ac_ext >&5 11819 11820( exit $ac_status ) 11821gcc_cv_initfini_array=no 11822fi 11823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11824fi 11825fi 11826echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5 11827echo "${ECHO_T}$gcc_cv_initfini_array" >&6 11828 enable_initfini_array=$gcc_cv_initfini_array 11829 11830fi; 11831if test $enable_initfini_array = yes; then 11832 11833cat >>confdefs.h <<\_ACEOF 11834#define HAVE_INITFINI_ARRAY 1 11835_ACEOF 11836 11837fi 11838 11839# mkdir takes a single argument on some systems. 11840echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5 11841echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6 11842if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then 11843 echo $ECHO_N "(cached) $ECHO_C" >&6 11844else 11845 cat >conftest.$ac_ext <<_ACEOF 11846/* confdefs.h. */ 11847_ACEOF 11848cat confdefs.h >>conftest.$ac_ext 11849cat >>conftest.$ac_ext <<_ACEOF 11850/* end confdefs.h. */ 11851 11852#include <sys/types.h> 11853#ifdef HAVE_SYS_STAT_H 11854# include <sys/stat.h> 11855#endif 11856#ifdef HAVE_UNISTD_H 11857# include <unistd.h> 11858#endif 11859#ifdef HAVE_DIRECT_H 11860# include <direct.h> 11861#endif 11862int 11863main () 11864{ 11865mkdir ("foo", 0); 11866 ; 11867 return 0; 11868} 11869_ACEOF 11870rm -f conftest.$ac_objext 11871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11872 (eval $ac_compile) 2>conftest.er1 11873 ac_status=$? 11874 grep -v '^ *+' conftest.er1 >conftest.err 11875 rm -f conftest.er1 11876 cat conftest.err >&5 11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11878 (exit $ac_status); } && 11879 { ac_try='test -z "$ac_c_werror_flag" 11880 || test ! -s conftest.err' 11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11882 (eval $ac_try) 2>&5 11883 ac_status=$? 11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11885 (exit $ac_status); }; } && 11886 { ac_try='test -s conftest.$ac_objext' 11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11888 (eval $ac_try) 2>&5 11889 ac_status=$? 11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11891 (exit $ac_status); }; }; then 11892 gcc_cv_mkdir_takes_one_arg=no 11893else 11894 echo "$as_me: failed program was:" >&5 11895sed 's/^/| /' conftest.$ac_ext >&5 11896 11897gcc_cv_mkdir_takes_one_arg=yes 11898fi 11899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11900fi 11901echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5 11902echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6 11903if test $gcc_cv_mkdir_takes_one_arg = yes ; then 11904 11905cat >>confdefs.h <<\_ACEOF 11906#define MKDIR_TAKES_ONE_ARG 1 11907_ACEOF 11908 11909fi 11910 11911 11912# File extensions 11913manext='.1' 11914objext='.o' 11915 11916 11917 11918# With Setjmp/Longjmp based exception handling. 11919# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given. 11920if test "${enable_sjlj_exceptions+set}" = set; then 11921 enableval="$enable_sjlj_exceptions" 11922 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi` 11923 11924cat >>confdefs.h <<_ACEOF 11925#define CONFIG_SJLJ_EXCEPTIONS $sjlj 11926_ACEOF 11927 11928fi; 11929 11930# For platforms with the unwind ABI which includes an unwind library, 11931# libunwind, we can choose to use the system libunwind. 11932 11933# Check whether --with-system-libunwind or --without-system-libunwind was given. 11934if test "${with_system_libunwind+set}" = set; then 11935 withval="$with_system_libunwind" 11936 11937fi; 11938 11939# -------------------------------------------------------- 11940# Build, host, and target specific configuration fragments 11941# -------------------------------------------------------- 11942 11943# Collect build-machine-specific information. 11944. ${srcdir}/config.build 11945 11946# Collect host-machine-specific information. 11947. ${srcdir}/config.host 11948 11949target_gtfiles= 11950 11951# Collect target-machine-specific information. 11952. ${srcdir}/config.gcc 11953 11954extra_objs="${host_extra_objs} ${extra_objs}" 11955extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}" 11956 11957# Default the target-machine variables that were not explicitly set. 11958if test x"$tm_file" = x 11959then tm_file=$cpu_type/$cpu_type.h; fi 11960 11961if test x"$extra_headers" = x 11962then extra_headers=; fi 11963 11964if test x$md_file = x 11965then md_file=$cpu_type/$cpu_type.md; fi 11966 11967if test x$out_file = x 11968then out_file=$cpu_type/$cpu_type.c; fi 11969 11970if test x"$tmake_file" = x 11971then tmake_file=$cpu_type/t-$cpu_type 11972fi 11973 11974if test x"$dwarf2" = xyes 11975then tm_file="$tm_file tm-dwarf2.h" 11976fi 11977 11978# Say what files are being used for the output code and MD file. 11979echo "Using \`$srcdir/config/$out_file' for machine-specific logic." 11980echo "Using \`$srcdir/config/$md_file' as machine description file." 11981 11982# If any of the xm_file variables contain nonexistent files, warn 11983# about them and drop them. 11984 11985bx= 11986for x in $build_xm_file; do 11987 if test -f $srcdir/config/$x 11988 then bx="$bx $x" 11989 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5 11990echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 11991 fi 11992done 11993build_xm_file="$bx" 11994 11995hx= 11996for x in $host_xm_file; do 11997 if test -f $srcdir/config/$x 11998 then hx="$hx $x" 11999 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5 12000echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12001 fi 12002done 12003host_xm_file="$hx" 12004 12005tx= 12006for x in $xm_file; do 12007 if test -f $srcdir/config/$x 12008 then tx="$tx $x" 12009 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5 12010echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12011 fi 12012done 12013xm_file="$tx" 12014 12015count=a 12016for f in $tm_file; do 12017 count=${count}x 12018done 12019if test $count = ax; then 12020 echo "Using \`$srcdir/config/$tm_file' as target machine macro file." 12021else 12022 echo "Using the following target machine macro files:" 12023 for f in $tm_file; do 12024 echo " $srcdir/config/$f" 12025 done 12026fi 12027 12028if test x$need_64bit_hwint = xyes; then 12029 12030cat >>confdefs.h <<\_ACEOF 12031#define NEED_64BIT_HOST_WIDE_INT 1 12032_ACEOF 12033 12034fi 12035 12036if test x$use_long_long_for_widest_fast_int = xyes; then 12037 12038cat >>confdefs.h <<\_ACEOF 12039#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1 12040_ACEOF 12041 12042fi 12043 12044count=a 12045for f in $host_xm_file; do 12046 count=${count}x 12047done 12048if test $count = a; then 12049 : 12050elif test $count = ax; then 12051 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." 12052else 12053 echo "Using the following host machine macro files:" 12054 for f in $host_xm_file; do 12055 echo " $srcdir/config/$f" 12056 done 12057fi 12058echo "Using ${out_host_hook_obj} for host machine hooks." 12059 12060if test "$host_xm_file" != "$build_xm_file"; then 12061 count=a 12062 for f in $build_xm_file; do 12063 count=${count}x 12064 done 12065 if test $count = a; then 12066 : 12067 elif test $count = ax; then 12068 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." 12069 else 12070 echo "Using the following build machine macro files:" 12071 for f in $build_xm_file; do 12072 echo " $srcdir/config/$f" 12073 done 12074 fi 12075fi 12076 12077# --------- 12078# Threading 12079# --------- 12080 12081# Check if a valid thread package 12082case ${enable_threads} in 12083 "" | no) 12084 # No threads 12085 target_thread_file='single' 12086 ;; 12087 yes) 12088 # default 12089 target_thread_file='single' 12090 ;; 12091 aix | dce | gnat | irix | posix | posix95 | rtems | \ 12092 single | solaris | vxworks | win32 ) 12093 target_thread_file=${enable_threads} 12094 ;; 12095 *) 12096 echo "${enable_threads} is an unknown thread package" 1>&2 12097 exit 1 12098 ;; 12099esac 12100 12101if test x${thread_file} = x; then 12102 # No thread file set by target-specific clauses in config.gcc, 12103 # so use file chosen by default logic above 12104 thread_file=${target_thread_file} 12105fi 12106 12107# Make gthr-default.h if we have a thread file. 12108gthread_flags= 12109if test $thread_file != single; then 12110 rm -f gthr-default.h 12111 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h 12112 gthread_flags=-DHAVE_GTHR_DEFAULT 12113fi 12114 12115 12116# -------- 12117# UNSORTED 12118# -------- 12119 12120use_cxa_atexit=no 12121if test x$enable___cxa_atexit = xyes || \ 12122 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then 12123 if test x$host = x$target; then 12124 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5 12125echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6 12126if test "${ac_cv_func___cxa_atexit+set}" = set; then 12127 echo $ECHO_N "(cached) $ECHO_C" >&6 12128else 12129 cat >conftest.$ac_ext <<_ACEOF 12130/* confdefs.h. */ 12131_ACEOF 12132cat confdefs.h >>conftest.$ac_ext 12133cat >>conftest.$ac_ext <<_ACEOF 12134/* end confdefs.h. */ 12135/* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit. 12136 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12137#define __cxa_atexit innocuous___cxa_atexit 12138 12139/* System header to define __stub macros and hopefully few prototypes, 12140 which can conflict with char __cxa_atexit (); below. 12141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12142 <limits.h> exists even on freestanding compilers. */ 12143 12144#ifdef __STDC__ 12145# include <limits.h> 12146#else 12147# include <assert.h> 12148#endif 12149 12150#undef __cxa_atexit 12151 12152/* Override any gcc2 internal prototype to avoid an error. */ 12153#ifdef __cplusplus 12154extern "C" 12155{ 12156#endif 12157/* We use char because int might match the return type of a gcc2 12158 builtin and then its argument prototype would still apply. */ 12159char __cxa_atexit (); 12160/* The GNU C library defines this for functions which it implements 12161 to always fail with ENOSYS. Some functions are actually named 12162 something starting with __ and the normal name is an alias. */ 12163#if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit) 12164choke me 12165#else 12166char (*f) () = __cxa_atexit; 12167#endif 12168#ifdef __cplusplus 12169} 12170#endif 12171 12172int 12173main () 12174{ 12175return f != __cxa_atexit; 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180rm -f conftest.$ac_objext conftest$ac_exeext 12181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12182 (eval $ac_link) 2>conftest.er1 12183 ac_status=$? 12184 grep -v '^ *+' conftest.er1 >conftest.err 12185 rm -f conftest.er1 12186 cat conftest.err >&5 12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12188 (exit $ac_status); } && 12189 { ac_try='test -z "$ac_c_werror_flag" 12190 || test ! -s conftest.err' 12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12192 (eval $ac_try) 2>&5 12193 ac_status=$? 12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12195 (exit $ac_status); }; } && 12196 { ac_try='test -s conftest$ac_exeext' 12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12198 (eval $ac_try) 2>&5 12199 ac_status=$? 12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12201 (exit $ac_status); }; }; then 12202 ac_cv_func___cxa_atexit=yes 12203else 12204 echo "$as_me: failed program was:" >&5 12205sed 's/^/| /' conftest.$ac_ext >&5 12206 12207ac_cv_func___cxa_atexit=no 12208fi 12209rm -f conftest.err conftest.$ac_objext \ 12210 conftest$ac_exeext conftest.$ac_ext 12211fi 12212echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5 12213echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6 12214if test $ac_cv_func___cxa_atexit = yes; then 12215 use_cxa_atexit=yes 12216else 12217 echo "__cxa_atexit can't be enabled on this target" 12218fi 12219 12220 else 12221 # We can't check for __cxa_atexit when building a cross, so assume 12222 # it is available 12223 use_cxa_atexit=yes 12224 fi 12225 if test x$use_cxa_atexit = xyes; then 12226 12227cat >>confdefs.h <<\_ACEOF 12228#define DEFAULT_USE_CXA_ATEXIT 1 12229_ACEOF 12230 12231 fi 12232fi 12233 12234# Look for a file containing extra machine modes. 12235if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then 12236 extra_modes_file='$(srcdir)'/config/${extra_modes} 12237 12238 12239cat >>confdefs.h <<_ACEOF 12240#define EXTRA_MODES_FILE "config/$extra_modes" 12241_ACEOF 12242 12243fi 12244 12245# Convert extra_options into a form suitable for Makefile use. 12246extra_opt_files= 12247for f in $extra_options; do 12248 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f" 12249done 12250 12251 12252# auto-host.h is the file containing items generated by autoconf and is 12253# the first file included by config.h. 12254# If host=build, it is correct to have bconfig include auto-host.h 12255# as well. If host!=build, we are in error and need to do more 12256# work to find out the build config parameters. 12257if test x$host = x$build 12258then 12259 build_auto=auto-host.h 12260else 12261 # We create a subdir, then run autoconf in the subdir. 12262 # To prevent recursion we set host and build for the new 12263 # invocation of configure to the build for this invocation 12264 # of configure. 12265 tempdir=build.$$ 12266 rm -rf $tempdir 12267 mkdir $tempdir 12268 cd $tempdir 12269 case ${srcdir} in 12270 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};; 12271 *) realsrcdir=../${srcdir};; 12272 esac 12273 saved_CFLAGS="${CFLAGS}" 12274 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ 12275 ${realsrcdir}/configure \ 12276 --enable-languages=${enable_languages-all} \ 12277 --target=$target_alias --host=$build_alias --build=$build_alias 12278 CFLAGS="${saved_CFLAGS}" 12279 12280 # We just finished tests for the build machine, so rename 12281 # the file auto-build.h in the gcc directory. 12282 mv auto-host.h ../auto-build.h 12283 cd .. 12284 rm -rf $tempdir 12285 build_auto=auto-build.h 12286fi 12287 12288 12289tm_file="${tm_file} defaults.h" 12290tm_p_file="${tm_p_file} tm-preds.h" 12291host_xm_file="auto-host.h ansidecl.h ${host_xm_file}" 12292build_xm_file="${build_auto} ansidecl.h ${build_xm_file}" 12293# We don't want ansidecl.h in target files, write code there in ISO/GNU C. 12294# put this back in temporarily. 12295xm_file="auto-host.h ansidecl.h ${xm_file}" 12296 12297# -------- 12298# UNSORTED 12299# -------- 12300 12301# Compile in configure arguments. 12302if test -f configargs.h ; then 12303 # Being re-configured. 12304 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'` 12305 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" 12306else 12307 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS" 12308fi 12309 12310# Double all backslashes and backslash all quotes to turn 12311# gcc_config_arguments into a C string. 12312sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out 12313$gcc_config_arguments 12314EOF 12315gcc_config_arguments_str=`cat conftest.out` 12316rm -f conftest.out 12317 12318cat > configargs.h <<EOF 12319/* Generated automatically. */ 12320static const char configuration_arguments[] = "$gcc_config_arguments_str"; 12321static const char thread_model[] = "$thread_file"; 12322 12323static const struct { 12324 const char *name, *value; 12325} configure_default_options[] = $configure_default_options; 12326EOF 12327 12328# Internationalization 12329# If we haven't got the data from the intl directory, 12330# assume NLS is disabled. 12331USE_NLS=no 12332LIBINTL= 12333LIBINTL_DEP= 12334INCINTL= 12335XGETTEXT= 12336GMSGFMT= 12337POSUB= 12338if test -f ../intl/config.intl; then 12339 . ../intl/config.intl 12340fi 12341echo "$as_me:$LINENO: checking whether NLS is requested" >&5 12342echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 12343if test x"$USE_NLS" != xyes; then 12344 echo "$as_me:$LINENO: result: no" >&5 12345echo "${ECHO_T}no" >&6 12346else 12347 echo "$as_me:$LINENO: result: yes" >&5 12348echo "${ECHO_T}yes" >&6 12349 12350cat >>confdefs.h <<\_ACEOF 12351#define ENABLE_NLS 1 12352_ACEOF 12353 12354 12355 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 12356echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 12357 # Look for .po and .gmo files in the source directory. 12358 CATALOGS= 12359 XLINGUAS= 12360 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 12361 # If there aren't any .gmo files the shell will give us the 12362 # literal string "../path/to/srcdir/po/*.gmo" which has to be 12363 # weeded out. 12364 case "$cat" in *\**) 12365 continue;; 12366 esac 12367 # The quadruple backslash is collapsed to a double backslash 12368 # by the backticks, then collapsed again by the double quotes, 12369 # leaving us with one backslash in the sed expression (right 12370 # before the dot that mustn't act as a wildcard). 12371 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"` 12372 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"` 12373 # The user is allowed to set LINGUAS to a list of languages to 12374 # install catalogs for. If it's empty that means "all of them." 12375 if test "x$LINGUAS" = x; then 12376 CATALOGS="$CATALOGS $cat" 12377 XLINGUAS="$XLINGUAS $lang" 12378 else 12379 case "$LINGUAS" in *$lang*) 12380 CATALOGS="$CATALOGS $cat" 12381 XLINGUAS="$XLINGUAS $lang" 12382 ;; 12383 esac 12384 fi 12385 done 12386 LINGUAS="$XLINGUAS" 12387 echo "$as_me:$LINENO: result: $LINGUAS" >&5 12388echo "${ECHO_T}$LINGUAS" >&6 12389fi 12390 12391# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get 12392# -liconv on the link line twice. 12393case "$LIBINTL" in *$LIBICONV*) 12394 LIBICONV= ;; 12395esac 12396 12397# Check whether --enable-secureplt or --disable-secureplt was given. 12398if test "${enable_secureplt+set}" = set; then 12399 enableval="$enable_secureplt" 12400 12401fi; 12402 12403# Windows32 Registry support for specifying GCC installation paths. 12404# Check whether --enable-win32-registry or --disable-win32-registry was given. 12405if test "${enable_win32_registry+set}" = set; then 12406 enableval="$enable_win32_registry" 12407 12408fi; 12409 12410case $host_os in 12411 win32 | pe | cygwin* | mingw32* | uwin*) 12412 if test "x$enable_win32_registry" != xno; then 12413 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5 12414echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6 12415if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then 12416 echo $ECHO_N "(cached) $ECHO_C" >&6 12417else 12418 ac_func_search_save_LIBS=$LIBS 12419ac_cv_search_RegOpenKeyExA=no 12420cat >conftest.$ac_ext <<_ACEOF 12421/* confdefs.h. */ 12422_ACEOF 12423cat confdefs.h >>conftest.$ac_ext 12424cat >>conftest.$ac_ext <<_ACEOF 12425/* end confdefs.h. */ 12426 12427/* Override any gcc2 internal prototype to avoid an error. */ 12428#ifdef __cplusplus 12429extern "C" 12430#endif 12431/* We use char because int might match the return type of a gcc2 12432 builtin and then its argument prototype would still apply. */ 12433char RegOpenKeyExA (); 12434int 12435main () 12436{ 12437RegOpenKeyExA (); 12438 ; 12439 return 0; 12440} 12441_ACEOF 12442rm -f conftest.$ac_objext conftest$ac_exeext 12443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12444 (eval $ac_link) 2>conftest.er1 12445 ac_status=$? 12446 grep -v '^ *+' conftest.er1 >conftest.err 12447 rm -f conftest.er1 12448 cat conftest.err >&5 12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12450 (exit $ac_status); } && 12451 { ac_try='test -z "$ac_c_werror_flag" 12452 || test ! -s conftest.err' 12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12454 (eval $ac_try) 2>&5 12455 ac_status=$? 12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12457 (exit $ac_status); }; } && 12458 { ac_try='test -s conftest$ac_exeext' 12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12460 (eval $ac_try) 2>&5 12461 ac_status=$? 12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12463 (exit $ac_status); }; }; then 12464 ac_cv_search_RegOpenKeyExA="none required" 12465else 12466 echo "$as_me: failed program was:" >&5 12467sed 's/^/| /' conftest.$ac_ext >&5 12468 12469fi 12470rm -f conftest.err conftest.$ac_objext \ 12471 conftest$ac_exeext conftest.$ac_ext 12472if test "$ac_cv_search_RegOpenKeyExA" = no; then 12473 for ac_lib in advapi32; do 12474 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12475 cat >conftest.$ac_ext <<_ACEOF 12476/* confdefs.h. */ 12477_ACEOF 12478cat confdefs.h >>conftest.$ac_ext 12479cat >>conftest.$ac_ext <<_ACEOF 12480/* end confdefs.h. */ 12481 12482/* Override any gcc2 internal prototype to avoid an error. */ 12483#ifdef __cplusplus 12484extern "C" 12485#endif 12486/* We use char because int might match the return type of a gcc2 12487 builtin and then its argument prototype would still apply. */ 12488char RegOpenKeyExA (); 12489int 12490main () 12491{ 12492RegOpenKeyExA (); 12493 ; 12494 return 0; 12495} 12496_ACEOF 12497rm -f conftest.$ac_objext conftest$ac_exeext 12498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12499 (eval $ac_link) 2>conftest.er1 12500 ac_status=$? 12501 grep -v '^ *+' conftest.er1 >conftest.err 12502 rm -f conftest.er1 12503 cat conftest.err >&5 12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12505 (exit $ac_status); } && 12506 { ac_try='test -z "$ac_c_werror_flag" 12507 || test ! -s conftest.err' 12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12509 (eval $ac_try) 2>&5 12510 ac_status=$? 12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12512 (exit $ac_status); }; } && 12513 { ac_try='test -s conftest$ac_exeext' 12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12515 (eval $ac_try) 2>&5 12516 ac_status=$? 12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12518 (exit $ac_status); }; }; then 12519 ac_cv_search_RegOpenKeyExA="-l$ac_lib" 12520break 12521else 12522 echo "$as_me: failed program was:" >&5 12523sed 's/^/| /' conftest.$ac_ext >&5 12524 12525fi 12526rm -f conftest.err conftest.$ac_objext \ 12527 conftest$ac_exeext conftest.$ac_ext 12528 done 12529fi 12530LIBS=$ac_func_search_save_LIBS 12531fi 12532echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5 12533echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6 12534if test "$ac_cv_search_RegOpenKeyExA" != no; then 12535 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS" 12536 12537else 12538 enable_win32_registry=no 12539fi 12540 12541 fi 12542 12543 if test "x$enable_win32_registry" != xno; then 12544 12545cat >>confdefs.h <<\_ACEOF 12546#define ENABLE_WIN32_REGISTRY 1 12547_ACEOF 12548 12549 12550 if test "x$enable_win32_registry" != xyes \ 12551 && test "x$enable_win32_registry" != x; then 12552 12553cat >>confdefs.h <<_ACEOF 12554#define WIN32_REGISTRY_KEY "$enable_win32_registry" 12555_ACEOF 12556 12557 fi 12558 fi 12559 ;; 12560esac 12561 12562# Get an absolute path to the GCC top-level source directory 12563holddir=`${PWDCMD-pwd}` 12564cd $srcdir 12565topdir=`${PWDCMD-pwd}` 12566cd $holddir 12567 12568# Conditionalize the makefile for this host machine. 12569xmake_file= 12570for f in ${host_xmake_file} 12571do 12572 if test -f ${srcdir}/config/$f 12573 then 12574 xmake_file="${xmake_file} \$(srcdir)/config/$f" 12575 fi 12576done 12577 12578# Conditionalize the makefile for this target machine. 12579tmake_file_= 12580for f in ${tmake_file} 12581do 12582 if test -f ${srcdir}/config/$f 12583 then 12584 tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 12585 fi 12586done 12587tmake_file="${tmake_file_}" 12588 12589# If the host doesn't support symlinks, modify CC in 12590# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. 12591# Otherwise, we can use "CC=$(CC)". 12592rm -f symtest.tem 12593case "$LN_S" in 12594 *-s*) 12595 cc_set_by_configure="\$(CC)" 12596 quoted_cc_set_by_configure="\$(CC)" 12597 stage_prefix_set_by_configure="\$(STAGE_PREFIX)" 12598 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)" 12599 ;; 12600 *) 12601 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" 12602 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" 12603 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" 12604 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`" 12605 ;; 12606esac 12607 12608# This is a terrible hack which will go away some day. 12609host_cc_for_libada=${CC} 12610 12611 12612out_object_file=`basename $out_file .c`.o 12613 12614tm_file_list="options.h" 12615tm_include_list="options.h" 12616for f in $tm_file; do 12617 case $f in 12618 defaults.h ) 12619 tm_file_list="${tm_file_list} \$(srcdir)/$f" 12620 tm_include_list="${tm_include_list} $f" 12621 ;; 12622 * ) 12623 tm_file_list="${tm_file_list} \$(srcdir)/config/$f" 12624 tm_include_list="${tm_include_list} config/$f" 12625 ;; 12626 esac 12627done 12628 12629tm_p_file_list= 12630tm_p_include_list= 12631for f in $tm_p_file; do 12632 case $f in 12633 tm-preds.h ) 12634 tm_p_file_list="${tm_p_file_list} $f" 12635 tm_p_include_list="${tm_p_include_list} $f" 12636 ;; 12637 * ) 12638 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f" 12639 tm_p_include_list="${tm_p_include_list} config/$f" 12640 esac 12641done 12642 12643xm_file_list= 12644xm_include_list= 12645for f in $xm_file; do 12646 case $f in 12647 ansidecl.h ) 12648 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f" 12649 xm_include_list="${xm_include_list} $f" 12650 ;; 12651 auto-host.h ) 12652 xm_file_list="${xm_file_list} $f" 12653 xm_include_list="${xm_include_list} $f" 12654 ;; 12655 * ) 12656 xm_file_list="${xm_file_list} \$(srcdir)/config/$f" 12657 xm_include_list="${xm_include_list} config/$f" 12658 ;; 12659 esac 12660done 12661 12662host_xm_file_list= 12663host_xm_include_list= 12664for f in $host_xm_file; do 12665 case $f in 12666 ansidecl.h ) 12667 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f" 12668 host_xm_include_list="${host_xm_include_list} $f" 12669 ;; 12670 auto-host.h ) 12671 host_xm_file_list="${host_xm_file_list} $f" 12672 host_xm_include_list="${host_xm_include_list} $f" 12673 ;; 12674 * ) 12675 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" 12676 host_xm_include_list="${host_xm_include_list} config/$f" 12677 ;; 12678 esac 12679done 12680 12681build_xm_file_list= 12682for f in $build_xm_file; do 12683 case $f in 12684 ansidecl.h ) 12685 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f" 12686 build_xm_include_list="${build_xm_include_list} $f" 12687 ;; 12688 auto-build.h | auto-host.h ) 12689 build_xm_file_list="${build_xm_file_list} $f" 12690 build_xm_include_list="${build_xm_include_list} $f" 12691 ;; 12692 * ) 12693 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" 12694 build_xm_include_list="${build_xm_include_list} config/$f" 12695 ;; 12696 esac 12697done 12698 12699# Define macro CROSS_COMPILE in compilation if this is a cross-compiler. 12700# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR. 12701CROSS= 12702ALL=all.internal 12703SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)' 12704 12705if test "x$with_build_sysroot" != x; then 12706 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)' 12707else 12708 # This value is used, even on a native system, because 12709 # CROSS_SYSTEM_HEADER_DIR is just 12710 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR). 12711 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)' 12712fi 12713 12714if test x$host != x$target 12715then 12716 CROSS="-DCROSS_COMPILE" 12717 ALL=all.cross 12718 SYSTEM_HEADER_DIR=$build_system_header_dir 12719 case "$host","$target" in 12720 # Darwin crosses can use the host system's libraries and headers, 12721 # because of the fat library support. Of course, it must be the 12722 # same version of Darwin on both sides. Allow the user to 12723 # just say --target=foo-darwin without a version number to mean 12724 # "the version on this system". 12725 *-*-darwin*,*-*-darwin*) 12726 hostos=`echo $host | sed 's/.*-darwin/darwin/'` 12727 targetos=`echo $target | sed 's/.*-darwin/darwin/'` 12728 if test $hostos = $targetos -o $targetos = darwin ; then 12729 CROSS= 12730 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)' 12731 with_headers=yes 12732 fi 12733 ;; 12734 12735 i?86-*-*,x86_64-*-* \ 12736 | powerpc*-*-*,powerpc64*-*-*) 12737 CROSS="$CROSS -DNATIVE_CROSS" ;; 12738 esac 12739elif test "x$TARGET_SYSTEM_ROOT" != x; then 12740 SYSTEM_HEADER_DIR=$build_system_header_dir 12741fi 12742 12743# If this is a cross-compiler that does not 12744# have its own set of headers then define 12745# inhibit_libc 12746 12747# If this is using newlib, without having the headers available now, 12748# then define inhibit_libc in LIBGCC2_CFLAGS. 12749# This prevents libgcc2 from containing any code which requires libc 12750# support. 12751inhibit_libc=false 12752if { { test x$host != x$target && test "x$with_sysroot" = x ; } || 12753 test x$with_newlib = xyes ; } && 12754 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then 12755 inhibit_libc=true 12756fi 12757 12758 12759# When building gcc with a cross-compiler, we need to adjust things so 12760# that the generator programs are still built with the native compiler. 12761# Also, we cannot run fixincludes or fix-header. 12762 12763# These are the normal (build=host) settings: 12764CC_FOR_BUILD='$(CC)' 12765BUILD_CFLAGS='$(ALL_CFLAGS)' 12766STMP_FIXINC=stmp-fixinc 12767 12768# Possibly disable fixproto, on a per-target basis. 12769case ${use_fixproto} in 12770 no) 12771 STMP_FIXPROTO= 12772 ;; 12773 yes) 12774 STMP_FIXPROTO=stmp-fixproto 12775 ;; 12776esac 12777 12778 12779# And these apply if build != host, or we are generating coverage data 12780if test x$build != x$host || test "x$coverage_flags" != x 12781then 12782 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)' 12783 12784 if test "x$TARGET_SYSTEM_ROOT" = x; then 12785 if test "x$STMP_FIXPROTO" != x; then 12786 STMP_FIXPROTO=stmp-install-fixproto 12787 fi 12788 fi 12789fi 12790 12791# Expand extra_headers to include complete path. 12792# This substitutes for lots of t-* files. 12793extra_headers_list= 12794# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers. 12795for file in ${extra_headers} ; do 12796 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}" 12797done 12798 12799# Define collect2 in Makefile. 12800case $host_can_use_collect2 in 12801 no) collect2= ;; 12802 *) collect2='collect2$(exeext)' ;; 12803esac 12804 12805 12806# Add a definition of USE_COLLECT2 if system wants one. 12807case $use_collect2 in 12808 no) use_collect2= ;; 12809 "") ;; 12810 *) 12811 host_xm_defines="${host_xm_defines} USE_COLLECT2" 12812 xm_defines="${xm_defines} USE_COLLECT2" 12813 case $host_can_use_collect2 in 12814 no) 12815 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5 12816echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;} 12817 { (exit 1); exit 1; }; } 12818 ;; 12819 esac 12820 ;; 12821esac 12822 12823# --------------------------- 12824# Assembler & linker features 12825# --------------------------- 12826 12827# Identify the assembler which will work hand-in-glove with the newly 12828# built GCC, so that we can examine its features. This is the assembler 12829# which will be driven by the driver program. 12830# 12831# If build != host, and we aren't building gas in-tree, we identify a 12832# build->target assembler and hope that it will have the same features 12833# as the host->target assembler we'll be using. 12834in_tree_gas=no 12835gcc_cv_as= 12836gcc_cv_gas_major_version= 12837gcc_cv_gas_minor_version= 12838gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas 12839if test -x "$DEFAULT_ASSEMBLER"; then 12840 gcc_cv_as="$DEFAULT_ASSEMBLER" 12841elif test -f $gcc_cv_as_gas_srcdir/configure.in \ 12842 && test -f ../gas/Makefile \ 12843 && test x$build = x$host; then 12844 # Single tree build which includes gas. We want to prefer it 12845 # over whatever linker top-level may have detected, since 12846 # we'll use what we're building after installation anyway. 12847 in_tree_gas=yes 12848 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd 12849for f in $gcc_cv_as_bfd_srcdir/configure \ 12850 $gcc_cv_as_gas_srcdir/configure \ 12851 $gcc_cv_as_gas_srcdir/configure.in \ 12852 $gcc_cv_as_gas_srcdir/Makefile.in ; do 12853 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f` 12854 if test x$gcc_cv_gas_version != x; then 12855 break 12856 fi 12857done 12858gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` 12859gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 12860gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"` 12861case $gcc_cv_gas_patch_version in 12862 "") gcc_cv_gas_patch_version="0" ;; 12863esac 12864gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \ 12865 + $gcc_cv_gas_minor_version \) \* 1000 \ 12866 + $gcc_cv_gas_patch_version` 12867 12868 gcc_cv_as=../gas/as-new$build_exeext 12869 in_tree_gas_is_elf=no 12870 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \ 12871 || (grep 'obj_format = multi' ../gas/Makefile \ 12872 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null 12873 then 12874 in_tree_gas_is_elf=yes 12875 fi 12876elif test -x as$build_exeext; then 12877 # Build using assembler in the current directory. 12878 gcc_cv_as=./as$build_exeext 12879fi 12880 12881 12882# When searching for the assembler or linker, search the same directories 12883# that the installed compiler will search. Else we may find the wrong 12884# assembler or linker and lose. If we do not find a suitable binary, 12885# then try the user's path. 12886# 12887# Also note we have to check MD_EXEC_PREFIX before checking the user's path. 12888if test "x$exec_prefix" = xNONE; then 12889 if test "x$prefix" = xNONE; then 12890 gcc_cv_tool_prefix=/usr/local 12891 else 12892 gcc_cv_tool_prefix=$prefix 12893 fi 12894else 12895 gcc_cv_tool_prefix=$exec_prefix 12896fi 12897 12898if test x$host = x$build; then 12899 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version" 12900 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical" 12901 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version" 12902 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical" 12903 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version" 12904 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin" 12905else 12906 gcc_cv_tool_dirs= 12907fi 12908 12909if test x$build = x$target; then 12910 # Rummage through tm_files looking for MD_EXEC_PREFIX 12911 md_dirs= 12912 for f in ${tm_file_list}; do 12913 if test -f $f; then 12914 if grep '^#[ ]*undef[ ]*MD_EXEC_PREFIX' $f > /dev/null; then 12915 md_dirs= 12916 fi 12917 md_dirs="$md_dirs "`sed -n -e 's@^#[ ]*define[ ]*MD_EXEC_PREFIX[ ]*"\(.*\)/"@\1@p' < $f` 12918 fi 12919 done 12920 for f in ${md_dirs}; do 12921 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$f" 12922 done 12923fi 12924 12925 12926 12927 12928exec 6>/dev/null 12929 12930# First try the environment variables. Handle full paths or basenames. 12931if test "x$gcc_cv_as" = x && test -n "$AS_FOR_TARGET"; then 12932 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args. 12933set dummy $AS_FOR_TARGET; ac_word=$2 12934echo "$as_me:$LINENO: checking for $ac_word" >&5 12935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 12936if test "${ac_cv_path_gcc_cv_as+set}" = set; then 12937 echo $ECHO_N "(cached) $ECHO_C" >&6 12938else 12939 case $gcc_cv_as in 12940 [\\/]* | ?:[\\/]*) 12941 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path. 12942 ;; 12943 *) 12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12945for as_dir in $PATH 12946do 12947 IFS=$as_save_IFS 12948 test -z "$as_dir" && as_dir=. 12949 for ac_exec_ext in '' $ac_executable_extensions; do 12950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12951 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext" 12952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12953 break 2 12954 fi 12955done 12956done 12957 12958 ;; 12959esac 12960fi 12961gcc_cv_as=$ac_cv_path_gcc_cv_as 12962 12963if test -n "$gcc_cv_as"; then 12964 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5 12965echo "${ECHO_T}$gcc_cv_as" >&6 12966else 12967 echo "$as_me:$LINENO: result: no" >&5 12968echo "${ECHO_T}no" >&6 12969fi 12970 12971fi 12972if test "x$gcc_cv_as" = x && test -n "$AS" && test x$host = x$target; then 12973 # Extract the first word of "$AS", so it can be a program name with args. 12974set dummy $AS; ac_word=$2 12975echo "$as_me:$LINENO: checking for $ac_word" >&5 12976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 12977if test "${ac_cv_path_gcc_cv_as+set}" = set; then 12978 echo $ECHO_N "(cached) $ECHO_C" >&6 12979else 12980 case $gcc_cv_as in 12981 [\\/]* | ?:[\\/]*) 12982 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path. 12983 ;; 12984 *) 12985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12986for as_dir in $PATH 12987do 12988 IFS=$as_save_IFS 12989 test -z "$as_dir" && as_dir=. 12990 for ac_exec_ext in '' $ac_executable_extensions; do 12991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12992 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext" 12993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12994 break 2 12995 fi 12996done 12997done 12998 12999 ;; 13000esac 13001fi 13002gcc_cv_as=$ac_cv_path_gcc_cv_as 13003 13004if test -n "$gcc_cv_as"; then 13005 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5 13006echo "${ECHO_T}$gcc_cv_as" >&6 13007else 13008 echo "$as_me:$LINENO: result: no" >&5 13009echo "${ECHO_T}no" >&6 13010fi 13011 13012fi 13013 13014if test "x$gcc_cv_as" = x; then 13015 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument 13016 # is empty. 13017 if test "x$gcc_cv_tool_dirs" = x; then 13018 gcc_cv_as= 13019 else 13020 for ac_prog in as 13021do 13022 # Extract the first word of "$ac_prog", so it can be a program name with args. 13023set dummy $ac_prog; ac_word=$2 13024echo "$as_me:$LINENO: checking for $ac_word" >&5 13025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13026if test "${ac_cv_path_gcc_cv_as+set}" = set; then 13027 echo $ECHO_N "(cached) $ECHO_C" >&6 13028else 13029 case $gcc_cv_as in 13030 [\\/]* | ?:[\\/]*) 13031 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path. 13032 ;; 13033 *) 13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13035for as_dir in $gcc_cv_tool_dirs 13036do 13037 IFS=$as_save_IFS 13038 test -z "$as_dir" && as_dir=. 13039 for ac_exec_ext in '' $ac_executable_extensions; do 13040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13041 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext" 13042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13043 break 2 13044 fi 13045done 13046done 13047 13048 ;; 13049esac 13050fi 13051gcc_cv_as=$ac_cv_path_gcc_cv_as 13052 13053if test -n "$gcc_cv_as"; then 13054 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5 13055echo "${ECHO_T}$gcc_cv_as" >&6 13056else 13057 echo "$as_me:$LINENO: result: no" >&5 13058echo "${ECHO_T}no" >&6 13059fi 13060 13061 test -n "$gcc_cv_as" && break 13062done 13063 13064 fi 13065fi 13066if test "x$gcc_cv_as" = x; then 13067 # If the loop above did not find a tool, then use whatever 13068 # one we can find in the users's path. We are looking for a 13069 # ${build} -> ${target} tool. 13070 if test "x$program_prefix" != xNONE; then 13071 default_tool_name=${program_prefix}as 13072 elif test x$build != x$host && test x$build != x$target; then 13073 default_tool_name=${target_noncanonical}-as 13074 else 13075 default_tool_name=`echo as | sed "${program_transform_name}"` 13076 fi 13077 for ac_prog in $default_tool_name 13078do 13079 # Extract the first word of "$ac_prog", so it can be a program name with args. 13080set dummy $ac_prog; ac_word=$2 13081echo "$as_me:$LINENO: checking for $ac_word" >&5 13082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13083if test "${ac_cv_path_gcc_cv_as+set}" = set; then 13084 echo $ECHO_N "(cached) $ECHO_C" >&6 13085else 13086 case $gcc_cv_as in 13087 [\\/]* | ?:[\\/]*) 13088 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path. 13089 ;; 13090 *) 13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13092for as_dir in $PATH 13093do 13094 IFS=$as_save_IFS 13095 test -z "$as_dir" && as_dir=. 13096 for ac_exec_ext in '' $ac_executable_extensions; do 13097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13098 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext" 13099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13100 break 2 13101 fi 13102done 13103done 13104 13105 ;; 13106esac 13107fi 13108gcc_cv_as=$ac_cv_path_gcc_cv_as 13109 13110if test -n "$gcc_cv_as"; then 13111 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5 13112echo "${ECHO_T}$gcc_cv_as" >&6 13113else 13114 echo "$as_me:$LINENO: result: no" >&5 13115echo "${ECHO_T}no" >&6 13116fi 13117 13118 test -n "$gcc_cv_as" && break 13119done 13120test -n "$gcc_cv_as" || gcc_cv_as="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext" 13121 13122fi 13123test "$silent" != yes && exec 6>&1 13124 13125ORIGINAL_AS_FOR_TARGET="$gcc_cv_as" 13126 13127echo "$as_me:$LINENO: checking what assembler to use" >&5 13128echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6 13129case $in_tree_gas in 13130 yes) 13131 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5 13132echo "${ECHO_T}\"newly built gas\"" >&6 13133 ;; 13134 no) 13135 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5 13136echo "${ECHO_T}$gcc_cv_as" >&6 13137 ;; 13138esac 13139 13140# Identify the linker which will work hand-in-glove with the newly 13141# built GCC, so that we can examine its features. This is the linker 13142# which will be driven by the driver program. 13143# 13144# If build != host, and we aren't building gas in-tree, we identify a 13145# build->target linker and hope that it will have the same features 13146# as the host->target linker we'll be using. 13147in_tree_ld=no 13148gcc_cv_ld= 13149gcc_cv_gld_major_version= 13150gcc_cv_gld_minor_version= 13151gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld 13152gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd 13153if test -x "$DEFAULT_LINKER"; then 13154 gcc_cv_ld="$DEFAULT_LINKER" 13155elif test -f $gcc_cv_ld_gld_srcdir/configure.in \ 13156 && test -f ../ld/Makefile \ 13157 && test x$build = x$host; then 13158 # Single tree build which includes ld. We want to prefer it 13159 # over whatever linker top-level may have detected, since 13160 # we'll use what we're building after installation anyway. 13161 in_tree_ld=yes 13162 in_tree_ld_is_elf=no 13163 if (grep 'EMUL = .*elf' ../ld/Makefile \ 13164 || grep 'EMUL = .*linux' ../ld/Makefile \ 13165 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then 13166 in_tree_ld_is_elf=yes 13167 fi 13168 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 13169 do 13170 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f` 13171 if test x$gcc_cv_gld_version != x; then 13172 break 13173 fi 13174 done 13175 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"` 13176 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 13177 gcc_cv_ld=../ld/ld-new$build_exeext 13178elif test -x collect-ld$build_exeext; then 13179 # Build using linker in the current directory. 13180 gcc_cv_ld=./collect-ld$build_exeext 13181fi 13182 13183 13184 13185 13186 13187exec 6>/dev/null 13188 13189# First try the environment variables. Handle full paths or basenames. 13190if test "x$gcc_cv_ld" = x && test -n "$LD_FOR_TARGET"; then 13191 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args. 13192set dummy $LD_FOR_TARGET; ac_word=$2 13193echo "$as_me:$LINENO: checking for $ac_word" >&5 13194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13195if test "${ac_cv_path_gcc_cv_ld+set}" = set; then 13196 echo $ECHO_N "(cached) $ECHO_C" >&6 13197else 13198 case $gcc_cv_ld in 13199 [\\/]* | ?:[\\/]*) 13200 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path. 13201 ;; 13202 *) 13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13204for as_dir in $PATH 13205do 13206 IFS=$as_save_IFS 13207 test -z "$as_dir" && as_dir=. 13208 for ac_exec_ext in '' $ac_executable_extensions; do 13209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13210 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext" 13211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13212 break 2 13213 fi 13214done 13215done 13216 13217 ;; 13218esac 13219fi 13220gcc_cv_ld=$ac_cv_path_gcc_cv_ld 13221 13222if test -n "$gcc_cv_ld"; then 13223 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5 13224echo "${ECHO_T}$gcc_cv_ld" >&6 13225else 13226 echo "$as_me:$LINENO: result: no" >&5 13227echo "${ECHO_T}no" >&6 13228fi 13229 13230fi 13231if test "x$gcc_cv_ld" = x && test -n "$LD" && test x$host = x$target; then 13232 # Extract the first word of "$LD", so it can be a program name with args. 13233set dummy $LD; ac_word=$2 13234echo "$as_me:$LINENO: checking for $ac_word" >&5 13235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13236if test "${ac_cv_path_gcc_cv_ld+set}" = set; then 13237 echo $ECHO_N "(cached) $ECHO_C" >&6 13238else 13239 case $gcc_cv_ld in 13240 [\\/]* | ?:[\\/]*) 13241 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path. 13242 ;; 13243 *) 13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13245for as_dir in $PATH 13246do 13247 IFS=$as_save_IFS 13248 test -z "$as_dir" && as_dir=. 13249 for ac_exec_ext in '' $ac_executable_extensions; do 13250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13251 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext" 13252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13253 break 2 13254 fi 13255done 13256done 13257 13258 ;; 13259esac 13260fi 13261gcc_cv_ld=$ac_cv_path_gcc_cv_ld 13262 13263if test -n "$gcc_cv_ld"; then 13264 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5 13265echo "${ECHO_T}$gcc_cv_ld" >&6 13266else 13267 echo "$as_me:$LINENO: result: no" >&5 13268echo "${ECHO_T}no" >&6 13269fi 13270 13271fi 13272 13273if test "x$gcc_cv_ld" = x; then 13274 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument 13275 # is empty. 13276 if test "x$gcc_cv_tool_dirs" = x; then 13277 gcc_cv_ld= 13278 else 13279 for ac_prog in ld 13280do 13281 # Extract the first word of "$ac_prog", so it can be a program name with args. 13282set dummy $ac_prog; ac_word=$2 13283echo "$as_me:$LINENO: checking for $ac_word" >&5 13284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13285if test "${ac_cv_path_gcc_cv_ld+set}" = set; then 13286 echo $ECHO_N "(cached) $ECHO_C" >&6 13287else 13288 case $gcc_cv_ld in 13289 [\\/]* | ?:[\\/]*) 13290 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path. 13291 ;; 13292 *) 13293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13294for as_dir in $gcc_cv_tool_dirs 13295do 13296 IFS=$as_save_IFS 13297 test -z "$as_dir" && as_dir=. 13298 for ac_exec_ext in '' $ac_executable_extensions; do 13299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13300 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext" 13301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13302 break 2 13303 fi 13304done 13305done 13306 13307 ;; 13308esac 13309fi 13310gcc_cv_ld=$ac_cv_path_gcc_cv_ld 13311 13312if test -n "$gcc_cv_ld"; then 13313 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5 13314echo "${ECHO_T}$gcc_cv_ld" >&6 13315else 13316 echo "$as_me:$LINENO: result: no" >&5 13317echo "${ECHO_T}no" >&6 13318fi 13319 13320 test -n "$gcc_cv_ld" && break 13321done 13322 13323 fi 13324fi 13325if test "x$gcc_cv_ld" = x; then 13326 # If the loop above did not find a tool, then use whatever 13327 # one we can find in the users's path. We are looking for a 13328 # ${build} -> ${target} tool. 13329 if test "x$program_prefix" != xNONE; then 13330 default_tool_name=${program_prefix}ld 13331 elif test x$build != x$host && test x$build != x$target; then 13332 default_tool_name=${target_noncanonical}-ld 13333 else 13334 default_tool_name=`echo ld | sed "${program_transform_name}"` 13335 fi 13336 for ac_prog in $default_tool_name 13337do 13338 # Extract the first word of "$ac_prog", so it can be a program name with args. 13339set dummy $ac_prog; ac_word=$2 13340echo "$as_me:$LINENO: checking for $ac_word" >&5 13341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13342if test "${ac_cv_path_gcc_cv_ld+set}" = set; then 13343 echo $ECHO_N "(cached) $ECHO_C" >&6 13344else 13345 case $gcc_cv_ld in 13346 [\\/]* | ?:[\\/]*) 13347 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path. 13348 ;; 13349 *) 13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13351for as_dir in $PATH 13352do 13353 IFS=$as_save_IFS 13354 test -z "$as_dir" && as_dir=. 13355 for ac_exec_ext in '' $ac_executable_extensions; do 13356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13357 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext" 13358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13359 break 2 13360 fi 13361done 13362done 13363 13364 ;; 13365esac 13366fi 13367gcc_cv_ld=$ac_cv_path_gcc_cv_ld 13368 13369if test -n "$gcc_cv_ld"; then 13370 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5 13371echo "${ECHO_T}$gcc_cv_ld" >&6 13372else 13373 echo "$as_me:$LINENO: result: no" >&5 13374echo "${ECHO_T}no" >&6 13375fi 13376 13377 test -n "$gcc_cv_ld" && break 13378done 13379test -n "$gcc_cv_ld" || gcc_cv_ld="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext" 13380 13381fi 13382test "$silent" != yes && exec 6>&1 13383 13384ORIGINAL_LD_FOR_TARGET="$gcc_cv_ld" 13385 13386echo "$as_me:$LINENO: checking what linker to use" >&5 13387echo $ECHO_N "checking what linker to use... $ECHO_C" >&6 13388case $in_tree_ld in 13389 yes) 13390 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5 13391echo "${ECHO_T}\"newly built ld\"" >&6 13392 ;; 13393 no) 13394 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5 13395echo "${ECHO_T}$gcc_cv_ld" >&6 13396 ;; 13397esac 13398 13399# Figure out what nm we will be using. 13400gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils 13401in_tree_nm=no 13402gcc_cv_nm= 13403if test -f $gcc_cv_binutils_srcdir/configure.in \ 13404 && test -f ../binutils/Makefile; then 13405 # Single tree build which includes binutils. 13406 in_tree_nm=yes 13407 gcc_cv_nm=../binutils/nm-new$build_exeext 13408elif test -x nm$build_exeext; then 13409 gcc_cv_nm=./nm$build_exeext 13410fi 13411 13412 13413 13414 13415 13416exec 6>/dev/null 13417 13418# First try the environment variables. Handle full paths or basenames. 13419if test "x$gcc_cv_nm" = x && test -n "$NM_FOR_TARGET"; then 13420 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args. 13421set dummy $NM_FOR_TARGET; ac_word=$2 13422echo "$as_me:$LINENO: checking for $ac_word" >&5 13423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13424if test "${ac_cv_path_gcc_cv_nm+set}" = set; then 13425 echo $ECHO_N "(cached) $ECHO_C" >&6 13426else 13427 case $gcc_cv_nm in 13428 [\\/]* | ?:[\\/]*) 13429 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path. 13430 ;; 13431 *) 13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13433for as_dir in $PATH 13434do 13435 IFS=$as_save_IFS 13436 test -z "$as_dir" && as_dir=. 13437 for ac_exec_ext in '' $ac_executable_extensions; do 13438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13439 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext" 13440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13441 break 2 13442 fi 13443done 13444done 13445 13446 ;; 13447esac 13448fi 13449gcc_cv_nm=$ac_cv_path_gcc_cv_nm 13450 13451if test -n "$gcc_cv_nm"; then 13452 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5 13453echo "${ECHO_T}$gcc_cv_nm" >&6 13454else 13455 echo "$as_me:$LINENO: result: no" >&5 13456echo "${ECHO_T}no" >&6 13457fi 13458 13459fi 13460if test "x$gcc_cv_nm" = x && test -n "$NM" && test x$host = x$target; then 13461 # Extract the first word of "$NM", so it can be a program name with args. 13462set dummy $NM; ac_word=$2 13463echo "$as_me:$LINENO: checking for $ac_word" >&5 13464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13465if test "${ac_cv_path_gcc_cv_nm+set}" = set; then 13466 echo $ECHO_N "(cached) $ECHO_C" >&6 13467else 13468 case $gcc_cv_nm in 13469 [\\/]* | ?:[\\/]*) 13470 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path. 13471 ;; 13472 *) 13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13474for as_dir in $PATH 13475do 13476 IFS=$as_save_IFS 13477 test -z "$as_dir" && as_dir=. 13478 for ac_exec_ext in '' $ac_executable_extensions; do 13479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13480 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext" 13481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13482 break 2 13483 fi 13484done 13485done 13486 13487 ;; 13488esac 13489fi 13490gcc_cv_nm=$ac_cv_path_gcc_cv_nm 13491 13492if test -n "$gcc_cv_nm"; then 13493 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5 13494echo "${ECHO_T}$gcc_cv_nm" >&6 13495else 13496 echo "$as_me:$LINENO: result: no" >&5 13497echo "${ECHO_T}no" >&6 13498fi 13499 13500fi 13501 13502if test "x$gcc_cv_nm" = x; then 13503 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument 13504 # is empty. 13505 if test "x$gcc_cv_tool_dirs" = x; then 13506 gcc_cv_nm= 13507 else 13508 for ac_prog in nm 13509do 13510 # Extract the first word of "$ac_prog", so it can be a program name with args. 13511set dummy $ac_prog; ac_word=$2 13512echo "$as_me:$LINENO: checking for $ac_word" >&5 13513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13514if test "${ac_cv_path_gcc_cv_nm+set}" = set; then 13515 echo $ECHO_N "(cached) $ECHO_C" >&6 13516else 13517 case $gcc_cv_nm in 13518 [\\/]* | ?:[\\/]*) 13519 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path. 13520 ;; 13521 *) 13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13523for as_dir in $gcc_cv_tool_dirs 13524do 13525 IFS=$as_save_IFS 13526 test -z "$as_dir" && as_dir=. 13527 for ac_exec_ext in '' $ac_executable_extensions; do 13528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13529 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext" 13530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13531 break 2 13532 fi 13533done 13534done 13535 13536 ;; 13537esac 13538fi 13539gcc_cv_nm=$ac_cv_path_gcc_cv_nm 13540 13541if test -n "$gcc_cv_nm"; then 13542 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5 13543echo "${ECHO_T}$gcc_cv_nm" >&6 13544else 13545 echo "$as_me:$LINENO: result: no" >&5 13546echo "${ECHO_T}no" >&6 13547fi 13548 13549 test -n "$gcc_cv_nm" && break 13550done 13551 13552 fi 13553fi 13554if test "x$gcc_cv_nm" = x; then 13555 # If the loop above did not find a tool, then use whatever 13556 # one we can find in the users's path. We are looking for a 13557 # ${build} -> ${target} tool. 13558 if test "x$program_prefix" != xNONE; then 13559 default_tool_name=${program_prefix}nm 13560 elif test x$build != x$host && test x$build != x$target; then 13561 default_tool_name=${target_noncanonical}-nm 13562 else 13563 default_tool_name=`echo nm | sed "${program_transform_name}"` 13564 fi 13565 for ac_prog in $default_tool_name 13566do 13567 # Extract the first word of "$ac_prog", so it can be a program name with args. 13568set dummy $ac_prog; ac_word=$2 13569echo "$as_me:$LINENO: checking for $ac_word" >&5 13570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13571if test "${ac_cv_path_gcc_cv_nm+set}" = set; then 13572 echo $ECHO_N "(cached) $ECHO_C" >&6 13573else 13574 case $gcc_cv_nm in 13575 [\\/]* | ?:[\\/]*) 13576 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path. 13577 ;; 13578 *) 13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13580for as_dir in $PATH 13581do 13582 IFS=$as_save_IFS 13583 test -z "$as_dir" && as_dir=. 13584 for ac_exec_ext in '' $ac_executable_extensions; do 13585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13586 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext" 13587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13588 break 2 13589 fi 13590done 13591done 13592 13593 ;; 13594esac 13595fi 13596gcc_cv_nm=$ac_cv_path_gcc_cv_nm 13597 13598if test -n "$gcc_cv_nm"; then 13599 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5 13600echo "${ECHO_T}$gcc_cv_nm" >&6 13601else 13602 echo "$as_me:$LINENO: result: no" >&5 13603echo "${ECHO_T}no" >&6 13604fi 13605 13606 test -n "$gcc_cv_nm" && break 13607done 13608test -n "$gcc_cv_nm" || gcc_cv_nm="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext" 13609 13610fi 13611test "$silent" != yes && exec 6>&1 13612 13613ORIGINAL_NM_FOR_TARGET="$gcc_cv_nm" 13614 13615echo "$as_me:$LINENO: checking what nm to use" >&5 13616echo $ECHO_N "checking what nm to use... $ECHO_C" >&6 13617case $in_tree_nm in 13618 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5 13619echo "${ECHO_T}\"newly built nm\"" >&6 ;; 13620 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5 13621echo "${ECHO_T}$gcc_cv_nm" >&6 ;; 13622esac 13623 13624# Figure out what objdump we will be using. 13625in_tree_objdump=no 13626gcc_cv_objdump= 13627if test -f $gcc_cv_binutils_srcdir/configure.in \ 13628 && test -f ../binutils/Makefile; then 13629 # Single tree build which includes binutils. 13630 in_tree_objdump=yes 13631 gcc_cv_objdump=../binutils/objdump$build_exeext 13632elif test -x objdump$build_exeext; then 13633 gcc_cv_objdump=./objdump$build_exeext 13634fi 13635 13636 13637 13638 13639 13640exec 6>/dev/null 13641 13642# First try the environment variables. Handle full paths or basenames. 13643if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP_FOR_TARGET"; then 13644 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args. 13645set dummy $OBJDUMP_FOR_TARGET; ac_word=$2 13646echo "$as_me:$LINENO: checking for $ac_word" >&5 13647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13648if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then 13649 echo $ECHO_N "(cached) $ECHO_C" >&6 13650else 13651 case $gcc_cv_objdump in 13652 [\\/]* | ?:[\\/]*) 13653 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path. 13654 ;; 13655 *) 13656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13657for as_dir in $PATH 13658do 13659 IFS=$as_save_IFS 13660 test -z "$as_dir" && as_dir=. 13661 for ac_exec_ext in '' $ac_executable_extensions; do 13662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13663 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext" 13664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13665 break 2 13666 fi 13667done 13668done 13669 13670 ;; 13671esac 13672fi 13673gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump 13674 13675if test -n "$gcc_cv_objdump"; then 13676 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5 13677echo "${ECHO_T}$gcc_cv_objdump" >&6 13678else 13679 echo "$as_me:$LINENO: result: no" >&5 13680echo "${ECHO_T}no" >&6 13681fi 13682 13683fi 13684if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP" && test x$host = x$target; then 13685 # Extract the first word of "$OBJDUMP", so it can be a program name with args. 13686set dummy $OBJDUMP; ac_word=$2 13687echo "$as_me:$LINENO: checking for $ac_word" >&5 13688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13689if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then 13690 echo $ECHO_N "(cached) $ECHO_C" >&6 13691else 13692 case $gcc_cv_objdump in 13693 [\\/]* | ?:[\\/]*) 13694 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path. 13695 ;; 13696 *) 13697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13698for as_dir in $PATH 13699do 13700 IFS=$as_save_IFS 13701 test -z "$as_dir" && as_dir=. 13702 for ac_exec_ext in '' $ac_executable_extensions; do 13703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13704 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext" 13705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13706 break 2 13707 fi 13708done 13709done 13710 13711 ;; 13712esac 13713fi 13714gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump 13715 13716if test -n "$gcc_cv_objdump"; then 13717 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5 13718echo "${ECHO_T}$gcc_cv_objdump" >&6 13719else 13720 echo "$as_me:$LINENO: result: no" >&5 13721echo "${ECHO_T}no" >&6 13722fi 13723 13724fi 13725 13726if test "x$gcc_cv_objdump" = x; then 13727 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument 13728 # is empty. 13729 if test "x$gcc_cv_tool_dirs" = x; then 13730 gcc_cv_objdump= 13731 else 13732 for ac_prog in objdump 13733do 13734 # Extract the first word of "$ac_prog", so it can be a program name with args. 13735set dummy $ac_prog; ac_word=$2 13736echo "$as_me:$LINENO: checking for $ac_word" >&5 13737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13738if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then 13739 echo $ECHO_N "(cached) $ECHO_C" >&6 13740else 13741 case $gcc_cv_objdump in 13742 [\\/]* | ?:[\\/]*) 13743 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path. 13744 ;; 13745 *) 13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13747for as_dir in $gcc_cv_tool_dirs 13748do 13749 IFS=$as_save_IFS 13750 test -z "$as_dir" && as_dir=. 13751 for ac_exec_ext in '' $ac_executable_extensions; do 13752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13753 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext" 13754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13755 break 2 13756 fi 13757done 13758done 13759 13760 ;; 13761esac 13762fi 13763gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump 13764 13765if test -n "$gcc_cv_objdump"; then 13766 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5 13767echo "${ECHO_T}$gcc_cv_objdump" >&6 13768else 13769 echo "$as_me:$LINENO: result: no" >&5 13770echo "${ECHO_T}no" >&6 13771fi 13772 13773 test -n "$gcc_cv_objdump" && break 13774done 13775 13776 fi 13777fi 13778if test "x$gcc_cv_objdump" = x; then 13779 # If the loop above did not find a tool, then use whatever 13780 # one we can find in the users's path. We are looking for a 13781 # ${build} -> ${target} tool. 13782 if test "x$program_prefix" != xNONE; then 13783 default_tool_name=${program_prefix}objdump 13784 elif test x$build != x$host && test x$build != x$target; then 13785 default_tool_name=${target_noncanonical}-objdump 13786 else 13787 default_tool_name=`echo objdump | sed "${program_transform_name}"` 13788 fi 13789 for ac_prog in $default_tool_name 13790do 13791 # Extract the first word of "$ac_prog", so it can be a program name with args. 13792set dummy $ac_prog; ac_word=$2 13793echo "$as_me:$LINENO: checking for $ac_word" >&5 13794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 13795if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then 13796 echo $ECHO_N "(cached) $ECHO_C" >&6 13797else 13798 case $gcc_cv_objdump in 13799 [\\/]* | ?:[\\/]*) 13800 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path. 13801 ;; 13802 *) 13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13804for as_dir in $PATH 13805do 13806 IFS=$as_save_IFS 13807 test -z "$as_dir" && as_dir=. 13808 for ac_exec_ext in '' $ac_executable_extensions; do 13809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13810 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext" 13811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13812 break 2 13813 fi 13814done 13815done 13816 13817 ;; 13818esac 13819fi 13820gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump 13821 13822if test -n "$gcc_cv_objdump"; then 13823 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5 13824echo "${ECHO_T}$gcc_cv_objdump" >&6 13825else 13826 echo "$as_me:$LINENO: result: no" >&5 13827echo "${ECHO_T}no" >&6 13828fi 13829 13830 test -n "$gcc_cv_objdump" && break 13831done 13832test -n "$gcc_cv_objdump" || gcc_cv_objdump="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext" 13833 13834fi 13835test "$silent" != yes && exec 6>&1 13836 13837ORIGINAL_OBJDUMP_FOR_TARGET="$gcc_cv_objdump" 13838 13839echo "$as_me:$LINENO: checking what objdump to use" >&5 13840echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6 13841case $in_tree_objdump in 13842 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5 13843echo "${ECHO_T}\"newly built objdump\"" >&6 ;; 13844 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5 13845echo "${ECHO_T}$gcc_cv_objdump" >&6 ;; 13846esac 13847 13848# Figure out what assembler alignment features are present. 13849echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5 13850echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6 13851if test "${gcc_cv_as_balign_and_p2align+set}" = set; then 13852 echo $ECHO_N "(cached) $ECHO_C" >&6 13853else 13854 gcc_cv_as_balign_and_p2align=no 13855 if test $in_tree_gas = yes; then 13856 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0` 13857 then gcc_cv_as_balign_and_p2align=yes 13858fi 13859 elif test x$gcc_cv_as != x; then 13860 echo '.balign 4 13861.p2align 2' > conftest.s 13862 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13864 (eval $ac_try) 2>&5 13865 ac_status=$? 13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13867 (exit $ac_status); }; } 13868 then 13869 gcc_cv_as_balign_and_p2align=yes 13870 else 13871 echo "configure: failed program was" >&5 13872 cat conftest.s >&5 13873 fi 13874 rm -f conftest.o conftest.s 13875 fi 13876fi 13877echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5 13878echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6 13879if test $gcc_cv_as_balign_and_p2align = yes; then 13880 13881cat >>confdefs.h <<\_ACEOF 13882#define HAVE_GAS_BALIGN_AND_P2ALIGN 1 13883_ACEOF 13884 13885fi 13886 13887echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5 13888echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6 13889if test "${gcc_cv_as_max_skip_p2align+set}" = set; then 13890 echo $ECHO_N "(cached) $ECHO_C" >&6 13891else 13892 gcc_cv_as_max_skip_p2align=no 13893 if test $in_tree_gas = yes; then 13894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0` 13895 then gcc_cv_as_max_skip_p2align=yes 13896fi 13897 elif test x$gcc_cv_as != x; then 13898 echo '.p2align 4,,7' > conftest.s 13899 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13901 (eval $ac_try) 2>&5 13902 ac_status=$? 13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13904 (exit $ac_status); }; } 13905 then 13906 gcc_cv_as_max_skip_p2align=yes 13907 else 13908 echo "configure: failed program was" >&5 13909 cat conftest.s >&5 13910 fi 13911 rm -f conftest.o conftest.s 13912 fi 13913fi 13914echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5 13915echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6 13916if test $gcc_cv_as_max_skip_p2align = yes; then 13917 13918cat >>confdefs.h <<\_ACEOF 13919#define HAVE_GAS_MAX_SKIP_P2ALIGN 1 13920_ACEOF 13921 13922fi 13923 13924echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5 13925echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6 13926if test "${gcc_cv_as_subsection_m1+set}" = set; then 13927 echo $ECHO_N "(cached) $ECHO_C" >&6 13928else 13929 gcc_cv_as_subsection_m1=no 13930 if test $in_tree_gas = yes; then 13931 if test $in_tree_gas_is_elf = yes \ 13932 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0` 13933 then gcc_cv_as_subsection_m1=yes 13934fi 13935 elif test x$gcc_cv_as != x; then 13936 echo 'conftest_label1: .word 0 13937.subsection -1 13938conftest_label2: .word 0 13939.previous' > conftest.s 13940 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13942 (eval $ac_try) 2>&5 13943 ac_status=$? 13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13945 (exit $ac_status); }; } 13946 then 13947 if test x$gcc_cv_nm != x; then 13948 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 13949 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 13950 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1 13951 then : 13952 else gcc_cv_as_subsection_m1=yes 13953 fi 13954 rm -f conftest.nm1 conftest.nm2 13955 fi 13956 else 13957 echo "configure: failed program was" >&5 13958 cat conftest.s >&5 13959 fi 13960 rm -f conftest.o conftest.s 13961 fi 13962fi 13963echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5 13964echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6 13965if test $gcc_cv_as_subsection_m1 = yes; then 13966 13967cat >>confdefs.h <<\_ACEOF 13968#define HAVE_GAS_SUBSECTION_ORDERING 1 13969_ACEOF 13970 13971fi 13972 13973echo "$as_me:$LINENO: checking assembler for .weak" >&5 13974echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6 13975if test "${gcc_cv_as_weak+set}" = set; then 13976 echo $ECHO_N "(cached) $ECHO_C" >&6 13977else 13978 gcc_cv_as_weak=no 13979 if test $in_tree_gas = yes; then 13980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0` 13981 then gcc_cv_as_weak=yes 13982fi 13983 elif test x$gcc_cv_as != x; then 13984 echo ' .weak foobar' > conftest.s 13985 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13987 (eval $ac_try) 2>&5 13988 ac_status=$? 13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13990 (exit $ac_status); }; } 13991 then 13992 gcc_cv_as_weak=yes 13993 else 13994 echo "configure: failed program was" >&5 13995 cat conftest.s >&5 13996 fi 13997 rm -f conftest.o conftest.s 13998 fi 13999fi 14000echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5 14001echo "${ECHO_T}$gcc_cv_as_weak" >&6 14002if test $gcc_cv_as_weak = yes; then 14003 14004cat >>confdefs.h <<\_ACEOF 14005#define HAVE_GAS_WEAK 1 14006_ACEOF 14007 14008fi 14009 14010echo "$as_me:$LINENO: checking assembler for .weakref" >&5 14011echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6 14012if test "${gcc_cv_as_weakref+set}" = set; then 14013 echo $ECHO_N "(cached) $ECHO_C" >&6 14014else 14015 gcc_cv_as_weakref=no 14016 if test $in_tree_gas = yes; then 14017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 14018 then gcc_cv_as_weakref=yes 14019fi 14020 elif test x$gcc_cv_as != x; then 14021 echo ' .weakref foobar, barfnot' > conftest.s 14022 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14024 (eval $ac_try) 2>&5 14025 ac_status=$? 14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14027 (exit $ac_status); }; } 14028 then 14029 gcc_cv_as_weakref=yes 14030 else 14031 echo "configure: failed program was" >&5 14032 cat conftest.s >&5 14033 fi 14034 rm -f conftest.o conftest.s 14035 fi 14036fi 14037echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5 14038echo "${ECHO_T}$gcc_cv_as_weakref" >&6 14039if test $gcc_cv_as_weakref = yes; then 14040 14041cat >>confdefs.h <<\_ACEOF 14042#define HAVE_GAS_WEAKREF 1 14043_ACEOF 14044 14045fi 14046 14047echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5 14048echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6 14049if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then 14050 echo $ECHO_N "(cached) $ECHO_C" >&6 14051else 14052 gcc_cv_as_nsubspa_comdat=no 14053 if test $in_tree_gas = yes; then 14054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 14055 then gcc_cv_as_nsubspa_comdat=yes 14056fi 14057 elif test x$gcc_cv_as != x; then 14058 echo ' .SPACE $TEXT$ 14059 .NSUBSPA $CODE$,COMDAT' > conftest.s 14060 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14062 (eval $ac_try) 2>&5 14063 ac_status=$? 14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14065 (exit $ac_status); }; } 14066 then 14067 gcc_cv_as_nsubspa_comdat=yes 14068 else 14069 echo "configure: failed program was" >&5 14070 cat conftest.s >&5 14071 fi 14072 rm -f conftest.o conftest.s 14073 fi 14074fi 14075echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5 14076echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6 14077if test $gcc_cv_as_nsubspa_comdat = yes; then 14078 14079cat >>confdefs.h <<\_ACEOF 14080#define HAVE_GAS_NSUBSPA_COMDAT 1 14081_ACEOF 14082 14083fi 14084 14085# .hidden needs to be supported in both the assembler and the linker, 14086# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN. 14087# This is irritatingly difficult to feature test for; we have to check the 14088# date string after the version number. If we've got an in-tree 14089# ld, we don't know its patchlevel version, so we set the baseline at 2.13 14090# to be safe. 14091# The gcc_GAS_CHECK_FEATURE call just sets a cache variable. 14092echo "$as_me:$LINENO: checking assembler for .hidden" >&5 14093echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6 14094if test "${gcc_cv_as_hidden+set}" = set; then 14095 echo $ECHO_N "(cached) $ECHO_C" >&6 14096else 14097 gcc_cv_as_hidden=no 14098 if test $in_tree_gas = yes; then 14099 if test $in_tree_gas_is_elf = yes \ 14100 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0` 14101 then gcc_cv_as_hidden=yes 14102fi 14103 elif test x$gcc_cv_as != x; then 14104 echo ' .hidden foobar 14105foobar:' > conftest.s 14106 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14108 (eval $ac_try) 2>&5 14109 ac_status=$? 14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14111 (exit $ac_status); }; } 14112 then 14113 gcc_cv_as_hidden=yes 14114 else 14115 echo "configure: failed program was" >&5 14116 cat conftest.s >&5 14117 fi 14118 rm -f conftest.o conftest.s 14119 fi 14120fi 14121echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5 14122echo "${ECHO_T}$gcc_cv_as_hidden" >&6 14123 14124 14125echo "$as_me:$LINENO: checking linker for .hidden support" >&5 14126echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6 14127if test "${gcc_cv_ld_hidden+set}" = set; then 14128 echo $ECHO_N "(cached) $ECHO_C" >&6 14129else 14130 if test $in_tree_ld = yes ; then 14131 gcc_cv_ld_hidden=no 14132 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 \ 14133 && test $in_tree_ld_is_elf = yes; then 14134 gcc_cv_ld_hidden=yes 14135 fi 14136else 14137 gcc_cv_ld_hidden=yes 14138 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` 14139 if echo "$ld_ver" | grep GNU > /dev/null; then 14140 ld_vers=`echo $ld_ver | sed -n \ 14141 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \ 14142 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \ 14143 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \ 14144 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \ 14145 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \ 14146 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \ 14147 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'` 14148 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'` 14149 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 14150 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 14151 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 14152 if test 0"$ld_date" -lt 20020404; then 14153 if test -n "$ld_date"; then 14154 # If there was date string, but was earlier than 2002-04-04, fail 14155 gcc_cv_ld_hidden=no 14156 elif test -z "$ld_vers"; then 14157 # If there was no date string nor ld version number, something is wrong 14158 gcc_cv_ld_hidden=no 14159 else 14160 test -z "$ld_vers_patch" && ld_vers_patch=0 14161 if test "$ld_vers_major" -lt 2; then 14162 gcc_cv_ld_hidden=no 14163 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then 14164 gcc_cv_ld_hidden="no" 14165 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then 14166 gcc_cv_ld_hidden=no 14167 fi 14168 fi 14169 fi 14170 else 14171 case "${target}" in 14172 hppa64*-*-hpux* | ia64*-*-hpux*) 14173 gcc_cv_ld_hidden=yes 14174 ;; 14175 *) 14176 gcc_cv_ld_hidden=no 14177 ;; 14178 esac 14179 fi 14180fi 14181fi 14182echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5 14183echo "${ECHO_T}$gcc_cv_ld_hidden" >&6 14184libgcc_visibility=no 14185 14186 14187if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then 14188 libgcc_visibility=yes 14189 14190cat >>confdefs.h <<\_ACEOF 14191#define HAVE_GAS_HIDDEN 1 14192_ACEOF 14193 14194fi 14195 14196# Check if we have .[us]leb128, and support symbol arithmetic with it. 14197echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5 14198echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6 14199if test "${gcc_cv_as_leb128+set}" = set; then 14200 echo $ECHO_N "(cached) $ECHO_C" >&6 14201else 14202 gcc_cv_as_leb128=no 14203 if test $in_tree_gas = yes; then 14204 if test $in_tree_gas_is_elf = yes \ 14205 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 14206 then gcc_cv_as_leb128=yes 14207fi 14208 elif test x$gcc_cv_as != x; then 14209 echo ' .data 14210 .uleb128 L2 - L1 14211L1: 14212 .uleb128 1280 14213 .sleb128 -1010 14214L2:' > conftest.s 14215 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14217 (eval $ac_try) 2>&5 14218 ac_status=$? 14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14220 (exit $ac_status); }; } 14221 then 14222 # GAS versions before 2.11 do not support uleb128, 14223 # despite appearing to. 14224 # ??? There exists an elf-specific test that will crash 14225 # the assembler. Perhaps it's better to figure out whether 14226 # arbitrary sections are supported and try the test. 14227 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q` 14228 if echo "$as_ver" | grep GNU > /dev/null; then 14229 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'` 14230 as_major=`echo $as_ver | sed 's/\..*//'` 14231 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'` 14232 if test $as_major -eq 2 && test $as_minor -lt 11 14233 then : 14234 else gcc_cv_as_leb128=yes 14235 fi 14236 fi 14237 else 14238 echo "configure: failed program was" >&5 14239 cat conftest.s >&5 14240 fi 14241 rm -f conftest.o conftest.s 14242 fi 14243fi 14244echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5 14245echo "${ECHO_T}$gcc_cv_as_leb128" >&6 14246if test $gcc_cv_as_leb128 = yes; then 14247 14248cat >>confdefs.h <<\_ACEOF 14249#define HAVE_AS_LEB128 1 14250_ACEOF 14251 14252fi 14253 14254# GAS versions up to and including 2.11.0 may mis-optimize 14255# .eh_frame data. 14256echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5 14257echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6 14258if test "${gcc_cv_as_eh_frame+set}" = set; then 14259 echo $ECHO_N "(cached) $ECHO_C" >&6 14260else 14261 gcc_cv_as_eh_frame=no 14262 if test $in_tree_gas = yes; then 14263 if test $in_tree_gas_is_elf = yes \ 14264 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 14265 then gcc_cv_as_eh_frame=yes 14266fi 14267 elif test x$gcc_cv_as != x; then 14268 echo ' .text 14269.LFB1: 14270 .4byte 0 14271.L1: 14272 .4byte 0 14273.LFE1: 14274 .section .eh_frame,"aw",@progbits 14275__FRAME_BEGIN__: 14276 .4byte .LECIE1-.LSCIE1 14277.LSCIE1: 14278 .4byte 0x0 14279 .byte 0x1 14280 .ascii "z\0" 14281 .byte 0x1 14282 .byte 0x78 14283 .byte 0x1a 14284 .byte 0x0 14285 .byte 0x4 14286 .4byte 1 14287 .p2align 1 14288.LECIE1: 14289.LSFDE1: 14290 .4byte .LEFDE1-.LASFDE1 14291.LASFDE1: 14292 .4byte .LASFDE1-__FRAME_BEGIN__ 14293 .4byte .LFB1 14294 .4byte .LFE1-.LFB1 14295 .byte 0x4 14296 .4byte .LFE1-.LFB1 14297 .byte 0x4 14298 .4byte .L1-.LFB1 14299.LEFDE1:' > conftest.s 14300 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14302 (eval $ac_try) 2>&5 14303 ac_status=$? 14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14305 (exit $ac_status); }; } 14306 then 14307 cat > conftest.lit <<EOF 14308 0000 10000000 00000000 017a0001 781a0004 .........z..x... 14309 0010 01000000 12000000 18000000 00000000 ................ 14310 0020 08000000 04080000 0044 .........D 14311EOF 14312cat > conftest.big <<EOF 14313 0000 00000010 00000000 017a0001 781a0004 .........z..x... 14314 0010 00000001 00000012 00000018 00000000 ................ 14315 0020 00000008 04000000 0844 .........D 14316EOF 14317 # If the assembler didn't choke, and we can objdump, 14318 # and we got the correct data, then succeed. 14319 if test x$gcc_cv_objdump != x \ 14320 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ 14321 | tail -3 > conftest.got \ 14322 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \ 14323 || cmp conftest.big conftest.got > /dev/null 2>&1; } 14324 then 14325 gcc_cv_as_eh_frame=yes 14326 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null' 14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14328 (eval $ac_try) 2>&5 14329 ac_status=$? 14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14331 (exit $ac_status); }; }; then 14332 gcc_cv_as_eh_frame=buggy 14333 else 14334 # Uh oh, what do we do now? 14335 gcc_cv_as_eh_frame=no 14336 fi 14337 else 14338 echo "configure: failed program was" >&5 14339 cat conftest.s >&5 14340 fi 14341 rm -f conftest.o conftest.s 14342 fi 14343fi 14344echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5 14345echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6 14346 14347 14348if test $gcc_cv_as_eh_frame = buggy; then 14349 14350cat >>confdefs.h <<\_ACEOF 14351#define USE_AS_TRADITIONAL_FORMAT 1 14352_ACEOF 14353 14354fi 14355 14356echo "$as_me:$LINENO: checking assembler for section merging support" >&5 14357echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6 14358if test "${gcc_cv_as_shf_merge+set}" = set; then 14359 echo $ECHO_N "(cached) $ECHO_C" >&6 14360else 14361 gcc_cv_as_shf_merge=no 14362 if test $in_tree_gas = yes; then 14363 if test $in_tree_gas_is_elf = yes \ 14364 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 14365 then gcc_cv_as_shf_merge=yes 14366fi 14367 elif test x$gcc_cv_as != x; then 14368 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s 14369 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5' 14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14371 (eval $ac_try) 2>&5 14372 ac_status=$? 14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14374 (exit $ac_status); }; } 14375 then 14376 gcc_cv_as_shf_merge=yes 14377 else 14378 echo "configure: failed program was" >&5 14379 cat conftest.s >&5 14380 fi 14381 rm -f conftest.o conftest.s 14382 fi 14383fi 14384echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5 14385echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6 14386 14387if test $gcc_cv_as_shf_merge = no; then 14388 echo "$as_me:$LINENO: checking assembler for section merging support" >&5 14389echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6 14390if test "${gcc_cv_as_shf_merge+set}" = set; then 14391 echo $ECHO_N "(cached) $ECHO_C" >&6 14392else 14393 gcc_cv_as_shf_merge=no 14394 if test $in_tree_gas = yes; then 14395 if test $in_tree_gas_is_elf = yes \ 14396 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 14397 then gcc_cv_as_shf_merge=yes 14398fi 14399 elif test x$gcc_cv_as != x; then 14400 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s 14401 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5' 14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14403 (eval $ac_try) 2>&5 14404 ac_status=$? 14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14406 (exit $ac_status); }; } 14407 then 14408 gcc_cv_as_shf_merge=yes 14409 else 14410 echo "configure: failed program was" >&5 14411 cat conftest.s >&5 14412 fi 14413 rm -f conftest.o conftest.s 14414 fi 14415fi 14416echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5 14417echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6 14418 14419fi 14420 14421cat >>confdefs.h <<_ACEOF 14422#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi` 14423_ACEOF 14424 14425 14426echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5 14427echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6 14428if test "${gcc_cv_as_comdat_group+set}" = set; then 14429 echo $ECHO_N "(cached) $ECHO_C" >&6 14430else 14431 gcc_cv_as_comdat_group=no 14432 if test $in_tree_gas = yes; then 14433 if test $in_tree_gas_is_elf = yes \ 14434 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 14435 then gcc_cv_as_comdat_group=yes 14436fi 14437 elif test x$gcc_cv_as != x; then 14438 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s 14439 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5' 14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14441 (eval $ac_try) 2>&5 14442 ac_status=$? 14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14444 (exit $ac_status); }; } 14445 then 14446 gcc_cv_as_comdat_group=yes 14447 else 14448 echo "configure: failed program was" >&5 14449 cat conftest.s >&5 14450 fi 14451 rm -f conftest.o conftest.s 14452 fi 14453fi 14454echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5 14455echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6 14456 14457if test $gcc_cv_as_comdat_group = yes; then 14458 gcc_cv_as_comdat_group_percent=no 14459else 14460 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5 14461echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6 14462if test "${gcc_cv_as_comdat_group_percent+set}" = set; then 14463 echo $ECHO_N "(cached) $ECHO_C" >&6 14464else 14465 gcc_cv_as_comdat_group_percent=no 14466 if test $in_tree_gas = yes; then 14467 if test $in_tree_gas_is_elf = yes \ 14468 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 14469 then gcc_cv_as_comdat_group_percent=yes 14470fi 14471 elif test x$gcc_cv_as != x; then 14472 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s 14473 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5' 14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14475 (eval $ac_try) 2>&5 14476 ac_status=$? 14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14478 (exit $ac_status); }; } 14479 then 14480 gcc_cv_as_comdat_group_percent=yes 14481 else 14482 echo "configure: failed program was" >&5 14483 cat conftest.s >&5 14484 fi 14485 rm -f conftest.o conftest.s 14486 fi 14487fi 14488echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5 14489echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6 14490 14491fi 14492if test $in_tree_ld != yes && test x"$ld_vers" != x; then 14493 comdat_group=yes 14494 if test 0"$ld_date" -lt 20050308; then 14495 if test -n "$ld_date"; then 14496 # If there was date string, but was earlier than 2005-03-08, fail 14497 comdat_group=no 14498 elif test "$ld_vers_major" -lt 2; then 14499 comdat_group=no 14500 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 14501 comdat_group=no 14502 fi 14503 fi 14504else 14505 # assume linkers other than GNU ld don't support COMDAT group 14506 comdat_group=no 14507fi 14508if test $comdat_group = no; then 14509 gcc_cv_as_comdat_group=no 14510 gcc_cv_as_comdat_group_percent=no 14511fi 14512 14513cat >>confdefs.h <<_ACEOF 14514#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` 14515_ACEOF 14516 14517 14518# Thread-local storage - the check is heavily parametrized. 14519conftest_s= 14520tls_first_major= 14521tls_first_minor= 14522tls_as_opt= 14523case "$target" in 14524 alpha*-*-*) 14525 conftest_s=' 14526 .section ".tdata","awT",@progbits 14527foo: .long 25 14528 .text 14529 ldq $27,__tls_get_addr($29) !literal!1 14530 lda $16,foo($29) !tlsgd!1 14531 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1 14532 ldq $27,__tls_get_addr($29) !literal!2 14533 lda $16,foo($29) !tlsldm!2 14534 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2 14535 ldq $1,foo($29) !gotdtprel 14536 ldah $2,foo($29) !dtprelhi 14537 lda $3,foo($2) !dtprello 14538 lda $4,foo($29) !dtprel 14539 ldq $1,foo($29) !gottprel 14540 ldah $2,foo($29) !tprelhi 14541 lda $3,foo($2) !tprello 14542 lda $4,foo($29) !tprel' 14543 tls_first_major=2 14544 tls_first_minor=13 14545 tls_as_opt=--fatal-warnings 14546 ;; 14547 frv*-*-*) 14548 conftest_s=' 14549 .section ".tdata","awT",@progbits 14550x: .long 25 14551 .text 14552 call #gettlsoff(x)' 14553 tls_first_major=2 14554 tls_first_minor=14 14555 ;; 14556 hppa*-*-linux*) 14557 conftest_s=' 14558t1: .reg %r20 14559t2: .reg %r21 14560gp: .reg %r19 14561 .section ".tdata","awT",@progbits 14562foo: .long 25 14563 .text 14564 .align 4 14565 addil LT%foo-$tls_gdidx$,gp 14566 ldo RT%foo-$tls_gdidx$(%r1),%arg0 14567 b __tls_get_addr 14568 nop 14569 addil LT%foo-$tls_ldidx$,gp 14570 b __tls_get_addr 14571 ldo RT%foo-$tls_ldidx$(%r1),%arg0 14572 addil LR%foo-$tls_dtpoff$,%ret0 14573 ldo RR%foo-$tls_dtpoff$(%r1),%t1 14574 mfctl %cr27,%t1 14575 addil LT%foo-$tls_ieoff$,gp 14576 ldw RT%foo-$tls_ieoff$(%r1),%t2 14577 add %t1,%t2,%t3 14578 mfctl %cr27,%t1 14579 addil LR%foo-$tls_leoff$,%t1 14580 ldo RR%foo-$tls_leoff$(%r1),%t2' 14581 tls_first_major=2 14582 tls_first_minor=15 14583 tls_as_opt=--fatal-warnings 14584 ;; 14585 arm*-*-*) 14586 conftest_s=' 14587 .section ".tdata","awT",%progbits 14588foo: .long 25 14589 .text 14590.word foo(gottpoff) 14591.word foo(tpoff) 14592.word foo(tlsgd) 14593.word foo(tlsldm) 14594.word foo(tlsldo)' 14595 tls_first_major=2 14596 tls_first_minor=17 14597 ;; 14598 i[34567]86-*-*) 14599 conftest_s=' 14600 .section ".tdata","awT",@progbits 14601foo: .long 25 14602 .text 14603 movl %gs:0, %eax 14604 leal foo@TLSGD(,%ebx,1), %eax 14605 leal foo@TLSLDM(%ebx), %eax 14606 leal foo@DTPOFF(%eax), %edx 14607 movl foo@GOTTPOFF(%ebx), %eax 14608 subl foo@GOTTPOFF(%ebx), %eax 14609 addl foo@GOTNTPOFF(%ebx), %eax 14610 movl foo@INDNTPOFF, %eax 14611 movl $foo@TPOFF, %eax 14612 subl $foo@TPOFF, %eax 14613 leal foo@NTPOFF(%ecx), %eax' 14614 tls_first_major=2 14615 tls_first_minor=14 14616 tls_as_opt=--fatal-warnings 14617 ;; 14618 x86_64-*-*) 14619 conftest_s=' 14620 .section ".tdata","awT",@progbits 14621foo: .long 25 14622 .text 14623 movq %fs:0, %rax 14624 leaq foo@TLSGD(%rip), %rdi 14625 leaq foo@TLSLD(%rip), %rdi 14626 leaq foo@DTPOFF(%rax), %rdx 14627 movq foo@GOTTPOFF(%rip), %rax 14628 movq $foo@TPOFF, %rax' 14629 tls_first_major=2 14630 tls_first_minor=14 14631 tls_as_opt=--fatal-warnings 14632 ;; 14633 ia64-*-*) 14634 conftest_s=' 14635 .section ".tdata","awT",@progbits 14636foo: data8 25 14637 .text 14638 addl r16 = @ltoff(@dtpmod(foo#)), gp 14639 addl r17 = @ltoff(@dtprel(foo#)), gp 14640 addl r18 = @ltoff(@tprel(foo#)), gp 14641 addl r19 = @dtprel(foo#), gp 14642 adds r21 = @dtprel(foo#), r13 14643 movl r23 = @dtprel(foo#) 14644 addl r20 = @tprel(foo#), gp 14645 adds r22 = @tprel(foo#), r13 14646 movl r24 = @tprel(foo#)' 14647 tls_first_major=2 14648 tls_first_minor=13 14649 tls_as_opt=--fatal-warnings 14650 ;; 14651 mips*-*-*) 14652 conftest_s=' 14653 .section .tdata,"awT",@progbits 14654x: 14655 .word 2 14656 .text 14657 addiu $4, $28, %tlsgd(x) 14658 addiu $4, $28, %tlsldm(x) 14659 lui $4, %dtprel_hi(x) 14660 addiu $4, $4, %dtprel_lo(x) 14661 lw $4, %gottprel(x)($28) 14662 lui $4, %tprel_hi(x) 14663 addiu $4, $4, %tprel_lo(x)' 14664 tls_first_major=2 14665 tls_first_minor=16 14666 tls_as_opt='-32 --fatal-warnings' 14667 ;; 14668 powerpc-*-*) 14669 conftest_s=' 14670 .section ".tdata","awT",@progbits 14671 .align 2 14672ld0: .space 4 14673ld1: .space 4 14674x1: .space 4 14675x2: .space 4 14676x3: .space 4 14677 .text 14678 addi 3,31,ld0@got@tlsgd 14679 bl __tls_get_addr 14680 addi 3,31,x1@got@tlsld 14681 bl __tls_get_addr 14682 addi 9,3,x1@dtprel 14683 addis 9,3,x2@dtprel@ha 14684 addi 9,9,x2@dtprel@l 14685 lwz 9,x3@got@tprel(31) 14686 add 9,9,x@tls 14687 addi 9,2,x1@tprel 14688 addis 9,2,x2@tprel@ha 14689 addi 9,9,x2@tprel@l' 14690 tls_first_major=2 14691 tls_first_minor=14 14692 tls_as_opt="-a32 --fatal-warnings" 14693 ;; 14694 powerpc64-*-*) 14695 conftest_s=' 14696 .section ".tdata","awT",@progbits 14697 .align 3 14698ld0: .space 8 14699ld1: .space 8 14700x1: .space 8 14701x2: .space 8 14702x3: .space 8 14703 .text 14704 addi 3,2,ld0@got@tlsgd 14705 bl .__tls_get_addr 14706 nop 14707 addi 3,2,ld1@toc 14708 bl .__tls_get_addr 14709 nop 14710 addi 3,2,x1@got@tlsld 14711 bl .__tls_get_addr 14712 nop 14713 addi 9,3,x1@dtprel 14714 bl .__tls_get_addr 14715 nop 14716 addis 9,3,x2@dtprel@ha 14717 addi 9,9,x2@dtprel@l 14718 bl .__tls_get_addr 14719 nop 14720 ld 9,x3@got@dtprel(2) 14721 add 9,9,3 14722 bl .__tls_get_addr 14723 nop' 14724 tls_first_major=2 14725 tls_first_minor=14 14726 tls_as_opt="-a64 --fatal-warnings" 14727 ;; 14728 s390-*-*) 14729 conftest_s=' 14730 .section ".tdata","awT",@progbits 14731foo: .long 25 14732 .text 14733 .long foo@TLSGD 14734 .long foo@TLSLDM 14735 .long foo@DTPOFF 14736 .long foo@NTPOFF 14737 .long foo@GOTNTPOFF 14738 .long foo@INDNTPOFF 14739 l %r1,foo@GOTNTPOFF(%r12) 14740 l %r1,0(%r1):tls_load:foo 14741 bas %r14,0(%r1,%r13):tls_gdcall:foo 14742 bas %r14,0(%r1,%r13):tls_ldcall:foo' 14743 tls_first_major=2 14744 tls_first_minor=14 14745 tls_as_opt="-m31 --fatal-warnings" 14746 ;; 14747 s390x-*-*) 14748 conftest_s=' 14749 .section ".tdata","awT",@progbits 14750foo: .long 25 14751 .text 14752 .quad foo@TLSGD 14753 .quad foo@TLSLDM 14754 .quad foo@DTPOFF 14755 .quad foo@NTPOFF 14756 .quad foo@GOTNTPOFF 14757 lg %r1,foo@GOTNTPOFF(%r12) 14758 larl %r1,foo@INDNTPOFF 14759 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo 14760 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo' 14761 tls_first_major=2 14762 tls_first_minor=14 14763 tls_as_opt="-m64 -Aesame --fatal-warnings" 14764 ;; 14765 sh-*-* | sh[34]-*-*) 14766 conftest_s=' 14767 .section ".tdata","awT",@progbits 14768foo: .long 25 14769 .text 14770 .long foo@TLSGD 14771 .long foo@TLSLDM 14772 .long foo@DTPOFF 14773 .long foo@GOTTPOFF 14774 .long foo@TPOFF' 14775 tls_first_major=2 14776 tls_first_minor=13 14777 tls_as_opt=--fatal-warnings 14778 ;; 14779 sparc*-*-*) 14780 case "$target" in 14781 sparc*-sun-solaris2.[56789]*) 14782 # TLS was introduced in the Solaris 9 4/04 release but 14783 # we do not enable it by default on Solaris 9 either. 14784 if test "x$enable_tls" = xyes ; then 14785 on_solaris=yes 14786 else 14787 enable_tls=no; 14788 fi 14789 ;; 14790 sparc*-sun-solaris2.*) 14791 on_solaris=yes 14792 ;; 14793 *) 14794 on_solaris=no 14795 ;; 14796 esac 14797 if test x$on_solaris = xyes && test x$gas_flag = xno; then 14798 conftest_s=' 14799 .section ".tdata",#alloc,#write,#tls 14800foo: .long 25 14801 .text 14802 sethi %tgd_hi22(foo), %o0 14803 add %o0, %tgd_lo10(foo), %o1 14804 add %l7, %o1, %o0, %tgd_add(foo) 14805 call __tls_get_addr, %tgd_call(foo) 14806 sethi %tldm_hi22(foo), %l1 14807 add %l1, %tldm_lo10(foo), %l2 14808 add %l7, %l2, %o0, %tldm_add(foo) 14809 call __tls_get_addr, %tldm_call(foo) 14810 sethi %tldo_hix22(foo), %l3 14811 xor %l3, %tldo_lox10(foo), %l4 14812 add %o0, %l4, %l5, %tldo_add(foo) 14813 sethi %tie_hi22(foo), %o3 14814 add %o3, %tie_lo10(foo), %o3 14815 ld [%l7 + %o3], %o2, %tie_ld(foo) 14816 add %g7, %o2, %o4, %tie_add(foo) 14817 sethi %tle_hix22(foo), %l1 14818 xor %l1, %tle_lox10(foo), %o5 14819 ld [%g7 + %o5], %o1' 14820 tls_first_major=0 14821 tls_first_minor=0 14822 else 14823 conftest_s=' 14824 .section ".tdata","awT",@progbits 14825foo: .long 25 14826 .text 14827 sethi %tgd_hi22(foo), %o0 14828 add %o0, %tgd_lo10(foo), %o1 14829 add %l7, %o1, %o0, %tgd_add(foo) 14830 call __tls_get_addr, %tgd_call(foo) 14831 sethi %tldm_hi22(foo), %l1 14832 add %l1, %tldm_lo10(foo), %l2 14833 add %l7, %l2, %o0, %tldm_add(foo) 14834 call __tls_get_addr, %tldm_call(foo) 14835 sethi %tldo_hix22(foo), %l3 14836 xor %l3, %tldo_lox10(foo), %l4 14837 add %o0, %l4, %l5, %tldo_add(foo) 14838 sethi %tie_hi22(foo), %o3 14839 add %o3, %tie_lo10(foo), %o3 14840 ld [%l7 + %o3], %o2, %tie_ld(foo) 14841 add %g7, %o2, %o4, %tie_add(foo) 14842 sethi %tle_hix22(foo), %l1 14843 xor %l1, %tle_lox10(foo), %o5 14844 ld [%g7 + %o5], %o1' 14845 tls_first_major=2 14846 tls_first_minor=14 14847 tls_as_opt="-32 --fatal-warnings" 14848 fi 14849 ;; 14850esac 14851set_have_as_tls=no 14852if test "x$enable_tls" = xno ; then 14853 : # TLS explicitly disabled. 14854elif test "x$enable_tls" = xyes ; then 14855 set_have_as_tls=yes # TLS explicitly enabled. 14856elif test -z "$tls_first_major"; then 14857 : # If we don't have a check, assume no support. 14858else 14859 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5 14860echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6 14861if test "${gcc_cv_as_tls+set}" = set; then 14862 echo $ECHO_N "(cached) $ECHO_C" >&6 14863else 14864 gcc_cv_as_tls=no 14865 if test $in_tree_gas = yes; then 14866 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0` 14867 then gcc_cv_as_tls=yes 14868fi 14869 elif test x$gcc_cv_as != x; then 14870 echo "$conftest_s" > conftest.s 14871 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5' 14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14873 (eval $ac_try) 2>&5 14874 ac_status=$? 14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14876 (exit $ac_status); }; } 14877 then 14878 gcc_cv_as_tls=yes 14879 else 14880 echo "configure: failed program was" >&5 14881 cat conftest.s >&5 14882 fi 14883 rm -f conftest.o conftest.s 14884 fi 14885fi 14886echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5 14887echo "${ECHO_T}$gcc_cv_as_tls" >&6 14888if test $gcc_cv_as_tls = yes; then 14889 set_have_as_tls=yes 14890fi 14891fi 14892if test $set_have_as_tls = yes ; then 14893 14894cat >>confdefs.h <<\_ACEOF 14895#define HAVE_AS_TLS 1 14896_ACEOF 14897 14898fi 14899 14900# Target-specific assembler checks. 14901 14902echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5 14903echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6 14904gcc_cv_ld_static_dynamic=no 14905if test $in_tree_ld = yes ; then 14906 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then 14907 gcc_cv_ld_static_dynamic=yes 14908 fi 14909elif test x$gcc_cv_ld != x; then 14910 # Check if linker supports -Bstatic/-Bdynamic option 14911 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \ 14912 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then 14913 gcc_cv_ld_static_dynamic=yes 14914 fi 14915fi 14916if test x"$gcc_cv_ld_static_dynamic" = xyes; then 14917 14918cat >>confdefs.h <<\_ACEOF 14919#define HAVE_LD_STATIC_DYNAMIC 1 14920_ACEOF 14921 14922fi 14923echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5 14924echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6 14925 14926if test x"$demangler_in_ld" = xyes; then 14927 echo "$as_me:$LINENO: checking linker --demangle support" >&5 14928echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6 14929 gcc_cv_ld_demangle=no 14930 if test $in_tree_ld = yes; then 14931 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 \ 14932 gcc_cv_ld_demangle=yes 14933 fi 14934 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then 14935 # Check if the GNU linker supports --demangle option 14936 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then 14937 gcc_cv_ld_demangle=yes 14938 fi 14939 fi 14940 if test x"$gcc_cv_ld_demangle" = xyes; then 14941 14942cat >>confdefs.h <<\_ACEOF 14943#define HAVE_LD_DEMANGLE 1 14944_ACEOF 14945 14946 fi 14947 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5 14948echo "${ECHO_T}$gcc_cv_ld_demangle" >&6 14949fi 14950 14951case "$target" in 14952 # All TARGET_ABI_OSF targets. 14953 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*) 14954 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5 14955echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6 14956if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then 14957 echo $ECHO_N "(cached) $ECHO_C" >&6 14958else 14959 gcc_cv_as_alpha_explicit_relocs=no 14960 if test $in_tree_gas = yes; then 14961 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 14962 then gcc_cv_as_alpha_explicit_relocs=yes 14963fi 14964 elif test x$gcc_cv_as != x; then 14965 echo ' .set nomacro 14966 .text 14967 extbl $3, $2, $3 !lituse_bytoff!1 14968 ldq $2, a($29) !literal!1 14969 ldq $4, b($29) !literal!2 14970 ldq_u $3, 0($2) !lituse_base!1 14971 ldq $27, f($29) !literal!5 14972 jsr $26, ($27), f !lituse_jsr!5 14973 ldah $29, 0($26) !gpdisp!3 14974 lda $0, c($29) !gprel 14975 ldah $1, d($29) !gprelhigh 14976 lda $1, d($1) !gprellow 14977 lda $29, 0($29) !gpdisp!3' > conftest.s 14978 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14980 (eval $ac_try) 2>&5 14981 ac_status=$? 14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14983 (exit $ac_status); }; } 14984 then 14985 gcc_cv_as_alpha_explicit_relocs=yes 14986 else 14987 echo "configure: failed program was" >&5 14988 cat conftest.s >&5 14989 fi 14990 rm -f conftest.o conftest.s 14991 fi 14992fi 14993echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5 14994echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6 14995if test $gcc_cv_as_alpha_explicit_relocs = yes; then 14996 14997cat >>confdefs.h <<\_ACEOF 14998#define HAVE_AS_EXPLICIT_RELOCS 1 14999_ACEOF 15000 15001fi 15002 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5 15003echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6 15004if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then 15005 echo $ECHO_N "(cached) $ECHO_C" >&6 15006else 15007 gcc_cv_as_alpha_jsrdirect_relocs=no 15008 if test $in_tree_gas = yes; then 15009 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90` 15010 then gcc_cv_as_alpha_jsrdirect_relocs=yes 15011fi 15012 elif test x$gcc_cv_as != x; then 15013 echo ' .set nomacro 15014 .text 15015 ldq $27, a($29) !literal!1 15016 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s 15017 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15019 (eval $ac_try) 2>&5 15020 ac_status=$? 15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15022 (exit $ac_status); }; } 15023 then 15024 gcc_cv_as_alpha_jsrdirect_relocs=yes 15025 else 15026 echo "configure: failed program was" >&5 15027 cat conftest.s >&5 15028 fi 15029 rm -f conftest.o conftest.s 15030 fi 15031fi 15032echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5 15033echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6 15034if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then 15035 15036cat >>confdefs.h <<\_ACEOF 15037#define HAVE_AS_JSRDIRECT_RELOCS 1 15038_ACEOF 15039 15040fi 15041 ;; 15042 15043 cris-*-*) 15044 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5 15045echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6 15046if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then 15047 echo $ECHO_N "(cached) $ECHO_C" >&6 15048else 15049 gcc_cv_as_cris_no_mul_bug=no 15050 if test $in_tree_gas = yes; then 15051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 15052 then gcc_cv_as_cris_no_mul_bug=yes 15053fi 15054 elif test x$gcc_cv_as != x; then 15055 echo '.text' > conftest.s 15056 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5' 15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15058 (eval $ac_try) 2>&5 15059 ac_status=$? 15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15061 (exit $ac_status); }; } 15062 then 15063 gcc_cv_as_cris_no_mul_bug=yes 15064 else 15065 echo "configure: failed program was" >&5 15066 cat conftest.s >&5 15067 fi 15068 rm -f conftest.o conftest.s 15069 fi 15070fi 15071echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5 15072echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6 15073if test $gcc_cv_as_cris_no_mul_bug = yes; then 15074 15075cat >>confdefs.h <<\_ACEOF 15076#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1 15077_ACEOF 15078 15079fi 15080 ;; 15081 15082 sparc*-*-*) 15083 echo "$as_me:$LINENO: checking assembler for .register" >&5 15084echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6 15085if test "${gcc_cv_as_sparc_register_op+set}" = set; then 15086 echo $ECHO_N "(cached) $ECHO_C" >&6 15087else 15088 gcc_cv_as_sparc_register_op=no 15089 if test x$gcc_cv_as != x; then 15090 echo '.register %g2, #scratch' > conftest.s 15091 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15093 (eval $ac_try) 2>&5 15094 ac_status=$? 15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15096 (exit $ac_status); }; } 15097 then 15098 gcc_cv_as_sparc_register_op=yes 15099 else 15100 echo "configure: failed program was" >&5 15101 cat conftest.s >&5 15102 fi 15103 rm -f conftest.o conftest.s 15104 fi 15105fi 15106echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5 15107echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6 15108if test $gcc_cv_as_sparc_register_op = yes; then 15109 15110cat >>confdefs.h <<\_ACEOF 15111#define HAVE_AS_REGISTER_PSEUDO_OP 1 15112_ACEOF 15113 15114fi 15115 15116 echo "$as_me:$LINENO: checking assembler for -relax option" >&5 15117echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6 15118if test "${gcc_cv_as_sparc_relax+set}" = set; then 15119 echo $ECHO_N "(cached) $ECHO_C" >&6 15120else 15121 gcc_cv_as_sparc_relax=no 15122 if test x$gcc_cv_as != x; then 15123 echo '.text' > conftest.s 15124 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5' 15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15126 (eval $ac_try) 2>&5 15127 ac_status=$? 15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15129 (exit $ac_status); }; } 15130 then 15131 gcc_cv_as_sparc_relax=yes 15132 else 15133 echo "configure: failed program was" >&5 15134 cat conftest.s >&5 15135 fi 15136 rm -f conftest.o conftest.s 15137 fi 15138fi 15139echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5 15140echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6 15141if test $gcc_cv_as_sparc_relax = yes; then 15142 15143cat >>confdefs.h <<\_ACEOF 15144#define HAVE_AS_RELAX_OPTION 1 15145_ACEOF 15146 15147fi 15148 15149 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5 15150echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6 15151if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then 15152 echo $ECHO_N "(cached) $ECHO_C" >&6 15153else 15154 gcc_cv_as_sparc_ua_pcrel=no 15155 if test x$gcc_cv_as != x; then 15156 echo '.text 15157foo: 15158 nop 15159.data 15160.align 4 15161.byte 0 15162.uaword %r_disp32(foo)' > conftest.s 15163 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5' 15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15165 (eval $ac_try) 2>&5 15166 ac_status=$? 15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15168 (exit $ac_status); }; } 15169 then 15170 if test x$gcc_cv_ld != x \ 15171 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then 15172 gcc_cv_as_sparc_ua_pcrel=yes 15173 fi 15174 rm -f conftest 15175 else 15176 echo "configure: failed program was" >&5 15177 cat conftest.s >&5 15178 fi 15179 rm -f conftest.o conftest.s 15180 fi 15181fi 15182echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5 15183echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6 15184if test $gcc_cv_as_sparc_ua_pcrel = yes; then 15185 15186cat >>confdefs.h <<\_ACEOF 15187#define HAVE_AS_SPARC_UA_PCREL 1 15188_ACEOF 15189 15190 15191 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5 15192echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6 15193if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then 15194 echo $ECHO_N "(cached) $ECHO_C" >&6 15195else 15196 gcc_cv_as_sparc_ua_pcrel_hidden=no 15197 if test x$gcc_cv_as != x; then 15198 echo '.data 15199.align 4 15200.byte 0x31 15201.uaword %r_disp32(foo) 15202.byte 0x32, 0x33, 0x34 15203.global foo 15204.hidden foo 15205foo: 15206.skip 4' > conftest.s 15207 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5' 15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15209 (eval $ac_try) 2>&5 15210 ac_status=$? 15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15212 (exit $ac_status); }; } 15213 then 15214 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 15215 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \ 15216 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \ 15217 | grep ' 31000000 07323334' > /dev/null 2>&1; then 15218 if $gcc_cv_objdump -R conftest 2> /dev/null \ 15219 | grep 'DISP32' > /dev/null 2>&1; then 15220 : 15221 else 15222 gcc_cv_as_sparc_ua_pcrel_hidden=yes 15223 fi 15224 fi 15225 rm -f conftest 15226 else 15227 echo "configure: failed program was" >&5 15228 cat conftest.s >&5 15229 fi 15230 rm -f conftest.o conftest.s 15231 fi 15232fi 15233echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5 15234echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6 15235if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then 15236 15237cat >>confdefs.h <<\_ACEOF 15238#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1 15239_ACEOF 15240 15241fi 15242 15243fi # unaligned pcrel relocs 15244 15245 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5 15246echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6 15247if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then 15248 echo $ECHO_N "(cached) $ECHO_C" >&6 15249else 15250 gcc_cv_as_sparc_offsetable_lo10=no 15251 if test x$gcc_cv_as != x; then 15252 echo '.text 15253 or %g1, %lo(ab) + 12, %g1 15254 or %g1, %lo(ab + 12), %g1' > conftest.s 15255 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5' 15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15257 (eval $ac_try) 2>&5 15258 ac_status=$? 15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15260 (exit $ac_status); }; } 15261 then 15262 if test x$gcc_cv_objdump != x \ 15263 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \ 15264 | grep ' 82106000 82106000' > /dev/null 2>&1; then 15265 gcc_cv_as_sparc_offsetable_lo10=yes 15266 fi 15267 else 15268 echo "configure: failed program was" >&5 15269 cat conftest.s >&5 15270 fi 15271 rm -f conftest.o conftest.s 15272 fi 15273fi 15274echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5 15275echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6 15276if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then 15277 15278cat >>confdefs.h <<\_ACEOF 15279#define HAVE_AS_OFFSETABLE_LO10 1 15280_ACEOF 15281 15282fi 15283 ;; 15284 15285 i[34567]86-*-* | x86_64-*-*) 15286 case $target_os in 15287 cygwin* | pe | mingw32*) 15288 # Used for DWARF 2 in PE 15289 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5 15290echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6 15291if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then 15292 echo $ECHO_N "(cached) $ECHO_C" >&6 15293else 15294 gcc_cv_as_ix86_pe_secrel32=no 15295 if test $in_tree_gas = yes; then 15296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 15297 then gcc_cv_as_ix86_pe_secrel32=yes 15298fi 15299 elif test x$gcc_cv_as != x; then 15300 echo '.text 15301foo: nop 15302.data 15303 .secrel32 foo' > conftest.s 15304 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15306 (eval $ac_try) 2>&5 15307 ac_status=$? 15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15309 (exit $ac_status); }; } 15310 then 15311 if test x$gcc_cv_ld != x \ 15312 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then 15313 gcc_cv_as_ix86_pe_secrel32=yes 15314 fi 15315 rm -f conftest 15316 else 15317 echo "configure: failed program was" >&5 15318 cat conftest.s >&5 15319 fi 15320 rm -f conftest.o conftest.s 15321 fi 15322fi 15323echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5 15324echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6 15325if test $gcc_cv_as_ix86_pe_secrel32 = yes; then 15326 15327cat >>confdefs.h <<\_ACEOF 15328#define HAVE_GAS_PE_SECREL32_RELOC 1 15329_ACEOF 15330 15331fi 15332 ;; 15333 esac 15334 15335 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5 15336echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6 15337if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then 15338 echo $ECHO_N "(cached) $ECHO_C" >&6 15339else 15340 gcc_cv_as_ix86_filds_fists=no 15341 if test $in_tree_gas = yes; then 15342 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0` 15343 then gcc_cv_as_ix86_filds_fists=yes 15344fi 15345 elif test x$gcc_cv_as != x; then 15346 echo 'filds mem; fists mem' > conftest.s 15347 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15349 (eval $ac_try) 2>&5 15350 ac_status=$? 15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15352 (exit $ac_status); }; } 15353 then 15354 gcc_cv_as_ix86_filds_fists=yes 15355 else 15356 echo "configure: failed program was" >&5 15357 cat conftest.s >&5 15358 fi 15359 rm -f conftest.o conftest.s 15360 fi 15361fi 15362echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5 15363echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6 15364if test $gcc_cv_as_ix86_filds_fists = yes; then 15365 15366cat >>confdefs.h <<\_ACEOF 15367#define HAVE_GAS_FILDS_FISTS 1 15368_ACEOF 15369 15370fi 15371 15372 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5 15373echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6 15374if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then 15375 echo $ECHO_N "(cached) $ECHO_C" >&6 15376else 15377 gcc_cv_as_ix86_cmov_sun_syntax=no 15378 if test x$gcc_cv_as != x; then 15379 echo 'cmovl.l %edx, %eax' > conftest.s 15380 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15382 (eval $ac_try) 2>&5 15383 ac_status=$? 15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15385 (exit $ac_status); }; } 15386 then 15387 gcc_cv_as_ix86_cmov_sun_syntax=yes 15388 else 15389 echo "configure: failed program was" >&5 15390 cat conftest.s >&5 15391 fi 15392 rm -f conftest.o conftest.s 15393 fi 15394fi 15395echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5 15396echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6 15397if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then 15398 15399cat >>confdefs.h <<\_ACEOF 15400#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1 15401_ACEOF 15402 15403fi 15404 15405 # This one is used unconditionally by i386.[ch]; it is to be defined 15406 # to 1 if the feature is present, 0 otherwise. 15407 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5 15408echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6 15409if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then 15410 echo $ECHO_N "(cached) $ECHO_C" >&6 15411else 15412 gcc_cv_as_ix86_gotoff_in_data=no 15413 if test $in_tree_gas = yes; then 15414 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 15415 then gcc_cv_as_ix86_gotoff_in_data=yes 15416fi 15417 elif test x$gcc_cv_as != x; then 15418 echo ' .text 15419.L0: 15420 nop 15421 .data 15422 .long .L0@GOTOFF' > conftest.s 15423 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15425 (eval $ac_try) 2>&5 15426 ac_status=$? 15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15428 (exit $ac_status); }; } 15429 then 15430 gcc_cv_as_ix86_gotoff_in_data=yes 15431 else 15432 echo "configure: failed program was" >&5 15433 cat conftest.s >&5 15434 fi 15435 rm -f conftest.o conftest.s 15436 fi 15437fi 15438echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5 15439echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6 15440 15441 15442cat >>confdefs.h <<_ACEOF 15443#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi` 15444_ACEOF 15445 15446 ;; 15447 15448 ia64*-*-*) 15449 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5 15450echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6 15451if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then 15452 echo $ECHO_N "(cached) $ECHO_C" >&6 15453else 15454 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no 15455 if test $in_tree_gas = yes; then 15456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0` 15457 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes 15458fi 15459 elif test x$gcc_cv_as != x; then 15460 echo ' .text 15461 addl r15 = @ltoffx(x#), gp 15462 ;; 15463 ld8.mov r16 = [r15], x#' > conftest.s 15464 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15466 (eval $ac_try) 2>&5 15467 ac_status=$? 15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15469 (exit $ac_status); }; } 15470 then 15471 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes 15472 else 15473 echo "configure: failed program was" >&5 15474 cat conftest.s >&5 15475 fi 15476 rm -f conftest.o conftest.s 15477 fi 15478fi 15479echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5 15480echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6 15481if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then 15482 15483cat >>confdefs.h <<\_ACEOF 15484#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1 15485_ACEOF 15486 15487fi 15488 15489 ;; 15490 15491 powerpc*-*-*) 15492 case $target in 15493 *-*-aix*) conftest_s=' .machine "pwr5" 15494 .csect .text[PR] 15495 mfcr 3,128';; 15496 *-*-darwin*) 15497 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5 15498echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6 15499if test "${gcc_cv_as_machine_directive+set}" = set; then 15500 echo $ECHO_N "(cached) $ECHO_C" >&6 15501else 15502 gcc_cv_as_machine_directive=no 15503 if test x$gcc_cv_as != x; then 15504 echo ' .machine ppc7400' > conftest.s 15505 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15507 (eval $ac_try) 2>&5 15508 ac_status=$? 15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15510 (exit $ac_status); }; } 15511 then 15512 gcc_cv_as_machine_directive=yes 15513 else 15514 echo "configure: failed program was" >&5 15515 cat conftest.s >&5 15516 fi 15517 rm -f conftest.o conftest.s 15518 fi 15519fi 15520echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5 15521echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6 15522 15523 if test x$gcc_cv_as_machine_directive != xyes; then 15524 echo "*** This target requires an assembler supporting \".machine\"" >&2 15525 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2 15526 test x$build = x$target && exit 1 15527 fi 15528 conftest_s=' .text 15529 mfcr r3,128';; 15530 *) conftest_s=' .machine power4 15531 .text 15532 mfcr 3,128';; 15533 esac 15534 15535 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5 15536echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6 15537if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then 15538 echo $ECHO_N "(cached) $ECHO_C" >&6 15539else 15540 gcc_cv_as_powerpc_mfcrf=no 15541 if test $in_tree_gas = yes; then 15542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0` 15543 then gcc_cv_as_powerpc_mfcrf=yes 15544fi 15545 elif test x$gcc_cv_as != x; then 15546 echo "$conftest_s" > conftest.s 15547 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15549 (eval $ac_try) 2>&5 15550 ac_status=$? 15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15552 (exit $ac_status); }; } 15553 then 15554 gcc_cv_as_powerpc_mfcrf=yes 15555 else 15556 echo "configure: failed program was" >&5 15557 cat conftest.s >&5 15558 fi 15559 rm -f conftest.o conftest.s 15560 fi 15561fi 15562echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5 15563echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6 15564if test $gcc_cv_as_powerpc_mfcrf = yes; then 15565 15566cat >>confdefs.h <<\_ACEOF 15567#define HAVE_AS_MFCRF 1 15568_ACEOF 15569 15570fi 15571 15572 case $target in 15573 *-*-aix*) conftest_s=' .machine "pwr5" 15574 .csect .text[PR] 15575 popcntb 3,3';; 15576 *) conftest_s=' .machine power5 15577 .text 15578 popcntb 3,3';; 15579 esac 15580 15581 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5 15582echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6 15583if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then 15584 echo $ECHO_N "(cached) $ECHO_C" >&6 15585else 15586 gcc_cv_as_powerpc_popcntb=no 15587 if test $in_tree_gas = yes; then 15588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 15589 then gcc_cv_as_powerpc_popcntb=yes 15590fi 15591 elif test x$gcc_cv_as != x; then 15592 echo "$conftest_s" > conftest.s 15593 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15595 (eval $ac_try) 2>&5 15596 ac_status=$? 15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15598 (exit $ac_status); }; } 15599 then 15600 gcc_cv_as_powerpc_popcntb=yes 15601 else 15602 echo "configure: failed program was" >&5 15603 cat conftest.s >&5 15604 fi 15605 rm -f conftest.o conftest.s 15606 fi 15607fi 15608echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5 15609echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6 15610if test $gcc_cv_as_powerpc_popcntb = yes; then 15611 15612cat >>confdefs.h <<\_ACEOF 15613#define HAVE_AS_POPCNTB 1 15614_ACEOF 15615 15616fi 15617 15618 case $target in 15619 *-*-aix*) conftest_s=' .machine "pwr5x" 15620 .csect .text[PR] 15621 frin 1,1';; 15622 *) conftest_s=' .machine power5 15623 .text 15624 frin 1,1';; 15625 esac 15626 15627 echo "$as_me:$LINENO: checking assembler for fp round support" >&5 15628echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6 15629if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then 15630 echo $ECHO_N "(cached) $ECHO_C" >&6 15631else 15632 gcc_cv_as_powerpc_fprnd=no 15633 if test $in_tree_gas = yes; then 15634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 15635 then gcc_cv_as_powerpc_fprnd=yes 15636fi 15637 elif test x$gcc_cv_as != x; then 15638 echo "$conftest_s" > conftest.s 15639 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15641 (eval $ac_try) 2>&5 15642 ac_status=$? 15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15644 (exit $ac_status); }; } 15645 then 15646 gcc_cv_as_powerpc_fprnd=yes 15647 else 15648 echo "configure: failed program was" >&5 15649 cat conftest.s >&5 15650 fi 15651 rm -f conftest.o conftest.s 15652 fi 15653fi 15654echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5 15655echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6 15656if test $gcc_cv_as_powerpc_fprnd = yes; then 15657 15658cat >>confdefs.h <<\_ACEOF 15659#define HAVE_AS_FPRND 1 15660_ACEOF 15661 15662fi 15663 15664 case $target in 15665 *-*-aix*) conftest_s=' .csect .text[PR] 15666LCF..0: 15667 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';; 15668 *-*-darwin*) 15669 conftest_s=' .text 15670LCF0: 15671 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';; 15672 *) conftest_s=' .text 15673.LCF0: 15674 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';; 15675 esac 15676 15677 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5 15678echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6 15679if test "${gcc_cv_as_powerpc_rel16+set}" = set; then 15680 echo $ECHO_N "(cached) $ECHO_C" >&6 15681else 15682 gcc_cv_as_powerpc_rel16=no 15683 if test $in_tree_gas = yes; then 15684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 15685 then gcc_cv_as_powerpc_rel16=yes 15686fi 15687 elif test x$gcc_cv_as != x; then 15688 echo "$conftest_s" > conftest.s 15689 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5' 15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15691 (eval $ac_try) 2>&5 15692 ac_status=$? 15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15694 (exit $ac_status); }; } 15695 then 15696 gcc_cv_as_powerpc_rel16=yes 15697 else 15698 echo "configure: failed program was" >&5 15699 cat conftest.s >&5 15700 fi 15701 rm -f conftest.o conftest.s 15702 fi 15703fi 15704echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5 15705echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6 15706if test $gcc_cv_as_powerpc_rel16 = yes; then 15707 15708cat >>confdefs.h <<\_ACEOF 15709#define HAVE_AS_REL16 1 15710_ACEOF 15711 15712fi 15713 ;; 15714 15715 mips*-*-*) 15716 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5 15717echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6 15718if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then 15719 echo $ECHO_N "(cached) $ECHO_C" >&6 15720else 15721 gcc_cv_as_mips_explicit_relocs=no 15722 if test $in_tree_gas = yes; then 15723 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0` 15724 then gcc_cv_as_mips_explicit_relocs=yes 15725fi 15726 elif test x$gcc_cv_as != x; then 15727 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s 15728 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15730 (eval $ac_try) 2>&5 15731 ac_status=$? 15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15733 (exit $ac_status); }; } 15734 then 15735 gcc_cv_as_mips_explicit_relocs=yes 15736 else 15737 echo "configure: failed program was" >&5 15738 cat conftest.s >&5 15739 fi 15740 rm -f conftest.o conftest.s 15741 fi 15742fi 15743echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5 15744echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6 15745if test $gcc_cv_as_mips_explicit_relocs = yes; then 15746 if test x$target_cpu_default = x 15747 then target_cpu_default=MASK_EXPLICIT_RELOCS 15748 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS" 15749 fi 15750fi 15751 ;; 15752esac 15753 15754# Mips and HP-UX need the GNU assembler. 15755# Linux on IA64 might be able to use the Intel assembler. 15756 15757case "$target" in 15758 mips*-*-* | *-*-hpux* ) 15759 if test x$gas_flag = xyes \ 15760 || test x"$host" != x"$build" \ 15761 || test ! -x "$gcc_cv_as" \ 15762 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then 15763 : 15764 else 15765 echo "*** This configuration requires the GNU assembler" >&2 15766 exit 1 15767 fi 15768 ;; 15769esac 15770 15771# ??? Not all targets support dwarf2 debug_line, even within a version 15772# of gas. Moreover, we need to emit a valid instruction to trigger any 15773# info to the output file. So, as supported targets are added to gas 2.11, 15774# add some instruction here to (also) show we expect this might work. 15775# ??? Once 2.11 is released, probably need to add first known working 15776# version to the per-target configury. 15777case "$target" in 15778 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \ 15779 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \ 15780 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*) 15781 insn="nop" 15782 ;; 15783 ia64*-*-* | s390*-*-*) 15784 insn="nop 0" 15785 ;; 15786 mmix-*-*) 15787 insn="swym 0" 15788 ;; 15789esac 15790if test x"$insn" != x; then 15791 conftest_s="\ 15792 .file 1 \"conftest.s\" 15793 .loc 1 3 0 15794 $insn" 15795 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5 15796echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6 15797if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then 15798 echo $ECHO_N "(cached) $ECHO_C" >&6 15799else 15800 gcc_cv_as_dwarf2_debug_line=no 15801 if test $in_tree_gas = yes; then 15802 if test $in_tree_gas_is_elf = yes \ 15803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 15804 then gcc_cv_as_dwarf2_debug_line=yes 15805fi 15806 elif test x$gcc_cv_as != x; then 15807 echo "$conftest_s" > conftest.s 15808 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15810 (eval $ac_try) 2>&5 15811 ac_status=$? 15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15813 (exit $ac_status); }; } 15814 then 15815 if test x$gcc_cv_objdump != x \ 15816 && $gcc_cv_objdump -h conftest.o 2> /dev/null \ 15817 | grep debug_line > /dev/null 2>&1; then 15818 gcc_cv_as_dwarf2_debug_line=yes 15819 fi 15820 else 15821 echo "configure: failed program was" >&5 15822 cat conftest.s >&5 15823 fi 15824 rm -f conftest.o conftest.s 15825 fi 15826fi 15827echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5 15828echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6 15829 15830 15831# The .debug_line file table must be in the exact order that 15832# we specified the files, since these indices are also used 15833# by DW_AT_decl_file. Approximate this test by testing if 15834# the assembler bitches if the same index is assigned twice. 15835 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5 15836echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6 15837if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then 15838 echo $ECHO_N "(cached) $ECHO_C" >&6 15839else 15840 gcc_cv_as_dwarf2_file_buggy=no 15841 if test x$gcc_cv_as != x; then 15842 echo ' .file 1 "foo.s" 15843 .file 1 "bar.s"' > conftest.s 15844 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' 15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15846 (eval $ac_try) 2>&5 15847 ac_status=$? 15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15849 (exit $ac_status); }; } 15850 then 15851 gcc_cv_as_dwarf2_file_buggy=yes 15852 else 15853 echo "configure: failed program was" >&5 15854 cat conftest.s >&5 15855 fi 15856 rm -f conftest.o conftest.s 15857 fi 15858fi 15859echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5 15860echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6 15861 15862 15863 if test $gcc_cv_as_dwarf2_debug_line = yes \ 15864 && test $gcc_cv_as_dwarf2_file_buggy = no; then 15865 15866cat >>confdefs.h <<\_ACEOF 15867#define HAVE_AS_DWARF2_DEBUG_LINE 1 15868_ACEOF 15869 15870 fi 15871 15872 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5 15873echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6 15874if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then 15875 echo $ECHO_N "(cached) $ECHO_C" >&6 15876else 15877 gcc_cv_as_gdwarf2_flag=no 15878 if test $in_tree_gas = yes; then 15879 if test $in_tree_gas_is_elf = yes \ 15880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 15881 then gcc_cv_as_gdwarf2_flag=yes 15882fi 15883 elif test x$gcc_cv_as != x; then 15884 echo "$insn" > conftest.s 15885 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5' 15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15887 (eval $ac_try) 2>&5 15888 ac_status=$? 15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15890 (exit $ac_status); }; } 15891 then 15892 gcc_cv_as_gdwarf2_flag=yes 15893 else 15894 echo "configure: failed program was" >&5 15895 cat conftest.s >&5 15896 fi 15897 rm -f conftest.o conftest.s 15898 fi 15899fi 15900echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5 15901echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6 15902if test $gcc_cv_as_gdwarf2_flag = yes; then 15903 15904cat >>confdefs.h <<\_ACEOF 15905#define HAVE_AS_GDWARF2_DEBUG_FLAG 1 15906_ACEOF 15907 15908fi 15909 15910 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5 15911echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6 15912if test "${gcc_cv_as_gstabs_flag+set}" = set; then 15913 echo $ECHO_N "(cached) $ECHO_C" >&6 15914else 15915 gcc_cv_as_gstabs_flag=no 15916 if test $in_tree_gas = yes; then 15917 if test $in_tree_gas_is_elf = yes \ 15918 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 15919 then gcc_cv_as_gstabs_flag=yes 15920fi 15921 elif test x$gcc_cv_as != x; then 15922 echo "$insn" > conftest.s 15923 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5' 15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15925 (eval $ac_try) 2>&5 15926 ac_status=$? 15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15928 (exit $ac_status); }; } 15929 then 15930 # The native Solaris 9/Intel assembler doesn't understand --gstabs 15931 # and warns about it, but still exits successfully. So check for 15932 # this. 15933 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null' 15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15935 (eval $ac_try) 2>&5 15936 ac_status=$? 15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15938 (exit $ac_status); }; } 15939 then : 15940 else gcc_cv_as_gstabs_flag=yes 15941 fi 15942 else 15943 echo "configure: failed program was" >&5 15944 cat conftest.s >&5 15945 fi 15946 rm -f conftest.o conftest.s 15947 fi 15948fi 15949echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5 15950echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6 15951if test $gcc_cv_as_gstabs_flag = yes; then 15952 15953cat >>confdefs.h <<\_ACEOF 15954#define HAVE_AS_GSTABS_DEBUG_FLAG 1 15955_ACEOF 15956 15957fi 15958fi 15959 15960echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5 15961echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6 15962gcc_cv_ld_ro_rw_mix=unknown 15963if test $in_tree_ld = yes ; then 15964 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 \ 15965 && test $in_tree_ld_is_elf = yes; then 15966 gcc_cv_ld_ro_rw_mix=read-write 15967 fi 15968elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 15969 echo '.section myfoosect, "a"' > conftest1.s 15970 echo '.section myfoosect, "aw"' > conftest2.s 15971 echo '.byte 1' >> conftest2.s 15972 echo '.section myfoosect, "a"' > conftest3.s 15973 echo '.byte 0' >> conftest3.s 15974 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \ 15975 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \ 15976 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \ 15977 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \ 15978 conftest2.o conftest3.o > /dev/null 2>&1; then 15979 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \ 15980 | sed -e '/myfoosect/!d' -e N` 15981 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then 15982 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then 15983 gcc_cv_ld_ro_rw_mix=read-only 15984 else 15985 gcc_cv_ld_ro_rw_mix=read-write 15986 fi 15987 fi 15988 fi 15989 rm -f conftest.* conftest[123].* 15990fi 15991if test x$gcc_cv_ld_ro_rw_mix = xread-write; then 15992 15993cat >>confdefs.h <<\_ACEOF 15994#define HAVE_LD_RO_RW_SECTION_MIXING 1 15995_ACEOF 15996 15997fi 15998echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5 15999echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6 16000 16001echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5 16002echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6 16003gcc_cv_ld_eh_frame_hdr=no 16004if test $in_tree_ld = yes ; then 16005 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 \ 16006 && test $in_tree_ld_is_elf = yes; then 16007 gcc_cv_ld_eh_frame_hdr=yes 16008 fi 16009elif test x$gcc_cv_ld != x; then 16010 # Check if linker supports --eh-frame-hdr option 16011 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then 16012 gcc_cv_ld_eh_frame_hdr=yes 16013 fi 16014fi 16015 16016if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then 16017 16018cat >>confdefs.h <<\_ACEOF 16019#define HAVE_LD_EH_FRAME_HDR 1 16020_ACEOF 16021 16022fi 16023echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5 16024echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6 16025 16026echo "$as_me:$LINENO: checking linker position independent executable support" >&5 16027echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6 16028gcc_cv_ld_pie=no 16029if test $in_tree_ld = yes ; then 16030 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 \ 16031 && test $in_tree_ld_is_elf = yes; then 16032 gcc_cv_ld_pie=yes 16033 fi 16034elif test x$gcc_cv_ld != x; then 16035 # Check if linker supports -pie option 16036 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then 16037 gcc_cv_ld_pie=yes 16038 fi 16039fi 16040if test x"$gcc_cv_ld_pie" = xyes; then 16041 16042cat >>confdefs.h <<\_ACEOF 16043#define HAVE_LD_PIE 1 16044_ACEOF 16045 16046fi 16047echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5 16048echo "${ECHO_T}$gcc_cv_ld_pie" >&6 16049 16050# -------- 16051# UNSORTED 16052# -------- 16053 16054echo "$as_me:$LINENO: checking linker --as-needed support" >&5 16055echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6 16056if test "${gcc_cv_ld_as_needed+set}" = set; then 16057 echo $ECHO_N "(cached) $ECHO_C" >&6 16058else 16059 gcc_cv_ld_as_needed=no 16060if test $in_tree_ld = yes ; then 16061 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 \ 16062 && test $in_tree_ld_is_elf = yes; then 16063 gcc_cv_ld_as_needed=yes 16064 fi 16065elif test x$gcc_cv_ld != x; then 16066 # Check if linker supports --as-needed and --no-as-needed options 16067 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then 16068 gcc_cv_ld_as_needed=yes 16069 fi 16070fi 16071 16072fi 16073echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5 16074echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6 16075if test x"$gcc_cv_ld_as_needed" = xyes; then 16076 16077cat >>confdefs.h <<\_ACEOF 16078#define HAVE_LD_AS_NEEDED 1 16079_ACEOF 16080 16081fi 16082 16083case "$target:$tm_file" in 16084 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*) 16085 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5 16086echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6 16087if test "${gcc_cv_ld_no_dot_syms+set}" = set; then 16088 echo $ECHO_N "(cached) $ECHO_C" >&6 16089else 16090 gcc_cv_ld_no_dot_syms=no 16091 if test $in_tree_ld = yes ; then 16092 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 16093 gcc_cv_ld_no_dot_syms=yes 16094 fi 16095 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 16096 cat > conftest1.s <<EOF 16097 .text 16098 bl .foo 16099EOF 16100 cat > conftest2.s <<EOF 16101 .section ".opd","aw" 16102 .align 3 16103 .globl foo 16104 .type foo,@function 16105foo: 16106 .quad .LEfoo,.TOC.@tocbase,0 16107 .text 16108.LEfoo: 16109 blr 16110 .size foo,.-.LEfoo 16111EOF 16112 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 16113 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 16114 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then 16115 gcc_cv_ld_no_dot_syms=yes 16116 fi 16117 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s 16118 fi 16119 16120fi 16121echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5 16122echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6 16123 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then 16124 16125cat >>confdefs.h <<\_ACEOF 16126#define HAVE_LD_NO_DOT_SYMS 1 16127_ACEOF 16128 16129 fi 16130 ;; 16131esac 16132 16133echo "$as_me:$LINENO: checking linker --sysroot support" >&5 16134echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6 16135if test "${gcc_cv_ld_sysroot+set}" = set; then 16136 echo $ECHO_N "(cached) $ECHO_C" >&6 16137else 16138 gcc_cv_ld_sysroot=no 16139 if test $in_tree_ld = yes ; then 16140 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 16141 gcc_cv_ld_sysroot=yes 16142 fi 16143 elif test x$gcc_cv_ld != x; then 16144 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then 16145 gcc_cv_ld_sysroot=yes 16146 fi 16147 fi 16148fi 16149echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5 16150echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6 16151if test x"$gcc_cv_ld_sysroot" = xyes; then 16152 16153cat >>confdefs.h <<\_ACEOF 16154#define HAVE_LD_SYSROOT 1 16155_ACEOF 16156 16157fi 16158 16159if test x$with_sysroot = x && test x$host = x$target \ 16160 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then 16161 16162cat >>confdefs.h <<_ACEOF 16163#define PREFIX_INCLUDE_DIR "$prefix/include" 16164_ACEOF 16165 16166fi 16167 16168# Test for stack protector support in target C library. 16169case "$target" in 16170 *-*-linux*) 16171 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5 16172echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6 16173if test "${gcc_cv_libc_provides_ssp+set}" = set; then 16174 echo $ECHO_N "(cached) $ECHO_C" >&6 16175else 16176 gcc_cv_libc_provides_ssp=no 16177 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then 16178 if test "x$with_sysroot" = x; then 16179 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" 16180 elif test "x$with_sysroot" = xyes; then 16181 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include" 16182 else 16183 glibc_header_dir="${with_sysroot}/usr/include" 16184 fi 16185 else 16186 glibc_header_dir=/usr/include 16187 fi 16188 # glibc 2.4 and later provides __stack_chk_fail and 16189 # either __stack_chk_guard, or TLS access to stack guard canary. 16190 if test -f $glibc_header_dir/features.h \ 16191 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \ 16192 $glibc_header_dir/features.h > /dev/null; then 16193 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \ 16194 $glibc_header_dir/features.h > /dev/null; then 16195 gcc_cv_libc_provides_ssp=yes 16196 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \ 16197 $glibc_header_dir/features.h > /dev/null \ 16198 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \ 16199 $glibc_header_dir/features.h > /dev/null; then 16200 gcc_cv_libc_provides_ssp=yes 16201 fi 16202 fi 16203fi 16204echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5 16205echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;; 16206 *) gcc_cv_libc_provides_ssp=no ;; 16207esac 16208if test x$gcc_cv_libc_provides_ssp = xyes; then 16209 16210cat >>confdefs.h <<\_ACEOF 16211#define TARGET_LIBC_PROVIDES_SSP 1 16212_ACEOF 16213 16214fi 16215 16216# Find out what GC implementation we want, or may, use. 16217 16218# Check whether --with-gc or --without-gc was given. 16219if test "${with_gc+set}" = set; then 16220 withval="$with_gc" 16221 case "$withval" in 16222 page) 16223 GGC=ggc-$withval 16224 ;; 16225 zone) 16226 GGC=ggc-$withval 16227 16228cat >>confdefs.h <<\_ACEOF 16229#define GGC_ZONE 1 16230_ACEOF 16231 16232 ;; 16233 *) 16234 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5 16235echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;} 16236 { (exit 1); exit 1; }; } 16237 ;; 16238esac 16239else 16240 GGC=ggc-page 16241fi; 16242 16243echo "Using $GGC for garbage collection." 16244 16245# Use the system's zlib library. 16246zlibdir=-L../zlib 16247zlibinc="-I\$(srcdir)/../zlib" 16248 16249# Check whether --with-system-zlib or --without-system-zlib was given. 16250if test "${with_system_zlib+set}" = set; then 16251 withval="$with_system_zlib" 16252 zlibdir= 16253zlibinc= 16254 16255fi; 16256 16257 16258 16259 16260echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 16261echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 16262 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 16263if test "${enable_maintainer_mode+set}" = set; then 16264 enableval="$enable_maintainer_mode" 16265 maintainer_mode=$enableval 16266else 16267 maintainer_mode=no 16268fi; 16269 16270echo "$as_me:$LINENO: result: $maintainer_mode" >&5 16271echo "${ECHO_T}$maintainer_mode" >&6 16272 16273if test "$maintainer_mode" = "yes"; then 16274 MAINT='' 16275else 16276 MAINT='#' 16277fi 16278 16279# -------------- 16280# Language hooks 16281# -------------- 16282 16283# Make empty files to contain the specs and options for each language. 16284# Then add #include lines to for a compiler that has specs and/or options. 16285 16286lang_opt_files= 16287lang_specs_files= 16288lang_tree_files= 16289for subdir in . $subdirs 16290do 16291 if test -f $srcdir/$subdir/lang.opt; then 16292 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt" 16293 fi 16294 if test -f $srcdir/$subdir/lang-specs.h; then 16295 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" 16296 fi 16297 if test -f $srcdir/$subdir/$subdir-tree.def; then 16298 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" 16299 fi 16300done 16301 16302# These (without "all_") are set in each config-lang.in. 16303# `language' must be a single word so is spelled singularly. 16304all_languages= 16305all_boot_languages= 16306all_compilers= 16307all_stagestuff= 16308all_outputs='Makefile gccbug mklibgcc libada-mk' 16309# List of language makefile fragments. 16310all_lang_makefrags= 16311# List of language subdirectory makefiles. Deprecated. 16312all_lang_makefiles= 16313# Files for gengtype 16314all_gtfiles="$target_gtfiles" 16315# Files for gengtype with language 16316all_gtfiles_files_langs= 16317all_gtfiles_files_files= 16318 16319# Add the language fragments. 16320# Languages are added via two mechanisms. Some information must be 16321# recorded in makefile variables, these are defined in config-lang.in. 16322# We accumulate them and plug them into the main Makefile. 16323# The other mechanism is a set of hooks for each of the main targets 16324# like `clean', `install', etc. 16325 16326language_hooks="Make-hooks" 16327 16328for s in $subdirs 16329do 16330 language= 16331 boot_language= 16332 compilers= 16333 stagestuff= 16334 outputs= 16335 gtfiles= 16336 . ${srcdir}/$s/config-lang.in 16337 if test "x$language" = x 16338 then 16339 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 16340 exit 1 16341 fi 16342 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in" 16343 if test -f ${srcdir}/$s/Makefile.in 16344 then all_lang_makefiles="$s/Makefile" 16345 fi 16346 all_languages="$all_languages $language" 16347 if test "x$boot_language" = xyes 16348 then 16349 all_boot_languages="$all_boot_languages $language" 16350 fi 16351 all_compilers="$all_compilers $compilers" 16352 all_stagestuff="$all_stagestuff $stagestuff" 16353 all_outputs="$all_outputs $outputs" 16354 all_gtfiles="$all_gtfiles $gtfiles" 16355 for f in $gtfiles 16356 do 16357 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} " 16358 all_gtfiles_files_files="$all_gtfiles_files_files ${f} " 16359 done 16360done 16361 16362# Pick up gtfiles for c 16363gtfiles= 16364s="c" 16365. ${srcdir}/c-config-lang.in 16366all_gtfiles="$all_gtfiles $gtfiles" 16367for f in $gtfiles 16368do 16369 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} " 16370 all_gtfiles_files_files="$all_gtfiles_files_files ${f} " 16371done 16372 16373check_languages= 16374for language in $all_languages 16375do 16376 check_languages="$check_languages check-$language" 16377done 16378 16379# We link each language in with a set of hooks, reached indirectly via 16380# lang.${target}. 16381 16382rm -f Make-hooks 16383touch Make-hooks 16384target_list="all.build all.cross start.encap rest.encap tags \ 16385 install-normal install-common install-man \ 16386 uninstall info man srcextra srcman srcinfo \ 16387 mostlyclean clean distclean maintainer-clean \ 16388 stage1 stage2 stage3 stage4 stageprofile stagefeedback" 16389for t in $target_list 16390do 16391 x= 16392 for lang in $all_languages 16393 do 16394 x="$x $lang.$t" 16395 done 16396 echo "lang.$t: $x" >> Make-hooks 16397done 16398 16399# -------- 16400# UNSORTED 16401# -------- 16402 16403# Create .gdbinit. 16404 16405echo "dir ." > .gdbinit 16406echo "dir ${srcdir}" >> .gdbinit 16407if test x$gdb_needs_out_file_path = xyes 16408then 16409 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit 16410fi 16411if test "x$subdirs" != x; then 16412 for s in $subdirs 16413 do 16414 echo "dir ${srcdir}/$s" >> .gdbinit 16415 done 16416fi 16417echo "source ${srcdir}/gdbinit.in" >> .gdbinit 16418 16419# If $(exec_prefix) exists and is not the same as $(prefix), then compute an 16420# absolute path for gcc_tooldir based on inserting the number of up-directory 16421# movements required to get from $(exec_prefix) to $(prefix) into the basic 16422# $(libsubdir)/@(unlibsubdir) based path. 16423# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel 16424# make and thus we'd get different behavior depending on where we built the 16425# sources. 16426if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then 16427 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)' 16428else 16429# An explanation of the sed strings: 16430# -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' 16431# -e 's|/$||' match a trailing forward slash and eliminates it 16432# -e 's|^[^/]|/|' forces the string to start with a forward slash (*) 16433# -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../ 16434# 16435# (*) Note this pattern overwrites the first character of the string 16436# with a forward slash if one is not already present. This is not a 16437# problem because the exact names of the sub-directories concerned is 16438# unimportant, just the number of them matters. 16439# 16440# The practical upshot of these patterns is like this: 16441# 16442# prefix exec_prefix result 16443# ------ ----------- ------ 16444# /foo /foo/bar ../ 16445# /foo/ /foo/bar ../ 16446# /foo /foo/bar/ ../ 16447# /foo/ /foo/bar/ ../ 16448# /foo /foo/bar/ugg ../../ 16449# 16450 dollar='$$' 16451 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)" 16452fi 16453 16454 16455 16456# Find a directory in which to install a shared libgcc. 16457 16458# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. 16459if test "${enable_version_specific_runtime_libs+set}" = set; then 16460 enableval="$enable_version_specific_runtime_libs" 16461 16462fi; 16463 16464 16465# Check whether --with-slibdir or --without-slibdir was given. 16466if test "${with_slibdir+set}" = set; then 16467 withval="$with_slibdir" 16468 slibdir="$with_slibdir" 16469else 16470 if test "${enable_version_specific_runtime_libs+set}" = set; then 16471 slibdir='$(libsubdir)' 16472elif test "$host" != "$target"; then 16473 slibdir='$(build_tooldir)/lib' 16474else 16475 slibdir='$(libdir)' 16476fi 16477fi; 16478 16479 16480objdir=`${PWDCMD-pwd}` 16481 16482 16483# Substitute configuration variables 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547# Echo link setup. 16548if test x${build} = x${host} ; then 16549 if test x${host} = x${target} ; then 16550 echo "Links are now set up to build a native compiler for ${target}." 1>&2 16551 else 16552 echo "Links are now set up to build a cross-compiler" 1>&2 16553 echo " from ${host} to ${target}." 1>&2 16554 fi 16555else 16556 if test x${host} = x${target} ; then 16557 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2 16558 echo " for ${target}." 1>&2 16559 else 16560 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2 16561 echo " from ${host} to ${target}." 1>&2 16562 fi 16563fi 16564 16565 16566 16567 16568# Configure the subdirectories 16569# AC_CONFIG_SUBDIRS($subdirs) 16570 16571# Create the Makefile 16572# and configure language subdirectories 16573 ac_config_files="$ac_config_files $all_outputs" 16574 16575 16576 ac_config_commands="$ac_config_commands default" 16577 16578cat >confcache <<\_ACEOF 16579# This file is a shell script that caches the results of configure 16580# tests run on this system so they can be shared between configure 16581# scripts and configure runs, see configure's option --config-cache. 16582# It is not useful on other systems. If it contains results you don't 16583# want to keep, you may remove or edit it. 16584# 16585# config.status only pays attention to the cache file if you give it 16586# the --recheck option to rerun configure. 16587# 16588# `ac_cv_env_foo' variables (set or unset) will be overridden when 16589# loading this file, other *unset* `ac_cv_foo' will be assigned the 16590# following values. 16591 16592_ACEOF 16593 16594# The following way of writing the cache mishandles newlines in values, 16595# but we know of no workaround that is simple, portable, and efficient. 16596# So, don't put newlines in cache variables' values. 16597# Ultrix sh set writes to stderr and can't be redirected directly, 16598# and sets the high bit in the cache file unless we assign to the vars. 16599{ 16600 (set) 2>&1 | 16601 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16602 *ac_space=\ *) 16603 # `set' does not quote correctly, so add quotes (double-quote 16604 # substitution turns \\\\ into \\, and sed turns \\ into \). 16605 sed -n \ 16606 "s/'/'\\\\''/g; 16607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16608 ;; 16609 *) 16610 # `set' quotes correctly as required by POSIX, so do not add quotes. 16611 sed -n \ 16612 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 16613 ;; 16614 esac; 16615} | 16616 sed ' 16617 t clear 16618 : clear 16619 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16620 t end 16621 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16622 : end' >>confcache 16623if diff $cache_file confcache >/dev/null 2>&1; then :; else 16624 if test -w $cache_file; then 16625 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 16626 cat confcache >$cache_file 16627 else 16628 echo "not updating unwritable cache $cache_file" 16629 fi 16630fi 16631rm -f confcache 16632 16633test "x$prefix" = xNONE && prefix=$ac_default_prefix 16634# Let make expand exec_prefix. 16635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16636 16637# VPATH may cause trouble with some makes, so we remove $(srcdir), 16638# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16639# trailing colons and then remove the whole line if VPATH becomes empty 16640# (actually we leave an empty line to preserve line numbers). 16641if test "x$srcdir" = x.; then 16642 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16643s/:*\$(srcdir):*/:/; 16644s/:*\${srcdir}:*/:/; 16645s/:*@srcdir@:*/:/; 16646s/^\([^=]*=[ ]*\):*/\1/; 16647s/:*$//; 16648s/^[^=]*=[ ]*$//; 16649}' 16650fi 16651 16652DEFS=-DHAVE_CONFIG_H 16653 16654ac_libobjs= 16655ac_ltlibobjs= 16656for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16657 # 1. Remove the extension, and $U if already installed. 16658 ac_i=`echo "$ac_i" | 16659 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 16660 # 2. Add them. 16661 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 16662 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 16663done 16664LIBOBJS=$ac_libobjs 16665 16666LTLIBOBJS=$ac_ltlibobjs 16667 16668 16669 16670: ${CONFIG_STATUS=./config.status} 16671ac_clean_files_save=$ac_clean_files 16672ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16673{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 16674echo "$as_me: creating $CONFIG_STATUS" >&6;} 16675cat >$CONFIG_STATUS <<_ACEOF 16676#! $SHELL 16677# Generated by $as_me. 16678# Run this file to recreate the current configuration. 16679# Compiler output produced by configure, useful for debugging 16680# configure, is in config.log if it exists. 16681 16682debug=false 16683ac_cs_recheck=false 16684ac_cs_silent=false 16685SHELL=\${CONFIG_SHELL-$SHELL} 16686_ACEOF 16687 16688cat >>$CONFIG_STATUS <<\_ACEOF 16689## --------------------- ## 16690## M4sh Initialization. ## 16691## --------------------- ## 16692 16693# Be Bourne compatible 16694if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16695 emulate sh 16696 NULLCMD=: 16697 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 16698 # is contrary to our usage. Disable this feature. 16699 alias -g '${1+"$@"}'='"$@"' 16700elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 16701 set -o posix 16702fi 16703DUALCASE=1; export DUALCASE # for MKS sh 16704 16705# Support unset when possible. 16706if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16707 as_unset=unset 16708else 16709 as_unset=false 16710fi 16711 16712 16713# Work around bugs in pre-3.0 UWIN ksh. 16714$as_unset ENV MAIL MAILPATH 16715PS1='$ ' 16716PS2='> ' 16717PS4='+ ' 16718 16719# NLS nuisances. 16720for as_var in \ 16721 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 16722 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 16723 LC_TELEPHONE LC_TIME 16724do 16725 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 16726 eval $as_var=C; export $as_var 16727 else 16728 $as_unset $as_var 16729 fi 16730done 16731 16732# Required to use basename. 16733if expr a : '\(a\)' >/dev/null 2>&1; then 16734 as_expr=expr 16735else 16736 as_expr=false 16737fi 16738 16739if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 16740 as_basename=basename 16741else 16742 as_basename=false 16743fi 16744 16745 16746# Name of the executable. 16747as_me=`$as_basename "$0" || 16748$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16749 X"$0" : 'X\(//\)$' \| \ 16750 X"$0" : 'X\(/\)$' \| \ 16751 . : '\(.\)' 2>/dev/null || 16752echo X/"$0" | 16753 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 16754 /^X\/\(\/\/\)$/{ s//\1/; q; } 16755 /^X\/\(\/\).*/{ s//\1/; q; } 16756 s/.*/./; q'` 16757 16758 16759# PATH needs CR, and LINENO needs CR and PATH. 16760# Avoid depending upon Character Ranges. 16761as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16762as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16763as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16764as_cr_digits='0123456789' 16765as_cr_alnum=$as_cr_Letters$as_cr_digits 16766 16767# The user is always right. 16768if test "${PATH_SEPARATOR+set}" != set; then 16769 echo "#! /bin/sh" >conf$$.sh 16770 echo "exit 0" >>conf$$.sh 16771 chmod +x conf$$.sh 16772 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 16773 PATH_SEPARATOR=';' 16774 else 16775 PATH_SEPARATOR=: 16776 fi 16777 rm -f conf$$.sh 16778fi 16779 16780 16781 as_lineno_1=$LINENO 16782 as_lineno_2=$LINENO 16783 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 16784 test "x$as_lineno_1" != "x$as_lineno_2" && 16785 test "x$as_lineno_3" = "x$as_lineno_2" || { 16786 # Find who we are. Look in the path if we contain no path at all 16787 # relative or not. 16788 case $0 in 16789 *[\\/]* ) as_myself=$0 ;; 16790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16791for as_dir in $PATH 16792do 16793 IFS=$as_save_IFS 16794 test -z "$as_dir" && as_dir=. 16795 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16796done 16797 16798 ;; 16799 esac 16800 # We did not find ourselves, most probably we were run as `sh COMMAND' 16801 # in which case we are not to be found in the path. 16802 if test "x$as_myself" = x; then 16803 as_myself=$0 16804 fi 16805 if test ! -f "$as_myself"; then 16806 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 16807echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 16808 { (exit 1); exit 1; }; } 16809 fi 16810 case $CONFIG_SHELL in 16811 '') 16812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16813for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 16814do 16815 IFS=$as_save_IFS 16816 test -z "$as_dir" && as_dir=. 16817 for as_base in sh bash ksh sh5; do 16818 case $as_dir in 16819 /*) 16820 if ("$as_dir/$as_base" -c ' 16821 as_lineno_1=$LINENO 16822 as_lineno_2=$LINENO 16823 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 16824 test "x$as_lineno_1" != "x$as_lineno_2" && 16825 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 16826 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 16827 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 16828 CONFIG_SHELL=$as_dir/$as_base 16829 export CONFIG_SHELL 16830 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 16831 fi;; 16832 esac 16833 done 16834done 16835;; 16836 esac 16837 16838 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 16839 # uniformly replaced by the line number. The first 'sed' inserts a 16840 # line-number line before each line; the second 'sed' does the real 16841 # work. The second script uses 'N' to pair each line-number line 16842 # with the numbered line, and appends trailing '-' during 16843 # substitution so that $LINENO is not a special case at line end. 16844 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 16845 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 16846 sed '=' <$as_myself | 16847 sed ' 16848 N 16849 s,$,-, 16850 : loop 16851 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 16852 t loop 16853 s,-$,, 16854 s,^['$as_cr_digits']*\n,, 16855 ' >$as_me.lineno && 16856 chmod +x $as_me.lineno || 16857 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 16858echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 16859 { (exit 1); exit 1; }; } 16860 16861 # Don't try to exec as it changes $[0], causing all sort of problems 16862 # (the dirname of $[0] is not the place where we might find the 16863 # original and so on. Autoconf is especially sensible to this). 16864 . ./$as_me.lineno 16865 # Exit status is that of the last command. 16866 exit 16867} 16868 16869 16870case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 16871 *c*,-n*) ECHO_N= ECHO_C=' 16872' ECHO_T=' ' ;; 16873 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 16874 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 16875esac 16876 16877if expr a : '\(a\)' >/dev/null 2>&1; then 16878 as_expr=expr 16879else 16880 as_expr=false 16881fi 16882 16883rm -f conf$$ conf$$.exe conf$$.file 16884echo >conf$$.file 16885if ln -s conf$$.file conf$$ 2>/dev/null; then 16886 # We could just check for DJGPP; but this test a) works b) is more generic 16887 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 16888 if test -f conf$$.exe; then 16889 # Don't use ln at all; we don't have any links 16890 as_ln_s='cp -p' 16891 else 16892 as_ln_s='ln -s' 16893 fi 16894elif ln conf$$.file conf$$ 2>/dev/null; then 16895 as_ln_s=ln 16896else 16897 as_ln_s='cp -p' 16898fi 16899rm -f conf$$ conf$$.exe conf$$.file 16900 16901if mkdir -p . 2>/dev/null; then 16902 as_mkdir_p=: 16903else 16904 test -d ./-p && rmdir ./-p 16905 as_mkdir_p=false 16906fi 16907 16908as_executable_p="test -f" 16909 16910# Sed expression to map a string onto a valid CPP name. 16911as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16912 16913# Sed expression to map a string onto a valid variable name. 16914as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16915 16916 16917# IFS 16918# We need space, tab and new line, in precisely that order. 16919as_nl=' 16920' 16921IFS=" $as_nl" 16922 16923# CDPATH. 16924$as_unset CDPATH 16925 16926exec 6>&1 16927 16928# Open the log real soon, to keep \$[0] and so on meaningful, and to 16929# report actual input values of CONFIG_FILES etc. instead of their 16930# values after options handling. Logging --version etc. is OK. 16931exec 5>>config.log 16932{ 16933 echo 16934 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16935## Running $as_me. ## 16936_ASBOX 16937} >&5 16938cat >&5 <<_CSEOF 16939 16940This file was extended by $as_me, which was 16941generated by GNU Autoconf 2.59. Invocation command line was 16942 16943 CONFIG_FILES = $CONFIG_FILES 16944 CONFIG_HEADERS = $CONFIG_HEADERS 16945 CONFIG_LINKS = $CONFIG_LINKS 16946 CONFIG_COMMANDS = $CONFIG_COMMANDS 16947 $ $0 $@ 16948 16949_CSEOF 16950echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 16951echo >&5 16952_ACEOF 16953 16954# Files that config.status was made for. 16955if test -n "$ac_config_files"; then 16956 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 16957fi 16958 16959if test -n "$ac_config_headers"; then 16960 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 16961fi 16962 16963if test -n "$ac_config_links"; then 16964 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 16965fi 16966 16967if test -n "$ac_config_commands"; then 16968 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 16969fi 16970 16971cat >>$CONFIG_STATUS <<\_ACEOF 16972 16973ac_cs_usage="\ 16974\`$as_me' instantiates files from templates according to the 16975current configuration. 16976 16977Usage: $0 [OPTIONS] [FILE]... 16978 16979 -h, --help print this help, then exit 16980 -V, --version print version number, then exit 16981 -q, --quiet do not print progress messages 16982 -d, --debug don't remove temporary files 16983 --recheck update $as_me by reconfiguring in the same conditions 16984 --file=FILE[:TEMPLATE] 16985 instantiate the configuration file FILE 16986 --header=FILE[:TEMPLATE] 16987 instantiate the configuration header FILE 16988 16989Configuration files: 16990$config_files 16991 16992Configuration headers: 16993$config_headers 16994 16995Configuration commands: 16996$config_commands 16997 16998Report bugs to <bug-autoconf@gnu.org>." 16999_ACEOF 17000 17001cat >>$CONFIG_STATUS <<_ACEOF 17002ac_cs_version="\\ 17003config.status 17004configured by $0, generated by GNU Autoconf 2.59, 17005 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 17006 17007Copyright (C) 2003 Free Software Foundation, Inc. 17008This config.status script is free software; the Free Software Foundation 17009gives unlimited permission to copy, distribute and modify it." 17010srcdir=$srcdir 17011_ACEOF 17012 17013cat >>$CONFIG_STATUS <<\_ACEOF 17014# If no file are specified by the user, then we need to provide default 17015# value. By we need to know if files were specified by the user. 17016ac_need_defaults=: 17017while test $# != 0 17018do 17019 case $1 in 17020 --*=*) 17021 ac_option=`expr "x$1" : 'x\([^=]*\)='` 17022 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 17023 ac_shift=: 17024 ;; 17025 -*) 17026 ac_option=$1 17027 ac_optarg=$2 17028 ac_shift=shift 17029 ;; 17030 *) # This is not an option, so the user has probably given explicit 17031 # arguments. 17032 ac_option=$1 17033 ac_need_defaults=false;; 17034 esac 17035 17036 case $ac_option in 17037 # Handling of the options. 17038_ACEOF 17039cat >>$CONFIG_STATUS <<\_ACEOF 17040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17041 ac_cs_recheck=: ;; 17042 --version | --vers* | -V ) 17043 echo "$ac_cs_version"; exit 0 ;; 17044 --he | --h) 17045 # Conflict between --help and --header 17046 { { echo "$as_me:$LINENO: error: ambiguous option: $1 17047Try \`$0 --help' for more information." >&5 17048echo "$as_me: error: ambiguous option: $1 17049Try \`$0 --help' for more information." >&2;} 17050 { (exit 1); exit 1; }; };; 17051 --help | --hel | -h ) 17052 echo "$ac_cs_usage"; exit 0 ;; 17053 --debug | --d* | -d ) 17054 debug=: ;; 17055 --file | --fil | --fi | --f ) 17056 $ac_shift 17057 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 17058 ac_need_defaults=false;; 17059 --header | --heade | --head | --hea ) 17060 $ac_shift 17061 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 17062 ac_need_defaults=false;; 17063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17064 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17065 ac_cs_silent=: ;; 17066 17067 # This is an error. 17068 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 17069Try \`$0 --help' for more information." >&5 17070echo "$as_me: error: unrecognized option: $1 17071Try \`$0 --help' for more information." >&2;} 17072 { (exit 1); exit 1; }; } ;; 17073 17074 *) ac_config_targets="$ac_config_targets $1" ;; 17075 17076 esac 17077 shift 17078done 17079 17080ac_configure_extra_args= 17081 17082if $ac_cs_silent; then 17083 exec 6>/dev/null 17084 ac_configure_extra_args="$ac_configure_extra_args --silent" 17085fi 17086 17087_ACEOF 17088cat >>$CONFIG_STATUS <<_ACEOF 17089if \$ac_cs_recheck; then 17090 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 17091 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17092fi 17093 17094_ACEOF 17095 17096cat >>$CONFIG_STATUS <<_ACEOF 17097# 17098# INIT-COMMANDS section. 17099# 17100 17101subdirs='$subdirs' 17102 17103_ACEOF 17104 17105 17106 17107cat >>$CONFIG_STATUS <<\_ACEOF 17108for ac_config_target in $ac_config_targets 17109do 17110 case "$ac_config_target" in 17111 # Handling of arguments. 17112 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;; 17113 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 17114 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;; 17115 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 17116echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 17117 { (exit 1); exit 1; }; };; 17118 esac 17119done 17120 17121# If the user did not use the arguments to specify the items to instantiate, 17122# then the envvar interface is used. Set only those that are not. 17123# We use the long form for the default assignment because of an extremely 17124# bizarre bug on SunOS 4.1.3. 17125if $ac_need_defaults; then 17126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17128 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17129fi 17130 17131# Have a temporary directory for convenience. Make it in the build tree 17132# simply because there is no reason to put it here, and in addition, 17133# creating and moving files from /tmp can sometimes cause problems. 17134# Create a temporary directory, and hook for its removal unless debugging. 17135$debug || 17136{ 17137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 17138 trap '{ (exit 1); exit 1; }' 1 2 13 15 17139} 17140 17141# Create a (secure) tmp directory for tmp files. 17142 17143{ 17144 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 17145 test -n "$tmp" && test -d "$tmp" 17146} || 17147{ 17148 tmp=./confstat$$-$RANDOM 17149 (umask 077 && mkdir $tmp) 17150} || 17151{ 17152 echo "$me: cannot create a temporary directory in ." >&2 17153 { (exit 1); exit 1; } 17154} 17155 17156_ACEOF 17157 17158cat >>$CONFIG_STATUS <<_ACEOF 17159 17160# 17161# CONFIG_FILES section. 17162# 17163 17164# No need to generate the scripts if there are no CONFIG_FILES. 17165# This happens for instance when ./config.status config.h 17166if test -n "\$CONFIG_FILES"; then 17167 # Protect against being on the right side of a sed subst in config.status. 17168 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 17169 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 17170s,@SHELL@,$SHELL,;t t 17171s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 17172s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 17173s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 17174s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 17175s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 17176s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 17177s,@exec_prefix@,$exec_prefix,;t t 17178s,@prefix@,$prefix,;t t 17179s,@program_transform_name@,$program_transform_name,;t t 17180s,@bindir@,$bindir,;t t 17181s,@sbindir@,$sbindir,;t t 17182s,@libexecdir@,$libexecdir,;t t 17183s,@datadir@,$datadir,;t t 17184s,@sysconfdir@,$sysconfdir,;t t 17185s,@sharedstatedir@,$sharedstatedir,;t t 17186s,@localstatedir@,$localstatedir,;t t 17187s,@libdir@,$libdir,;t t 17188s,@includedir@,$includedir,;t t 17189s,@oldincludedir@,$oldincludedir,;t t 17190s,@infodir@,$infodir,;t t 17191s,@mandir@,$mandir,;t t 17192s,@build_alias@,$build_alias,;t t 17193s,@host_alias@,$host_alias,;t t 17194s,@target_alias@,$target_alias,;t t 17195s,@DEFS@,$DEFS,;t t 17196s,@ECHO_C@,$ECHO_C,;t t 17197s,@ECHO_N@,$ECHO_N,;t t 17198s,@ECHO_T@,$ECHO_T,;t t 17199s,@LIBS@,$LIBS,;t t 17200s,@build@,$build,;t t 17201s,@build_cpu@,$build_cpu,;t t 17202s,@build_vendor@,$build_vendor,;t t 17203s,@build_os@,$build_os,;t t 17204s,@host@,$host,;t t 17205s,@host_cpu@,$host_cpu,;t t 17206s,@host_vendor@,$host_vendor,;t t 17207s,@host_os@,$host_os,;t t 17208s,@target@,$target,;t t 17209s,@target_cpu@,$target_cpu,;t t 17210s,@target_vendor@,$target_vendor,;t t 17211s,@target_os@,$target_os,;t t 17212s,@target_noncanonical@,$target_noncanonical,;t t 17213s,@build_subdir@,$build_subdir,;t t 17214s,@host_subdir@,$host_subdir,;t t 17215s,@target_subdir@,$target_subdir,;t t 17216s,@GENINSRC@,$GENINSRC,;t t 17217s,@CC@,$CC,;t t 17218s,@CFLAGS@,$CFLAGS,;t t 17219s,@LDFLAGS@,$LDFLAGS,;t t 17220s,@CPPFLAGS@,$CPPFLAGS,;t t 17221s,@ac_ct_CC@,$ac_ct_CC,;t t 17222s,@EXEEXT@,$EXEEXT,;t t 17223s,@OBJEXT@,$OBJEXT,;t t 17224s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t 17225s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t 17226s,@CPP@,$CPP,;t t 17227s,@EGREP@,$EGREP,;t t 17228s,@strict1_warn@,$strict1_warn,;t t 17229s,@warn_cflags@,$warn_cflags,;t t 17230s,@WERROR@,$WERROR,;t t 17231s,@nocommon_flag@,$nocommon_flag,;t t 17232s,@TREEBROWSER@,$TREEBROWSER,;t t 17233s,@valgrind_path@,$valgrind_path,;t t 17234s,@valgrind_path_defines@,$valgrind_path_defines,;t t 17235s,@valgrind_command@,$valgrind_command,;t t 17236s,@coverage_flags@,$coverage_flags,;t t 17237s,@enable_multilib@,$enable_multilib,;t t 17238s,@enable_shared@,$enable_shared,;t t 17239s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t 17240s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t 17241s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t 17242s,@onestep@,$onestep,;t t 17243s,@SET_MAKE@,$SET_MAKE,;t t 17244s,@AWK@,$AWK,;t t 17245s,@LN_S@,$LN_S,;t t 17246s,@LN@,$LN,;t t 17247s,@RANLIB@,$RANLIB,;t t 17248s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 17249s,@ranlib_flags@,$ranlib_flags,;t t 17250s,@INSTALL@,$INSTALL,;t t 17251s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 17252s,@INSTALL_DATA@,$INSTALL_DATA,;t t 17253s,@make_compare_target@,$make_compare_target,;t t 17254s,@have_mktemp_command@,$have_mktemp_command,;t t 17255s,@MAKEINFO@,$MAKEINFO,;t t 17256s,@BUILD_INFO@,$BUILD_INFO,;t t 17257s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t 17258s,@FLEX@,$FLEX,;t t 17259s,@BISON@,$BISON,;t t 17260s,@NM@,$NM,;t t 17261s,@AR@,$AR,;t t 17262s,@stage1_cflags@,$stage1_cflags,;t t 17263s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t 17264s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t 17265s,@LDEXP_LIB@,$LDEXP_LIB,;t t 17266s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t 17267s,@LIBICONV@,$LIBICONV,;t t 17268s,@LTLIBICONV@,$LTLIBICONV,;t t 17269s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t 17270s,@manext@,$manext,;t t 17271s,@objext@,$objext,;t t 17272s,@gthread_flags@,$gthread_flags,;t t 17273s,@extra_modes_file@,$extra_modes_file,;t t 17274s,@extra_opt_files@,$extra_opt_files,;t t 17275s,@USE_NLS@,$USE_NLS,;t t 17276s,@LIBINTL@,$LIBINTL,;t t 17277s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t 17278s,@INCINTL@,$INCINTL,;t t 17279s,@XGETTEXT@,$XGETTEXT,;t t 17280s,@GMSGFMT@,$GMSGFMT,;t t 17281s,@POSUB@,$POSUB,;t t 17282s,@CATALOGS@,$CATALOGS,;t t 17283s,@host_cc_for_libada@,$host_cc_for_libada,;t t 17284s,@CROSS@,$CROSS,;t t 17285s,@ALL@,$ALL,;t t 17286s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t 17287s,@inhibit_libc@,$inhibit_libc,;t t 17288s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t 17289s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t 17290s,@STMP_FIXINC@,$STMP_FIXINC,;t t 17291s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t 17292s,@collect2@,$collect2,;t t 17293s,@gcc_cv_as@,$gcc_cv_as,;t t 17294s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t 17295s,@gcc_cv_ld@,$gcc_cv_ld,;t t 17296s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t 17297s,@gcc_cv_nm@,$gcc_cv_nm,;t t 17298s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t 17299s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t 17300s,@ORIGINAL_OBJDUMP_FOR_TARGET@,$ORIGINAL_OBJDUMP_FOR_TARGET,;t t 17301s,@libgcc_visibility@,$libgcc_visibility,;t t 17302s,@GGC@,$GGC,;t t 17303s,@zlibdir@,$zlibdir,;t t 17304s,@zlibinc@,$zlibinc,;t t 17305s,@MAINT@,$MAINT,;t t 17306s,@gcc_tooldir@,$gcc_tooldir,;t t 17307s,@dollar@,$dollar,;t t 17308s,@slibdir@,$slibdir,;t t 17309s,@objdir@,$objdir,;t t 17310s,@subdirs@,$subdirs,;t t 17311s,@srcdir@,$srcdir,;t t 17312s,@all_boot_languages@,$all_boot_languages,;t t 17313s,@all_compilers@,$all_compilers,;t t 17314s,@all_gtfiles@,$all_gtfiles,;t t 17315s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t 17316s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t 17317s,@all_lang_makefrags@,$all_lang_makefrags,;t t 17318s,@all_lang_makefiles@,$all_lang_makefiles,;t t 17319s,@all_languages@,$all_languages,;t t 17320s,@all_stagestuff@,$all_stagestuff,;t t 17321s,@build_exeext@,$build_exeext,;t t 17322s,@build_install_headers_dir@,$build_install_headers_dir,;t t 17323s,@build_xm_file_list@,$build_xm_file_list,;t t 17324s,@build_xm_include_list@,$build_xm_include_list,;t t 17325s,@build_xm_defines@,$build_xm_defines,;t t 17326s,@check_languages@,$check_languages,;t t 17327s,@cc_set_by_configure@,$cc_set_by_configure,;t t 17328s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t 17329s,@cpp_install_dir@,$cpp_install_dir,;t t 17330s,@xmake_file@,$xmake_file,;t t 17331s,@tmake_file@,$tmake_file,;t t 17332s,@extra_gcc_objs@,$extra_gcc_objs,;t t 17333s,@extra_headers_list@,$extra_headers_list,;t t 17334s,@extra_objs@,$extra_objs,;t t 17335s,@extra_parts@,$extra_parts,;t t 17336s,@extra_passes@,$extra_passes,;t t 17337s,@extra_programs@,$extra_programs,;t t 17338s,@float_h_file@,$float_h_file,;t t 17339s,@gcc_config_arguments@,$gcc_config_arguments,;t t 17340s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t 17341s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t 17342s,@host_exeext@,$host_exeext,;t t 17343s,@host_xm_file_list@,$host_xm_file_list,;t t 17344s,@host_xm_include_list@,$host_xm_include_list,;t t 17345s,@host_xm_defines@,$host_xm_defines,;t t 17346s,@out_host_hook_obj@,$out_host_hook_obj,;t t 17347s,@install@,$install,;t t 17348s,@lang_opt_files@,$lang_opt_files,;t t 17349s,@lang_specs_files@,$lang_specs_files,;t t 17350s,@lang_tree_files@,$lang_tree_files,;t t 17351s,@local_prefix@,$local_prefix,;t t 17352s,@md_file@,$md_file,;t t 17353s,@objc_boehm_gc@,$objc_boehm_gc,;t t 17354s,@out_file@,$out_file,;t t 17355s,@out_object_file@,$out_object_file,;t t 17356s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t 17357s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t 17358s,@thread_file@,$thread_file,;t t 17359s,@tm_file_list@,$tm_file_list,;t t 17360s,@tm_include_list@,$tm_include_list,;t t 17361s,@tm_defines@,$tm_defines,;t t 17362s,@tm_p_file_list@,$tm_p_file_list,;t t 17363s,@tm_p_include_list@,$tm_p_include_list,;t t 17364s,@xm_file_list@,$xm_file_list,;t t 17365s,@xm_include_list@,$xm_include_list,;t t 17366s,@xm_defines@,$xm_defines,;t t 17367s,@c_target_objs@,$c_target_objs,;t t 17368s,@cxx_target_objs@,$cxx_target_objs,;t t 17369s,@target_cpu_default@,$target_cpu_default,;t t 17370s,@GMPLIBS@,$GMPLIBS,;t t 17371s,@GMPINC@,$GMPINC,;t t 17372s,@LIBOBJS@,$LIBOBJS,;t t 17373s,@LTLIBOBJS@,$LTLIBOBJS,;t t 17374/@language_hooks@/r $language_hooks 17375s,@language_hooks@,,;t t 17376CEOF 17377 17378_ACEOF 17379 17380 cat >>$CONFIG_STATUS <<\_ACEOF 17381 # Split the substitutions into bite-sized pieces for seds with 17382 # small command number limits, like on Digital OSF/1 and HP-UX. 17383 ac_max_sed_lines=48 17384 ac_sed_frag=1 # Number of current file. 17385 ac_beg=1 # First line for current file. 17386 ac_end=$ac_max_sed_lines # Line after last line for current file. 17387 ac_more_lines=: 17388 ac_sed_cmds= 17389 while $ac_more_lines; do 17390 if test $ac_beg -gt 1; then 17391 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 17392 else 17393 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 17394 fi 17395 if test ! -s $tmp/subs.frag; then 17396 ac_more_lines=false 17397 else 17398 # The purpose of the label and of the branching condition is to 17399 # speed up the sed processing (if there are no `@' at all, there 17400 # is no need to browse any of the substitutions). 17401 # These are the two extra sed commands mentioned above. 17402 (echo ':t 17403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 17404 if test -z "$ac_sed_cmds"; then 17405 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 17406 else 17407 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 17408 fi 17409 ac_sed_frag=`expr $ac_sed_frag + 1` 17410 ac_beg=$ac_end 17411 ac_end=`expr $ac_end + $ac_max_sed_lines` 17412 fi 17413 done 17414 if test -z "$ac_sed_cmds"; then 17415 ac_sed_cmds=cat 17416 fi 17417fi # test -n "$CONFIG_FILES" 17418 17419_ACEOF 17420cat >>$CONFIG_STATUS <<\_ACEOF 17421for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 17422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17423 case $ac_file in 17424 - | *:- | *:-:* ) # input from stdin 17425 cat >$tmp/stdin 17426 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 17427 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 17428 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 17429 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 17430 * ) ac_file_in=$ac_file.in ;; 17431 esac 17432 17433 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 17434 ac_dir=`(dirname "$ac_file") 2>/dev/null || 17435$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17436 X"$ac_file" : 'X\(//\)[^/]' \| \ 17437 X"$ac_file" : 'X\(//\)$' \| \ 17438 X"$ac_file" : 'X\(/\)' \| \ 17439 . : '\(.\)' 2>/dev/null || 17440echo X"$ac_file" | 17441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17442 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17443 /^X\(\/\/\)$/{ s//\1/; q; } 17444 /^X\(\/\).*/{ s//\1/; q; } 17445 s/.*/./; q'` 17446 { if $as_mkdir_p; then 17447 mkdir -p "$ac_dir" 17448 else 17449 as_dir="$ac_dir" 17450 as_dirs= 17451 while test ! -d "$as_dir"; do 17452 as_dirs="$as_dir $as_dirs" 17453 as_dir=`(dirname "$as_dir") 2>/dev/null || 17454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17455 X"$as_dir" : 'X\(//\)[^/]' \| \ 17456 X"$as_dir" : 'X\(//\)$' \| \ 17457 X"$as_dir" : 'X\(/\)' \| \ 17458 . : '\(.\)' 2>/dev/null || 17459echo X"$as_dir" | 17460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17461 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17462 /^X\(\/\/\)$/{ s//\1/; q; } 17463 /^X\(\/\).*/{ s//\1/; q; } 17464 s/.*/./; q'` 17465 done 17466 test ! -n "$as_dirs" || mkdir $as_dirs 17467 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 17468echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 17469 { (exit 1); exit 1; }; }; } 17470 17471 ac_builddir=. 17472 17473if test "$ac_dir" != .; then 17474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 17475 # A "../" for each directory in $ac_dir_suffix. 17476 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 17477else 17478 ac_dir_suffix= ac_top_builddir= 17479fi 17480 17481case $srcdir in 17482 .) # No --srcdir option. We are building in place. 17483 ac_srcdir=. 17484 if test -z "$ac_top_builddir"; then 17485 ac_top_srcdir=. 17486 else 17487 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 17488 fi ;; 17489 [\\/]* | ?:[\\/]* ) # Absolute path. 17490 ac_srcdir=$srcdir$ac_dir_suffix; 17491 ac_top_srcdir=$srcdir ;; 17492 *) # Relative path. 17493 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 17494 ac_top_srcdir=$ac_top_builddir$srcdir ;; 17495esac 17496 17497# Do not use `cd foo && pwd` to compute absolute paths, because 17498# the directories may not exist. 17499case `pwd` in 17500.) ac_abs_builddir="$ac_dir";; 17501*) 17502 case "$ac_dir" in 17503 .) ac_abs_builddir=`pwd`;; 17504 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 17505 *) ac_abs_builddir=`pwd`/"$ac_dir";; 17506 esac;; 17507esac 17508case $ac_abs_builddir in 17509.) ac_abs_top_builddir=${ac_top_builddir}.;; 17510*) 17511 case ${ac_top_builddir}. in 17512 .) ac_abs_top_builddir=$ac_abs_builddir;; 17513 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 17514 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 17515 esac;; 17516esac 17517case $ac_abs_builddir in 17518.) ac_abs_srcdir=$ac_srcdir;; 17519*) 17520 case $ac_srcdir in 17521 .) ac_abs_srcdir=$ac_abs_builddir;; 17522 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 17523 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 17524 esac;; 17525esac 17526case $ac_abs_builddir in 17527.) ac_abs_top_srcdir=$ac_top_srcdir;; 17528*) 17529 case $ac_top_srcdir in 17530 .) ac_abs_top_srcdir=$ac_abs_builddir;; 17531 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 17532 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 17533 esac;; 17534esac 17535 17536 17537 17538 if test x"$ac_file" != x-; then 17539 { echo "$as_me:$LINENO: creating $ac_file" >&5 17540echo "$as_me: creating $ac_file" >&6;} 17541 rm -f "$ac_file" 17542 fi 17543 # Let's still pretend it is `configure' which instantiates (i.e., don't 17544 # use $as_me), people would be surprised to read: 17545 # /* config.h. Generated by config.status. */ 17546 if test x"$ac_file" = x-; then 17547 configure_input= 17548 else 17549 configure_input="$ac_file. " 17550 fi 17551 configure_input=$configure_input"Generated from `echo $ac_file_in | 17552 sed 's,.*/,,'` by configure." 17553 17554 # First look for the input files in the build tree, otherwise in the 17555 # src tree. 17556 ac_file_inputs=`IFS=: 17557 for f in $ac_file_in; do 17558 case $f in 17559 -) echo $tmp/stdin ;; 17560 [\\/$]*) 17561 # Absolute (can't be DOS-style, as IFS=:) 17562 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 17563echo "$as_me: error: cannot find input file: $f" >&2;} 17564 { (exit 1); exit 1; }; } 17565 echo "$f";; 17566 *) # Relative 17567 if test -f "$f"; then 17568 # Build tree 17569 echo "$f" 17570 elif test -f "$srcdir/$f"; then 17571 # Source tree 17572 echo "$srcdir/$f" 17573 else 17574 # /dev/null tree 17575 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 17576echo "$as_me: error: cannot find input file: $f" >&2;} 17577 { (exit 1); exit 1; }; } 17578 fi;; 17579 esac 17580 done` || { (exit 1); exit 1; } 17581_ACEOF 17582cat >>$CONFIG_STATUS <<_ACEOF 17583 sed "$ac_vpsub 17584$extrasub 17585_ACEOF 17586cat >>$CONFIG_STATUS <<\_ACEOF 17587:t 17588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17589s,@configure_input@,$configure_input,;t t 17590s,@srcdir@,$ac_srcdir,;t t 17591s,@abs_srcdir@,$ac_abs_srcdir,;t t 17592s,@top_srcdir@,$ac_top_srcdir,;t t 17593s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 17594s,@builddir@,$ac_builddir,;t t 17595s,@abs_builddir@,$ac_abs_builddir,;t t 17596s,@top_builddir@,$ac_top_builddir,;t t 17597s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 17598" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 17599 rm -f $tmp/stdin 17600 if test x"$ac_file" != x-; then 17601 mv $tmp/out $ac_file 17602 else 17603 cat $tmp/out 17604 rm -f $tmp/out 17605 fi 17606 17607done 17608_ACEOF 17609cat >>$CONFIG_STATUS <<\_ACEOF 17610 17611# 17612# CONFIG_HEADER section. 17613# 17614 17615# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17616# NAME is the cpp macro being defined and VALUE is the value it is being given. 17617# 17618# ac_d sets the value in "#define NAME VALUE" lines. 17619ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17620ac_dB='[ ].*$,\1#\2' 17621ac_dC=' ' 17622ac_dD=',;t' 17623# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 17624ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17625ac_uB='$,\1#\2define\3' 17626ac_uC=' ' 17627ac_uD=',;t' 17628 17629for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 17630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17631 case $ac_file in 17632 - | *:- | *:-:* ) # input from stdin 17633 cat >$tmp/stdin 17634 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 17635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 17636 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 17637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 17638 * ) ac_file_in=$ac_file.in ;; 17639 esac 17640 17641 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 17642echo "$as_me: creating $ac_file" >&6;} 17643 17644 # First look for the input files in the build tree, otherwise in the 17645 # src tree. 17646 ac_file_inputs=`IFS=: 17647 for f in $ac_file_in; do 17648 case $f in 17649 -) echo $tmp/stdin ;; 17650 [\\/$]*) 17651 # Absolute (can't be DOS-style, as IFS=:) 17652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 17653echo "$as_me: error: cannot find input file: $f" >&2;} 17654 { (exit 1); exit 1; }; } 17655 # Do quote $f, to prevent DOS paths from being IFS'd. 17656 echo "$f";; 17657 *) # Relative 17658 if test -f "$f"; then 17659 # Build tree 17660 echo "$f" 17661 elif test -f "$srcdir/$f"; then 17662 # Source tree 17663 echo "$srcdir/$f" 17664 else 17665 # /dev/null tree 17666 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 17667echo "$as_me: error: cannot find input file: $f" >&2;} 17668 { (exit 1); exit 1; }; } 17669 fi;; 17670 esac 17671 done` || { (exit 1); exit 1; } 17672 # Remove the trailing spaces. 17673 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 17674 17675_ACEOF 17676 17677# Transform confdefs.h into two sed scripts, `conftest.defines' and 17678# `conftest.undefs', that substitutes the proper values into 17679# config.h.in to produce config.h. The first handles `#define' 17680# templates, and the second `#undef' templates. 17681# And first: Protect against being on the right side of a sed subst in 17682# config.status. Protect against being in an unquoted here document 17683# in config.status. 17684rm -f conftest.defines conftest.undefs 17685# Using a here document instead of a string reduces the quoting nightmare. 17686# Putting comments in sed scripts is not portable. 17687# 17688# `end' is used to avoid that the second main sed command (meant for 17689# 0-ary CPP macros) applies to n-ary macro definitions. 17690# See the Autoconf documentation for `clear'. 17691cat >confdef2sed.sed <<\_ACEOF 17692s/[\\&,]/\\&/g 17693s,[\\$`],\\&,g 17694t clear 17695: clear 17696s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 17697t end 17698s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 17699: end 17700_ACEOF 17701# If some macros were called several times there might be several times 17702# the same #defines, which is useless. Nevertheless, we may not want to 17703# sort them, since we want the *last* AC-DEFINE to be honored. 17704uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 17705sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 17706rm -f confdef2sed.sed 17707 17708# This sed command replaces #undef with comments. This is necessary, for 17709# example, in the case of _POSIX_SOURCE, which is predefined and required 17710# on some systems where configure will not decide to define it. 17711cat >>conftest.undefs <<\_ACEOF 17712s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 17713_ACEOF 17714 17715# Break up conftest.defines because some shells have a limit on the size 17716# of here documents, and old seds have small limits too (100 cmds). 17717echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 17718echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 17719echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 17720echo ' :' >>$CONFIG_STATUS 17721rm -f conftest.tail 17722while grep . conftest.defines >/dev/null 17723do 17724 # Write a limited-size here document to $tmp/defines.sed. 17725 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 17726 # Speed up: don't consider the non `#define' lines. 17727 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 17728 # Work around the forget-to-reset-the-flag bug. 17729 echo 't clr' >>$CONFIG_STATUS 17730 echo ': clr' >>$CONFIG_STATUS 17731 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 17732 echo 'CEOF 17733 sed -f $tmp/defines.sed $tmp/in >$tmp/out 17734 rm -f $tmp/in 17735 mv $tmp/out $tmp/in 17736' >>$CONFIG_STATUS 17737 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 17738 rm -f conftest.defines 17739 mv conftest.tail conftest.defines 17740done 17741rm -f conftest.defines 17742echo ' fi # grep' >>$CONFIG_STATUS 17743echo >>$CONFIG_STATUS 17744 17745# Break up conftest.undefs because some shells have a limit on the size 17746# of here documents, and old seds have small limits too (100 cmds). 17747echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 17748rm -f conftest.tail 17749while grep . conftest.undefs >/dev/null 17750do 17751 # Write a limited-size here document to $tmp/undefs.sed. 17752 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 17753 # Speed up: don't consider the non `#undef' 17754 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 17755 # Work around the forget-to-reset-the-flag bug. 17756 echo 't clr' >>$CONFIG_STATUS 17757 echo ': clr' >>$CONFIG_STATUS 17758 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 17759 echo 'CEOF 17760 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 17761 rm -f $tmp/in 17762 mv $tmp/out $tmp/in 17763' >>$CONFIG_STATUS 17764 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 17765 rm -f conftest.undefs 17766 mv conftest.tail conftest.undefs 17767done 17768rm -f conftest.undefs 17769 17770cat >>$CONFIG_STATUS <<\_ACEOF 17771 # Let's still pretend it is `configure' which instantiates (i.e., don't 17772 # use $as_me), people would be surprised to read: 17773 # /* config.h. Generated by config.status. */ 17774 if test x"$ac_file" = x-; then 17775 echo "/* Generated by configure. */" >$tmp/config.h 17776 else 17777 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 17778 fi 17779 cat $tmp/in >>$tmp/config.h 17780 rm -f $tmp/in 17781 if test x"$ac_file" != x-; then 17782 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 17783 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 17784echo "$as_me: $ac_file is unchanged" >&6;} 17785 else 17786 ac_dir=`(dirname "$ac_file") 2>/dev/null || 17787$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17788 X"$ac_file" : 'X\(//\)[^/]' \| \ 17789 X"$ac_file" : 'X\(//\)$' \| \ 17790 X"$ac_file" : 'X\(/\)' \| \ 17791 . : '\(.\)' 2>/dev/null || 17792echo X"$ac_file" | 17793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17794 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17795 /^X\(\/\/\)$/{ s//\1/; q; } 17796 /^X\(\/\).*/{ s//\1/; q; } 17797 s/.*/./; q'` 17798 { if $as_mkdir_p; then 17799 mkdir -p "$ac_dir" 17800 else 17801 as_dir="$ac_dir" 17802 as_dirs= 17803 while test ! -d "$as_dir"; do 17804 as_dirs="$as_dir $as_dirs" 17805 as_dir=`(dirname "$as_dir") 2>/dev/null || 17806$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17807 X"$as_dir" : 'X\(//\)[^/]' \| \ 17808 X"$as_dir" : 'X\(//\)$' \| \ 17809 X"$as_dir" : 'X\(/\)' \| \ 17810 . : '\(.\)' 2>/dev/null || 17811echo X"$as_dir" | 17812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17813 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17814 /^X\(\/\/\)$/{ s//\1/; q; } 17815 /^X\(\/\).*/{ s//\1/; q; } 17816 s/.*/./; q'` 17817 done 17818 test ! -n "$as_dirs" || mkdir $as_dirs 17819 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 17820echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 17821 { (exit 1); exit 1; }; }; } 17822 17823 rm -f $ac_file 17824 mv $tmp/config.h $ac_file 17825 fi 17826 else 17827 cat $tmp/config.h 17828 rm -f $tmp/config.h 17829 fi 17830done 17831_ACEOF 17832cat >>$CONFIG_STATUS <<\_ACEOF 17833 17834# 17835# CONFIG_COMMANDS section. 17836# 17837for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 17838 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 17839 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 17840 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 17841$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17842 X"$ac_dest" : 'X\(//\)[^/]' \| \ 17843 X"$ac_dest" : 'X\(//\)$' \| \ 17844 X"$ac_dest" : 'X\(/\)' \| \ 17845 . : '\(.\)' 2>/dev/null || 17846echo X"$ac_dest" | 17847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17848 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17849 /^X\(\/\/\)$/{ s//\1/; q; } 17850 /^X\(\/\).*/{ s//\1/; q; } 17851 s/.*/./; q'` 17852 { if $as_mkdir_p; then 17853 mkdir -p "$ac_dir" 17854 else 17855 as_dir="$ac_dir" 17856 as_dirs= 17857 while test ! -d "$as_dir"; do 17858 as_dirs="$as_dir $as_dirs" 17859 as_dir=`(dirname "$as_dir") 2>/dev/null || 17860$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17861 X"$as_dir" : 'X\(//\)[^/]' \| \ 17862 X"$as_dir" : 'X\(//\)$' \| \ 17863 X"$as_dir" : 'X\(/\)' \| \ 17864 . : '\(.\)' 2>/dev/null || 17865echo X"$as_dir" | 17866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17867 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17868 /^X\(\/\/\)$/{ s//\1/; q; } 17869 /^X\(\/\).*/{ s//\1/; q; } 17870 s/.*/./; q'` 17871 done 17872 test ! -n "$as_dirs" || mkdir $as_dirs 17873 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 17874echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 17875 { (exit 1); exit 1; }; }; } 17876 17877 ac_builddir=. 17878 17879if test "$ac_dir" != .; then 17880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 17881 # A "../" for each directory in $ac_dir_suffix. 17882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 17883else 17884 ac_dir_suffix= ac_top_builddir= 17885fi 17886 17887case $srcdir in 17888 .) # No --srcdir option. We are building in place. 17889 ac_srcdir=. 17890 if test -z "$ac_top_builddir"; then 17891 ac_top_srcdir=. 17892 else 17893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 17894 fi ;; 17895 [\\/]* | ?:[\\/]* ) # Absolute path. 17896 ac_srcdir=$srcdir$ac_dir_suffix; 17897 ac_top_srcdir=$srcdir ;; 17898 *) # Relative path. 17899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 17900 ac_top_srcdir=$ac_top_builddir$srcdir ;; 17901esac 17902 17903# Do not use `cd foo && pwd` to compute absolute paths, because 17904# the directories may not exist. 17905case `pwd` in 17906.) ac_abs_builddir="$ac_dir";; 17907*) 17908 case "$ac_dir" in 17909 .) ac_abs_builddir=`pwd`;; 17910 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 17911 *) ac_abs_builddir=`pwd`/"$ac_dir";; 17912 esac;; 17913esac 17914case $ac_abs_builddir in 17915.) ac_abs_top_builddir=${ac_top_builddir}.;; 17916*) 17917 case ${ac_top_builddir}. in 17918 .) ac_abs_top_builddir=$ac_abs_builddir;; 17919 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 17920 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 17921 esac;; 17922esac 17923case $ac_abs_builddir in 17924.) ac_abs_srcdir=$ac_srcdir;; 17925*) 17926 case $ac_srcdir in 17927 .) ac_abs_srcdir=$ac_abs_builddir;; 17928 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 17929 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 17930 esac;; 17931esac 17932case $ac_abs_builddir in 17933.) ac_abs_top_srcdir=$ac_top_srcdir;; 17934*) 17935 case $ac_top_srcdir in 17936 .) ac_abs_top_srcdir=$ac_abs_builddir;; 17937 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 17938 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 17939 esac;; 17940esac 17941 17942 17943 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 17944echo "$as_me: executing $ac_dest commands" >&6;} 17945 case $ac_dest in 17946 default ) 17947case ${CONFIG_HEADERS} in 17948 *auto-host.h:config.in*) 17949 echo > cstamp-h ;; 17950esac 17951# Make sure all the subdirs exist. 17952for d in $subdirs doc build 17953do 17954 test -d $d || mkdir $d 17955done 17956# If the host supports symlinks, point stage[1234] at ../stage[1234] so 17957# bootstrapping and the installation procedure can still use 17958# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, 17959# FLAGS_TO_PASS has been modified to solve the problem there. 17960# This is virtually a duplicate of what happens in configure.lang; we do 17961# an extra check to make sure this only happens if ln -s can be used. 17962case "$LN_S" in 17963 *-s*) 17964 for d in ${subdirs} ; do 17965 STARTDIR=`${PWDCMD-pwd}` 17966 cd $d 17967 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include 17968 do 17969 rm -f $t 17970 $LN_S ../$t $t 2>/dev/null 17971 done 17972 cd $STARTDIR 17973 done 17974 ;; 17975esac 17976 ;; 17977 esac 17978done 17979_ACEOF 17980 17981cat >>$CONFIG_STATUS <<\_ACEOF 17982 17983{ (exit 0); exit 0; } 17984_ACEOF 17985chmod +x $CONFIG_STATUS 17986ac_clean_files=$ac_clean_files_save 17987 17988 17989# configure is writing to config.log, and then calls config.status. 17990# config.status does its own redirection, appending to config.log. 17991# Unfortunately, on DOS this fails, as config.log is still kept open 17992# by configure, so config.status won't be able to write to it; its 17993# output is simply discarded. So we exec the FD to /dev/null, 17994# effectively closing config.log, so it can be properly (re)opened and 17995# appended to by config.status. When coming back to configure, we 17996# need to make the FD available again. 17997if test "$no_create" != yes; then 17998 ac_cs_success=: 17999 ac_config_status_args= 18000 test "$silent" = yes && 18001 ac_config_status_args="$ac_config_status_args --quiet" 18002 exec 5>/dev/null 18003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18004 exec 5>>config.log 18005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18006 # would make configure fail if this is the last instruction. 18007 $ac_cs_success || { (exit 1); exit 1; } 18008fi 18009 18010