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="libbfd.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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS' 313ac_subst_files='' 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 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834Program names: 835 --program-prefix=PREFIX prepend PREFIX to installed program names 836 --program-suffix=SUFFIX append SUFFIX to installed program names 837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 838 839System types: 840 --build=BUILD configure for building on BUILD [guessed] 841 --host=HOST cross-compile to build programs to run on HOST [BUILD] 842 --target=TARGET configure for building compilers for TARGET [HOST] 843_ACEOF 844fi 845 846if test -n "$ac_init_help"; then 847 848 cat <<\_ACEOF 849 850Optional Features: 851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 853 --disable-dependency-tracking speeds up one-time build 854 --enable-dependency-tracking do not reject slow dependency extractors 855 --enable-shared=PKGS build shared libraries default=no 856 --enable-static=PKGS build static libraries default=yes 857 --enable-fast-install=PKGS optimize for fast installation default=yes 858 --disable-libtool-lock avoid locking (might break parallel builds) 859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 860 --enable-targets alternative target configurations 861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library 862 --enable-secureplt Default to creating read-only plt entries 863 --enable-werror treat compile warnings as errors 864 --enable-build-warnings Enable build-time compiler warnings 865 --enable-maintainer-mode enable make rules and dependencies not useful 866 (and sometimes confusing) to the casual installer 867 --enable-install-libbfd controls installation of libbfd and related headers 868 --disable-nls do not use Native Language Support 869 870Optional Packages: 871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 873 --with-gnu-ld assume the C compiler uses GNU ld default=no 874 --with-pic try to use only PIC/non-PIC objects default=use both 875 --with-mmap try using mmap for BFD input files if available 876 --with-included-gettext use the GNU gettext library included here 877 878Some influential environment variables: 879 CC C compiler command 880 CFLAGS C compiler flags 881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 882 nonstandard directory <lib dir> 883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 884 headers in a nonstandard directory <include dir> 885 CPP C preprocessor 886 887Use these variables to override the choices made by `configure' or to help 888it to find libraries and programs with nonstandard names/locations. 889 890_ACEOF 891fi 892 893if test "$ac_init_help" = "recursive"; then 894 # If there are subdirs, report their specific --help. 895 ac_popdir=`pwd` 896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 897 test -d $ac_dir || continue 898 ac_builddir=. 899 900if test "$ac_dir" != .; then 901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 902 # A "../" for each directory in $ac_dir_suffix. 903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 904else 905 ac_dir_suffix= ac_top_builddir= 906fi 907 908case $srcdir in 909 .) # No --srcdir option. We are building in place. 910 ac_srcdir=. 911 if test -z "$ac_top_builddir"; then 912 ac_top_srcdir=. 913 else 914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 915 fi ;; 916 [\\/]* | ?:[\\/]* ) # Absolute path. 917 ac_srcdir=$srcdir$ac_dir_suffix; 918 ac_top_srcdir=$srcdir ;; 919 *) # Relative path. 920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 921 ac_top_srcdir=$ac_top_builddir$srcdir ;; 922esac 923 924# Do not use `cd foo && pwd` to compute absolute paths, because 925# the directories may not exist. 926case `pwd` in 927.) ac_abs_builddir="$ac_dir";; 928*) 929 case "$ac_dir" in 930 .) ac_abs_builddir=`pwd`;; 931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 932 *) ac_abs_builddir=`pwd`/"$ac_dir";; 933 esac;; 934esac 935case $ac_abs_builddir in 936.) ac_abs_top_builddir=${ac_top_builddir}.;; 937*) 938 case ${ac_top_builddir}. in 939 .) ac_abs_top_builddir=$ac_abs_builddir;; 940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 942 esac;; 943esac 944case $ac_abs_builddir in 945.) ac_abs_srcdir=$ac_srcdir;; 946*) 947 case $ac_srcdir in 948 .) ac_abs_srcdir=$ac_abs_builddir;; 949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 951 esac;; 952esac 953case $ac_abs_builddir in 954.) ac_abs_top_srcdir=$ac_top_srcdir;; 955*) 956 case $ac_top_srcdir in 957 .) ac_abs_top_srcdir=$ac_abs_builddir;; 958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 960 esac;; 961esac 962 963 cd $ac_dir 964 # Check for guested configure; otherwise get Cygnus style configure. 965 if test -f $ac_srcdir/configure.gnu; then 966 echo 967 $SHELL $ac_srcdir/configure.gnu --help=recursive 968 elif test -f $ac_srcdir/configure; then 969 echo 970 $SHELL $ac_srcdir/configure --help=recursive 971 elif test -f $ac_srcdir/configure.ac || 972 test -f $ac_srcdir/configure.in; then 973 echo 974 $ac_configure --help 975 else 976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 977 fi 978 cd $ac_popdir 979 done 980fi 981 982test -n "$ac_init_help" && exit 0 983if $ac_init_version; then 984 cat <<\_ACEOF 985 986Copyright (C) 2003 Free Software Foundation, Inc. 987This configure script is free software; the Free Software Foundation 988gives unlimited permission to copy, distribute and modify it. 989_ACEOF 990 exit 0 991fi 992exec 5>config.log 993cat >&5 <<_ACEOF 994This file contains any messages produced by compilers while 995running configure, to aid debugging if configure makes a mistake. 996 997It was created by $as_me, which was 998generated by GNU Autoconf 2.59. Invocation command line was 999 1000 $ $0 $@ 1001 1002_ACEOF 1003{ 1004cat <<_ASUNAME 1005## --------- ## 1006## Platform. ## 1007## --------- ## 1008 1009hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1010uname -m = `(uname -m) 2>/dev/null || echo unknown` 1011uname -r = `(uname -r) 2>/dev/null || echo unknown` 1012uname -s = `(uname -s) 2>/dev/null || echo unknown` 1013uname -v = `(uname -v) 2>/dev/null || echo unknown` 1014 1015/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1016/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1017 1018/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1019/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1020/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1021hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1022/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1023/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1024/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1025 1026_ASUNAME 1027 1028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1029for as_dir in $PATH 1030do 1031 IFS=$as_save_IFS 1032 test -z "$as_dir" && as_dir=. 1033 echo "PATH: $as_dir" 1034done 1035 1036} >&5 1037 1038cat >&5 <<_ACEOF 1039 1040 1041## ----------- ## 1042## Core tests. ## 1043## ----------- ## 1044 1045_ACEOF 1046 1047 1048# Keep a trace of the command line. 1049# Strip out --no-create and --no-recursion so they do not pile up. 1050# Strip out --silent because we don't want to record it for future runs. 1051# Also quote any args containing shell meta-characters. 1052# Make two passes to allow for proper duplicate-argument suppression. 1053ac_configure_args= 1054ac_configure_args0= 1055ac_configure_args1= 1056ac_sep= 1057ac_must_keep_next=false 1058for ac_pass in 1 2 1059do 1060 for ac_arg 1061 do 1062 case $ac_arg in 1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 continue ;; 1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1069 esac 1070 case $ac_pass in 1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1072 2) 1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1074 if test $ac_must_keep_next = true; then 1075 ac_must_keep_next=false # Got value, back to normal. 1076 else 1077 case $ac_arg in 1078 *=* | --config-cache | -C | -disable-* | --disable-* \ 1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1081 | -with-* | --with-* | -without-* | --without-* | --x) 1082 case "$ac_configure_args0 " in 1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1084 esac 1085 ;; 1086 -* ) ac_must_keep_next=true ;; 1087 esac 1088 fi 1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1090 # Get rid of the leading space. 1091 ac_sep=" " 1092 ;; 1093 esac 1094 done 1095done 1096$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1097$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1098 1099# When interrupted or exit'd, cleanup temporary files, and complete 1100# config.log. We remove comments because anyway the quotes in there 1101# would cause problems or look ugly. 1102# WARNING: Be sure not to use single quotes in there, as some shells, 1103# such as our DU 5.0 friend, will then `close' the trap. 1104trap 'exit_status=$? 1105 # Save into config.log some information that might help in debugging. 1106 { 1107 echo 1108 1109 cat <<\_ASBOX 1110## ---------------- ## 1111## Cache variables. ## 1112## ---------------- ## 1113_ASBOX 1114 echo 1115 # The following way of writing the cache mishandles newlines in values, 1116{ 1117 (set) 2>&1 | 1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1119 *ac_space=\ *) 1120 sed -n \ 1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1123 ;; 1124 *) 1125 sed -n \ 1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1127 ;; 1128 esac; 1129} 1130 echo 1131 1132 cat <<\_ASBOX 1133## ----------------- ## 1134## Output variables. ## 1135## ----------------- ## 1136_ASBOX 1137 echo 1138 for ac_var in $ac_subst_vars 1139 do 1140 eval ac_val=$`echo $ac_var` 1141 echo "$ac_var='"'"'$ac_val'"'"'" 1142 done | sort 1143 echo 1144 1145 if test -n "$ac_subst_files"; then 1146 cat <<\_ASBOX 1147## ------------- ## 1148## Output files. ## 1149## ------------- ## 1150_ASBOX 1151 echo 1152 for ac_var in $ac_subst_files 1153 do 1154 eval ac_val=$`echo $ac_var` 1155 echo "$ac_var='"'"'$ac_val'"'"'" 1156 done | sort 1157 echo 1158 fi 1159 1160 if test -s confdefs.h; then 1161 cat <<\_ASBOX 1162## ----------- ## 1163## confdefs.h. ## 1164## ----------- ## 1165_ASBOX 1166 echo 1167 sed "/^$/d" confdefs.h | sort 1168 echo 1169 fi 1170 test "$ac_signal" != 0 && 1171 echo "$as_me: caught signal $ac_signal" 1172 echo "$as_me: exit $exit_status" 1173 } >&5 1174 rm -f core *.core && 1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1176 exit $exit_status 1177 ' 0 1178for ac_signal in 1 2 13 15; do 1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1180done 1181ac_signal=0 1182 1183# confdefs.h avoids OS command line length limits that DEFS can exceed. 1184rm -rf conftest* confdefs.h 1185# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1186echo >confdefs.h 1187 1188# Predefined preprocessor variables. 1189 1190cat >>confdefs.h <<_ACEOF 1191#define PACKAGE_NAME "$PACKAGE_NAME" 1192_ACEOF 1193 1194 1195cat >>confdefs.h <<_ACEOF 1196#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1197_ACEOF 1198 1199 1200cat >>confdefs.h <<_ACEOF 1201#define PACKAGE_VERSION "$PACKAGE_VERSION" 1202_ACEOF 1203 1204 1205cat >>confdefs.h <<_ACEOF 1206#define PACKAGE_STRING "$PACKAGE_STRING" 1207_ACEOF 1208 1209 1210cat >>confdefs.h <<_ACEOF 1211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1212_ACEOF 1213 1214 1215# Let the site file select an alternate cache file if it wants to. 1216# Prefer explicitly selected file to automatically selected ones. 1217if test -z "$CONFIG_SITE"; then 1218 if test "x$prefix" != xNONE; then 1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1220 else 1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1222 fi 1223fi 1224for ac_site_file in $CONFIG_SITE; do 1225 if test -r "$ac_site_file"; then 1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1227echo "$as_me: loading site script $ac_site_file" >&6;} 1228 sed 's/^/| /' "$ac_site_file" >&5 1229 . "$ac_site_file" 1230 fi 1231done 1232 1233if test -r "$cache_file"; then 1234 # Some versions of bash will fail to source /dev/null (special 1235 # files actually), so we avoid doing that. 1236 if test -f "$cache_file"; then 1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1238echo "$as_me: loading cache $cache_file" >&6;} 1239 case $cache_file in 1240 [\\/]* | ?:[\\/]* ) . $cache_file;; 1241 *) . ./$cache_file;; 1242 esac 1243 fi 1244else 1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1246echo "$as_me: creating cache $cache_file" >&6;} 1247 >$cache_file 1248fi 1249 1250# Check that the precious variables saved in the cache have kept the same 1251# value. 1252ac_cache_corrupted=false 1253for ac_var in `(set) 2>&1 | 1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1256 eval ac_new_set=\$ac_env_${ac_var}_set 1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1258 eval ac_new_val="\$ac_env_${ac_var}_value" 1259 case $ac_old_set,$ac_new_set in 1260 set,) 1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1262echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1263 ac_cache_corrupted=: ;; 1264 ,set) 1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1266echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1267 ac_cache_corrupted=: ;; 1268 ,);; 1269 *) 1270 if test "x$ac_old_val" != "x$ac_new_val"; then 1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1272echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1274echo "$as_me: former value: $ac_old_val" >&2;} 1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1276echo "$as_me: current value: $ac_new_val" >&2;} 1277 ac_cache_corrupted=: 1278 fi;; 1279 esac 1280 # Pass precious variables to config.status. 1281 if test "$ac_new_set" = set; then 1282 case $ac_new_val in 1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1285 *) ac_arg=$ac_var=$ac_new_val ;; 1286 esac 1287 case " $ac_configure_args " in 1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1290 esac 1291 fi 1292done 1293if $ac_cache_corrupted; then 1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1295echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1297echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1298 { (exit 1); exit 1; }; } 1299fi 1300 1301ac_ext=c 1302ac_cpp='$CPP $CPPFLAGS' 1303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1305ac_compiler_gnu=$ac_cv_c_compiler_gnu 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327ac_aux_dir= 1328for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1329 if test -f $ac_dir/install-sh; then 1330 ac_aux_dir=$ac_dir 1331 ac_install_sh="$ac_aux_dir/install-sh -c" 1332 break 1333 elif test -f $ac_dir/install.sh; then 1334 ac_aux_dir=$ac_dir 1335 ac_install_sh="$ac_aux_dir/install.sh -c" 1336 break 1337 elif test -f $ac_dir/shtool; then 1338 ac_aux_dir=$ac_dir 1339 ac_install_sh="$ac_aux_dir/shtool install -c" 1340 break 1341 fi 1342done 1343if test -z "$ac_aux_dir"; then 1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1345echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1346 { (exit 1); exit 1; }; } 1347fi 1348ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1349ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1350ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1351 1352# Make sure we can run config.sub. 1353$ac_config_sub sun4 >/dev/null 2>&1 || 1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1355echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1356 { (exit 1); exit 1; }; } 1357 1358echo "$as_me:$LINENO: checking build system type" >&5 1359echo $ECHO_N "checking build system type... $ECHO_C" >&6 1360if test "${ac_cv_build+set}" = set; then 1361 echo $ECHO_N "(cached) $ECHO_C" >&6 1362else 1363 ac_cv_build_alias=$build_alias 1364test -z "$ac_cv_build_alias" && 1365 ac_cv_build_alias=`$ac_config_guess` 1366test -z "$ac_cv_build_alias" && 1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1368echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1369 { (exit 1); exit 1; }; } 1370ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1372echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1373 { (exit 1); exit 1; }; } 1374 1375fi 1376echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1377echo "${ECHO_T}$ac_cv_build" >&6 1378build=$ac_cv_build 1379build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1380build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1381build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1382 1383 1384echo "$as_me:$LINENO: checking host system type" >&5 1385echo $ECHO_N "checking host system type... $ECHO_C" >&6 1386if test "${ac_cv_host+set}" = set; then 1387 echo $ECHO_N "(cached) $ECHO_C" >&6 1388else 1389 ac_cv_host_alias=$host_alias 1390test -z "$ac_cv_host_alias" && 1391 ac_cv_host_alias=$ac_cv_build_alias 1392ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1394echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1395 { (exit 1); exit 1; }; } 1396 1397fi 1398echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1399echo "${ECHO_T}$ac_cv_host" >&6 1400host=$ac_cv_host 1401host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1402host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1403host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1404 1405 1406echo "$as_me:$LINENO: checking target system type" >&5 1407echo $ECHO_N "checking target system type... $ECHO_C" >&6 1408if test "${ac_cv_target+set}" = set; then 1409 echo $ECHO_N "(cached) $ECHO_C" >&6 1410else 1411 ac_cv_target_alias=$target_alias 1412test "x$ac_cv_target_alias" = "x" && 1413 ac_cv_target_alias=$ac_cv_host_alias 1414ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1416echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1417 { (exit 1); exit 1; }; } 1418 1419fi 1420echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1421echo "${ECHO_T}$ac_cv_target" >&6 1422target=$ac_cv_target 1423target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1424target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1425target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1426 1427 1428# The aliases save the names the user supplied, while $host etc. 1429# will get canonicalized. 1430test -n "$target_alias" && 1431 test "$program_prefix$program_suffix$program_transform_name" = \ 1432 NONENONEs,x,x, && 1433 program_prefix=${target_alias}- 1434ac_ext=c 1435ac_cpp='$CPP $CPPFLAGS' 1436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1438ac_compiler_gnu=$ac_cv_c_compiler_gnu 1439if test -n "$ac_tool_prefix"; then 1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1441set dummy ${ac_tool_prefix}gcc; ac_word=$2 1442echo "$as_me:$LINENO: checking for $ac_word" >&5 1443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1444if test "${ac_cv_prog_CC+set}" = set; then 1445 echo $ECHO_N "(cached) $ECHO_C" >&6 1446else 1447 if test -n "$CC"; then 1448 ac_cv_prog_CC="$CC" # Let the user override the test. 1449else 1450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1451for as_dir in $PATH 1452do 1453 IFS=$as_save_IFS 1454 test -z "$as_dir" && as_dir=. 1455 for ac_exec_ext in '' $ac_executable_extensions; do 1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1457 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1459 break 2 1460 fi 1461done 1462done 1463 1464fi 1465fi 1466CC=$ac_cv_prog_CC 1467if test -n "$CC"; then 1468 echo "$as_me:$LINENO: result: $CC" >&5 1469echo "${ECHO_T}$CC" >&6 1470else 1471 echo "$as_me:$LINENO: result: no" >&5 1472echo "${ECHO_T}no" >&6 1473fi 1474 1475fi 1476if test -z "$ac_cv_prog_CC"; then 1477 ac_ct_CC=$CC 1478 # Extract the first word of "gcc", so it can be a program name with args. 1479set dummy gcc; ac_word=$2 1480echo "$as_me:$LINENO: checking for $ac_word" >&5 1481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1483 echo $ECHO_N "(cached) $ECHO_C" >&6 1484else 1485 if test -n "$ac_ct_CC"; then 1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1487else 1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1489for as_dir in $PATH 1490do 1491 IFS=$as_save_IFS 1492 test -z "$as_dir" && as_dir=. 1493 for ac_exec_ext in '' $ac_executable_extensions; do 1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1495 ac_cv_prog_ac_ct_CC="gcc" 1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1497 break 2 1498 fi 1499done 1500done 1501 1502fi 1503fi 1504ac_ct_CC=$ac_cv_prog_ac_ct_CC 1505if test -n "$ac_ct_CC"; then 1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1507echo "${ECHO_T}$ac_ct_CC" >&6 1508else 1509 echo "$as_me:$LINENO: result: no" >&5 1510echo "${ECHO_T}no" >&6 1511fi 1512 1513 CC=$ac_ct_CC 1514else 1515 CC="$ac_cv_prog_CC" 1516fi 1517 1518if test -z "$CC"; then 1519 if test -n "$ac_tool_prefix"; then 1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1521set dummy ${ac_tool_prefix}cc; ac_word=$2 1522echo "$as_me:$LINENO: checking for $ac_word" >&5 1523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1524if test "${ac_cv_prog_CC+set}" = set; then 1525 echo $ECHO_N "(cached) $ECHO_C" >&6 1526else 1527 if test -n "$CC"; then 1528 ac_cv_prog_CC="$CC" # Let the user override the test. 1529else 1530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1531for as_dir in $PATH 1532do 1533 IFS=$as_save_IFS 1534 test -z "$as_dir" && as_dir=. 1535 for ac_exec_ext in '' $ac_executable_extensions; do 1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1537 ac_cv_prog_CC="${ac_tool_prefix}cc" 1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1539 break 2 1540 fi 1541done 1542done 1543 1544fi 1545fi 1546CC=$ac_cv_prog_CC 1547if test -n "$CC"; then 1548 echo "$as_me:$LINENO: result: $CC" >&5 1549echo "${ECHO_T}$CC" >&6 1550else 1551 echo "$as_me:$LINENO: result: no" >&5 1552echo "${ECHO_T}no" >&6 1553fi 1554 1555fi 1556if test -z "$ac_cv_prog_CC"; then 1557 ac_ct_CC=$CC 1558 # Extract the first word of "cc", so it can be a program name with args. 1559set dummy cc; ac_word=$2 1560echo "$as_me:$LINENO: checking for $ac_word" >&5 1561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1562if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1563 echo $ECHO_N "(cached) $ECHO_C" >&6 1564else 1565 if test -n "$ac_ct_CC"; then 1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1567else 1568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1569for as_dir in $PATH 1570do 1571 IFS=$as_save_IFS 1572 test -z "$as_dir" && as_dir=. 1573 for ac_exec_ext in '' $ac_executable_extensions; do 1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1575 ac_cv_prog_ac_ct_CC="cc" 1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1577 break 2 1578 fi 1579done 1580done 1581 1582fi 1583fi 1584ac_ct_CC=$ac_cv_prog_ac_ct_CC 1585if test -n "$ac_ct_CC"; then 1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1587echo "${ECHO_T}$ac_ct_CC" >&6 1588else 1589 echo "$as_me:$LINENO: result: no" >&5 1590echo "${ECHO_T}no" >&6 1591fi 1592 1593 CC=$ac_ct_CC 1594else 1595 CC="$ac_cv_prog_CC" 1596fi 1597 1598fi 1599if test -z "$CC"; then 1600 # Extract the first word of "cc", so it can be a program name with args. 1601set dummy cc; ac_word=$2 1602echo "$as_me:$LINENO: checking for $ac_word" >&5 1603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1604if test "${ac_cv_prog_CC+set}" = set; then 1605 echo $ECHO_N "(cached) $ECHO_C" >&6 1606else 1607 if test -n "$CC"; then 1608 ac_cv_prog_CC="$CC" # Let the user override the test. 1609else 1610 ac_prog_rejected=no 1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1612for as_dir in $PATH 1613do 1614 IFS=$as_save_IFS 1615 test -z "$as_dir" && as_dir=. 1616 for ac_exec_ext in '' $ac_executable_extensions; do 1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1619 ac_prog_rejected=yes 1620 continue 1621 fi 1622 ac_cv_prog_CC="cc" 1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1624 break 2 1625 fi 1626done 1627done 1628 1629if test $ac_prog_rejected = yes; then 1630 # We found a bogon in the path, so make sure we never use it. 1631 set dummy $ac_cv_prog_CC 1632 shift 1633 if test $# != 0; then 1634 # We chose a different compiler from the bogus one. 1635 # However, it has the same basename, so the bogon will be chosen 1636 # first if we set CC to just the basename; use the full file name. 1637 shift 1638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1639 fi 1640fi 1641fi 1642fi 1643CC=$ac_cv_prog_CC 1644if test -n "$CC"; then 1645 echo "$as_me:$LINENO: result: $CC" >&5 1646echo "${ECHO_T}$CC" >&6 1647else 1648 echo "$as_me:$LINENO: result: no" >&5 1649echo "${ECHO_T}no" >&6 1650fi 1651 1652fi 1653if test -z "$CC"; then 1654 if test -n "$ac_tool_prefix"; then 1655 for ac_prog in cl 1656 do 1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1658set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1659echo "$as_me:$LINENO: checking for $ac_word" >&5 1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1661if test "${ac_cv_prog_CC+set}" = set; then 1662 echo $ECHO_N "(cached) $ECHO_C" >&6 1663else 1664 if test -n "$CC"; then 1665 ac_cv_prog_CC="$CC" # Let the user override the test. 1666else 1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1668for as_dir in $PATH 1669do 1670 IFS=$as_save_IFS 1671 test -z "$as_dir" && as_dir=. 1672 for ac_exec_ext in '' $ac_executable_extensions; do 1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1676 break 2 1677 fi 1678done 1679done 1680 1681fi 1682fi 1683CC=$ac_cv_prog_CC 1684if test -n "$CC"; then 1685 echo "$as_me:$LINENO: result: $CC" >&5 1686echo "${ECHO_T}$CC" >&6 1687else 1688 echo "$as_me:$LINENO: result: no" >&5 1689echo "${ECHO_T}no" >&6 1690fi 1691 1692 test -n "$CC" && break 1693 done 1694fi 1695if test -z "$CC"; then 1696 ac_ct_CC=$CC 1697 for ac_prog in cl 1698do 1699 # Extract the first word of "$ac_prog", so it can be a program name with args. 1700set dummy $ac_prog; ac_word=$2 1701echo "$as_me:$LINENO: checking for $ac_word" >&5 1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1704 echo $ECHO_N "(cached) $ECHO_C" >&6 1705else 1706 if test -n "$ac_ct_CC"; then 1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1708else 1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1710for as_dir in $PATH 1711do 1712 IFS=$as_save_IFS 1713 test -z "$as_dir" && as_dir=. 1714 for ac_exec_ext in '' $ac_executable_extensions; do 1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1716 ac_cv_prog_ac_ct_CC="$ac_prog" 1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1718 break 2 1719 fi 1720done 1721done 1722 1723fi 1724fi 1725ac_ct_CC=$ac_cv_prog_ac_ct_CC 1726if test -n "$ac_ct_CC"; then 1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1728echo "${ECHO_T}$ac_ct_CC" >&6 1729else 1730 echo "$as_me:$LINENO: result: no" >&5 1731echo "${ECHO_T}no" >&6 1732fi 1733 1734 test -n "$ac_ct_CC" && break 1735done 1736 1737 CC=$ac_ct_CC 1738fi 1739 1740fi 1741 1742 1743test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1744See \`config.log' for more details." >&5 1745echo "$as_me: error: no acceptable C compiler found in \$PATH 1746See \`config.log' for more details." >&2;} 1747 { (exit 1); exit 1; }; } 1748 1749# Provide some information about the compiler. 1750echo "$as_me:$LINENO:" \ 1751 "checking for C compiler version" >&5 1752ac_compiler=`set X $ac_compile; echo $2` 1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1754 (eval $ac_compiler --version </dev/null >&5) 2>&5 1755 ac_status=$? 1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1757 (exit $ac_status); } 1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1759 (eval $ac_compiler -v </dev/null >&5) 2>&5 1760 ac_status=$? 1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1762 (exit $ac_status); } 1763{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1764 (eval $ac_compiler -V </dev/null >&5) 2>&5 1765 ac_status=$? 1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1767 (exit $ac_status); } 1768 1769cat >conftest.$ac_ext <<_ACEOF 1770/* confdefs.h. */ 1771_ACEOF 1772cat confdefs.h >>conftest.$ac_ext 1773cat >>conftest.$ac_ext <<_ACEOF 1774/* end confdefs.h. */ 1775 1776int 1777main () 1778{ 1779 1780 ; 1781 return 0; 1782} 1783_ACEOF 1784ac_clean_files_save=$ac_clean_files 1785ac_clean_files="$ac_clean_files a.out a.exe b.out" 1786# Try to create an executable without -o first, disregard a.out. 1787# It will help us diagnose broken compilers, and finding out an intuition 1788# of exeext. 1789echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1792if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1793 (eval $ac_link_default) 2>&5 1794 ac_status=$? 1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1796 (exit $ac_status); }; then 1797 # Find the output, starting from the most likely. This scheme is 1798# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1799# resort. 1800 1801# Be careful to initialize this variable, since it used to be cached. 1802# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1803ac_cv_exeext= 1804# b.out is created by i960 compilers. 1805for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1806do 1807 test -f "$ac_file" || continue 1808 case $ac_file in 1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1810 ;; 1811 conftest.$ac_ext ) 1812 # This is the source file. 1813 ;; 1814 [ab].out ) 1815 # We found the default executable, but exeext='' is most 1816 # certainly right. 1817 break;; 1818 *.* ) 1819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1820 # FIXME: I believe we export ac_cv_exeext for Libtool, 1821 # but it would be cool to find out if it's true. Does anybody 1822 # maintain Libtool? --akim. 1823 export ac_cv_exeext 1824 break;; 1825 * ) 1826 break;; 1827 esac 1828done 1829else 1830 echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1834See \`config.log' for more details." >&5 1835echo "$as_me: error: C compiler cannot create executables 1836See \`config.log' for more details." >&2;} 1837 { (exit 77); exit 77; }; } 1838fi 1839 1840ac_exeext=$ac_cv_exeext 1841echo "$as_me:$LINENO: result: $ac_file" >&5 1842echo "${ECHO_T}$ac_file" >&6 1843 1844# Check the compiler produces executables we can run. If not, either 1845# the compiler is broken, or we cross compile. 1846echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1847echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1848# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1849# If not cross compiling, check that we can run a simple program. 1850if test "$cross_compiling" != yes; then 1851 if { ac_try='./$ac_file' 1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1853 (eval $ac_try) 2>&5 1854 ac_status=$? 1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1856 (exit $ac_status); }; }; then 1857 cross_compiling=no 1858 else 1859 if test "$cross_compiling" = maybe; then 1860 cross_compiling=yes 1861 else 1862 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1863If you meant to cross compile, use \`--host'. 1864See \`config.log' for more details." >&5 1865echo "$as_me: error: cannot run C compiled programs. 1866If you meant to cross compile, use \`--host'. 1867See \`config.log' for more details." >&2;} 1868 { (exit 1); exit 1; }; } 1869 fi 1870 fi 1871fi 1872echo "$as_me:$LINENO: result: yes" >&5 1873echo "${ECHO_T}yes" >&6 1874 1875rm -f a.out a.exe conftest$ac_cv_exeext b.out 1876ac_clean_files=$ac_clean_files_save 1877# Check the compiler produces executables we can run. If not, either 1878# the compiler is broken, or we cross compile. 1879echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1880echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1881echo "$as_me:$LINENO: result: $cross_compiling" >&5 1882echo "${ECHO_T}$cross_compiling" >&6 1883 1884echo "$as_me:$LINENO: checking for suffix of executables" >&5 1885echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1887 (eval $ac_link) 2>&5 1888 ac_status=$? 1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1890 (exit $ac_status); }; then 1891 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1892# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1893# work properly (i.e., refer to `conftest.exe'), while it won't with 1894# `rm'. 1895for ac_file in conftest.exe conftest conftest.*; do 1896 test -f "$ac_file" || continue 1897 case $ac_file in 1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1900 export ac_cv_exeext 1901 break;; 1902 * ) break;; 1903 esac 1904done 1905else 1906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1907See \`config.log' for more details." >&5 1908echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1909See \`config.log' for more details." >&2;} 1910 { (exit 1); exit 1; }; } 1911fi 1912 1913rm -f conftest$ac_cv_exeext 1914echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1915echo "${ECHO_T}$ac_cv_exeext" >&6 1916 1917rm -f conftest.$ac_ext 1918EXEEXT=$ac_cv_exeext 1919ac_exeext=$EXEEXT 1920echo "$as_me:$LINENO: checking for suffix of object files" >&5 1921echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1922if test "${ac_cv_objext+set}" = set; then 1923 echo $ECHO_N "(cached) $ECHO_C" >&6 1924else 1925 cat >conftest.$ac_ext <<_ACEOF 1926/* confdefs.h. */ 1927_ACEOF 1928cat confdefs.h >>conftest.$ac_ext 1929cat >>conftest.$ac_ext <<_ACEOF 1930/* end confdefs.h. */ 1931 1932int 1933main () 1934{ 1935 1936 ; 1937 return 0; 1938} 1939_ACEOF 1940rm -f conftest.o conftest.obj 1941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1942 (eval $ac_compile) 2>&5 1943 ac_status=$? 1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1945 (exit $ac_status); }; then 1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1947 case $ac_file in 1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1950 break;; 1951 esac 1952done 1953else 1954 echo "$as_me: failed program was:" >&5 1955sed 's/^/| /' conftest.$ac_ext >&5 1956 1957{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1958See \`config.log' for more details." >&5 1959echo "$as_me: error: cannot compute suffix of object files: cannot compile 1960See \`config.log' for more details." >&2;} 1961 { (exit 1); exit 1; }; } 1962fi 1963 1964rm -f conftest.$ac_cv_objext conftest.$ac_ext 1965fi 1966echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1967echo "${ECHO_T}$ac_cv_objext" >&6 1968OBJEXT=$ac_cv_objext 1969ac_objext=$OBJEXT 1970echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1972if test "${ac_cv_c_compiler_gnu+set}" = set; then 1973 echo $ECHO_N "(cached) $ECHO_C" >&6 1974else 1975 cat >conftest.$ac_ext <<_ACEOF 1976/* confdefs.h. */ 1977_ACEOF 1978cat confdefs.h >>conftest.$ac_ext 1979cat >>conftest.$ac_ext <<_ACEOF 1980/* end confdefs.h. */ 1981 1982int 1983main () 1984{ 1985#ifndef __GNUC__ 1986 choke me 1987#endif 1988 1989 ; 1990 return 0; 1991} 1992_ACEOF 1993rm -f conftest.$ac_objext 1994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1995 (eval $ac_compile) 2>conftest.er1 1996 ac_status=$? 1997 grep -v '^ *+' conftest.er1 >conftest.err 1998 rm -f conftest.er1 1999 cat conftest.err >&5 2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2001 (exit $ac_status); } && 2002 { ac_try='test -z "$ac_c_werror_flag" 2003 || test ! -s conftest.err' 2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2005 (eval $ac_try) 2>&5 2006 ac_status=$? 2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2008 (exit $ac_status); }; } && 2009 { ac_try='test -s conftest.$ac_objext' 2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2011 (eval $ac_try) 2>&5 2012 ac_status=$? 2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2014 (exit $ac_status); }; }; then 2015 ac_compiler_gnu=yes 2016else 2017 echo "$as_me: failed program was:" >&5 2018sed 's/^/| /' conftest.$ac_ext >&5 2019 2020ac_compiler_gnu=no 2021fi 2022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2023ac_cv_c_compiler_gnu=$ac_compiler_gnu 2024 2025fi 2026echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2027echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2028GCC=`test $ac_compiler_gnu = yes && echo yes` 2029ac_test_CFLAGS=${CFLAGS+set} 2030ac_save_CFLAGS=$CFLAGS 2031CFLAGS="-g" 2032echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2033echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2034if test "${ac_cv_prog_cc_g+set}" = set; then 2035 echo $ECHO_N "(cached) $ECHO_C" >&6 2036else 2037 cat >conftest.$ac_ext <<_ACEOF 2038/* confdefs.h. */ 2039_ACEOF 2040cat confdefs.h >>conftest.$ac_ext 2041cat >>conftest.$ac_ext <<_ACEOF 2042/* end confdefs.h. */ 2043 2044int 2045main () 2046{ 2047 2048 ; 2049 return 0; 2050} 2051_ACEOF 2052rm -f conftest.$ac_objext 2053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2054 (eval $ac_compile) 2>conftest.er1 2055 ac_status=$? 2056 grep -v '^ *+' conftest.er1 >conftest.err 2057 rm -f conftest.er1 2058 cat conftest.err >&5 2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2060 (exit $ac_status); } && 2061 { ac_try='test -z "$ac_c_werror_flag" 2062 || test ! -s conftest.err' 2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2064 (eval $ac_try) 2>&5 2065 ac_status=$? 2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2067 (exit $ac_status); }; } && 2068 { ac_try='test -s conftest.$ac_objext' 2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2070 (eval $ac_try) 2>&5 2071 ac_status=$? 2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2073 (exit $ac_status); }; }; then 2074 ac_cv_prog_cc_g=yes 2075else 2076 echo "$as_me: failed program was:" >&5 2077sed 's/^/| /' conftest.$ac_ext >&5 2078 2079ac_cv_prog_cc_g=no 2080fi 2081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2082fi 2083echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2084echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2085if test "$ac_test_CFLAGS" = set; then 2086 CFLAGS=$ac_save_CFLAGS 2087elif test $ac_cv_prog_cc_g = yes; then 2088 if test "$GCC" = yes; then 2089 CFLAGS="-g -O2" 2090 else 2091 CFLAGS="-g" 2092 fi 2093else 2094 if test "$GCC" = yes; then 2095 CFLAGS="-O2" 2096 else 2097 CFLAGS= 2098 fi 2099fi 2100echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2101echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2102if test "${ac_cv_prog_cc_stdc+set}" = set; then 2103 echo $ECHO_N "(cached) $ECHO_C" >&6 2104else 2105 ac_cv_prog_cc_stdc=no 2106ac_save_CC=$CC 2107cat >conftest.$ac_ext <<_ACEOF 2108/* confdefs.h. */ 2109_ACEOF 2110cat confdefs.h >>conftest.$ac_ext 2111cat >>conftest.$ac_ext <<_ACEOF 2112/* end confdefs.h. */ 2113#include <stdarg.h> 2114#include <stdio.h> 2115#include <sys/types.h> 2116#include <sys/stat.h> 2117/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2118struct buf { int x; }; 2119FILE * (*rcsopen) (struct buf *, struct stat *, int); 2120static char *e (p, i) 2121 char **p; 2122 int i; 2123{ 2124 return p[i]; 2125} 2126static char *f (char * (*g) (char **, int), char **p, ...) 2127{ 2128 char *s; 2129 va_list v; 2130 va_start (v,p); 2131 s = g (p, va_arg (v,int)); 2132 va_end (v); 2133 return s; 2134} 2135 2136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2137 function prototypes and stuff, but not '\xHH' hex character constants. 2138 These don't provoke an error unfortunately, instead are silently treated 2139 as 'x'. The following induces an error, until -std1 is added to get 2140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2141 array size at least. It's necessary to write '\x00'==0 to get something 2142 that's true only with -std1. */ 2143int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2144 2145int test (int i, double x); 2146struct s1 {int (*f) (int a);}; 2147struct s2 {int (*f) (double a);}; 2148int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2149int argc; 2150char **argv; 2151int 2152main () 2153{ 2154return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2155 ; 2156 return 0; 2157} 2158_ACEOF 2159# Don't try gcc -ansi; that turns off useful extensions and 2160# breaks some systems' header files. 2161# AIX -qlanglvl=ansi 2162# Ultrix and OSF/1 -std1 2163# HP-UX 10.20 and later -Ae 2164# HP-UX older versions -Aa -D_HPUX_SOURCE 2165# SVR4 -Xc -D__EXTENSIONS__ 2166for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2167do 2168 CC="$ac_save_CC $ac_arg" 2169 rm -f conftest.$ac_objext 2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2171 (eval $ac_compile) 2>conftest.er1 2172 ac_status=$? 2173 grep -v '^ *+' conftest.er1 >conftest.err 2174 rm -f conftest.er1 2175 cat conftest.err >&5 2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2177 (exit $ac_status); } && 2178 { ac_try='test -z "$ac_c_werror_flag" 2179 || test ! -s conftest.err' 2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2181 (eval $ac_try) 2>&5 2182 ac_status=$? 2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2184 (exit $ac_status); }; } && 2185 { ac_try='test -s conftest.$ac_objext' 2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2187 (eval $ac_try) 2>&5 2188 ac_status=$? 2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2190 (exit $ac_status); }; }; then 2191 ac_cv_prog_cc_stdc=$ac_arg 2192break 2193else 2194 echo "$as_me: failed program was:" >&5 2195sed 's/^/| /' conftest.$ac_ext >&5 2196 2197fi 2198rm -f conftest.err conftest.$ac_objext 2199done 2200rm -f conftest.$ac_ext conftest.$ac_objext 2201CC=$ac_save_CC 2202 2203fi 2204 2205case "x$ac_cv_prog_cc_stdc" in 2206 x|xno) 2207 echo "$as_me:$LINENO: result: none needed" >&5 2208echo "${ECHO_T}none needed" >&6 ;; 2209 *) 2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2211echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2212 CC="$CC $ac_cv_prog_cc_stdc" ;; 2213esac 2214 2215# Some people use a C++ compiler to compile C. Since we use `exit', 2216# in C++ we need to declare it. In case someone uses the same compiler 2217# for both compiling C and C++ we need to have the C++ compiler decide 2218# the declaration of exit, since it's the most demanding environment. 2219cat >conftest.$ac_ext <<_ACEOF 2220#ifndef __cplusplus 2221 choke me 2222#endif 2223_ACEOF 2224rm -f conftest.$ac_objext 2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2226 (eval $ac_compile) 2>conftest.er1 2227 ac_status=$? 2228 grep -v '^ *+' conftest.er1 >conftest.err 2229 rm -f conftest.er1 2230 cat conftest.err >&5 2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2232 (exit $ac_status); } && 2233 { ac_try='test -z "$ac_c_werror_flag" 2234 || test ! -s conftest.err' 2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2236 (eval $ac_try) 2>&5 2237 ac_status=$? 2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2239 (exit $ac_status); }; } && 2240 { ac_try='test -s conftest.$ac_objext' 2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2242 (eval $ac_try) 2>&5 2243 ac_status=$? 2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2245 (exit $ac_status); }; }; then 2246 for ac_declaration in \ 2247 '' \ 2248 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2249 'extern "C" void std::exit (int); using std::exit;' \ 2250 'extern "C" void exit (int) throw ();' \ 2251 'extern "C" void exit (int);' \ 2252 'void exit (int);' 2253do 2254 cat >conftest.$ac_ext <<_ACEOF 2255/* confdefs.h. */ 2256_ACEOF 2257cat confdefs.h >>conftest.$ac_ext 2258cat >>conftest.$ac_ext <<_ACEOF 2259/* end confdefs.h. */ 2260$ac_declaration 2261#include <stdlib.h> 2262int 2263main () 2264{ 2265exit (42); 2266 ; 2267 return 0; 2268} 2269_ACEOF 2270rm -f conftest.$ac_objext 2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2272 (eval $ac_compile) 2>conftest.er1 2273 ac_status=$? 2274 grep -v '^ *+' conftest.er1 >conftest.err 2275 rm -f conftest.er1 2276 cat conftest.err >&5 2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2278 (exit $ac_status); } && 2279 { ac_try='test -z "$ac_c_werror_flag" 2280 || test ! -s conftest.err' 2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2282 (eval $ac_try) 2>&5 2283 ac_status=$? 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2285 (exit $ac_status); }; } && 2286 { ac_try='test -s conftest.$ac_objext' 2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2288 (eval $ac_try) 2>&5 2289 ac_status=$? 2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2291 (exit $ac_status); }; }; then 2292 : 2293else 2294 echo "$as_me: failed program was:" >&5 2295sed 's/^/| /' conftest.$ac_ext >&5 2296 2297continue 2298fi 2299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2300 cat >conftest.$ac_ext <<_ACEOF 2301/* confdefs.h. */ 2302_ACEOF 2303cat confdefs.h >>conftest.$ac_ext 2304cat >>conftest.$ac_ext <<_ACEOF 2305/* end confdefs.h. */ 2306$ac_declaration 2307int 2308main () 2309{ 2310exit (42); 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315rm -f conftest.$ac_objext 2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2317 (eval $ac_compile) 2>conftest.er1 2318 ac_status=$? 2319 grep -v '^ *+' conftest.er1 >conftest.err 2320 rm -f conftest.er1 2321 cat conftest.err >&5 2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2323 (exit $ac_status); } && 2324 { ac_try='test -z "$ac_c_werror_flag" 2325 || test ! -s conftest.err' 2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2327 (eval $ac_try) 2>&5 2328 ac_status=$? 2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2330 (exit $ac_status); }; } && 2331 { ac_try='test -s conftest.$ac_objext' 2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2333 (eval $ac_try) 2>&5 2334 ac_status=$? 2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2336 (exit $ac_status); }; }; then 2337 break 2338else 2339 echo "$as_me: failed program was:" >&5 2340sed 's/^/| /' conftest.$ac_ext >&5 2341 2342fi 2343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2344done 2345rm -f conftest* 2346if test -n "$ac_declaration"; then 2347 echo '#ifdef __cplusplus' >>confdefs.h 2348 echo $ac_declaration >>confdefs.h 2349 echo '#endif' >>confdefs.h 2350fi 2351 2352else 2353 echo "$as_me: failed program was:" >&5 2354sed 's/^/| /' conftest.$ac_ext >&5 2355 2356fi 2357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2358ac_ext=c 2359ac_cpp='$CPP $CPPFLAGS' 2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2362ac_compiler_gnu=$ac_cv_c_compiler_gnu 2363 2364 2365echo "$as_me:$LINENO: checking for library containing strerror" >&5 2366echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2367if test "${ac_cv_search_strerror+set}" = set; then 2368 echo $ECHO_N "(cached) $ECHO_C" >&6 2369else 2370 ac_func_search_save_LIBS=$LIBS 2371ac_cv_search_strerror=no 2372cat >conftest.$ac_ext <<_ACEOF 2373/* confdefs.h. */ 2374_ACEOF 2375cat confdefs.h >>conftest.$ac_ext 2376cat >>conftest.$ac_ext <<_ACEOF 2377/* end confdefs.h. */ 2378 2379/* Override any gcc2 internal prototype to avoid an error. */ 2380#ifdef __cplusplus 2381extern "C" 2382#endif 2383/* We use char because int might match the return type of a gcc2 2384 builtin and then its argument prototype would still apply. */ 2385char strerror (); 2386int 2387main () 2388{ 2389strerror (); 2390 ; 2391 return 0; 2392} 2393_ACEOF 2394rm -f conftest.$ac_objext conftest$ac_exeext 2395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2396 (eval $ac_link) 2>conftest.er1 2397 ac_status=$? 2398 grep -v '^ *+' conftest.er1 >conftest.err 2399 rm -f conftest.er1 2400 cat conftest.err >&5 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); } && 2403 { ac_try='test -z "$ac_c_werror_flag" 2404 || test ! -s conftest.err' 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); }; } && 2410 { ac_try='test -s conftest$ac_exeext' 2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2412 (eval $ac_try) 2>&5 2413 ac_status=$? 2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2415 (exit $ac_status); }; }; then 2416 ac_cv_search_strerror="none required" 2417else 2418 echo "$as_me: failed program was:" >&5 2419sed 's/^/| /' conftest.$ac_ext >&5 2420 2421fi 2422rm -f conftest.err conftest.$ac_objext \ 2423 conftest$ac_exeext conftest.$ac_ext 2424if test "$ac_cv_search_strerror" = no; then 2425 for ac_lib in cposix; do 2426 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2427 cat >conftest.$ac_ext <<_ACEOF 2428/* confdefs.h. */ 2429_ACEOF 2430cat confdefs.h >>conftest.$ac_ext 2431cat >>conftest.$ac_ext <<_ACEOF 2432/* end confdefs.h. */ 2433 2434/* Override any gcc2 internal prototype to avoid an error. */ 2435#ifdef __cplusplus 2436extern "C" 2437#endif 2438/* We use char because int might match the return type of a gcc2 2439 builtin and then its argument prototype would still apply. */ 2440char strerror (); 2441int 2442main () 2443{ 2444strerror (); 2445 ; 2446 return 0; 2447} 2448_ACEOF 2449rm -f conftest.$ac_objext conftest$ac_exeext 2450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2451 (eval $ac_link) 2>conftest.er1 2452 ac_status=$? 2453 grep -v '^ *+' conftest.er1 >conftest.err 2454 rm -f conftest.er1 2455 cat conftest.err >&5 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); } && 2458 { ac_try='test -z "$ac_c_werror_flag" 2459 || test ! -s conftest.err' 2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2461 (eval $ac_try) 2>&5 2462 ac_status=$? 2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2464 (exit $ac_status); }; } && 2465 { ac_try='test -s conftest$ac_exeext' 2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2467 (eval $ac_try) 2>&5 2468 ac_status=$? 2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2470 (exit $ac_status); }; }; then 2471 ac_cv_search_strerror="-l$ac_lib" 2472break 2473else 2474 echo "$as_me: failed program was:" >&5 2475sed 's/^/| /' conftest.$ac_ext >&5 2476 2477fi 2478rm -f conftest.err conftest.$ac_objext \ 2479 conftest$ac_exeext conftest.$ac_ext 2480 done 2481fi 2482LIBS=$ac_func_search_save_LIBS 2483fi 2484echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2485echo "${ECHO_T}$ac_cv_search_strerror" >&6 2486if test "$ac_cv_search_strerror" != no; then 2487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2488 2489fi 2490 2491 2492am__api_version="1.9" 2493# Find a good install program. We prefer a C program (faster), 2494# so one script is as good as another. But avoid the broken or 2495# incompatible versions: 2496# SysV /etc/install, /usr/sbin/install 2497# SunOS /usr/etc/install 2498# IRIX /sbin/install 2499# AIX /bin/install 2500# AmigaOS /C/install, which installs bootblocks on floppy discs 2501# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2502# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2503# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2504# OS/2's system install, which has a completely different semantic 2505# ./install, which can be erroneously created by make from ./install.sh. 2506echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2507echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2508if test -z "$INSTALL"; then 2509if test "${ac_cv_path_install+set}" = set; then 2510 echo $ECHO_N "(cached) $ECHO_C" >&6 2511else 2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2513for as_dir in $PATH 2514do 2515 IFS=$as_save_IFS 2516 test -z "$as_dir" && as_dir=. 2517 # Account for people who put trailing slashes in PATH elements. 2518case $as_dir/ in 2519 ./ | .// | /cC/* | \ 2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2521 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2522 /usr/ucb/* ) ;; 2523 *) 2524 # OSF1 and SCO ODT 3.0 have their own names for install. 2525 # Don't use installbsd from OSF since it installs stuff as root 2526 # by default. 2527 for ac_prog in ginstall scoinst install; do 2528 for ac_exec_ext in '' $ac_executable_extensions; do 2529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2530 if test $ac_prog = install && 2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2532 # AIX install. It has an incompatible calling convention. 2533 : 2534 elif test $ac_prog = install && 2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2536 # program-specific install script used by HP pwplus--don't use. 2537 : 2538 else 2539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2540 break 3 2541 fi 2542 fi 2543 done 2544 done 2545 ;; 2546esac 2547done 2548 2549 2550fi 2551 if test "${ac_cv_path_install+set}" = set; then 2552 INSTALL=$ac_cv_path_install 2553 else 2554 # As a last resort, use the slow shell script. We don't cache a 2555 # path for INSTALL within a source directory, because that will 2556 # break other packages using the cache if that directory is 2557 # removed, or if the path is relative. 2558 INSTALL=$ac_install_sh 2559 fi 2560fi 2561echo "$as_me:$LINENO: result: $INSTALL" >&5 2562echo "${ECHO_T}$INSTALL" >&6 2563 2564# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2565# It thinks the first close brace ends the variable substitution. 2566test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2567 2568test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2569 2570test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2571 2572echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2573echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2574# Just in case 2575sleep 1 2576echo timestamp > conftest.file 2577# Do `set' in a subshell so we don't clobber the current shell's 2578# arguments. Must try -L first in case configure is actually a 2579# symlink; some systems play weird games with the mod time of symlinks 2580# (eg FreeBSD returns the mod time of the symlink's containing 2581# directory). 2582if ( 2583 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2584 if test "$*" = "X"; then 2585 # -L didn't work. 2586 set X `ls -t $srcdir/configure conftest.file` 2587 fi 2588 rm -f conftest.file 2589 if test "$*" != "X $srcdir/configure conftest.file" \ 2590 && test "$*" != "X conftest.file $srcdir/configure"; then 2591 2592 # If neither matched, then we have a broken ls. This can happen 2593 # if, for instance, CONFIG_SHELL is bash and it inherits a 2594 # broken ls alias from the environment. This has actually 2595 # happened. Such a system could not be considered "sane". 2596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2597alias in your environment" >&5 2598echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2599alias in your environment" >&2;} 2600 { (exit 1); exit 1; }; } 2601 fi 2602 2603 test "$2" = conftest.file 2604 ) 2605then 2606 # Ok. 2607 : 2608else 2609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2610Check your system clock" >&5 2611echo "$as_me: error: newly created file is older than distributed files! 2612Check your system clock" >&2;} 2613 { (exit 1); exit 1; }; } 2614fi 2615echo "$as_me:$LINENO: result: yes" >&5 2616echo "${ECHO_T}yes" >&6 2617test "$program_prefix" != NONE && 2618 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2619# Use a double $ so make ignores it. 2620test "$program_suffix" != NONE && 2621 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2622# Double any \ or $. echo might interpret backslashes. 2623# By default was `s,x,x', remove it if useless. 2624cat <<\_ACEOF >conftest.sed 2625s/[\\$]/&&/g;s/;s,x,x,$// 2626_ACEOF 2627program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2628rm conftest.sed 2629 2630# expand $ac_aux_dir to an absolute path 2631am_aux_dir=`cd $ac_aux_dir && pwd` 2632 2633test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2634# Use eval to expand $SHELL 2635if eval "$MISSING --run true"; then 2636 am_missing_run="$MISSING --run " 2637else 2638 am_missing_run= 2639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2640echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2641fi 2642 2643if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2644 # We used to keeping the `.' as first argument, in order to 2645 # allow $(mkdir_p) to be used without argument. As in 2646 # $(mkdir_p) $(somedir) 2647 # where $(somedir) is conditionally defined. However this is wrong 2648 # for two reasons: 2649 # 1. if the package is installed by a user who cannot write `.' 2650 # make install will fail, 2651 # 2. the above comment should most certainly read 2652 # $(mkdir_p) $(DESTDIR)$(somedir) 2653 # so it does not work when $(somedir) is undefined and 2654 # $(DESTDIR) is not. 2655 # To support the latter case, we have to write 2656 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2657 # so the `.' trick is pointless. 2658 mkdir_p='mkdir -p --' 2659else 2660 # On NextStep and OpenStep, the `mkdir' command does not 2661 # recognize any option. It will interpret all options as 2662 # directories to create, and then abort because `.' already 2663 # exists. 2664 for d in ./-p ./--version; 2665 do 2666 test -d $d && rmdir $d 2667 done 2668 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2669 if test -f "$ac_aux_dir/mkinstalldirs"; then 2670 mkdir_p='$(mkinstalldirs)' 2671 else 2672 mkdir_p='$(install_sh) -d' 2673 fi 2674fi 2675 2676for ac_prog in gawk mawk nawk awk 2677do 2678 # Extract the first word of "$ac_prog", so it can be a program name with args. 2679set dummy $ac_prog; ac_word=$2 2680echo "$as_me:$LINENO: checking for $ac_word" >&5 2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2682if test "${ac_cv_prog_AWK+set}" = set; then 2683 echo $ECHO_N "(cached) $ECHO_C" >&6 2684else 2685 if test -n "$AWK"; then 2686 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2687else 2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 for ac_exec_ext in '' $ac_executable_extensions; do 2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2695 ac_cv_prog_AWK="$ac_prog" 2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2697 break 2 2698 fi 2699done 2700done 2701 2702fi 2703fi 2704AWK=$ac_cv_prog_AWK 2705if test -n "$AWK"; then 2706 echo "$as_me:$LINENO: result: $AWK" >&5 2707echo "${ECHO_T}$AWK" >&6 2708else 2709 echo "$as_me:$LINENO: result: no" >&5 2710echo "${ECHO_T}no" >&6 2711fi 2712 2713 test -n "$AWK" && break 2714done 2715 2716echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2717echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2718set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2719if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2720 echo $ECHO_N "(cached) $ECHO_C" >&6 2721else 2722 cat >conftest.make <<\_ACEOF 2723all: 2724 @echo 'ac_maketemp="$(MAKE)"' 2725_ACEOF 2726# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2727eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2728if test -n "$ac_maketemp"; then 2729 eval ac_cv_prog_make_${ac_make}_set=yes 2730else 2731 eval ac_cv_prog_make_${ac_make}_set=no 2732fi 2733rm -f conftest.make 2734fi 2735if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2736 echo "$as_me:$LINENO: result: yes" >&5 2737echo "${ECHO_T}yes" >&6 2738 SET_MAKE= 2739else 2740 echo "$as_me:$LINENO: result: no" >&5 2741echo "${ECHO_T}no" >&6 2742 SET_MAKE="MAKE=${MAKE-make}" 2743fi 2744 2745rm -rf .tst 2>/dev/null 2746mkdir .tst 2>/dev/null 2747if test -d .tst; then 2748 am__leading_dot=. 2749else 2750 am__leading_dot=_ 2751fi 2752rmdir .tst 2>/dev/null 2753 2754DEPDIR="${am__leading_dot}deps" 2755 2756 ac_config_commands="$ac_config_commands depfiles" 2757 2758 2759am_make=${MAKE-make} 2760cat > confinc << 'END' 2761am__doit: 2762 @echo done 2763.PHONY: am__doit 2764END 2765# If we don't find an include directive, just comment out the code. 2766echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2767echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2768am__include="#" 2769am__quote= 2770_am_result=none 2771# First try GNU make style include. 2772echo "include confinc" > confmf 2773# We grep out `Entering directory' and `Leaving directory' 2774# messages which can occur if `w' ends up in MAKEFLAGS. 2775# In particular we don't look at `^make:' because GNU make might 2776# be invoked under some other name (usually "gmake"), in which 2777# case it prints its new name instead of `make'. 2778if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2779 am__include=include 2780 am__quote= 2781 _am_result=GNU 2782fi 2783# Now try BSD make style include. 2784if test "$am__include" = "#"; then 2785 echo '.include "confinc"' > confmf 2786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2787 am__include=.include 2788 am__quote="\"" 2789 _am_result=BSD 2790 fi 2791fi 2792 2793 2794echo "$as_me:$LINENO: result: $_am_result" >&5 2795echo "${ECHO_T}$_am_result" >&6 2796rm -f confinc confmf 2797 2798# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2799if test "${enable_dependency_tracking+set}" = set; then 2800 enableval="$enable_dependency_tracking" 2801 2802fi; 2803if test "x$enable_dependency_tracking" != xno; then 2804 am_depcomp="$ac_aux_dir/depcomp" 2805 AMDEPBACKSLASH='\' 2806fi 2807 2808 2809if test "x$enable_dependency_tracking" != xno; then 2810 AMDEP_TRUE= 2811 AMDEP_FALSE='#' 2812else 2813 AMDEP_TRUE='#' 2814 AMDEP_FALSE= 2815fi 2816 2817 2818 2819# test to see if srcdir already configured 2820if test "`cd $srcdir && pwd`" != "`pwd`" && 2821 test -f $srcdir/config.status; then 2822 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2823echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2824 { (exit 1); exit 1; }; } 2825fi 2826 2827# test whether we have cygpath 2828if test -z "$CYGPATH_W"; then 2829 if (cygpath --version) >/dev/null 2>/dev/null; then 2830 CYGPATH_W='cygpath -w' 2831 else 2832 CYGPATH_W=echo 2833 fi 2834fi 2835 2836 2837# Define the identity of the package. 2838 PACKAGE=bfd 2839 VERSION=2.17 2840 2841 2842cat >>confdefs.h <<_ACEOF 2843#define PACKAGE "$PACKAGE" 2844_ACEOF 2845 2846 2847cat >>confdefs.h <<_ACEOF 2848#define VERSION "$VERSION" 2849_ACEOF 2850 2851# Some tools Automake needs. 2852 2853ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2854 2855 2856AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2857 2858 2859AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2860 2861 2862AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2863 2864 2865MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2866 2867install_sh=${install_sh-"$am_aux_dir/install-sh"} 2868 2869# Installed binaries are usually stripped using `strip' when the user 2870# run `make install-strip'. However `strip' might not be the right 2871# tool to use in cross-compilation environments, therefore Automake 2872# will honor the `STRIP' environment variable to overrule this program. 2873if test "$cross_compiling" != no; then 2874 if test -n "$ac_tool_prefix"; then 2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2876set dummy ${ac_tool_prefix}strip; ac_word=$2 2877echo "$as_me:$LINENO: checking for $ac_word" >&5 2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2879if test "${ac_cv_prog_STRIP+set}" = set; then 2880 echo $ECHO_N "(cached) $ECHO_C" >&6 2881else 2882 if test -n "$STRIP"; then 2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2884else 2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886for as_dir in $PATH 2887do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897done 2898 2899fi 2900fi 2901STRIP=$ac_cv_prog_STRIP 2902if test -n "$STRIP"; then 2903 echo "$as_me:$LINENO: result: $STRIP" >&5 2904echo "${ECHO_T}$STRIP" >&6 2905else 2906 echo "$as_me:$LINENO: result: no" >&5 2907echo "${ECHO_T}no" >&6 2908fi 2909 2910fi 2911if test -z "$ac_cv_prog_STRIP"; then 2912 ac_ct_STRIP=$STRIP 2913 # Extract the first word of "strip", so it can be a program name with args. 2914set dummy strip; ac_word=$2 2915echo "$as_me:$LINENO: checking for $ac_word" >&5 2916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2918 echo $ECHO_N "(cached) $ECHO_C" >&6 2919else 2920 if test -n "$ac_ct_STRIP"; then 2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2922else 2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2924for as_dir in $PATH 2925do 2926 IFS=$as_save_IFS 2927 test -z "$as_dir" && as_dir=. 2928 for ac_exec_ext in '' $ac_executable_extensions; do 2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2930 ac_cv_prog_ac_ct_STRIP="strip" 2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2932 break 2 2933 fi 2934done 2935done 2936 2937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2938fi 2939fi 2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2941if test -n "$ac_ct_STRIP"; then 2942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2943echo "${ECHO_T}$ac_ct_STRIP" >&6 2944else 2945 echo "$as_me:$LINENO: result: no" >&5 2946echo "${ECHO_T}no" >&6 2947fi 2948 2949 STRIP=$ac_ct_STRIP 2950else 2951 STRIP="$ac_cv_prog_STRIP" 2952fi 2953 2954fi 2955INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2956 2957# We need awk for the "check" target. The system "awk" is bad on 2958# some platforms. 2959# Always define AMTAR for backward compatibility. 2960 2961AMTAR=${AMTAR-"${am_missing_run}tar"} 2962 2963am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2964 2965 2966 2967 2968depcc="$CC" am_compiler_list= 2969 2970echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2971echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2972if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2973 echo $ECHO_N "(cached) $ECHO_C" >&6 2974else 2975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2976 # We make a subdir and do the tests there. Otherwise we can end up 2977 # making bogus files that we don't know about and never remove. For 2978 # instance it was reported that on HP-UX the gcc test will end up 2979 # making a dummy file named `D' -- because `-MD' means `put the output 2980 # in D'. 2981 mkdir conftest.dir 2982 # Copy depcomp to subdir because otherwise we won't find it if we're 2983 # using a relative directory. 2984 cp "$am_depcomp" conftest.dir 2985 cd conftest.dir 2986 # We will build objects and dependencies in a subdirectory because 2987 # it helps to detect inapplicable dependency modes. For instance 2988 # both Tru64's cc and ICC support -MD to output dependencies as a 2989 # side effect of compilation, but ICC will put the dependencies in 2990 # the current directory while Tru64 will put them in the object 2991 # directory. 2992 mkdir sub 2993 2994 am_cv_CC_dependencies_compiler_type=none 2995 if test "$am_compiler_list" = ""; then 2996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2997 fi 2998 for depmode in $am_compiler_list; do 2999 # Setup a source with many dependencies, because some compilers 3000 # like to wrap large dependency lists on column 80 (with \), and 3001 # we should not choose a depcomp mode which is confused by this. 3002 # 3003 # We need to recreate these files for each test, as the compiler may 3004 # overwrite some of them when testing with obscure command lines. 3005 # This happens at least with the AIX C compiler. 3006 : > sub/conftest.c 3007 for i in 1 2 3 4 5 6; do 3008 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3010 # Solaris 8's {/usr,}/bin/sh. 3011 touch sub/conftst$i.h 3012 done 3013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3014 3015 case $depmode in 3016 nosideeffect) 3017 # after this tag, mechanisms are not by side-effect, so they'll 3018 # only be used when explicitly requested 3019 if test "x$enable_dependency_tracking" = xyes; then 3020 continue 3021 else 3022 break 3023 fi 3024 ;; 3025 none) break ;; 3026 esac 3027 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3028 # mode. It turns out that the SunPro C++ compiler does not properly 3029 # handle `-M -o', and we need to detect this. 3030 if depmode=$depmode \ 3031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3034 >/dev/null 2>conftest.err && 3035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3036 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3038 # icc doesn't choke on unknown options, it will just issue warnings 3039 # or remarks (even with -Werror). So we grep stderr for any message 3040 # that says an option was ignored or not supported. 3041 # When given -MP, icc 7.0 and 7.1 complain thusly: 3042 # icc: Command line warning: ignoring option '-M'; no argument required 3043 # The diagnosis changed in icc 8.0: 3044 # icc: Command line remark: option '-MP' not supported 3045 if (grep 'ignoring option' conftest.err || 3046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3047 am_cv_CC_dependencies_compiler_type=$depmode 3048 break 3049 fi 3050 fi 3051 done 3052 3053 cd .. 3054 rm -rf conftest.dir 3055else 3056 am_cv_CC_dependencies_compiler_type=none 3057fi 3058 3059fi 3060echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3061echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3062CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3063 3064 3065 3066if 3067 test "x$enable_dependency_tracking" != xno \ 3068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3069 am__fastdepCC_TRUE= 3070 am__fastdepCC_FALSE='#' 3071else 3072 am__fastdepCC_TRUE='#' 3073 am__fastdepCC_FALSE= 3074fi 3075 3076 3077 3078 3079if test -n "$ac_tool_prefix"; then 3080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3081set dummy ${ac_tool_prefix}ar; ac_word=$2 3082echo "$as_me:$LINENO: checking for $ac_word" >&5 3083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3084if test "${ac_cv_prog_AR+set}" = set; then 3085 echo $ECHO_N "(cached) $ECHO_C" >&6 3086else 3087 if test -n "$AR"; then 3088 ac_cv_prog_AR="$AR" # Let the user override the test. 3089else 3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3091for as_dir in $PATH 3092do 3093 IFS=$as_save_IFS 3094 test -z "$as_dir" && as_dir=. 3095 for ac_exec_ext in '' $ac_executable_extensions; do 3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3097 ac_cv_prog_AR="${ac_tool_prefix}ar" 3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3099 break 2 3100 fi 3101done 3102done 3103 3104fi 3105fi 3106AR=$ac_cv_prog_AR 3107if test -n "$AR"; then 3108 echo "$as_me:$LINENO: result: $AR" >&5 3109echo "${ECHO_T}$AR" >&6 3110else 3111 echo "$as_me:$LINENO: result: no" >&5 3112echo "${ECHO_T}no" >&6 3113fi 3114 3115fi 3116if test -z "$ac_cv_prog_AR"; then 3117 ac_ct_AR=$AR 3118 # Extract the first word of "ar", so it can be a program name with args. 3119set dummy ar; ac_word=$2 3120echo "$as_me:$LINENO: checking for $ac_word" >&5 3121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3122if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 3123 echo $ECHO_N "(cached) $ECHO_C" >&6 3124else 3125 if test -n "$ac_ct_AR"; then 3126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3127else 3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129for as_dir in $PATH 3130do 3131 IFS=$as_save_IFS 3132 test -z "$as_dir" && as_dir=. 3133 for ac_exec_ext in '' $ac_executable_extensions; do 3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3135 ac_cv_prog_ac_ct_AR="ar" 3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3137 break 2 3138 fi 3139done 3140done 3141 3142fi 3143fi 3144ac_ct_AR=$ac_cv_prog_ac_ct_AR 3145if test -n "$ac_ct_AR"; then 3146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 3147echo "${ECHO_T}$ac_ct_AR" >&6 3148else 3149 echo "$as_me:$LINENO: result: no" >&5 3150echo "${ECHO_T}no" >&6 3151fi 3152 3153 AR=$ac_ct_AR 3154else 3155 AR="$ac_cv_prog_AR" 3156fi 3157 3158if test -n "$ac_tool_prefix"; then 3159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3160set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3161echo "$as_me:$LINENO: checking for $ac_word" >&5 3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3163if test "${ac_cv_prog_RANLIB+set}" = set; then 3164 echo $ECHO_N "(cached) $ECHO_C" >&6 3165else 3166 if test -n "$RANLIB"; then 3167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3168else 3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3170for as_dir in $PATH 3171do 3172 IFS=$as_save_IFS 3173 test -z "$as_dir" && as_dir=. 3174 for ac_exec_ext in '' $ac_executable_extensions; do 3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3178 break 2 3179 fi 3180done 3181done 3182 3183fi 3184fi 3185RANLIB=$ac_cv_prog_RANLIB 3186if test -n "$RANLIB"; then 3187 echo "$as_me:$LINENO: result: $RANLIB" >&5 3188echo "${ECHO_T}$RANLIB" >&6 3189else 3190 echo "$as_me:$LINENO: result: no" >&5 3191echo "${ECHO_T}no" >&6 3192fi 3193 3194fi 3195if test -z "$ac_cv_prog_RANLIB"; then 3196 ac_ct_RANLIB=$RANLIB 3197 # Extract the first word of "ranlib", so it can be a program name with args. 3198set dummy ranlib; ac_word=$2 3199echo "$as_me:$LINENO: checking for $ac_word" >&5 3200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3201if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3202 echo $ECHO_N "(cached) $ECHO_C" >&6 3203else 3204 if test -n "$ac_ct_RANLIB"; then 3205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3206else 3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3208for as_dir in $PATH 3209do 3210 IFS=$as_save_IFS 3211 test -z "$as_dir" && as_dir=. 3212 for ac_exec_ext in '' $ac_executable_extensions; do 3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3214 ac_cv_prog_ac_ct_RANLIB="ranlib" 3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3216 break 2 3217 fi 3218done 3219done 3220 3221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3222fi 3223fi 3224ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3225if test -n "$ac_ct_RANLIB"; then 3226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3227echo "${ECHO_T}$ac_ct_RANLIB" >&6 3228else 3229 echo "$as_me:$LINENO: result: no" >&5 3230echo "${ECHO_T}no" >&6 3231fi 3232 3233 RANLIB=$ac_ct_RANLIB 3234else 3235 RANLIB="$ac_cv_prog_RANLIB" 3236fi 3237 3238 3239# Check whether --enable-shared or --disable-shared was given. 3240if test "${enable_shared+set}" = set; then 3241 enableval="$enable_shared" 3242 p=${PACKAGE-default} 3243case $enableval in 3244yes) enable_shared=yes ;; 3245no) enable_shared=no ;; 3246*) 3247 enable_shared=no 3248 # Look at the argument we got. We use all the common list separators. 3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3250 for pkg in $enableval; do 3251 if test "X$pkg" = "X$p"; then 3252 enable_shared=yes 3253 fi 3254 done 3255 IFS="$ac_save_ifs" 3256 ;; 3257esac 3258else 3259 enable_shared=no 3260fi; 3261 3262# Check whether --enable-static or --disable-static was given. 3263if test "${enable_static+set}" = set; then 3264 enableval="$enable_static" 3265 p=${PACKAGE-default} 3266case $enableval in 3267yes) enable_static=yes ;; 3268no) enable_static=no ;; 3269*) 3270 enable_static=no 3271 # Look at the argument we got. We use all the common list separators. 3272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3273 for pkg in $enableval; do 3274 if test "X$pkg" = "X$p"; then 3275 enable_static=yes 3276 fi 3277 done 3278 IFS="$ac_save_ifs" 3279 ;; 3280esac 3281else 3282 enable_static=yes 3283fi; 3284# Check whether --enable-fast-install or --disable-fast-install was given. 3285if test "${enable_fast_install+set}" = set; then 3286 enableval="$enable_fast_install" 3287 p=${PACKAGE-default} 3288case $enableval in 3289yes) enable_fast_install=yes ;; 3290no) enable_fast_install=no ;; 3291*) 3292 enable_fast_install=no 3293 # Look at the argument we got. We use all the common list separators. 3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3295 for pkg in $enableval; do 3296 if test "X$pkg" = "X$p"; then 3297 enable_fast_install=yes 3298 fi 3299 done 3300 IFS="$ac_save_ifs" 3301 ;; 3302esac 3303else 3304 enable_fast_install=yes 3305fi; 3306 3307# Check whether --with-gnu-ld or --without-gnu-ld was given. 3308if test "${with_gnu_ld+set}" = set; then 3309 withval="$with_gnu_ld" 3310 test "$withval" = no || with_gnu_ld=yes 3311else 3312 with_gnu_ld=no 3313fi; 3314ac_prog=ld 3315if test "$GCC" = yes; then 3316 # Check if gcc -print-prog-name=ld gives a path. 3317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 3318echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 3319 case $host in 3320 *-*-mingw*) 3321 # gcc leaves a trailing carriage return which upsets mingw 3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3323 *) 3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3325 esac 3326 case $ac_prog in 3327 # Accept absolute paths. 3328 [\\/]* | [A-Za-z]:[\\/]*) 3329 re_direlt='/[^/][^/]*/\.\./' 3330 # Canonicalize the path of ld 3331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3334 done 3335 test -z "$LD" && LD="$ac_prog" 3336 ;; 3337 "") 3338 # If it fails, then pretend we aren't using GCC. 3339 ac_prog=ld 3340 ;; 3341 *) 3342 # If it is relative, then search for the first ld in PATH. 3343 with_gnu_ld=unknown 3344 ;; 3345 esac 3346elif test "$with_gnu_ld" = yes; then 3347 echo "$as_me:$LINENO: checking for GNU ld" >&5 3348echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3349else 3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3351echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3352fi 3353if test "${lt_cv_path_LD+set}" = set; then 3354 echo $ECHO_N "(cached) $ECHO_C" >&6 3355else 3356 if test -z "$LD"; then 3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3358 for ac_dir in $PATH; do 3359 test -z "$ac_dir" && ac_dir=. 3360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3361 lt_cv_path_LD="$ac_dir/$ac_prog" 3362 # Check to see if the program is GNU ld. I'd rather use --version, 3363 # but apparently some GNU ld's only accept -v. 3364 # Break only if it was the GNU/non-GNU ld that we prefer. 3365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3366 test "$with_gnu_ld" != no && break 3367 else 3368 test "$with_gnu_ld" != yes && break 3369 fi 3370 fi 3371 done 3372 IFS="$ac_save_ifs" 3373else 3374 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3375fi 3376fi 3377 3378LD="$lt_cv_path_LD" 3379if test -n "$LD"; then 3380 echo "$as_me:$LINENO: result: $LD" >&5 3381echo "${ECHO_T}$LD" >&6 3382else 3383 echo "$as_me:$LINENO: result: no" >&5 3384echo "${ECHO_T}no" >&6 3385fi 3386test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3387echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3388 { (exit 1); exit 1; }; } 3389echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3390echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3391if test "${lt_cv_prog_gnu_ld+set}" = set; then 3392 echo $ECHO_N "(cached) $ECHO_C" >&6 3393else 3394 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3395if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3396 lt_cv_prog_gnu_ld=yes 3397else 3398 lt_cv_prog_gnu_ld=no 3399fi 3400fi 3401echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3402echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3403with_gnu_ld=$lt_cv_prog_gnu_ld 3404 3405 3406echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3407echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3408if test "${lt_cv_ld_reload_flag+set}" = set; then 3409 echo $ECHO_N "(cached) $ECHO_C" >&6 3410else 3411 lt_cv_ld_reload_flag='-r' 3412fi 3413echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3414echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3415reload_flag=$lt_cv_ld_reload_flag 3416test -n "$reload_flag" && reload_flag=" $reload_flag" 3417 3418echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3419echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3420if test "${lt_cv_path_NM+set}" = set; then 3421 echo $ECHO_N "(cached) $ECHO_C" >&6 3422else 3423 if test -n "$NM"; then 3424 # Let the user override the test. 3425 lt_cv_path_NM="$NM" 3426else 3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3429 test -z "$ac_dir" && ac_dir=. 3430 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3432 # Check to see if the nm accepts a BSD-compat flag. 3433 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3434 # nm: unknown option "B" ignored 3435 # Tru64's nm complains that /dev/null is an invalid object file 3436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3437 lt_cv_path_NM="$tmp_nm -B" 3438 break 3439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3440 lt_cv_path_NM="$tmp_nm -p" 3441 break 3442 else 3443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3444 continue # so that we can try to find one that supports BSD flags 3445 fi 3446 fi 3447 done 3448 IFS="$ac_save_ifs" 3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3450fi 3451fi 3452 3453NM="$lt_cv_path_NM" 3454echo "$as_me:$LINENO: result: $NM" >&5 3455echo "${ECHO_T}$NM" >&6 3456 3457echo "$as_me:$LINENO: checking whether ln -s works" >&5 3458echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3459LN_S=$as_ln_s 3460if test "$LN_S" = "ln -s"; then 3461 echo "$as_me:$LINENO: result: yes" >&5 3462echo "${ECHO_T}yes" >&6 3463else 3464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3465echo "${ECHO_T}no, using $LN_S" >&6 3466fi 3467 3468echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 3469echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 3470if test "${lt_cv_deplibs_check_method+set}" = set; then 3471 echo $ECHO_N "(cached) $ECHO_C" >&6 3472else 3473 lt_cv_file_magic_cmd='$MAGIC_CMD' 3474lt_cv_file_magic_test_file= 3475lt_cv_deplibs_check_method='unknown' 3476# Need to set the preceding variable on all platforms that support 3477# interlibrary dependencies. 3478# 'none' -- dependencies not supported. 3479# `unknown' -- same as none, but documents that we really don't know. 3480# 'pass_all' -- all dependencies passed with no checks. 3481# 'test_compile' -- check by making test program. 3482# 'file_magic [regex]' -- check by looking for files in library path 3483# which responds to the $file_magic_cmd with a given egrep regex. 3484# If you have `file' or equivalent on your system and you're not sure 3485# whether `pass_all' will *always* work, you probably want this one. 3486 3487case $host_os in 3488aix*) 3489 lt_cv_deplibs_check_method=pass_all 3490 ;; 3491 3492beos*) 3493 lt_cv_deplibs_check_method=pass_all 3494 ;; 3495 3496bsdi4*) 3497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3498 lt_cv_file_magic_cmd='/usr/bin/file -L' 3499 lt_cv_file_magic_test_file=/shlib/libc.so 3500 ;; 3501 3502cygwin* | mingw* |pw32*) 3503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3504 lt_cv_file_magic_cmd='$OBJDUMP -f' 3505 ;; 3506 3507darwin* | rhapsody*) 3508 # this will be overwritten by pass_all, but leave it in just in case 3509 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3510 lt_cv_file_magic_cmd='/usr/bin/file -L' 3511 case "$host_os" in 3512 rhapsody* | darwin1.012) 3513 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' 3514 ;; 3515 *) # Darwin 1.3 on 3516 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3517 ;; 3518 esac 3519 lt_cv_deplibs_check_method=pass_all 3520 ;; 3521 3522freebsd* | kfreebsd*-gnu) 3523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3524 case $host_cpu in 3525 i*86 ) 3526 # Not sure whether the presence of OpenBSD here was a mistake. 3527 # Let's accept both of them until this is cleared up. 3528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3529 lt_cv_file_magic_cmd=/usr/bin/file 3530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3531 ;; 3532 esac 3533 else 3534 lt_cv_deplibs_check_method=pass_all 3535 fi 3536 ;; 3537 3538gnu*) 3539 lt_cv_deplibs_check_method=pass_all 3540 ;; 3541 3542hpux10.20*|hpux11*) 3543 case $host_cpu in 3544 hppa*) 3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3546 lt_cv_file_magic_cmd=/usr/bin/file 3547 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3548 ;; 3549 ia64*) 3550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3551 lt_cv_file_magic_cmd=/usr/bin/file 3552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3553 ;; 3554 esac 3555 ;; 3556 3557irix5* | irix6*) 3558 case $host_os in 3559 irix5*) 3560 # this will be overridden with pass_all, but let us keep it just in case 3561 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3562 ;; 3563 *) 3564 case $LD in 3565 *-32|*"-32 ") libmagic=32-bit;; 3566 *-n32|*"-n32 ") libmagic=N32;; 3567 *-64|*"-64 ") libmagic=64-bit;; 3568 *) libmagic=never-match;; 3569 esac 3570 # this will be overridden with pass_all, but let us keep it just in case 3571 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3572 ;; 3573 esac 3574 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3575 lt_cv_deplibs_check_method=pass_all 3576 ;; 3577 3578# This must be Linux ELF. 3579linux-gnu*) 3580 lt_cv_deplibs_check_method=pass_all 3581 ;; 3582 3583netbsd* | knetbsd*-gnu) 3584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3585 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 3586 else 3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 3588 fi 3589 ;; 3590 3591newsos6) 3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3593 lt_cv_file_magic_cmd=/usr/bin/file 3594 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3595 ;; 3596 3597osf3* | osf4* | osf5*) 3598 # this will be overridden with pass_all, but let us keep it just in case 3599 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3600 lt_cv_file_magic_test_file=/shlib/libc.so 3601 lt_cv_deplibs_check_method=pass_all 3602 ;; 3603 3604sco3.2v5*) 3605 lt_cv_deplibs_check_method=pass_all 3606 ;; 3607 3608solaris*) 3609 lt_cv_deplibs_check_method=pass_all 3610 lt_cv_file_magic_test_file=/lib/libc.so 3611 ;; 3612 3613sysv5uw[78]* | sysv4*uw2*) 3614 lt_cv_deplibs_check_method=pass_all 3615 ;; 3616 3617sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3618 case $host_vendor in 3619 ncr) 3620 lt_cv_deplibs_check_method=pass_all 3621 ;; 3622 motorola) 3623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 3624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3625 ;; 3626 esac 3627 ;; 3628esac 3629 3630fi 3631echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3632echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3633file_magic_cmd=$lt_cv_file_magic_cmd 3634deplibs_check_method=$lt_cv_deplibs_check_method 3635 3636 3637 3638 3639# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 3640 3641# find the maximum length of command line arguments 3642echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 3643echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 3644if test "${lt_cv_sys_max_cmd_len+set}" = set; then 3645 echo $ECHO_N "(cached) $ECHO_C" >&6 3646else 3647 i=0 3648 teststring="ABCD" 3649 3650 case $build_os in 3651 msdosdjgpp*) 3652 # On DJGPP, this test can blow up pretty badly due to problems in libc 3653 # (any single argument exceeding 2000 bytes causes a buffer overrun 3654 # during glob expansion). Even if it were fixed, the result of this 3655 # check would be larger than it should be. 3656 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3657 ;; 3658 3659 cygwin* | mingw*) 3660 # On Win9x/ME, this test blows up -- it succeeds, but takes 3661 # about 5 minutes as the teststring grows exponentially. 3662 # Worse, since 9x/ME are not pre-emptively multitasking, 3663 # you end up with a "frozen" computer, even though with patience 3664 # the test eventually succeeds (with a max line length of 256k). 3665 # Instead, let's just punt: use the minimum linelength reported by 3666 # all of the supported platforms: 8192 (on NT/2K/XP). 3667 lt_cv_sys_max_cmd_len=8192; 3668 ;; 3669 3670 amigaos*) 3671 # On AmigaOS with pdksh, this test takes hours, literally. 3672 # So we just punt and use a minimum line length of 8192. 3673 lt_cv_sys_max_cmd_len=8192; 3674 ;; 3675 3676 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3677 # This has been around since 386BSD, at least. Likely further. 3678 if test -x /sbin/sysctl; then 3679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3680 elif test -x /usr/sbin/sysctl; then 3681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3682 else 3683 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 3684 fi 3685 # And add a safety zone 3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3688 ;; 3689 esac 3690 3691fi 3692 3693if test -n "$lt_cv_sys_max_cmd_len" ; then 3694 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 3695echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 3696else 3697 echo "$as_me:$LINENO: result: none" >&5 3698echo "${ECHO_T}none" >&6 3699fi 3700 3701 3702# Only perform the check for file, if the check method requires it 3703case $deplibs_check_method in 3704file_magic*) 3705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 3706 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 3707echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 3708if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 3709 echo $ECHO_N "(cached) $ECHO_C" >&6 3710else 3711 case $MAGIC_CMD in 3712 /*) 3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3714 ;; 3715 ?:/*) 3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3717 ;; 3718 *) 3719 ac_save_MAGIC_CMD="$MAGIC_CMD" 3720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3721 ac_dummy="/usr/bin:$PATH" 3722 for ac_dir in $ac_dummy; do 3723 test -z "$ac_dir" && ac_dir=. 3724 if test -f $ac_dir/${ac_tool_prefix}file; then 3725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 3726 if test -n "$file_magic_test_file"; then 3727 case $deplibs_check_method in 3728 "file_magic "*) 3729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3732 egrep "$file_magic_regex" > /dev/null; then 3733 : 3734 else 3735 cat <<EOF 1>&2 3736 3737*** Warning: the command libtool uses to detect shared libraries, 3738*** $file_magic_cmd, produces output that libtool cannot recognize. 3739*** The result is that libtool may fail to recognize shared libraries 3740*** as such. This will affect the creation of libtool libraries that 3741*** depend on shared libraries, but programs linked with such libtool 3742*** libraries will work regardless of this problem. Nevertheless, you 3743*** may want to report the problem to your system manager and/or to 3744*** bug-libtool@gnu.org 3745 3746EOF 3747 fi ;; 3748 esac 3749 fi 3750 break 3751 fi 3752 done 3753 IFS="$ac_save_ifs" 3754 MAGIC_CMD="$ac_save_MAGIC_CMD" 3755 ;; 3756esac 3757fi 3758 3759MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3760if test -n "$MAGIC_CMD"; then 3761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 3762echo "${ECHO_T}$MAGIC_CMD" >&6 3763else 3764 echo "$as_me:$LINENO: result: no" >&5 3765echo "${ECHO_T}no" >&6 3766fi 3767 3768if test -z "$lt_cv_path_MAGIC_CMD"; then 3769 if test -n "$ac_tool_prefix"; then 3770 echo "$as_me:$LINENO: checking for file" >&5 3771echo $ECHO_N "checking for file... $ECHO_C" >&6 3772if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 3773 echo $ECHO_N "(cached) $ECHO_C" >&6 3774else 3775 case $MAGIC_CMD in 3776 /*) 3777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3778 ;; 3779 ?:/*) 3780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3781 ;; 3782 *) 3783 ac_save_MAGIC_CMD="$MAGIC_CMD" 3784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3785 ac_dummy="/usr/bin:$PATH" 3786 for ac_dir in $ac_dummy; do 3787 test -z "$ac_dir" && ac_dir=. 3788 if test -f $ac_dir/file; then 3789 lt_cv_path_MAGIC_CMD="$ac_dir/file" 3790 if test -n "$file_magic_test_file"; then 3791 case $deplibs_check_method in 3792 "file_magic "*) 3793 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3796 egrep "$file_magic_regex" > /dev/null; then 3797 : 3798 else 3799 cat <<EOF 1>&2 3800 3801*** Warning: the command libtool uses to detect shared libraries, 3802*** $file_magic_cmd, produces output that libtool cannot recognize. 3803*** The result is that libtool may fail to recognize shared libraries 3804*** as such. This will affect the creation of libtool libraries that 3805*** depend on shared libraries, but programs linked with such libtool 3806*** libraries will work regardless of this problem. Nevertheless, you 3807*** may want to report the problem to your system manager and/or to 3808*** bug-libtool@gnu.org 3809 3810EOF 3811 fi ;; 3812 esac 3813 fi 3814 break 3815 fi 3816 done 3817 IFS="$ac_save_ifs" 3818 MAGIC_CMD="$ac_save_MAGIC_CMD" 3819 ;; 3820esac 3821fi 3822 3823MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3824if test -n "$MAGIC_CMD"; then 3825 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 3826echo "${ECHO_T}$MAGIC_CMD" >&6 3827else 3828 echo "$as_me:$LINENO: result: no" >&5 3829echo "${ECHO_T}no" >&6 3830fi 3831 3832 else 3833 MAGIC_CMD=: 3834 fi 3835fi 3836 3837 fi 3838 ;; 3839esac 3840 3841if test -n "$ac_tool_prefix"; then 3842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3843set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3844echo "$as_me:$LINENO: checking for $ac_word" >&5 3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3846if test "${ac_cv_prog_RANLIB+set}" = set; then 3847 echo $ECHO_N "(cached) $ECHO_C" >&6 3848else 3849 if test -n "$RANLIB"; then 3850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3851else 3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3853for as_dir in $PATH 3854do 3855 IFS=$as_save_IFS 3856 test -z "$as_dir" && as_dir=. 3857 for ac_exec_ext in '' $ac_executable_extensions; do 3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3861 break 2 3862 fi 3863done 3864done 3865 3866fi 3867fi 3868RANLIB=$ac_cv_prog_RANLIB 3869if test -n "$RANLIB"; then 3870 echo "$as_me:$LINENO: result: $RANLIB" >&5 3871echo "${ECHO_T}$RANLIB" >&6 3872else 3873 echo "$as_me:$LINENO: result: no" >&5 3874echo "${ECHO_T}no" >&6 3875fi 3876 3877fi 3878if test -z "$ac_cv_prog_RANLIB"; then 3879 ac_ct_RANLIB=$RANLIB 3880 # Extract the first word of "ranlib", so it can be a program name with args. 3881set dummy ranlib; ac_word=$2 3882echo "$as_me:$LINENO: checking for $ac_word" >&5 3883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3884if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3885 echo $ECHO_N "(cached) $ECHO_C" >&6 3886else 3887 if test -n "$ac_ct_RANLIB"; then 3888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3889else 3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3891for as_dir in $PATH 3892do 3893 IFS=$as_save_IFS 3894 test -z "$as_dir" && as_dir=. 3895 for ac_exec_ext in '' $ac_executable_extensions; do 3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3897 ac_cv_prog_ac_ct_RANLIB="ranlib" 3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3899 break 2 3900 fi 3901done 3902done 3903 3904 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3905fi 3906fi 3907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3908if test -n "$ac_ct_RANLIB"; then 3909 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3910echo "${ECHO_T}$ac_ct_RANLIB" >&6 3911else 3912 echo "$as_me:$LINENO: result: no" >&5 3913echo "${ECHO_T}no" >&6 3914fi 3915 3916 RANLIB=$ac_ct_RANLIB 3917else 3918 RANLIB="$ac_cv_prog_RANLIB" 3919fi 3920 3921if test -n "$ac_tool_prefix"; then 3922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3923set dummy ${ac_tool_prefix}strip; ac_word=$2 3924echo "$as_me:$LINENO: checking for $ac_word" >&5 3925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3926if test "${ac_cv_prog_STRIP+set}" = set; then 3927 echo $ECHO_N "(cached) $ECHO_C" >&6 3928else 3929 if test -n "$STRIP"; then 3930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3931else 3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933for as_dir in $PATH 3934do 3935 IFS=$as_save_IFS 3936 test -z "$as_dir" && as_dir=. 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3939 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3941 break 2 3942 fi 3943done 3944done 3945 3946fi 3947fi 3948STRIP=$ac_cv_prog_STRIP 3949if test -n "$STRIP"; then 3950 echo "$as_me:$LINENO: result: $STRIP" >&5 3951echo "${ECHO_T}$STRIP" >&6 3952else 3953 echo "$as_me:$LINENO: result: no" >&5 3954echo "${ECHO_T}no" >&6 3955fi 3956 3957fi 3958if test -z "$ac_cv_prog_STRIP"; then 3959 ac_ct_STRIP=$STRIP 3960 # Extract the first word of "strip", so it can be a program name with args. 3961set dummy strip; ac_word=$2 3962echo "$as_me:$LINENO: checking for $ac_word" >&5 3963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3964if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3965 echo $ECHO_N "(cached) $ECHO_C" >&6 3966else 3967 if test -n "$ac_ct_STRIP"; then 3968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3969else 3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3971for as_dir in $PATH 3972do 3973 IFS=$as_save_IFS 3974 test -z "$as_dir" && as_dir=. 3975 for ac_exec_ext in '' $ac_executable_extensions; do 3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3977 ac_cv_prog_ac_ct_STRIP="strip" 3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3979 break 2 3980 fi 3981done 3982done 3983 3984 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3985fi 3986fi 3987ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3988if test -n "$ac_ct_STRIP"; then 3989 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3990echo "${ECHO_T}$ac_ct_STRIP" >&6 3991else 3992 echo "$as_me:$LINENO: result: no" >&5 3993echo "${ECHO_T}no" >&6 3994fi 3995 3996 STRIP=$ac_ct_STRIP 3997else 3998 STRIP="$ac_cv_prog_STRIP" 3999fi 4000 4001 4002# Check for any special flags to pass to ltconfig. 4003libtool_flags="--cache-file=$cache_file" 4004test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 4005test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 4006test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 4007test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" 4008test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 4009 4010 4011# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4012if test "${enable_libtool_lock+set}" = set; then 4013 enableval="$enable_libtool_lock" 4014 4015fi; 4016test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 4017test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 4018 4019 4020# Check whether --with-pic or --without-pic was given. 4021if test "${with_pic+set}" = set; then 4022 withval="$with_pic" 4023 pic_mode="$withval" 4024else 4025 pic_mode=default 4026fi; 4027test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 4028test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 4029 4030# Some flags need to be propagated to the compiler or linker for good 4031# libtool support. 4032case $host in 4033*-*-irix6*) 4034 # Find out which ABI we are using. 4035 echo '#line 4035 "configure"' > conftest.$ac_ext 4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4037 (eval $ac_compile) 2>&5 4038 ac_status=$? 4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4040 (exit $ac_status); }; then 4041 if test "$lt_cv_prog_gnu_ld" = yes; then 4042 case `/usr/bin/file conftest.$ac_objext` in 4043 *32-bit*) 4044 LD="${LD-ld} -melf32bsmip" 4045 ;; 4046 *N32*) 4047 LD="${LD-ld} -melf32bmipn32" 4048 ;; 4049 *64-bit*) 4050 LD="${LD-ld} -melf64bmip" 4051 ;; 4052 esac 4053 else 4054 case `/usr/bin/file conftest.$ac_objext` in 4055 *32-bit*) 4056 LD="${LD-ld} -32" 4057 ;; 4058 *N32*) 4059 LD="${LD-ld} -n32" 4060 ;; 4061 *64-bit*) 4062 LD="${LD-ld} -64" 4063 ;; 4064 esac 4065 fi 4066 fi 4067 rm -rf conftest* 4068 ;; 4069 4070ia64-*-hpux*) 4071 # Find out which ABI we are using. 4072 echo 'int i;' > conftest.$ac_ext 4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4074 (eval $ac_compile) 2>&5 4075 ac_status=$? 4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 (exit $ac_status); }; then 4078 case "`/usr/bin/file conftest.o`" in 4079 *ELF-32*) 4080 HPUX_IA64_MODE="32" 4081 ;; 4082 *ELF-64*) 4083 HPUX_IA64_MODE="64" 4084 ;; 4085 esac 4086 fi 4087 rm -rf conftest* 4088 ;; 4089 4090x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4091 # Find out which ABI we are using. 4092 echo 'int i;' > conftest.$ac_ext 4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4094 (eval $ac_compile) 2>&5 4095 ac_status=$? 4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4097 (exit $ac_status); }; then 4098 case "`/usr/bin/file conftest.o`" in 4099 *32-bit*) 4100 case $host in 4101 x86_64-*linux*) 4102 LD="${LD-ld} -m elf_i386" 4103 ;; 4104 ppc64-*linux*|powerpc64-*linux*) 4105 LD="${LD-ld} -m elf32ppclinux" 4106 ;; 4107 s390x-*linux*) 4108 LD="${LD-ld} -m elf_s390" 4109 ;; 4110 sparc64-*linux*) 4111 LD="${LD-ld} -m elf32_sparc" 4112 ;; 4113 esac 4114 ;; 4115 *64-bit*) 4116 case $host in 4117 x86_64-*linux*) 4118 LD="${LD-ld} -m elf_x86_64" 4119 ;; 4120 ppc*-*linux*|powerpc*-*linux*) 4121 LD="${LD-ld} -m elf64ppc" 4122 ;; 4123 s390*-*linux*) 4124 LD="${LD-ld} -m elf64_s390" 4125 ;; 4126 sparc*-*linux*) 4127 LD="${LD-ld} -m elf64_sparc" 4128 ;; 4129 esac 4130 ;; 4131 esac 4132 fi 4133 rm -rf conftest* 4134 ;; 4135 4136*-*-sco3.2v5*) 4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4138 SAVE_CFLAGS="$CFLAGS" 4139 CFLAGS="$CFLAGS -belf" 4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4141echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4142if test "${lt_cv_cc_needs_belf+set}" = set; then 4143 echo $ECHO_N "(cached) $ECHO_C" >&6 4144else 4145 4146 4147 ac_ext=c 4148ac_cpp='$CPP $CPPFLAGS' 4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4151ac_compiler_gnu=$ac_cv_c_compiler_gnu 4152 4153 cat >conftest.$ac_ext <<_ACEOF 4154/* confdefs.h. */ 4155_ACEOF 4156cat confdefs.h >>conftest.$ac_ext 4157cat >>conftest.$ac_ext <<_ACEOF 4158/* end confdefs.h. */ 4159 4160int 4161main () 4162{ 4163 4164 ; 4165 return 0; 4166} 4167_ACEOF 4168rm -f conftest.$ac_objext conftest$ac_exeext 4169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4170 (eval $ac_link) 2>conftest.er1 4171 ac_status=$? 4172 grep -v '^ *+' conftest.er1 >conftest.err 4173 rm -f conftest.er1 4174 cat conftest.err >&5 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); } && 4177 { ac_try='test -z "$ac_c_werror_flag" 4178 || test ! -s conftest.err' 4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4180 (eval $ac_try) 2>&5 4181 ac_status=$? 4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4183 (exit $ac_status); }; } && 4184 { ac_try='test -s conftest$ac_exeext' 4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4186 (eval $ac_try) 2>&5 4187 ac_status=$? 4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4189 (exit $ac_status); }; }; then 4190 lt_cv_cc_needs_belf=yes 4191else 4192 echo "$as_me: failed program was:" >&5 4193sed 's/^/| /' conftest.$ac_ext >&5 4194 4195lt_cv_cc_needs_belf=no 4196fi 4197rm -f conftest.err conftest.$ac_objext \ 4198 conftest$ac_exeext conftest.$ac_ext 4199 ac_ext=c 4200ac_cpp='$CPP $CPPFLAGS' 4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4203ac_compiler_gnu=$ac_cv_c_compiler_gnu 4204 4205fi 4206echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4207echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4208 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4210 CFLAGS="$SAVE_CFLAGS" 4211 fi 4212 ;; 4213 4214 4215esac 4216 4217 4218# Save cache, so that ltconfig can load it 4219cat >confcache <<\_ACEOF 4220# This file is a shell script that caches the results of configure 4221# tests run on this system so they can be shared between configure 4222# scripts and configure runs, see configure's option --config-cache. 4223# It is not useful on other systems. If it contains results you don't 4224# want to keep, you may remove or edit it. 4225# 4226# config.status only pays attention to the cache file if you give it 4227# the --recheck option to rerun configure. 4228# 4229# `ac_cv_env_foo' variables (set or unset) will be overridden when 4230# loading this file, other *unset* `ac_cv_foo' will be assigned the 4231# following values. 4232 4233_ACEOF 4234 4235# The following way of writing the cache mishandles newlines in values, 4236# but we know of no workaround that is simple, portable, and efficient. 4237# So, don't put newlines in cache variables' values. 4238# Ultrix sh set writes to stderr and can't be redirected directly, 4239# and sets the high bit in the cache file unless we assign to the vars. 4240{ 4241 (set) 2>&1 | 4242 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4243 *ac_space=\ *) 4244 # `set' does not quote correctly, so add quotes (double-quote 4245 # substitution turns \\\\ into \\, and sed turns \\ into \). 4246 sed -n \ 4247 "s/'/'\\\\''/g; 4248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4249 ;; 4250 *) 4251 # `set' quotes correctly as required by POSIX, so do not add quotes. 4252 sed -n \ 4253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4254 ;; 4255 esac; 4256} | 4257 sed ' 4258 t clear 4259 : clear 4260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4261 t end 4262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4263 : end' >>confcache 4264if diff $cache_file confcache >/dev/null 2>&1; then :; else 4265 if test -w $cache_file; then 4266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4267 cat confcache >$cache_file 4268 else 4269 echo "not updating unwritable cache $cache_file" 4270 fi 4271fi 4272rm -f confcache 4273 4274# Actually configure libtool. ac_aux_dir is where install-sh is found. 4275AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 4276MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 4277LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 4278AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 4279objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 4280deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 4281${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 4282$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 4283|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 4284echo "$as_me: error: libtool configure failed" >&2;} 4285 { (exit 1); exit 1; }; } 4286 4287# Reload cache, that may have been modified by ltconfig 4288if test -r "$cache_file"; then 4289 # Some versions of bash will fail to source /dev/null (special 4290 # files actually), so we avoid doing that. 4291 if test -f "$cache_file"; then 4292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 4293echo "$as_me: loading cache $cache_file" >&6;} 4294 case $cache_file in 4295 [\\/]* | ?:[\\/]* ) . $cache_file;; 4296 *) . ./$cache_file;; 4297 esac 4298 fi 4299else 4300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 4301echo "$as_me: creating cache $cache_file" >&6;} 4302 >$cache_file 4303fi 4304 4305 4306# This can be used to rebuild libtool when needed 4307LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" 4308 4309# Always use our own libtool. 4310LIBTOOL='$(SHELL) $(top_builddir)/libtool' 4311 4312# Redirect the config.log output again, so that the ltconfig log is not 4313# clobbered by the next message. 4314exec 5>>./config.log 4315 4316 4317 4318 4319 4320 4321 4322# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. 4323if test "${enable_64_bit_bfd+set}" = set; then 4324 enableval="$enable_64_bit_bfd" 4325 case "${enableval}" in 4326 yes) want64=true ;; 4327 no) want64=false ;; 4328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 4329echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} 4330 { (exit 1); exit 1; }; } ;; 4331esac 4332else 4333 want64=false 4334fi; # Check whether --enable-targets or --disable-targets was given. 4335if test "${enable_targets+set}" = set; then 4336 enableval="$enable_targets" 4337 case "${enableval}" in 4338 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 4339echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} 4340 { (exit 1); exit 1; }; } 4341 ;; 4342 no) enable_targets= ;; 4343 *) enable_targets=$enableval ;; 4344esac 4345fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 4346if test "${enable_commonbfdlib+set}" = set; then 4347 enableval="$enable_commonbfdlib" 4348 case "${enableval}" in 4349 yes) commonbfdlib=true ;; 4350 no) commonbfdlib=false ;; 4351 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 4352echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} 4353 { (exit 1); exit 1; }; } ;; 4354esac 4355fi; 4356# Check whether --with-mmap or --without-mmap was given. 4357if test "${with_mmap+set}" = set; then 4358 withval="$with_mmap" 4359 case "${withval}" in 4360 yes) want_mmap=true ;; 4361 no) want_mmap=false ;; 4362 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5 4363echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} 4364 { (exit 1); exit 1; }; } ;; 4365esac 4366else 4367 want_mmap=false 4368fi; 4369# Check whether --enable-secureplt or --disable-secureplt was given. 4370if test "${enable_secureplt+set}" = set; then 4371 enableval="$enable_secureplt" 4372 case "${enableval}" in 4373 yes) use_secureplt=true ;; 4374 no) use_secureplt=false ;; 4375 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5 4376echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;} 4377 { (exit 1); exit 1; }; } ;; 4378esac 4379else 4380 use_secureplt=true 4381fi; if test $use_secureplt = true; then 4382 4383cat >>confdefs.h <<\_ACEOF 4384#define USE_SECUREPLT 1 4385_ACEOF 4386 4387fi 4388 4389 4390GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 4391 4392# Check whether --enable-werror or --disable-werror was given. 4393if test "${enable_werror+set}" = set; then 4394 enableval="$enable_werror" 4395 case "${enableval}" in 4396 yes | y) ERROR_ON_WARNING="yes" ;; 4397 no | n) ERROR_ON_WARNING="no" ;; 4398 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 4399echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} 4400 { (exit 1); exit 1; }; } ;; 4401 esac 4402fi; 4403 4404# Enable -Werror by default when using gcc 4405if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 4406 ERROR_ON_WARNING=yes 4407fi 4408 4409NO_WERROR= 4410if test "${ERROR_ON_WARNING}" = yes ; then 4411 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 4412 NO_WERROR="-Wno-error" 4413fi 4414 4415if test "${GCC}" = yes ; then 4416 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 4417fi 4418 4419# Check whether --enable-build-warnings or --disable-build-warnings was given. 4420if test "${enable_build_warnings+set}" = set; then 4421 enableval="$enable_build_warnings" 4422 case "${enableval}" in 4423 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; 4424 no) if test "${GCC}" = yes ; then 4425 WARN_CFLAGS="-w" 4426 fi;; 4427 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 4428 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; 4429 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 4430 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; 4431 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; 4432esac 4433fi; 4434 4435if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 4436 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 4437fi 4438 4439 4440 4441 4442 4443 ac_config_headers="$ac_config_headers config.h:config.in" 4444 4445 4446if test -z "$target" ; then 4447 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 4448echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} 4449 { (exit 1); exit 1; }; } 4450fi 4451 4452echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 4453echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 4454 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 4455if test "${enable_maintainer_mode+set}" = set; then 4456 enableval="$enable_maintainer_mode" 4457 USE_MAINTAINER_MODE=$enableval 4458else 4459 USE_MAINTAINER_MODE=no 4460fi; 4461 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 4462echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 4463 4464 4465if test $USE_MAINTAINER_MODE = yes; then 4466 MAINTAINER_MODE_TRUE= 4467 MAINTAINER_MODE_FALSE='#' 4468else 4469 MAINTAINER_MODE_TRUE='#' 4470 MAINTAINER_MODE_FALSE= 4471fi 4472 4473 MAINT=$MAINTAINER_MODE_TRUE 4474 4475 4476 case ${build_alias} in 4477 "") build_noncanonical=${build} ;; 4478 *) build_noncanonical=${build_alias} ;; 4479esac 4480 4481 case ${host_alias} in 4482 "") host_noncanonical=${build_noncanonical} ;; 4483 *) host_noncanonical=${host_alias} ;; 4484esac 4485 4486 case ${target_alias} in 4487 "") target_noncanonical=${host_noncanonical} ;; 4488 *) target_noncanonical=${target_alias} ;; 4489esac 4490 4491echo "$as_me:$LINENO: checking whether to install libbfd" >&5 4492echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 4493 # Check whether --enable-install-libbfd or --disable-install-libbfd was given. 4494if test "${enable_install_libbfd+set}" = set; then 4495 enableval="$enable_install_libbfd" 4496 install_libbfd_p=$enableval 4497else 4498 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 4499 install_libbfd_p=yes 4500 else 4501 install_libbfd_p=no 4502 fi 4503fi; 4504 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 4505echo "${ECHO_T}$install_libbfd_p" >&6 4506 4507 4508if test $install_libbfd_p = yes; then 4509 INSTALL_LIBBFD_TRUE= 4510 INSTALL_LIBBFD_FALSE='#' 4511else 4512 INSTALL_LIBBFD_TRUE='#' 4513 INSTALL_LIBBFD_FALSE= 4514fi 4515 4516 # Need _noncanonical variables for this. 4517 4518 4519 4520 4521 # libbfd.a is a host library containing target dependent code 4522 bfdlibdir='$(libdir)' 4523 bfdincludedir='$(includedir)' 4524 if test "${host}" != "${target}"; then 4525 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 4526 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 4527 fi 4528 4529 4530 4531 4532 4533 4534host64=false 4535target64=false 4536bfd_default_target_size=32 4537 4538# host stuff: 4539 4540ac_ext=c 4541ac_cpp='$CPP $CPPFLAGS' 4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4544ac_compiler_gnu=$ac_cv_c_compiler_gnu 4545if test -n "$ac_tool_prefix"; then 4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4547set dummy ${ac_tool_prefix}gcc; ac_word=$2 4548echo "$as_me:$LINENO: checking for $ac_word" >&5 4549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4550if test "${ac_cv_prog_CC+set}" = set; then 4551 echo $ECHO_N "(cached) $ECHO_C" >&6 4552else 4553 if test -n "$CC"; then 4554 ac_cv_prog_CC="$CC" # Let the user override the test. 4555else 4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4557for as_dir in $PATH 4558do 4559 IFS=$as_save_IFS 4560 test -z "$as_dir" && as_dir=. 4561 for ac_exec_ext in '' $ac_executable_extensions; do 4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4563 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4565 break 2 4566 fi 4567done 4568done 4569 4570fi 4571fi 4572CC=$ac_cv_prog_CC 4573if test -n "$CC"; then 4574 echo "$as_me:$LINENO: result: $CC" >&5 4575echo "${ECHO_T}$CC" >&6 4576else 4577 echo "$as_me:$LINENO: result: no" >&5 4578echo "${ECHO_T}no" >&6 4579fi 4580 4581fi 4582if test -z "$ac_cv_prog_CC"; then 4583 ac_ct_CC=$CC 4584 # Extract the first word of "gcc", so it can be a program name with args. 4585set dummy gcc; ac_word=$2 4586echo "$as_me:$LINENO: checking for $ac_word" >&5 4587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4589 echo $ECHO_N "(cached) $ECHO_C" >&6 4590else 4591 if test -n "$ac_ct_CC"; then 4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4593else 4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4595for as_dir in $PATH 4596do 4597 IFS=$as_save_IFS 4598 test -z "$as_dir" && as_dir=. 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4601 ac_cv_prog_ac_ct_CC="gcc" 4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4603 break 2 4604 fi 4605done 4606done 4607 4608fi 4609fi 4610ac_ct_CC=$ac_cv_prog_ac_ct_CC 4611if test -n "$ac_ct_CC"; then 4612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4613echo "${ECHO_T}$ac_ct_CC" >&6 4614else 4615 echo "$as_me:$LINENO: result: no" >&5 4616echo "${ECHO_T}no" >&6 4617fi 4618 4619 CC=$ac_ct_CC 4620else 4621 CC="$ac_cv_prog_CC" 4622fi 4623 4624if test -z "$CC"; then 4625 if test -n "$ac_tool_prefix"; then 4626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4627set dummy ${ac_tool_prefix}cc; ac_word=$2 4628echo "$as_me:$LINENO: checking for $ac_word" >&5 4629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4630if test "${ac_cv_prog_CC+set}" = set; then 4631 echo $ECHO_N "(cached) $ECHO_C" >&6 4632else 4633 if test -n "$CC"; then 4634 ac_cv_prog_CC="$CC" # Let the user override the test. 4635else 4636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4637for as_dir in $PATH 4638do 4639 IFS=$as_save_IFS 4640 test -z "$as_dir" && as_dir=. 4641 for ac_exec_ext in '' $ac_executable_extensions; do 4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4643 ac_cv_prog_CC="${ac_tool_prefix}cc" 4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4645 break 2 4646 fi 4647done 4648done 4649 4650fi 4651fi 4652CC=$ac_cv_prog_CC 4653if test -n "$CC"; then 4654 echo "$as_me:$LINENO: result: $CC" >&5 4655echo "${ECHO_T}$CC" >&6 4656else 4657 echo "$as_me:$LINENO: result: no" >&5 4658echo "${ECHO_T}no" >&6 4659fi 4660 4661fi 4662if test -z "$ac_cv_prog_CC"; then 4663 ac_ct_CC=$CC 4664 # Extract the first word of "cc", so it can be a program name with args. 4665set dummy cc; ac_word=$2 4666echo "$as_me:$LINENO: checking for $ac_word" >&5 4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4668if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4669 echo $ECHO_N "(cached) $ECHO_C" >&6 4670else 4671 if test -n "$ac_ct_CC"; then 4672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4673else 4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4675for as_dir in $PATH 4676do 4677 IFS=$as_save_IFS 4678 test -z "$as_dir" && as_dir=. 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4681 ac_cv_prog_ac_ct_CC="cc" 4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4683 break 2 4684 fi 4685done 4686done 4687 4688fi 4689fi 4690ac_ct_CC=$ac_cv_prog_ac_ct_CC 4691if test -n "$ac_ct_CC"; then 4692 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4693echo "${ECHO_T}$ac_ct_CC" >&6 4694else 4695 echo "$as_me:$LINENO: result: no" >&5 4696echo "${ECHO_T}no" >&6 4697fi 4698 4699 CC=$ac_ct_CC 4700else 4701 CC="$ac_cv_prog_CC" 4702fi 4703 4704fi 4705if test -z "$CC"; then 4706 # Extract the first word of "cc", so it can be a program name with args. 4707set dummy cc; ac_word=$2 4708echo "$as_me:$LINENO: checking for $ac_word" >&5 4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4710if test "${ac_cv_prog_CC+set}" = set; then 4711 echo $ECHO_N "(cached) $ECHO_C" >&6 4712else 4713 if test -n "$CC"; then 4714 ac_cv_prog_CC="$CC" # Let the user override the test. 4715else 4716 ac_prog_rejected=no 4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4718for as_dir in $PATH 4719do 4720 IFS=$as_save_IFS 4721 test -z "$as_dir" && as_dir=. 4722 for ac_exec_ext in '' $ac_executable_extensions; do 4723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4725 ac_prog_rejected=yes 4726 continue 4727 fi 4728 ac_cv_prog_CC="cc" 4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4730 break 2 4731 fi 4732done 4733done 4734 4735if test $ac_prog_rejected = yes; then 4736 # We found a bogon in the path, so make sure we never use it. 4737 set dummy $ac_cv_prog_CC 4738 shift 4739 if test $# != 0; then 4740 # We chose a different compiler from the bogus one. 4741 # However, it has the same basename, so the bogon will be chosen 4742 # first if we set CC to just the basename; use the full file name. 4743 shift 4744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4745 fi 4746fi 4747fi 4748fi 4749CC=$ac_cv_prog_CC 4750if test -n "$CC"; then 4751 echo "$as_me:$LINENO: result: $CC" >&5 4752echo "${ECHO_T}$CC" >&6 4753else 4754 echo "$as_me:$LINENO: result: no" >&5 4755echo "${ECHO_T}no" >&6 4756fi 4757 4758fi 4759if test -z "$CC"; then 4760 if test -n "$ac_tool_prefix"; then 4761 for ac_prog in cl 4762 do 4763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4764set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4765echo "$as_me:$LINENO: checking for $ac_word" >&5 4766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4767if test "${ac_cv_prog_CC+set}" = set; then 4768 echo $ECHO_N "(cached) $ECHO_C" >&6 4769else 4770 if test -n "$CC"; then 4771 ac_cv_prog_CC="$CC" # Let the user override the test. 4772else 4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774for as_dir in $PATH 4775do 4776 IFS=$as_save_IFS 4777 test -z "$as_dir" && as_dir=. 4778 for ac_exec_ext in '' $ac_executable_extensions; do 4779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4782 break 2 4783 fi 4784done 4785done 4786 4787fi 4788fi 4789CC=$ac_cv_prog_CC 4790if test -n "$CC"; then 4791 echo "$as_me:$LINENO: result: $CC" >&5 4792echo "${ECHO_T}$CC" >&6 4793else 4794 echo "$as_me:$LINENO: result: no" >&5 4795echo "${ECHO_T}no" >&6 4796fi 4797 4798 test -n "$CC" && break 4799 done 4800fi 4801if test -z "$CC"; then 4802 ac_ct_CC=$CC 4803 for ac_prog in cl 4804do 4805 # Extract the first word of "$ac_prog", so it can be a program name with args. 4806set dummy $ac_prog; ac_word=$2 4807echo "$as_me:$LINENO: checking for $ac_word" >&5 4808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4809if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4810 echo $ECHO_N "(cached) $ECHO_C" >&6 4811else 4812 if test -n "$ac_ct_CC"; then 4813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4814else 4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4816for as_dir in $PATH 4817do 4818 IFS=$as_save_IFS 4819 test -z "$as_dir" && as_dir=. 4820 for ac_exec_ext in '' $ac_executable_extensions; do 4821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4822 ac_cv_prog_ac_ct_CC="$ac_prog" 4823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4824 break 2 4825 fi 4826done 4827done 4828 4829fi 4830fi 4831ac_ct_CC=$ac_cv_prog_ac_ct_CC 4832if test -n "$ac_ct_CC"; then 4833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4834echo "${ECHO_T}$ac_ct_CC" >&6 4835else 4836 echo "$as_me:$LINENO: result: no" >&5 4837echo "${ECHO_T}no" >&6 4838fi 4839 4840 test -n "$ac_ct_CC" && break 4841done 4842 4843 CC=$ac_ct_CC 4844fi 4845 4846fi 4847 4848 4849test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4850See \`config.log' for more details." >&5 4851echo "$as_me: error: no acceptable C compiler found in \$PATH 4852See \`config.log' for more details." >&2;} 4853 { (exit 1); exit 1; }; } 4854 4855# Provide some information about the compiler. 4856echo "$as_me:$LINENO:" \ 4857 "checking for C compiler version" >&5 4858ac_compiler=`set X $ac_compile; echo $2` 4859{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4860 (eval $ac_compiler --version </dev/null >&5) 2>&5 4861 ac_status=$? 4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4863 (exit $ac_status); } 4864{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4865 (eval $ac_compiler -v </dev/null >&5) 2>&5 4866 ac_status=$? 4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4868 (exit $ac_status); } 4869{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4870 (eval $ac_compiler -V </dev/null >&5) 2>&5 4871 ac_status=$? 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } 4874 4875echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4876echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 4877if test "${ac_cv_c_compiler_gnu+set}" = set; then 4878 echo $ECHO_N "(cached) $ECHO_C" >&6 4879else 4880 cat >conftest.$ac_ext <<_ACEOF 4881/* confdefs.h. */ 4882_ACEOF 4883cat confdefs.h >>conftest.$ac_ext 4884cat >>conftest.$ac_ext <<_ACEOF 4885/* end confdefs.h. */ 4886 4887int 4888main () 4889{ 4890#ifndef __GNUC__ 4891 choke me 4892#endif 4893 4894 ; 4895 return 0; 4896} 4897_ACEOF 4898rm -f conftest.$ac_objext 4899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4900 (eval $ac_compile) 2>conftest.er1 4901 ac_status=$? 4902 grep -v '^ *+' conftest.er1 >conftest.err 4903 rm -f conftest.er1 4904 cat conftest.err >&5 4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4906 (exit $ac_status); } && 4907 { ac_try='test -z "$ac_c_werror_flag" 4908 || test ! -s conftest.err' 4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4910 (eval $ac_try) 2>&5 4911 ac_status=$? 4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4913 (exit $ac_status); }; } && 4914 { ac_try='test -s conftest.$ac_objext' 4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4916 (eval $ac_try) 2>&5 4917 ac_status=$? 4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4919 (exit $ac_status); }; }; then 4920 ac_compiler_gnu=yes 4921else 4922 echo "$as_me: failed program was:" >&5 4923sed 's/^/| /' conftest.$ac_ext >&5 4924 4925ac_compiler_gnu=no 4926fi 4927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4928ac_cv_c_compiler_gnu=$ac_compiler_gnu 4929 4930fi 4931echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4932echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 4933GCC=`test $ac_compiler_gnu = yes && echo yes` 4934ac_test_CFLAGS=${CFLAGS+set} 4935ac_save_CFLAGS=$CFLAGS 4936CFLAGS="-g" 4937echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4938echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 4939if test "${ac_cv_prog_cc_g+set}" = set; then 4940 echo $ECHO_N "(cached) $ECHO_C" >&6 4941else 4942 cat >conftest.$ac_ext <<_ACEOF 4943/* confdefs.h. */ 4944_ACEOF 4945cat confdefs.h >>conftest.$ac_ext 4946cat >>conftest.$ac_ext <<_ACEOF 4947/* end confdefs.h. */ 4948 4949int 4950main () 4951{ 4952 4953 ; 4954 return 0; 4955} 4956_ACEOF 4957rm -f conftest.$ac_objext 4958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4959 (eval $ac_compile) 2>conftest.er1 4960 ac_status=$? 4961 grep -v '^ *+' conftest.er1 >conftest.err 4962 rm -f conftest.er1 4963 cat conftest.err >&5 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4965 (exit $ac_status); } && 4966 { ac_try='test -z "$ac_c_werror_flag" 4967 || test ! -s conftest.err' 4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4969 (eval $ac_try) 2>&5 4970 ac_status=$? 4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4972 (exit $ac_status); }; } && 4973 { ac_try='test -s conftest.$ac_objext' 4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4975 (eval $ac_try) 2>&5 4976 ac_status=$? 4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4978 (exit $ac_status); }; }; then 4979 ac_cv_prog_cc_g=yes 4980else 4981 echo "$as_me: failed program was:" >&5 4982sed 's/^/| /' conftest.$ac_ext >&5 4983 4984ac_cv_prog_cc_g=no 4985fi 4986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4987fi 4988echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4989echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 4990if test "$ac_test_CFLAGS" = set; then 4991 CFLAGS=$ac_save_CFLAGS 4992elif test $ac_cv_prog_cc_g = yes; then 4993 if test "$GCC" = yes; then 4994 CFLAGS="-g -O2" 4995 else 4996 CFLAGS="-g" 4997 fi 4998else 4999 if test "$GCC" = yes; then 5000 CFLAGS="-O2" 5001 else 5002 CFLAGS= 5003 fi 5004fi 5005echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 5006echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 5007if test "${ac_cv_prog_cc_stdc+set}" = set; then 5008 echo $ECHO_N "(cached) $ECHO_C" >&6 5009else 5010 ac_cv_prog_cc_stdc=no 5011ac_save_CC=$CC 5012cat >conftest.$ac_ext <<_ACEOF 5013/* confdefs.h. */ 5014_ACEOF 5015cat confdefs.h >>conftest.$ac_ext 5016cat >>conftest.$ac_ext <<_ACEOF 5017/* end confdefs.h. */ 5018#include <stdarg.h> 5019#include <stdio.h> 5020#include <sys/types.h> 5021#include <sys/stat.h> 5022/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5023struct buf { int x; }; 5024FILE * (*rcsopen) (struct buf *, struct stat *, int); 5025static char *e (p, i) 5026 char **p; 5027 int i; 5028{ 5029 return p[i]; 5030} 5031static char *f (char * (*g) (char **, int), char **p, ...) 5032{ 5033 char *s; 5034 va_list v; 5035 va_start (v,p); 5036 s = g (p, va_arg (v,int)); 5037 va_end (v); 5038 return s; 5039} 5040 5041/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5042 function prototypes and stuff, but not '\xHH' hex character constants. 5043 These don't provoke an error unfortunately, instead are silently treated 5044 as 'x'. The following induces an error, until -std1 is added to get 5045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5046 array size at least. It's necessary to write '\x00'==0 to get something 5047 that's true only with -std1. */ 5048int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5049 5050int test (int i, double x); 5051struct s1 {int (*f) (int a);}; 5052struct s2 {int (*f) (double a);}; 5053int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5054int argc; 5055char **argv; 5056int 5057main () 5058{ 5059return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5060 ; 5061 return 0; 5062} 5063_ACEOF 5064# Don't try gcc -ansi; that turns off useful extensions and 5065# breaks some systems' header files. 5066# AIX -qlanglvl=ansi 5067# Ultrix and OSF/1 -std1 5068# HP-UX 10.20 and later -Ae 5069# HP-UX older versions -Aa -D_HPUX_SOURCE 5070# SVR4 -Xc -D__EXTENSIONS__ 5071for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5072do 5073 CC="$ac_save_CC $ac_arg" 5074 rm -f conftest.$ac_objext 5075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5076 (eval $ac_compile) 2>conftest.er1 5077 ac_status=$? 5078 grep -v '^ *+' conftest.er1 >conftest.err 5079 rm -f conftest.er1 5080 cat conftest.err >&5 5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5082 (exit $ac_status); } && 5083 { ac_try='test -z "$ac_c_werror_flag" 5084 || test ! -s conftest.err' 5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5086 (eval $ac_try) 2>&5 5087 ac_status=$? 5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5089 (exit $ac_status); }; } && 5090 { ac_try='test -s conftest.$ac_objext' 5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5092 (eval $ac_try) 2>&5 5093 ac_status=$? 5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 (exit $ac_status); }; }; then 5096 ac_cv_prog_cc_stdc=$ac_arg 5097break 5098else 5099 echo "$as_me: failed program was:" >&5 5100sed 's/^/| /' conftest.$ac_ext >&5 5101 5102fi 5103rm -f conftest.err conftest.$ac_objext 5104done 5105rm -f conftest.$ac_ext conftest.$ac_objext 5106CC=$ac_save_CC 5107 5108fi 5109 5110case "x$ac_cv_prog_cc_stdc" in 5111 x|xno) 5112 echo "$as_me:$LINENO: result: none needed" >&5 5113echo "${ECHO_T}none needed" >&6 ;; 5114 *) 5115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 5116echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 5117 CC="$CC $ac_cv_prog_cc_stdc" ;; 5118esac 5119 5120# Some people use a C++ compiler to compile C. Since we use `exit', 5121# in C++ we need to declare it. In case someone uses the same compiler 5122# for both compiling C and C++ we need to have the C++ compiler decide 5123# the declaration of exit, since it's the most demanding environment. 5124cat >conftest.$ac_ext <<_ACEOF 5125#ifndef __cplusplus 5126 choke me 5127#endif 5128_ACEOF 5129rm -f conftest.$ac_objext 5130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5131 (eval $ac_compile) 2>conftest.er1 5132 ac_status=$? 5133 grep -v '^ *+' conftest.er1 >conftest.err 5134 rm -f conftest.er1 5135 cat conftest.err >&5 5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5137 (exit $ac_status); } && 5138 { ac_try='test -z "$ac_c_werror_flag" 5139 || test ! -s conftest.err' 5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5141 (eval $ac_try) 2>&5 5142 ac_status=$? 5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5144 (exit $ac_status); }; } && 5145 { ac_try='test -s conftest.$ac_objext' 5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5147 (eval $ac_try) 2>&5 5148 ac_status=$? 5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5150 (exit $ac_status); }; }; then 5151 for ac_declaration in \ 5152 '' \ 5153 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5154 'extern "C" void std::exit (int); using std::exit;' \ 5155 'extern "C" void exit (int) throw ();' \ 5156 'extern "C" void exit (int);' \ 5157 'void exit (int);' 5158do 5159 cat >conftest.$ac_ext <<_ACEOF 5160/* confdefs.h. */ 5161_ACEOF 5162cat confdefs.h >>conftest.$ac_ext 5163cat >>conftest.$ac_ext <<_ACEOF 5164/* end confdefs.h. */ 5165$ac_declaration 5166#include <stdlib.h> 5167int 5168main () 5169{ 5170exit (42); 5171 ; 5172 return 0; 5173} 5174_ACEOF 5175rm -f conftest.$ac_objext 5176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5177 (eval $ac_compile) 2>conftest.er1 5178 ac_status=$? 5179 grep -v '^ *+' conftest.er1 >conftest.err 5180 rm -f conftest.er1 5181 cat conftest.err >&5 5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5183 (exit $ac_status); } && 5184 { ac_try='test -z "$ac_c_werror_flag" 5185 || test ! -s conftest.err' 5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5187 (eval $ac_try) 2>&5 5188 ac_status=$? 5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5190 (exit $ac_status); }; } && 5191 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 5197 : 5198else 5199 echo "$as_me: failed program was:" >&5 5200sed 's/^/| /' conftest.$ac_ext >&5 5201 5202continue 5203fi 5204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5205 cat >conftest.$ac_ext <<_ACEOF 5206/* confdefs.h. */ 5207_ACEOF 5208cat confdefs.h >>conftest.$ac_ext 5209cat >>conftest.$ac_ext <<_ACEOF 5210/* end confdefs.h. */ 5211$ac_declaration 5212int 5213main () 5214{ 5215exit (42); 5216 ; 5217 return 0; 5218} 5219_ACEOF 5220rm -f conftest.$ac_objext 5221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5222 (eval $ac_compile) 2>conftest.er1 5223 ac_status=$? 5224 grep -v '^ *+' conftest.er1 >conftest.err 5225 rm -f conftest.er1 5226 cat conftest.err >&5 5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5228 (exit $ac_status); } && 5229 { ac_try='test -z "$ac_c_werror_flag" 5230 || test ! -s conftest.err' 5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5232 (eval $ac_try) 2>&5 5233 ac_status=$? 5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5235 (exit $ac_status); }; } && 5236 { ac_try='test -s conftest.$ac_objext' 5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5238 (eval $ac_try) 2>&5 5239 ac_status=$? 5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5241 (exit $ac_status); }; }; then 5242 break 5243else 5244 echo "$as_me: failed program was:" >&5 5245sed 's/^/| /' conftest.$ac_ext >&5 5246 5247fi 5248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5249done 5250rm -f conftest* 5251if test -n "$ac_declaration"; then 5252 echo '#ifdef __cplusplus' >>confdefs.h 5253 echo $ac_declaration >>confdefs.h 5254 echo '#endif' >>confdefs.h 5255fi 5256 5257else 5258 echo "$as_me: failed program was:" >&5 5259sed 's/^/| /' conftest.$ac_ext >&5 5260 5261fi 5262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5263ac_ext=c 5264ac_cpp='$CPP $CPPFLAGS' 5265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5267ac_compiler_gnu=$ac_cv_c_compiler_gnu 5268 5269 5270cat >>confdefs.h <<\_ACEOF 5271#define _GNU_SOURCE 1 5272_ACEOF 5273 5274 5275 5276ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi" 5277if test -n "$ac_tool_prefix"; then 5278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5279set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5280echo "$as_me:$LINENO: checking for $ac_word" >&5 5281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5282if test "${ac_cv_prog_RANLIB+set}" = set; then 5283 echo $ECHO_N "(cached) $ECHO_C" >&6 5284else 5285 if test -n "$RANLIB"; then 5286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5287else 5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5289for as_dir in $PATH 5290do 5291 IFS=$as_save_IFS 5292 test -z "$as_dir" && as_dir=. 5293 for ac_exec_ext in '' $ac_executable_extensions; do 5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5297 break 2 5298 fi 5299done 5300done 5301 5302fi 5303fi 5304RANLIB=$ac_cv_prog_RANLIB 5305if test -n "$RANLIB"; then 5306 echo "$as_me:$LINENO: result: $RANLIB" >&5 5307echo "${ECHO_T}$RANLIB" >&6 5308else 5309 echo "$as_me:$LINENO: result: no" >&5 5310echo "${ECHO_T}no" >&6 5311fi 5312 5313fi 5314if test -z "$ac_cv_prog_RANLIB"; then 5315 ac_ct_RANLIB=$RANLIB 5316 # Extract the first word of "ranlib", so it can be a program name with args. 5317set dummy ranlib; ac_word=$2 5318echo "$as_me:$LINENO: checking for $ac_word" >&5 5319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5320if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5321 echo $ECHO_N "(cached) $ECHO_C" >&6 5322else 5323 if test -n "$ac_ct_RANLIB"; then 5324 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5325else 5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327for as_dir in $PATH 5328do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_exec_ext in '' $ac_executable_extensions; do 5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5333 ac_cv_prog_ac_ct_RANLIB="ranlib" 5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5335 break 2 5336 fi 5337done 5338done 5339 5340 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5341fi 5342fi 5343ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5344if test -n "$ac_ct_RANLIB"; then 5345 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5346echo "${ECHO_T}$ac_ct_RANLIB" >&6 5347else 5348 echo "$as_me:$LINENO: result: no" >&5 5349echo "${ECHO_T}no" >&6 5350fi 5351 5352 RANLIB=$ac_ct_RANLIB 5353else 5354 RANLIB="$ac_cv_prog_RANLIB" 5355fi 5356 5357ac_ext=c 5358ac_cpp='$CPP $CPPFLAGS' 5359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5361ac_compiler_gnu=$ac_cv_c_compiler_gnu 5362echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5363echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 5364# On Suns, sometimes $CPP names a directory. 5365if test -n "$CPP" && test -d "$CPP"; then 5366 CPP= 5367fi 5368if test -z "$CPP"; then 5369 if test "${ac_cv_prog_CPP+set}" = set; then 5370 echo $ECHO_N "(cached) $ECHO_C" >&6 5371else 5372 # Double quotes because CPP needs to be expanded 5373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5374 do 5375 ac_preproc_ok=false 5376for ac_c_preproc_warn_flag in '' yes 5377do 5378 # Use a header file that comes with gcc, so configuring glibc 5379 # with a fresh cross-compiler works. 5380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5381 # <limits.h> exists even on freestanding compilers. 5382 # On the NeXT, cc -E runs the code through the compiler's parser, 5383 # not just through cpp. "Syntax error" is here to catch this case. 5384 cat >conftest.$ac_ext <<_ACEOF 5385/* confdefs.h. */ 5386_ACEOF 5387cat confdefs.h >>conftest.$ac_ext 5388cat >>conftest.$ac_ext <<_ACEOF 5389/* end confdefs.h. */ 5390#ifdef __STDC__ 5391# include <limits.h> 5392#else 5393# include <assert.h> 5394#endif 5395 Syntax error 5396_ACEOF 5397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5399 ac_status=$? 5400 grep -v '^ *+' conftest.er1 >conftest.err 5401 rm -f conftest.er1 5402 cat conftest.err >&5 5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5404 (exit $ac_status); } >/dev/null; then 5405 if test -s conftest.err; then 5406 ac_cpp_err=$ac_c_preproc_warn_flag 5407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5408 else 5409 ac_cpp_err= 5410 fi 5411else 5412 ac_cpp_err=yes 5413fi 5414if test -z "$ac_cpp_err"; then 5415 : 5416else 5417 echo "$as_me: failed program was:" >&5 5418sed 's/^/| /' conftest.$ac_ext >&5 5419 5420 # Broken: fails on valid input. 5421continue 5422fi 5423rm -f conftest.err conftest.$ac_ext 5424 5425 # OK, works on sane cases. Now check whether non-existent headers 5426 # can be detected and how. 5427 cat >conftest.$ac_ext <<_ACEOF 5428/* confdefs.h. */ 5429_ACEOF 5430cat confdefs.h >>conftest.$ac_ext 5431cat >>conftest.$ac_ext <<_ACEOF 5432/* end confdefs.h. */ 5433#include <ac_nonexistent.h> 5434_ACEOF 5435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5437 ac_status=$? 5438 grep -v '^ *+' conftest.er1 >conftest.err 5439 rm -f conftest.er1 5440 cat conftest.err >&5 5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5442 (exit $ac_status); } >/dev/null; then 5443 if test -s conftest.err; then 5444 ac_cpp_err=$ac_c_preproc_warn_flag 5445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5446 else 5447 ac_cpp_err= 5448 fi 5449else 5450 ac_cpp_err=yes 5451fi 5452if test -z "$ac_cpp_err"; then 5453 # Broken: success on invalid input. 5454continue 5455else 5456 echo "$as_me: failed program was:" >&5 5457sed 's/^/| /' conftest.$ac_ext >&5 5458 5459 # Passes both tests. 5460ac_preproc_ok=: 5461break 5462fi 5463rm -f conftest.err conftest.$ac_ext 5464 5465done 5466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5467rm -f conftest.err conftest.$ac_ext 5468if $ac_preproc_ok; then 5469 break 5470fi 5471 5472 done 5473 ac_cv_prog_CPP=$CPP 5474 5475fi 5476 CPP=$ac_cv_prog_CPP 5477else 5478 ac_cv_prog_CPP=$CPP 5479fi 5480echo "$as_me:$LINENO: result: $CPP" >&5 5481echo "${ECHO_T}$CPP" >&6 5482ac_preproc_ok=false 5483for ac_c_preproc_warn_flag in '' yes 5484do 5485 # Use a header file that comes with gcc, so configuring glibc 5486 # with a fresh cross-compiler works. 5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5488 # <limits.h> exists even on freestanding compilers. 5489 # On the NeXT, cc -E runs the code through the compiler's parser, 5490 # not just through cpp. "Syntax error" is here to catch this case. 5491 cat >conftest.$ac_ext <<_ACEOF 5492/* confdefs.h. */ 5493_ACEOF 5494cat confdefs.h >>conftest.$ac_ext 5495cat >>conftest.$ac_ext <<_ACEOF 5496/* end confdefs.h. */ 5497#ifdef __STDC__ 5498# include <limits.h> 5499#else 5500# include <assert.h> 5501#endif 5502 Syntax error 5503_ACEOF 5504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5506 ac_status=$? 5507 grep -v '^ *+' conftest.er1 >conftest.err 5508 rm -f conftest.er1 5509 cat conftest.err >&5 5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5511 (exit $ac_status); } >/dev/null; then 5512 if test -s conftest.err; then 5513 ac_cpp_err=$ac_c_preproc_warn_flag 5514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5515 else 5516 ac_cpp_err= 5517 fi 5518else 5519 ac_cpp_err=yes 5520fi 5521if test -z "$ac_cpp_err"; then 5522 : 5523else 5524 echo "$as_me: failed program was:" >&5 5525sed 's/^/| /' conftest.$ac_ext >&5 5526 5527 # Broken: fails on valid input. 5528continue 5529fi 5530rm -f conftest.err conftest.$ac_ext 5531 5532 # OK, works on sane cases. Now check whether non-existent headers 5533 # can be detected and how. 5534 cat >conftest.$ac_ext <<_ACEOF 5535/* confdefs.h. */ 5536_ACEOF 5537cat confdefs.h >>conftest.$ac_ext 5538cat >>conftest.$ac_ext <<_ACEOF 5539/* end confdefs.h. */ 5540#include <ac_nonexistent.h> 5541_ACEOF 5542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5544 ac_status=$? 5545 grep -v '^ *+' conftest.er1 >conftest.err 5546 rm -f conftest.er1 5547 cat conftest.err >&5 5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5549 (exit $ac_status); } >/dev/null; then 5550 if test -s conftest.err; then 5551 ac_cpp_err=$ac_c_preproc_warn_flag 5552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5553 else 5554 ac_cpp_err= 5555 fi 5556else 5557 ac_cpp_err=yes 5558fi 5559if test -z "$ac_cpp_err"; then 5560 # Broken: success on invalid input. 5561continue 5562else 5563 echo "$as_me: failed program was:" >&5 5564sed 's/^/| /' conftest.$ac_ext >&5 5565 5566 # Passes both tests. 5567ac_preproc_ok=: 5568break 5569fi 5570rm -f conftest.err conftest.$ac_ext 5571 5572done 5573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5574rm -f conftest.err conftest.$ac_ext 5575if $ac_preproc_ok; then 5576 : 5577else 5578 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5579See \`config.log' for more details." >&5 5580echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5581See \`config.log' for more details." >&2;} 5582 { (exit 1); exit 1; }; } 5583fi 5584 5585ac_ext=c 5586ac_cpp='$CPP $CPPFLAGS' 5587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5589ac_compiler_gnu=$ac_cv_c_compiler_gnu 5590 5591 5592echo "$as_me:$LINENO: checking for egrep" >&5 5593echo $ECHO_N "checking for egrep... $ECHO_C" >&6 5594if test "${ac_cv_prog_egrep+set}" = set; then 5595 echo $ECHO_N "(cached) $ECHO_C" >&6 5596else 5597 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 5598 then ac_cv_prog_egrep='grep -E' 5599 else ac_cv_prog_egrep='egrep' 5600 fi 5601fi 5602echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 5603echo "${ECHO_T}$ac_cv_prog_egrep" >&6 5604 EGREP=$ac_cv_prog_egrep 5605 5606 5607echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5608echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5609if test "${ac_cv_header_stdc+set}" = set; then 5610 echo $ECHO_N "(cached) $ECHO_C" >&6 5611else 5612 cat >conftest.$ac_ext <<_ACEOF 5613/* confdefs.h. */ 5614_ACEOF 5615cat confdefs.h >>conftest.$ac_ext 5616cat >>conftest.$ac_ext <<_ACEOF 5617/* end confdefs.h. */ 5618#include <stdlib.h> 5619#include <stdarg.h> 5620#include <string.h> 5621#include <float.h> 5622 5623int 5624main () 5625{ 5626 5627 ; 5628 return 0; 5629} 5630_ACEOF 5631rm -f conftest.$ac_objext 5632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5633 (eval $ac_compile) 2>conftest.er1 5634 ac_status=$? 5635 grep -v '^ *+' conftest.er1 >conftest.err 5636 rm -f conftest.er1 5637 cat conftest.err >&5 5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5639 (exit $ac_status); } && 5640 { ac_try='test -z "$ac_c_werror_flag" 5641 || test ! -s conftest.err' 5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5643 (eval $ac_try) 2>&5 5644 ac_status=$? 5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5646 (exit $ac_status); }; } && 5647 { ac_try='test -s conftest.$ac_objext' 5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5649 (eval $ac_try) 2>&5 5650 ac_status=$? 5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5652 (exit $ac_status); }; }; then 5653 ac_cv_header_stdc=yes 5654else 5655 echo "$as_me: failed program was:" >&5 5656sed 's/^/| /' conftest.$ac_ext >&5 5657 5658ac_cv_header_stdc=no 5659fi 5660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5661 5662if test $ac_cv_header_stdc = yes; then 5663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5664 cat >conftest.$ac_ext <<_ACEOF 5665/* confdefs.h. */ 5666_ACEOF 5667cat confdefs.h >>conftest.$ac_ext 5668cat >>conftest.$ac_ext <<_ACEOF 5669/* end confdefs.h. */ 5670#include <string.h> 5671 5672_ACEOF 5673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5674 $EGREP "memchr" >/dev/null 2>&1; then 5675 : 5676else 5677 ac_cv_header_stdc=no 5678fi 5679rm -f conftest* 5680 5681fi 5682 5683if test $ac_cv_header_stdc = yes; then 5684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5685 cat >conftest.$ac_ext <<_ACEOF 5686/* confdefs.h. */ 5687_ACEOF 5688cat confdefs.h >>conftest.$ac_ext 5689cat >>conftest.$ac_ext <<_ACEOF 5690/* end confdefs.h. */ 5691#include <stdlib.h> 5692 5693_ACEOF 5694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5695 $EGREP "free" >/dev/null 2>&1; then 5696 : 5697else 5698 ac_cv_header_stdc=no 5699fi 5700rm -f conftest* 5701 5702fi 5703 5704if test $ac_cv_header_stdc = yes; then 5705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5706 if test "$cross_compiling" = yes; then 5707 : 5708else 5709 cat >conftest.$ac_ext <<_ACEOF 5710/* confdefs.h. */ 5711_ACEOF 5712cat confdefs.h >>conftest.$ac_ext 5713cat >>conftest.$ac_ext <<_ACEOF 5714/* end confdefs.h. */ 5715#include <ctype.h> 5716#if ((' ' & 0x0FF) == 0x020) 5717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5719#else 5720# define ISLOWER(c) \ 5721 (('a' <= (c) && (c) <= 'i') \ 5722 || ('j' <= (c) && (c) <= 'r') \ 5723 || ('s' <= (c) && (c) <= 'z')) 5724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5725#endif 5726 5727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5728int 5729main () 5730{ 5731 int i; 5732 for (i = 0; i < 256; i++) 5733 if (XOR (islower (i), ISLOWER (i)) 5734 || toupper (i) != TOUPPER (i)) 5735 exit(2); 5736 exit (0); 5737} 5738_ACEOF 5739rm -f conftest$ac_exeext 5740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5741 (eval $ac_link) 2>&5 5742 ac_status=$? 5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5746 (eval $ac_try) 2>&5 5747 ac_status=$? 5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5749 (exit $ac_status); }; }; then 5750 : 5751else 5752 echo "$as_me: program exited with status $ac_status" >&5 5753echo "$as_me: failed program was:" >&5 5754sed 's/^/| /' conftest.$ac_ext >&5 5755 5756( exit $ac_status ) 5757ac_cv_header_stdc=no 5758fi 5759rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5760fi 5761fi 5762fi 5763echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5764echo "${ECHO_T}$ac_cv_header_stdc" >&6 5765if test $ac_cv_header_stdc = yes; then 5766 5767cat >>confdefs.h <<\_ACEOF 5768#define STDC_HEADERS 1 5769_ACEOF 5770 5771fi 5772 5773echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5774echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 5775if test "${ac_cv_c_const+set}" = set; then 5776 echo $ECHO_N "(cached) $ECHO_C" >&6 5777else 5778 cat >conftest.$ac_ext <<_ACEOF 5779/* confdefs.h. */ 5780_ACEOF 5781cat confdefs.h >>conftest.$ac_ext 5782cat >>conftest.$ac_ext <<_ACEOF 5783/* end confdefs.h. */ 5784 5785int 5786main () 5787{ 5788/* FIXME: Include the comments suggested by Paul. */ 5789#ifndef __cplusplus 5790 /* Ultrix mips cc rejects this. */ 5791 typedef int charset[2]; 5792 const charset x; 5793 /* SunOS 4.1.1 cc rejects this. */ 5794 char const *const *ccp; 5795 char **p; 5796 /* NEC SVR4.0.2 mips cc rejects this. */ 5797 struct point {int x, y;}; 5798 static struct point const zero = {0,0}; 5799 /* AIX XL C 1.02.0.0 rejects this. 5800 It does not let you subtract one const X* pointer from another in 5801 an arm of an if-expression whose if-part is not a constant 5802 expression */ 5803 const char *g = "string"; 5804 ccp = &g + (g ? g-g : 0); 5805 /* HPUX 7.0 cc rejects these. */ 5806 ++ccp; 5807 p = (char**) ccp; 5808 ccp = (char const *const *) p; 5809 { /* SCO 3.2v4 cc rejects this. */ 5810 char *t; 5811 char const *s = 0 ? (char *) 0 : (char const *) 0; 5812 5813 *t++ = 0; 5814 } 5815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5816 int x[] = {25, 17}; 5817 const int *foo = &x[0]; 5818 ++foo; 5819 } 5820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5821 typedef const int *iptr; 5822 iptr p = 0; 5823 ++p; 5824 } 5825 { /* AIX XL C 1.02.0.0 rejects this saying 5826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5827 struct s { int j; const int *ap[3]; }; 5828 struct s *b; b->j = 5; 5829 } 5830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5831 const int foo = 10; 5832 } 5833#endif 5834 5835 ; 5836 return 0; 5837} 5838_ACEOF 5839rm -f conftest.$ac_objext 5840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5841 (eval $ac_compile) 2>conftest.er1 5842 ac_status=$? 5843 grep -v '^ *+' conftest.er1 >conftest.err 5844 rm -f conftest.er1 5845 cat conftest.err >&5 5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5847 (exit $ac_status); } && 5848 { ac_try='test -z "$ac_c_werror_flag" 5849 || test ! -s conftest.err' 5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5851 (eval $ac_try) 2>&5 5852 ac_status=$? 5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5854 (exit $ac_status); }; } && 5855 { ac_try='test -s conftest.$ac_objext' 5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5857 (eval $ac_try) 2>&5 5858 ac_status=$? 5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5860 (exit $ac_status); }; }; then 5861 ac_cv_c_const=yes 5862else 5863 echo "$as_me: failed program was:" >&5 5864sed 's/^/| /' conftest.$ac_ext >&5 5865 5866ac_cv_c_const=no 5867fi 5868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5869fi 5870echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5871echo "${ECHO_T}$ac_cv_c_const" >&6 5872if test $ac_cv_c_const = no; then 5873 5874cat >>confdefs.h <<\_ACEOF 5875#define const 5876_ACEOF 5877 5878fi 5879 5880echo "$as_me:$LINENO: checking for inline" >&5 5881echo $ECHO_N "checking for inline... $ECHO_C" >&6 5882if test "${ac_cv_c_inline+set}" = set; then 5883 echo $ECHO_N "(cached) $ECHO_C" >&6 5884else 5885 ac_cv_c_inline=no 5886for ac_kw in inline __inline__ __inline; do 5887 cat >conftest.$ac_ext <<_ACEOF 5888/* confdefs.h. */ 5889_ACEOF 5890cat confdefs.h >>conftest.$ac_ext 5891cat >>conftest.$ac_ext <<_ACEOF 5892/* end confdefs.h. */ 5893#ifndef __cplusplus 5894typedef int foo_t; 5895static $ac_kw foo_t static_foo () {return 0; } 5896$ac_kw foo_t foo () {return 0; } 5897#endif 5898 5899_ACEOF 5900rm -f conftest.$ac_objext 5901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5902 (eval $ac_compile) 2>conftest.er1 5903 ac_status=$? 5904 grep -v '^ *+' conftest.er1 >conftest.err 5905 rm -f conftest.er1 5906 cat conftest.err >&5 5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5908 (exit $ac_status); } && 5909 { ac_try='test -z "$ac_c_werror_flag" 5910 || test ! -s conftest.err' 5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5912 (eval $ac_try) 2>&5 5913 ac_status=$? 5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5915 (exit $ac_status); }; } && 5916 { ac_try='test -s conftest.$ac_objext' 5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5918 (eval $ac_try) 2>&5 5919 ac_status=$? 5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5921 (exit $ac_status); }; }; then 5922 ac_cv_c_inline=$ac_kw; break 5923else 5924 echo "$as_me: failed program was:" >&5 5925sed 's/^/| /' conftest.$ac_ext >&5 5926 5927fi 5928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5929done 5930 5931fi 5932echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5933echo "${ECHO_T}$ac_cv_c_inline" >&6 5934 5935 5936case $ac_cv_c_inline in 5937 inline | yes) ;; 5938 *) 5939 case $ac_cv_c_inline in 5940 no) ac_val=;; 5941 *) ac_val=$ac_cv_c_inline;; 5942 esac 5943 cat >>confdefs.h <<_ACEOF 5944#ifndef __cplusplus 5945#define inline $ac_val 5946#endif 5947_ACEOF 5948 ;; 5949esac 5950 5951# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5962 inttypes.h stdint.h unistd.h 5963do 5964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5965echo "$as_me:$LINENO: checking for $ac_header" >&5 5966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5967if eval "test \"\${$as_ac_Header+set}\" = set"; then 5968 echo $ECHO_N "(cached) $ECHO_C" >&6 5969else 5970 cat >conftest.$ac_ext <<_ACEOF 5971/* confdefs.h. */ 5972_ACEOF 5973cat confdefs.h >>conftest.$ac_ext 5974cat >>conftest.$ac_ext <<_ACEOF 5975/* end confdefs.h. */ 5976$ac_includes_default 5977 5978#include <$ac_header> 5979_ACEOF 5980rm -f conftest.$ac_objext 5981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5982 (eval $ac_compile) 2>conftest.er1 5983 ac_status=$? 5984 grep -v '^ *+' conftest.er1 >conftest.err 5985 rm -f conftest.er1 5986 cat conftest.err >&5 5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5988 (exit $ac_status); } && 5989 { ac_try='test -z "$ac_c_werror_flag" 5990 || test ! -s conftest.err' 5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5992 (eval $ac_try) 2>&5 5993 ac_status=$? 5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5995 (exit $ac_status); }; } && 5996 { ac_try='test -s conftest.$ac_objext' 5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5998 (eval $ac_try) 2>&5 5999 ac_status=$? 6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6001 (exit $ac_status); }; }; then 6002 eval "$as_ac_Header=yes" 6003else 6004 echo "$as_me: failed program was:" >&5 6005sed 's/^/| /' conftest.$ac_ext >&5 6006 6007eval "$as_ac_Header=no" 6008fi 6009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6010fi 6011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6013if test `eval echo '${'$as_ac_Header'}'` = yes; then 6014 cat >>confdefs.h <<_ACEOF 6015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6016_ACEOF 6017 6018fi 6019 6020done 6021 6022 6023echo "$as_me:$LINENO: checking for off_t" >&5 6024echo $ECHO_N "checking for off_t... $ECHO_C" >&6 6025if test "${ac_cv_type_off_t+set}" = set; then 6026 echo $ECHO_N "(cached) $ECHO_C" >&6 6027else 6028 cat >conftest.$ac_ext <<_ACEOF 6029/* confdefs.h. */ 6030_ACEOF 6031cat confdefs.h >>conftest.$ac_ext 6032cat >>conftest.$ac_ext <<_ACEOF 6033/* end confdefs.h. */ 6034$ac_includes_default 6035int 6036main () 6037{ 6038if ((off_t *) 0) 6039 return 0; 6040if (sizeof (off_t)) 6041 return 0; 6042 ; 6043 return 0; 6044} 6045_ACEOF 6046rm -f conftest.$ac_objext 6047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6048 (eval $ac_compile) 2>conftest.er1 6049 ac_status=$? 6050 grep -v '^ *+' conftest.er1 >conftest.err 6051 rm -f conftest.er1 6052 cat conftest.err >&5 6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6054 (exit $ac_status); } && 6055 { ac_try='test -z "$ac_c_werror_flag" 6056 || test ! -s conftest.err' 6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6058 (eval $ac_try) 2>&5 6059 ac_status=$? 6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6061 (exit $ac_status); }; } && 6062 { ac_try='test -s conftest.$ac_objext' 6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6064 (eval $ac_try) 2>&5 6065 ac_status=$? 6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 (exit $ac_status); }; }; then 6068 ac_cv_type_off_t=yes 6069else 6070 echo "$as_me: failed program was:" >&5 6071sed 's/^/| /' conftest.$ac_ext >&5 6072 6073ac_cv_type_off_t=no 6074fi 6075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6076fi 6077echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 6078echo "${ECHO_T}$ac_cv_type_off_t" >&6 6079if test $ac_cv_type_off_t = yes; then 6080 : 6081else 6082 6083cat >>confdefs.h <<_ACEOF 6084#define off_t long 6085_ACEOF 6086 6087fi 6088 6089echo "$as_me:$LINENO: checking for size_t" >&5 6090echo $ECHO_N "checking for size_t... $ECHO_C" >&6 6091if test "${ac_cv_type_size_t+set}" = set; then 6092 echo $ECHO_N "(cached) $ECHO_C" >&6 6093else 6094 cat >conftest.$ac_ext <<_ACEOF 6095/* confdefs.h. */ 6096_ACEOF 6097cat confdefs.h >>conftest.$ac_ext 6098cat >>conftest.$ac_ext <<_ACEOF 6099/* end confdefs.h. */ 6100$ac_includes_default 6101int 6102main () 6103{ 6104if ((size_t *) 0) 6105 return 0; 6106if (sizeof (size_t)) 6107 return 0; 6108 ; 6109 return 0; 6110} 6111_ACEOF 6112rm -f conftest.$ac_objext 6113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6114 (eval $ac_compile) 2>conftest.er1 6115 ac_status=$? 6116 grep -v '^ *+' conftest.er1 >conftest.err 6117 rm -f conftest.er1 6118 cat conftest.err >&5 6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6120 (exit $ac_status); } && 6121 { ac_try='test -z "$ac_c_werror_flag" 6122 || test ! -s conftest.err' 6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6124 (eval $ac_try) 2>&5 6125 ac_status=$? 6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6127 (exit $ac_status); }; } && 6128 { ac_try='test -s conftest.$ac_objext' 6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6130 (eval $ac_try) 2>&5 6131 ac_status=$? 6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6133 (exit $ac_status); }; }; then 6134 ac_cv_type_size_t=yes 6135else 6136 echo "$as_me: failed program was:" >&5 6137sed 's/^/| /' conftest.$ac_ext >&5 6138 6139ac_cv_type_size_t=no 6140fi 6141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6142fi 6143echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 6144echo "${ECHO_T}$ac_cv_type_size_t" >&6 6145if test $ac_cv_type_size_t = yes; then 6146 : 6147else 6148 6149cat >>confdefs.h <<_ACEOF 6150#define size_t unsigned 6151_ACEOF 6152 6153fi 6154 6155# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6156# for constant arguments. Useless! 6157echo "$as_me:$LINENO: checking for working alloca.h" >&5 6158echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 6159if test "${ac_cv_working_alloca_h+set}" = set; then 6160 echo $ECHO_N "(cached) $ECHO_C" >&6 6161else 6162 cat >conftest.$ac_ext <<_ACEOF 6163/* confdefs.h. */ 6164_ACEOF 6165cat confdefs.h >>conftest.$ac_ext 6166cat >>conftest.$ac_ext <<_ACEOF 6167/* end confdefs.h. */ 6168#include <alloca.h> 6169int 6170main () 6171{ 6172char *p = (char *) alloca (2 * sizeof (int)); 6173 ; 6174 return 0; 6175} 6176_ACEOF 6177rm -f conftest.$ac_objext conftest$ac_exeext 6178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6179 (eval $ac_link) 2>conftest.er1 6180 ac_status=$? 6181 grep -v '^ *+' conftest.er1 >conftest.err 6182 rm -f conftest.er1 6183 cat conftest.err >&5 6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6185 (exit $ac_status); } && 6186 { ac_try='test -z "$ac_c_werror_flag" 6187 || test ! -s conftest.err' 6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6189 (eval $ac_try) 2>&5 6190 ac_status=$? 6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6192 (exit $ac_status); }; } && 6193 { ac_try='test -s conftest$ac_exeext' 6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6195 (eval $ac_try) 2>&5 6196 ac_status=$? 6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6198 (exit $ac_status); }; }; then 6199 ac_cv_working_alloca_h=yes 6200else 6201 echo "$as_me: failed program was:" >&5 6202sed 's/^/| /' conftest.$ac_ext >&5 6203 6204ac_cv_working_alloca_h=no 6205fi 6206rm -f conftest.err conftest.$ac_objext \ 6207 conftest$ac_exeext conftest.$ac_ext 6208fi 6209echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 6210echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 6211if test $ac_cv_working_alloca_h = yes; then 6212 6213cat >>confdefs.h <<\_ACEOF 6214#define HAVE_ALLOCA_H 1 6215_ACEOF 6216 6217fi 6218 6219echo "$as_me:$LINENO: checking for alloca" >&5 6220echo $ECHO_N "checking for alloca... $ECHO_C" >&6 6221if test "${ac_cv_func_alloca_works+set}" = set; then 6222 echo $ECHO_N "(cached) $ECHO_C" >&6 6223else 6224 cat >conftest.$ac_ext <<_ACEOF 6225/* confdefs.h. */ 6226_ACEOF 6227cat confdefs.h >>conftest.$ac_ext 6228cat >>conftest.$ac_ext <<_ACEOF 6229/* end confdefs.h. */ 6230#ifdef __GNUC__ 6231# define alloca __builtin_alloca 6232#else 6233# ifdef _MSC_VER 6234# include <malloc.h> 6235# define alloca _alloca 6236# else 6237# if HAVE_ALLOCA_H 6238# include <alloca.h> 6239# else 6240# ifdef _AIX 6241 #pragma alloca 6242# else 6243# ifndef alloca /* predefined by HP cc +Olibcalls */ 6244char *alloca (); 6245# endif 6246# endif 6247# endif 6248# endif 6249#endif 6250 6251int 6252main () 6253{ 6254char *p = (char *) alloca (1); 6255 ; 6256 return 0; 6257} 6258_ACEOF 6259rm -f conftest.$ac_objext conftest$ac_exeext 6260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6261 (eval $ac_link) 2>conftest.er1 6262 ac_status=$? 6263 grep -v '^ *+' conftest.er1 >conftest.err 6264 rm -f conftest.er1 6265 cat conftest.err >&5 6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6267 (exit $ac_status); } && 6268 { ac_try='test -z "$ac_c_werror_flag" 6269 || test ! -s conftest.err' 6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6271 (eval $ac_try) 2>&5 6272 ac_status=$? 6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6274 (exit $ac_status); }; } && 6275 { ac_try='test -s conftest$ac_exeext' 6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6277 (eval $ac_try) 2>&5 6278 ac_status=$? 6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6280 (exit $ac_status); }; }; then 6281 ac_cv_func_alloca_works=yes 6282else 6283 echo "$as_me: failed program was:" >&5 6284sed 's/^/| /' conftest.$ac_ext >&5 6285 6286ac_cv_func_alloca_works=no 6287fi 6288rm -f conftest.err conftest.$ac_objext \ 6289 conftest$ac_exeext conftest.$ac_ext 6290fi 6291echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 6292echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 6293 6294if test $ac_cv_func_alloca_works = yes; then 6295 6296cat >>confdefs.h <<\_ACEOF 6297#define HAVE_ALLOCA 1 6298_ACEOF 6299 6300else 6301 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6302# that cause trouble. Some versions do not even contain alloca or 6303# contain a buggy version. If you still want to use their alloca, 6304# use ar to extract alloca.o from them instead of compiling alloca.c. 6305 6306ALLOCA=alloca.$ac_objext 6307 6308cat >>confdefs.h <<\_ACEOF 6309#define C_ALLOCA 1 6310_ACEOF 6311 6312 6313echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 6314echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 6315if test "${ac_cv_os_cray+set}" = set; then 6316 echo $ECHO_N "(cached) $ECHO_C" >&6 6317else 6318 cat >conftest.$ac_ext <<_ACEOF 6319/* confdefs.h. */ 6320_ACEOF 6321cat confdefs.h >>conftest.$ac_ext 6322cat >>conftest.$ac_ext <<_ACEOF 6323/* end confdefs.h. */ 6324#if defined(CRAY) && ! defined(CRAY2) 6325webecray 6326#else 6327wenotbecray 6328#endif 6329 6330_ACEOF 6331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6332 $EGREP "webecray" >/dev/null 2>&1; then 6333 ac_cv_os_cray=yes 6334else 6335 ac_cv_os_cray=no 6336fi 6337rm -f conftest* 6338 6339fi 6340echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 6341echo "${ECHO_T}$ac_cv_os_cray" >&6 6342if test $ac_cv_os_cray = yes; then 6343 for ac_func in _getb67 GETB67 getb67; do 6344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6345echo "$as_me:$LINENO: checking for $ac_func" >&5 6346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6347if eval "test \"\${$as_ac_var+set}\" = set"; then 6348 echo $ECHO_N "(cached) $ECHO_C" >&6 6349else 6350 cat >conftest.$ac_ext <<_ACEOF 6351/* confdefs.h. */ 6352_ACEOF 6353cat confdefs.h >>conftest.$ac_ext 6354cat >>conftest.$ac_ext <<_ACEOF 6355/* end confdefs.h. */ 6356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6357 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6358#define $ac_func innocuous_$ac_func 6359 6360/* System header to define __stub macros and hopefully few prototypes, 6361 which can conflict with char $ac_func (); below. 6362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6363 <limits.h> exists even on freestanding compilers. */ 6364 6365#ifdef __STDC__ 6366# include <limits.h> 6367#else 6368# include <assert.h> 6369#endif 6370 6371#undef $ac_func 6372 6373/* Override any gcc2 internal prototype to avoid an error. */ 6374#ifdef __cplusplus 6375extern "C" 6376{ 6377#endif 6378/* We use char because int might match the return type of a gcc2 6379 builtin and then its argument prototype would still apply. */ 6380char $ac_func (); 6381/* The GNU C library defines this for functions which it implements 6382 to always fail with ENOSYS. Some functions are actually named 6383 something starting with __ and the normal name is an alias. */ 6384#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6385choke me 6386#else 6387char (*f) () = $ac_func; 6388#endif 6389#ifdef __cplusplus 6390} 6391#endif 6392 6393int 6394main () 6395{ 6396return f != $ac_func; 6397 ; 6398 return 0; 6399} 6400_ACEOF 6401rm -f conftest.$ac_objext conftest$ac_exeext 6402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6403 (eval $ac_link) 2>conftest.er1 6404 ac_status=$? 6405 grep -v '^ *+' conftest.er1 >conftest.err 6406 rm -f conftest.er1 6407 cat conftest.err >&5 6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6409 (exit $ac_status); } && 6410 { ac_try='test -z "$ac_c_werror_flag" 6411 || test ! -s conftest.err' 6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6413 (eval $ac_try) 2>&5 6414 ac_status=$? 6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6416 (exit $ac_status); }; } && 6417 { ac_try='test -s conftest$ac_exeext' 6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6419 (eval $ac_try) 2>&5 6420 ac_status=$? 6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6422 (exit $ac_status); }; }; then 6423 eval "$as_ac_var=yes" 6424else 6425 echo "$as_me: failed program was:" >&5 6426sed 's/^/| /' conftest.$ac_ext >&5 6427 6428eval "$as_ac_var=no" 6429fi 6430rm -f conftest.err conftest.$ac_objext \ 6431 conftest$ac_exeext conftest.$ac_ext 6432fi 6433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6435if test `eval echo '${'$as_ac_var'}'` = yes; then 6436 6437cat >>confdefs.h <<_ACEOF 6438#define CRAY_STACKSEG_END $ac_func 6439_ACEOF 6440 6441 break 6442fi 6443 6444 done 6445fi 6446 6447echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 6448echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 6449if test "${ac_cv_c_stack_direction+set}" = set; then 6450 echo $ECHO_N "(cached) $ECHO_C" >&6 6451else 6452 if test "$cross_compiling" = yes; then 6453 ac_cv_c_stack_direction=0 6454else 6455 cat >conftest.$ac_ext <<_ACEOF 6456/* confdefs.h. */ 6457_ACEOF 6458cat confdefs.h >>conftest.$ac_ext 6459cat >>conftest.$ac_ext <<_ACEOF 6460/* end confdefs.h. */ 6461int 6462find_stack_direction () 6463{ 6464 static char *addr = 0; 6465 auto char dummy; 6466 if (addr == 0) 6467 { 6468 addr = &dummy; 6469 return find_stack_direction (); 6470 } 6471 else 6472 return (&dummy > addr) ? 1 : -1; 6473} 6474 6475int 6476main () 6477{ 6478 exit (find_stack_direction () < 0); 6479} 6480_ACEOF 6481rm -f conftest$ac_exeext 6482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6483 (eval $ac_link) 2>&5 6484 ac_status=$? 6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6488 (eval $ac_try) 2>&5 6489 ac_status=$? 6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6491 (exit $ac_status); }; }; then 6492 ac_cv_c_stack_direction=1 6493else 6494 echo "$as_me: program exited with status $ac_status" >&5 6495echo "$as_me: failed program was:" >&5 6496sed 's/^/| /' conftest.$ac_ext >&5 6497 6498( exit $ac_status ) 6499ac_cv_c_stack_direction=-1 6500fi 6501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6502fi 6503fi 6504echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 6505echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 6506 6507cat >>confdefs.h <<_ACEOF 6508#define STACK_DIRECTION $ac_cv_c_stack_direction 6509_ACEOF 6510 6511 6512fi 6513 6514 6515 6516for ac_header in stdlib.h unistd.h 6517do 6518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6519if eval "test \"\${$as_ac_Header+set}\" = set"; then 6520 echo "$as_me:$LINENO: checking for $ac_header" >&5 6521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6522if eval "test \"\${$as_ac_Header+set}\" = set"; then 6523 echo $ECHO_N "(cached) $ECHO_C" >&6 6524fi 6525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6527else 6528 # Is the header compilable? 6529echo "$as_me:$LINENO: checking $ac_header usability" >&5 6530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6531cat >conftest.$ac_ext <<_ACEOF 6532/* confdefs.h. */ 6533_ACEOF 6534cat confdefs.h >>conftest.$ac_ext 6535cat >>conftest.$ac_ext <<_ACEOF 6536/* end confdefs.h. */ 6537$ac_includes_default 6538#include <$ac_header> 6539_ACEOF 6540rm -f conftest.$ac_objext 6541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6542 (eval $ac_compile) 2>conftest.er1 6543 ac_status=$? 6544 grep -v '^ *+' conftest.er1 >conftest.err 6545 rm -f conftest.er1 6546 cat conftest.err >&5 6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6548 (exit $ac_status); } && 6549 { ac_try='test -z "$ac_c_werror_flag" 6550 || test ! -s conftest.err' 6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6552 (eval $ac_try) 2>&5 6553 ac_status=$? 6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6555 (exit $ac_status); }; } && 6556 { ac_try='test -s conftest.$ac_objext' 6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6558 (eval $ac_try) 2>&5 6559 ac_status=$? 6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6561 (exit $ac_status); }; }; then 6562 ac_header_compiler=yes 6563else 6564 echo "$as_me: failed program was:" >&5 6565sed 's/^/| /' conftest.$ac_ext >&5 6566 6567ac_header_compiler=no 6568fi 6569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6571echo "${ECHO_T}$ac_header_compiler" >&6 6572 6573# Is the header present? 6574echo "$as_me:$LINENO: checking $ac_header presence" >&5 6575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6576cat >conftest.$ac_ext <<_ACEOF 6577/* confdefs.h. */ 6578_ACEOF 6579cat confdefs.h >>conftest.$ac_ext 6580cat >>conftest.$ac_ext <<_ACEOF 6581/* end confdefs.h. */ 6582#include <$ac_header> 6583_ACEOF 6584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6586 ac_status=$? 6587 grep -v '^ *+' conftest.er1 >conftest.err 6588 rm -f conftest.er1 6589 cat conftest.err >&5 6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6591 (exit $ac_status); } >/dev/null; then 6592 if test -s conftest.err; then 6593 ac_cpp_err=$ac_c_preproc_warn_flag 6594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6595 else 6596 ac_cpp_err= 6597 fi 6598else 6599 ac_cpp_err=yes 6600fi 6601if test -z "$ac_cpp_err"; then 6602 ac_header_preproc=yes 6603else 6604 echo "$as_me: failed program was:" >&5 6605sed 's/^/| /' conftest.$ac_ext >&5 6606 6607 ac_header_preproc=no 6608fi 6609rm -f conftest.err conftest.$ac_ext 6610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6611echo "${ECHO_T}$ac_header_preproc" >&6 6612 6613# So? What about this header? 6614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6615 yes:no: ) 6616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6620 ac_header_preproc=yes 6621 ;; 6622 no:yes:* ) 6623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6635 ( 6636 cat <<\_ASBOX 6637## ------------------------------------------ ## 6638## Report this to the AC_PACKAGE_NAME lists. ## 6639## ------------------------------------------ ## 6640_ASBOX 6641 ) | 6642 sed "s/^/$as_me: WARNING: /" >&2 6643 ;; 6644esac 6645echo "$as_me:$LINENO: checking for $ac_header" >&5 6646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6647if eval "test \"\${$as_ac_Header+set}\" = set"; then 6648 echo $ECHO_N "(cached) $ECHO_C" >&6 6649else 6650 eval "$as_ac_Header=\$ac_header_preproc" 6651fi 6652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6654 6655fi 6656if test `eval echo '${'$as_ac_Header'}'` = yes; then 6657 cat >>confdefs.h <<_ACEOF 6658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6659_ACEOF 6660 6661fi 6662 6663done 6664 6665 6666for ac_func in getpagesize 6667do 6668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6669echo "$as_me:$LINENO: checking for $ac_func" >&5 6670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6671if eval "test \"\${$as_ac_var+set}\" = set"; then 6672 echo $ECHO_N "(cached) $ECHO_C" >&6 6673else 6674 cat >conftest.$ac_ext <<_ACEOF 6675/* confdefs.h. */ 6676_ACEOF 6677cat confdefs.h >>conftest.$ac_ext 6678cat >>conftest.$ac_ext <<_ACEOF 6679/* end confdefs.h. */ 6680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6681 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6682#define $ac_func innocuous_$ac_func 6683 6684/* System header to define __stub macros and hopefully few prototypes, 6685 which can conflict with char $ac_func (); below. 6686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6687 <limits.h> exists even on freestanding compilers. */ 6688 6689#ifdef __STDC__ 6690# include <limits.h> 6691#else 6692# include <assert.h> 6693#endif 6694 6695#undef $ac_func 6696 6697/* Override any gcc2 internal prototype to avoid an error. */ 6698#ifdef __cplusplus 6699extern "C" 6700{ 6701#endif 6702/* We use char because int might match the return type of a gcc2 6703 builtin and then its argument prototype would still apply. */ 6704char $ac_func (); 6705/* The GNU C library defines this for functions which it implements 6706 to always fail with ENOSYS. Some functions are actually named 6707 something starting with __ and the normal name is an alias. */ 6708#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6709choke me 6710#else 6711char (*f) () = $ac_func; 6712#endif 6713#ifdef __cplusplus 6714} 6715#endif 6716 6717int 6718main () 6719{ 6720return f != $ac_func; 6721 ; 6722 return 0; 6723} 6724_ACEOF 6725rm -f conftest.$ac_objext conftest$ac_exeext 6726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6727 (eval $ac_link) 2>conftest.er1 6728 ac_status=$? 6729 grep -v '^ *+' conftest.er1 >conftest.err 6730 rm -f conftest.er1 6731 cat conftest.err >&5 6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6733 (exit $ac_status); } && 6734 { ac_try='test -z "$ac_c_werror_flag" 6735 || test ! -s conftest.err' 6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6737 (eval $ac_try) 2>&5 6738 ac_status=$? 6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6740 (exit $ac_status); }; } && 6741 { ac_try='test -s conftest$ac_exeext' 6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6743 (eval $ac_try) 2>&5 6744 ac_status=$? 6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6746 (exit $ac_status); }; }; then 6747 eval "$as_ac_var=yes" 6748else 6749 echo "$as_me: failed program was:" >&5 6750sed 's/^/| /' conftest.$ac_ext >&5 6751 6752eval "$as_ac_var=no" 6753fi 6754rm -f conftest.err conftest.$ac_objext \ 6755 conftest$ac_exeext conftest.$ac_ext 6756fi 6757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6759if test `eval echo '${'$as_ac_var'}'` = yes; then 6760 cat >>confdefs.h <<_ACEOF 6761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6762_ACEOF 6763 6764fi 6765done 6766 6767echo "$as_me:$LINENO: checking for working mmap" >&5 6768echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 6769if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 6770 echo $ECHO_N "(cached) $ECHO_C" >&6 6771else 6772 if test "$cross_compiling" = yes; then 6773 ac_cv_func_mmap_fixed_mapped=no 6774else 6775 cat >conftest.$ac_ext <<_ACEOF 6776/* confdefs.h. */ 6777_ACEOF 6778cat confdefs.h >>conftest.$ac_ext 6779cat >>conftest.$ac_ext <<_ACEOF 6780/* end confdefs.h. */ 6781$ac_includes_default 6782/* malloc might have been renamed as rpl_malloc. */ 6783#undef malloc 6784 6785/* Thanks to Mike Haertel and Jim Avera for this test. 6786 Here is a matrix of mmap possibilities: 6787 mmap private not fixed 6788 mmap private fixed at somewhere currently unmapped 6789 mmap private fixed at somewhere already mapped 6790 mmap shared not fixed 6791 mmap shared fixed at somewhere currently unmapped 6792 mmap shared fixed at somewhere already mapped 6793 For private mappings, we should verify that changes cannot be read() 6794 back from the file, nor mmap's back from the file at a different 6795 address. (There have been systems where private was not correctly 6796 implemented like the infamous i386 svr4.0, and systems where the 6797 VM page cache was not coherent with the file system buffer cache 6798 like early versions of FreeBSD and possibly contemporary NetBSD.) 6799 For shared mappings, we should conversely verify that changes get 6800 propagated back to all the places they're supposed to be. 6801 6802 Grep wants private fixed already mapped. 6803 The main things grep needs to know about mmap are: 6804 * does it exist and is it safe to write into the mmap'd area 6805 * how to use it (BSD variants) */ 6806 6807#include <fcntl.h> 6808#include <sys/mman.h> 6809 6810#if !STDC_HEADERS && !HAVE_STDLIB_H 6811char *malloc (); 6812#endif 6813 6814/* This mess was copied from the GNU getpagesize.h. */ 6815#if !HAVE_GETPAGESIZE 6816/* Assume that all systems that can run configure have sys/param.h. */ 6817# if !HAVE_SYS_PARAM_H 6818# define HAVE_SYS_PARAM_H 1 6819# endif 6820 6821# ifdef _SC_PAGESIZE 6822# define getpagesize() sysconf(_SC_PAGESIZE) 6823# else /* no _SC_PAGESIZE */ 6824# if HAVE_SYS_PARAM_H 6825# include <sys/param.h> 6826# ifdef EXEC_PAGESIZE 6827# define getpagesize() EXEC_PAGESIZE 6828# else /* no EXEC_PAGESIZE */ 6829# ifdef NBPG 6830# define getpagesize() NBPG * CLSIZE 6831# ifndef CLSIZE 6832# define CLSIZE 1 6833# endif /* no CLSIZE */ 6834# else /* no NBPG */ 6835# ifdef NBPC 6836# define getpagesize() NBPC 6837# else /* no NBPC */ 6838# ifdef PAGESIZE 6839# define getpagesize() PAGESIZE 6840# endif /* PAGESIZE */ 6841# endif /* no NBPC */ 6842# endif /* no NBPG */ 6843# endif /* no EXEC_PAGESIZE */ 6844# else /* no HAVE_SYS_PARAM_H */ 6845# define getpagesize() 8192 /* punt totally */ 6846# endif /* no HAVE_SYS_PARAM_H */ 6847# endif /* no _SC_PAGESIZE */ 6848 6849#endif /* no HAVE_GETPAGESIZE */ 6850 6851int 6852main () 6853{ 6854 char *data, *data2, *data3; 6855 int i, pagesize; 6856 int fd; 6857 6858 pagesize = getpagesize (); 6859 6860 /* First, make a file with some known garbage in it. */ 6861 data = (char *) malloc (pagesize); 6862 if (!data) 6863 exit (1); 6864 for (i = 0; i < pagesize; ++i) 6865 *(data + i) = rand (); 6866 umask (0); 6867 fd = creat ("conftest.mmap", 0600); 6868 if (fd < 0) 6869 exit (1); 6870 if (write (fd, data, pagesize) != pagesize) 6871 exit (1); 6872 close (fd); 6873 6874 /* Next, try to mmap the file at a fixed address which already has 6875 something else allocated at it. If we can, also make sure that 6876 we see the same garbage. */ 6877 fd = open ("conftest.mmap", O_RDWR); 6878 if (fd < 0) 6879 exit (1); 6880 data2 = (char *) malloc (2 * pagesize); 6881 if (!data2) 6882 exit (1); 6883 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 6884 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 6885 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6886 exit (1); 6887 for (i = 0; i < pagesize; ++i) 6888 if (*(data + i) != *(data2 + i)) 6889 exit (1); 6890 6891 /* Finally, make sure that changes to the mapped area do not 6892 percolate back to the file as seen by read(). (This is a bug on 6893 some variants of i386 svr4.0.) */ 6894 for (i = 0; i < pagesize; ++i) 6895 *(data2 + i) = *(data2 + i) + 1; 6896 data3 = (char *) malloc (pagesize); 6897 if (!data3) 6898 exit (1); 6899 if (read (fd, data3, pagesize) != pagesize) 6900 exit (1); 6901 for (i = 0; i < pagesize; ++i) 6902 if (*(data + i) != *(data3 + i)) 6903 exit (1); 6904 close (fd); 6905 exit (0); 6906} 6907_ACEOF 6908rm -f conftest$ac_exeext 6909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6910 (eval $ac_link) 2>&5 6911 ac_status=$? 6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6915 (eval $ac_try) 2>&5 6916 ac_status=$? 6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6918 (exit $ac_status); }; }; then 6919 ac_cv_func_mmap_fixed_mapped=yes 6920else 6921 echo "$as_me: program exited with status $ac_status" >&5 6922echo "$as_me: failed program was:" >&5 6923sed 's/^/| /' conftest.$ac_ext >&5 6924 6925( exit $ac_status ) 6926ac_cv_func_mmap_fixed_mapped=no 6927fi 6928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6929fi 6930fi 6931echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 6932echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 6933if test $ac_cv_func_mmap_fixed_mapped = yes; then 6934 6935cat >>confdefs.h <<\_ACEOF 6936#define HAVE_MMAP 1 6937_ACEOF 6938 6939fi 6940rm -f conftest.mmap 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 6953unistd.h values.h sys/param.h 6954do 6955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6956if eval "test \"\${$as_ac_Header+set}\" = set"; then 6957 echo "$as_me:$LINENO: checking for $ac_header" >&5 6958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6959if eval "test \"\${$as_ac_Header+set}\" = set"; then 6960 echo $ECHO_N "(cached) $ECHO_C" >&6 6961fi 6962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6964else 6965 # Is the header compilable? 6966echo "$as_me:$LINENO: checking $ac_header usability" >&5 6967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6968cat >conftest.$ac_ext <<_ACEOF 6969/* confdefs.h. */ 6970_ACEOF 6971cat confdefs.h >>conftest.$ac_ext 6972cat >>conftest.$ac_ext <<_ACEOF 6973/* end confdefs.h. */ 6974$ac_includes_default 6975#include <$ac_header> 6976_ACEOF 6977rm -f conftest.$ac_objext 6978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6979 (eval $ac_compile) 2>conftest.er1 6980 ac_status=$? 6981 grep -v '^ *+' conftest.er1 >conftest.err 6982 rm -f conftest.er1 6983 cat conftest.err >&5 6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6985 (exit $ac_status); } && 6986 { ac_try='test -z "$ac_c_werror_flag" 6987 || test ! -s conftest.err' 6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6989 (eval $ac_try) 2>&5 6990 ac_status=$? 6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6992 (exit $ac_status); }; } && 6993 { ac_try='test -s conftest.$ac_objext' 6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6995 (eval $ac_try) 2>&5 6996 ac_status=$? 6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6998 (exit $ac_status); }; }; then 6999 ac_header_compiler=yes 7000else 7001 echo "$as_me: failed program was:" >&5 7002sed 's/^/| /' conftest.$ac_ext >&5 7003 7004ac_header_compiler=no 7005fi 7006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7008echo "${ECHO_T}$ac_header_compiler" >&6 7009 7010# Is the header present? 7011echo "$as_me:$LINENO: checking $ac_header presence" >&5 7012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7013cat >conftest.$ac_ext <<_ACEOF 7014/* confdefs.h. */ 7015_ACEOF 7016cat confdefs.h >>conftest.$ac_ext 7017cat >>conftest.$ac_ext <<_ACEOF 7018/* end confdefs.h. */ 7019#include <$ac_header> 7020_ACEOF 7021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7023 ac_status=$? 7024 grep -v '^ *+' conftest.er1 >conftest.err 7025 rm -f conftest.er1 7026 cat conftest.err >&5 7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7028 (exit $ac_status); } >/dev/null; then 7029 if test -s conftest.err; then 7030 ac_cpp_err=$ac_c_preproc_warn_flag 7031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7032 else 7033 ac_cpp_err= 7034 fi 7035else 7036 ac_cpp_err=yes 7037fi 7038if test -z "$ac_cpp_err"; then 7039 ac_header_preproc=yes 7040else 7041 echo "$as_me: failed program was:" >&5 7042sed 's/^/| /' conftest.$ac_ext >&5 7043 7044 ac_header_preproc=no 7045fi 7046rm -f conftest.err conftest.$ac_ext 7047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7048echo "${ECHO_T}$ac_header_preproc" >&6 7049 7050# So? What about this header? 7051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7052 yes:no: ) 7053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7057 ac_header_preproc=yes 7058 ;; 7059 no:yes:* ) 7060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7072 ( 7073 cat <<\_ASBOX 7074## ------------------------------------------ ## 7075## Report this to the AC_PACKAGE_NAME lists. ## 7076## ------------------------------------------ ## 7077_ASBOX 7078 ) | 7079 sed "s/^/$as_me: WARNING: /" >&2 7080 ;; 7081esac 7082echo "$as_me:$LINENO: checking for $ac_header" >&5 7083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7084if eval "test \"\${$as_ac_Header+set}\" = set"; then 7085 echo $ECHO_N "(cached) $ECHO_C" >&6 7086else 7087 eval "$as_ac_Header=\$ac_header_preproc" 7088fi 7089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7091 7092fi 7093if test `eval echo '${'$as_ac_Header'}'` = yes; then 7094 cat >>confdefs.h <<_ACEOF 7095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7096_ACEOF 7097 7098fi 7099 7100done 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 7113__argz_count __argz_stringify __argz_next 7114do 7115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7116echo "$as_me:$LINENO: checking for $ac_func" >&5 7117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7118if eval "test \"\${$as_ac_var+set}\" = set"; then 7119 echo $ECHO_N "(cached) $ECHO_C" >&6 7120else 7121 cat >conftest.$ac_ext <<_ACEOF 7122/* confdefs.h. */ 7123_ACEOF 7124cat confdefs.h >>conftest.$ac_ext 7125cat >>conftest.$ac_ext <<_ACEOF 7126/* end confdefs.h. */ 7127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7128 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7129#define $ac_func innocuous_$ac_func 7130 7131/* System header to define __stub macros and hopefully few prototypes, 7132 which can conflict with char $ac_func (); below. 7133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7134 <limits.h> exists even on freestanding compilers. */ 7135 7136#ifdef __STDC__ 7137# include <limits.h> 7138#else 7139# include <assert.h> 7140#endif 7141 7142#undef $ac_func 7143 7144/* Override any gcc2 internal prototype to avoid an error. */ 7145#ifdef __cplusplus 7146extern "C" 7147{ 7148#endif 7149/* We use char because int might match the return type of a gcc2 7150 builtin and then its argument prototype would still apply. */ 7151char $ac_func (); 7152/* The GNU C library defines this for functions which it implements 7153 to always fail with ENOSYS. Some functions are actually named 7154 something starting with __ and the normal name is an alias. */ 7155#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7156choke me 7157#else 7158char (*f) () = $ac_func; 7159#endif 7160#ifdef __cplusplus 7161} 7162#endif 7163 7164int 7165main () 7166{ 7167return f != $ac_func; 7168 ; 7169 return 0; 7170} 7171_ACEOF 7172rm -f conftest.$ac_objext conftest$ac_exeext 7173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7174 (eval $ac_link) 2>conftest.er1 7175 ac_status=$? 7176 grep -v '^ *+' conftest.er1 >conftest.err 7177 rm -f conftest.er1 7178 cat conftest.err >&5 7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7180 (exit $ac_status); } && 7181 { ac_try='test -z "$ac_c_werror_flag" 7182 || test ! -s conftest.err' 7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7184 (eval $ac_try) 2>&5 7185 ac_status=$? 7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7187 (exit $ac_status); }; } && 7188 { ac_try='test -s conftest$ac_exeext' 7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7190 (eval $ac_try) 2>&5 7191 ac_status=$? 7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7193 (exit $ac_status); }; }; then 7194 eval "$as_ac_var=yes" 7195else 7196 echo "$as_me: failed program was:" >&5 7197sed 's/^/| /' conftest.$ac_ext >&5 7198 7199eval "$as_ac_var=no" 7200fi 7201rm -f conftest.err conftest.$ac_objext \ 7202 conftest$ac_exeext conftest.$ac_ext 7203fi 7204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7206if test `eval echo '${'$as_ac_var'}'` = yes; then 7207 cat >>confdefs.h <<_ACEOF 7208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7209_ACEOF 7210 7211fi 7212done 7213 7214 7215 if test "${ac_cv_func_stpcpy+set}" != "set"; then 7216 7217for ac_func in stpcpy 7218do 7219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7220echo "$as_me:$LINENO: checking for $ac_func" >&5 7221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7222if eval "test \"\${$as_ac_var+set}\" = set"; then 7223 echo $ECHO_N "(cached) $ECHO_C" >&6 7224else 7225 cat >conftest.$ac_ext <<_ACEOF 7226/* confdefs.h. */ 7227_ACEOF 7228cat confdefs.h >>conftest.$ac_ext 7229cat >>conftest.$ac_ext <<_ACEOF 7230/* end confdefs.h. */ 7231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7232 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7233#define $ac_func innocuous_$ac_func 7234 7235/* System header to define __stub macros and hopefully few prototypes, 7236 which can conflict with char $ac_func (); below. 7237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7238 <limits.h> exists even on freestanding compilers. */ 7239 7240#ifdef __STDC__ 7241# include <limits.h> 7242#else 7243# include <assert.h> 7244#endif 7245 7246#undef $ac_func 7247 7248/* Override any gcc2 internal prototype to avoid an error. */ 7249#ifdef __cplusplus 7250extern "C" 7251{ 7252#endif 7253/* We use char because int might match the return type of a gcc2 7254 builtin and then its argument prototype would still apply. */ 7255char $ac_func (); 7256/* The GNU C library defines this for functions which it implements 7257 to always fail with ENOSYS. Some functions are actually named 7258 something starting with __ and the normal name is an alias. */ 7259#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7260choke me 7261#else 7262char (*f) () = $ac_func; 7263#endif 7264#ifdef __cplusplus 7265} 7266#endif 7267 7268int 7269main () 7270{ 7271return f != $ac_func; 7272 ; 7273 return 0; 7274} 7275_ACEOF 7276rm -f conftest.$ac_objext conftest$ac_exeext 7277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7278 (eval $ac_link) 2>conftest.er1 7279 ac_status=$? 7280 grep -v '^ *+' conftest.er1 >conftest.err 7281 rm -f conftest.er1 7282 cat conftest.err >&5 7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7284 (exit $ac_status); } && 7285 { ac_try='test -z "$ac_c_werror_flag" 7286 || test ! -s conftest.err' 7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7288 (eval $ac_try) 2>&5 7289 ac_status=$? 7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7291 (exit $ac_status); }; } && 7292 { ac_try='test -s conftest$ac_exeext' 7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7294 (eval $ac_try) 2>&5 7295 ac_status=$? 7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7297 (exit $ac_status); }; }; then 7298 eval "$as_ac_var=yes" 7299else 7300 echo "$as_me: failed program was:" >&5 7301sed 's/^/| /' conftest.$ac_ext >&5 7302 7303eval "$as_ac_var=no" 7304fi 7305rm -f conftest.err conftest.$ac_objext \ 7306 conftest$ac_exeext conftest.$ac_ext 7307fi 7308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7309echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7310if test `eval echo '${'$as_ac_var'}'` = yes; then 7311 cat >>confdefs.h <<_ACEOF 7312#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7313_ACEOF 7314 7315fi 7316done 7317 7318 fi 7319 if test "${ac_cv_func_stpcpy}" = "yes"; then 7320 7321cat >>confdefs.h <<\_ACEOF 7322#define HAVE_STPCPY 1 7323_ACEOF 7324 7325 fi 7326 7327 if test $ac_cv_header_locale_h = yes; then 7328 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 7329echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 7330if test "${am_cv_val_LC_MESSAGES+set}" = set; then 7331 echo $ECHO_N "(cached) $ECHO_C" >&6 7332else 7333 cat >conftest.$ac_ext <<_ACEOF 7334/* confdefs.h. */ 7335_ACEOF 7336cat confdefs.h >>conftest.$ac_ext 7337cat >>conftest.$ac_ext <<_ACEOF 7338/* end confdefs.h. */ 7339#include <locale.h> 7340int 7341main () 7342{ 7343return LC_MESSAGES 7344 ; 7345 return 0; 7346} 7347_ACEOF 7348rm -f conftest.$ac_objext conftest$ac_exeext 7349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7350 (eval $ac_link) 2>conftest.er1 7351 ac_status=$? 7352 grep -v '^ *+' conftest.er1 >conftest.err 7353 rm -f conftest.er1 7354 cat conftest.err >&5 7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7356 (exit $ac_status); } && 7357 { ac_try='test -z "$ac_c_werror_flag" 7358 || test ! -s conftest.err' 7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7360 (eval $ac_try) 2>&5 7361 ac_status=$? 7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7363 (exit $ac_status); }; } && 7364 { ac_try='test -s conftest$ac_exeext' 7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7366 (eval $ac_try) 2>&5 7367 ac_status=$? 7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7369 (exit $ac_status); }; }; then 7370 am_cv_val_LC_MESSAGES=yes 7371else 7372 echo "$as_me: failed program was:" >&5 7373sed 's/^/| /' conftest.$ac_ext >&5 7374 7375am_cv_val_LC_MESSAGES=no 7376fi 7377rm -f conftest.err conftest.$ac_objext \ 7378 conftest$ac_exeext conftest.$ac_ext 7379fi 7380echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 7381echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 7382 if test $am_cv_val_LC_MESSAGES = yes; then 7383 7384cat >>confdefs.h <<\_ACEOF 7385#define HAVE_LC_MESSAGES 1 7386_ACEOF 7387 7388 fi 7389 fi 7390 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 7391echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 7392 # Check whether --enable-nls or --disable-nls was given. 7393if test "${enable_nls+set}" = set; then 7394 enableval="$enable_nls" 7395 USE_NLS=$enableval 7396else 7397 USE_NLS=yes 7398fi; 7399 echo "$as_me:$LINENO: result: $USE_NLS" >&5 7400echo "${ECHO_T}$USE_NLS" >&6 7401 7402 7403 USE_INCLUDED_LIBINTL=no 7404 7405 if test "$USE_NLS" = "yes"; then 7406 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 7407echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 7408 7409# Check whether --with-included-gettext or --without-included-gettext was given. 7410if test "${with_included_gettext+set}" = set; then 7411 withval="$with_included_gettext" 7412 nls_cv_force_use_gnu_gettext=$withval 7413else 7414 nls_cv_force_use_gnu_gettext=no 7415fi; 7416 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 7417echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 7418 7419 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 7420 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 7421 nls_cv_header_intl= 7422 nls_cv_header_libgt= 7423 CATOBJEXT= 7424 7425 if test "${ac_cv_header_libintl_h+set}" = set; then 7426 echo "$as_me:$LINENO: checking for libintl.h" >&5 7427echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 7428if test "${ac_cv_header_libintl_h+set}" = set; then 7429 echo $ECHO_N "(cached) $ECHO_C" >&6 7430fi 7431echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 7432echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 7433else 7434 # Is the header compilable? 7435echo "$as_me:$LINENO: checking libintl.h usability" >&5 7436echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 7437cat >conftest.$ac_ext <<_ACEOF 7438/* confdefs.h. */ 7439_ACEOF 7440cat confdefs.h >>conftest.$ac_ext 7441cat >>conftest.$ac_ext <<_ACEOF 7442/* end confdefs.h. */ 7443$ac_includes_default 7444#include <libintl.h> 7445_ACEOF 7446rm -f conftest.$ac_objext 7447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7448 (eval $ac_compile) 2>conftest.er1 7449 ac_status=$? 7450 grep -v '^ *+' conftest.er1 >conftest.err 7451 rm -f conftest.er1 7452 cat conftest.err >&5 7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7454 (exit $ac_status); } && 7455 { ac_try='test -z "$ac_c_werror_flag" 7456 || test ! -s conftest.err' 7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7458 (eval $ac_try) 2>&5 7459 ac_status=$? 7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7461 (exit $ac_status); }; } && 7462 { ac_try='test -s conftest.$ac_objext' 7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7464 (eval $ac_try) 2>&5 7465 ac_status=$? 7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7467 (exit $ac_status); }; }; then 7468 ac_header_compiler=yes 7469else 7470 echo "$as_me: failed program was:" >&5 7471sed 's/^/| /' conftest.$ac_ext >&5 7472 7473ac_header_compiler=no 7474fi 7475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7476echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7477echo "${ECHO_T}$ac_header_compiler" >&6 7478 7479# Is the header present? 7480echo "$as_me:$LINENO: checking libintl.h presence" >&5 7481echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 7482cat >conftest.$ac_ext <<_ACEOF 7483/* confdefs.h. */ 7484_ACEOF 7485cat confdefs.h >>conftest.$ac_ext 7486cat >>conftest.$ac_ext <<_ACEOF 7487/* end confdefs.h. */ 7488#include <libintl.h> 7489_ACEOF 7490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7492 ac_status=$? 7493 grep -v '^ *+' conftest.er1 >conftest.err 7494 rm -f conftest.er1 7495 cat conftest.err >&5 7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7497 (exit $ac_status); } >/dev/null; then 7498 if test -s conftest.err; then 7499 ac_cpp_err=$ac_c_preproc_warn_flag 7500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7501 else 7502 ac_cpp_err= 7503 fi 7504else 7505 ac_cpp_err=yes 7506fi 7507if test -z "$ac_cpp_err"; then 7508 ac_header_preproc=yes 7509else 7510 echo "$as_me: failed program was:" >&5 7511sed 's/^/| /' conftest.$ac_ext >&5 7512 7513 ac_header_preproc=no 7514fi 7515rm -f conftest.err conftest.$ac_ext 7516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7517echo "${ECHO_T}$ac_header_preproc" >&6 7518 7519# So? What about this header? 7520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7521 yes:no: ) 7522 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 7523echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7524 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 7525echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 7526 ac_header_preproc=yes 7527 ;; 7528 no:yes:* ) 7529 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 7530echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 7531 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 7532echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 7533 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 7534echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 7535 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 7536echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 7537 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 7538echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 7539 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 7540echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 7541 ( 7542 cat <<\_ASBOX 7543## ------------------------------------------ ## 7544## Report this to the AC_PACKAGE_NAME lists. ## 7545## ------------------------------------------ ## 7546_ASBOX 7547 ) | 7548 sed "s/^/$as_me: WARNING: /" >&2 7549 ;; 7550esac 7551echo "$as_me:$LINENO: checking for libintl.h" >&5 7552echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 7553if test "${ac_cv_header_libintl_h+set}" = set; then 7554 echo $ECHO_N "(cached) $ECHO_C" >&6 7555else 7556 ac_cv_header_libintl_h=$ac_header_preproc 7557fi 7558echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 7559echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 7560 7561fi 7562if test $ac_cv_header_libintl_h = yes; then 7563 echo "$as_me:$LINENO: checking for gettext in libc" >&5 7564echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 7565if test "${gt_cv_func_gettext_libc+set}" = set; then 7566 echo $ECHO_N "(cached) $ECHO_C" >&6 7567else 7568 cat >conftest.$ac_ext <<_ACEOF 7569/* confdefs.h. */ 7570_ACEOF 7571cat confdefs.h >>conftest.$ac_ext 7572cat >>conftest.$ac_ext <<_ACEOF 7573/* end confdefs.h. */ 7574#include <libintl.h> 7575int 7576main () 7577{ 7578return (int) gettext ("") 7579 ; 7580 return 0; 7581} 7582_ACEOF 7583rm -f conftest.$ac_objext conftest$ac_exeext 7584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7585 (eval $ac_link) 2>conftest.er1 7586 ac_status=$? 7587 grep -v '^ *+' conftest.er1 >conftest.err 7588 rm -f conftest.er1 7589 cat conftest.err >&5 7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7591 (exit $ac_status); } && 7592 { ac_try='test -z "$ac_c_werror_flag" 7593 || test ! -s conftest.err' 7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7595 (eval $ac_try) 2>&5 7596 ac_status=$? 7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7598 (exit $ac_status); }; } && 7599 { ac_try='test -s conftest$ac_exeext' 7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7601 (eval $ac_try) 2>&5 7602 ac_status=$? 7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7604 (exit $ac_status); }; }; then 7605 gt_cv_func_gettext_libc=yes 7606else 7607 echo "$as_me: failed program was:" >&5 7608sed 's/^/| /' conftest.$ac_ext >&5 7609 7610gt_cv_func_gettext_libc=no 7611fi 7612rm -f conftest.err conftest.$ac_objext \ 7613 conftest$ac_exeext conftest.$ac_ext 7614fi 7615echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 7616echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 7617 7618 if test "$gt_cv_func_gettext_libc" != "yes"; then 7619 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 7620echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 7621if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 7622 echo $ECHO_N "(cached) $ECHO_C" >&6 7623else 7624 ac_check_lib_save_LIBS=$LIBS 7625LIBS="-lintl $LIBS" 7626cat >conftest.$ac_ext <<_ACEOF 7627/* confdefs.h. */ 7628_ACEOF 7629cat confdefs.h >>conftest.$ac_ext 7630cat >>conftest.$ac_ext <<_ACEOF 7631/* end confdefs.h. */ 7632 7633/* Override any gcc2 internal prototype to avoid an error. */ 7634#ifdef __cplusplus 7635extern "C" 7636#endif 7637/* We use char because int might match the return type of a gcc2 7638 builtin and then its argument prototype would still apply. */ 7639char bindtextdomain (); 7640int 7641main () 7642{ 7643bindtextdomain (); 7644 ; 7645 return 0; 7646} 7647_ACEOF 7648rm -f conftest.$ac_objext conftest$ac_exeext 7649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7650 (eval $ac_link) 2>conftest.er1 7651 ac_status=$? 7652 grep -v '^ *+' conftest.er1 >conftest.err 7653 rm -f conftest.er1 7654 cat conftest.err >&5 7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7656 (exit $ac_status); } && 7657 { ac_try='test -z "$ac_c_werror_flag" 7658 || test ! -s conftest.err' 7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7660 (eval $ac_try) 2>&5 7661 ac_status=$? 7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7663 (exit $ac_status); }; } && 7664 { ac_try='test -s conftest$ac_exeext' 7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7666 (eval $ac_try) 2>&5 7667 ac_status=$? 7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7669 (exit $ac_status); }; }; then 7670 ac_cv_lib_intl_bindtextdomain=yes 7671else 7672 echo "$as_me: failed program was:" >&5 7673sed 's/^/| /' conftest.$ac_ext >&5 7674 7675ac_cv_lib_intl_bindtextdomain=no 7676fi 7677rm -f conftest.err conftest.$ac_objext \ 7678 conftest$ac_exeext conftest.$ac_ext 7679LIBS=$ac_check_lib_save_LIBS 7680fi 7681echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 7682echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 7683if test $ac_cv_lib_intl_bindtextdomain = yes; then 7684 echo "$as_me:$LINENO: checking for gettext in libintl" >&5 7685echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 7686if test "${gt_cv_func_gettext_libintl+set}" = set; then 7687 echo $ECHO_N "(cached) $ECHO_C" >&6 7688else 7689 cat >conftest.$ac_ext <<_ACEOF 7690/* confdefs.h. */ 7691_ACEOF 7692cat confdefs.h >>conftest.$ac_ext 7693cat >>conftest.$ac_ext <<_ACEOF 7694/* end confdefs.h. */ 7695 7696int 7697main () 7698{ 7699return (int) gettext ("") 7700 ; 7701 return 0; 7702} 7703_ACEOF 7704rm -f conftest.$ac_objext conftest$ac_exeext 7705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7706 (eval $ac_link) 2>conftest.er1 7707 ac_status=$? 7708 grep -v '^ *+' conftest.er1 >conftest.err 7709 rm -f conftest.er1 7710 cat conftest.err >&5 7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7712 (exit $ac_status); } && 7713 { ac_try='test -z "$ac_c_werror_flag" 7714 || test ! -s conftest.err' 7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7716 (eval $ac_try) 2>&5 7717 ac_status=$? 7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7719 (exit $ac_status); }; } && 7720 { ac_try='test -s conftest$ac_exeext' 7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7722 (eval $ac_try) 2>&5 7723 ac_status=$? 7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7725 (exit $ac_status); }; }; then 7726 gt_cv_func_gettext_libintl=yes 7727else 7728 echo "$as_me: failed program was:" >&5 7729sed 's/^/| /' conftest.$ac_ext >&5 7730 7731gt_cv_func_gettext_libintl=no 7732fi 7733rm -f conftest.err conftest.$ac_objext \ 7734 conftest$ac_exeext conftest.$ac_ext 7735fi 7736echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 7737echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 7738fi 7739 7740 fi 7741 7742 if test "$gt_cv_func_gettext_libc" = "yes" \ 7743 || test "$gt_cv_func_gettext_libintl" = "yes"; then 7744 7745cat >>confdefs.h <<\_ACEOF 7746#define HAVE_GETTEXT 1 7747_ACEOF 7748 7749 # Extract the first word of "msgfmt", so it can be a program name with args. 7750set dummy msgfmt; ac_word=$2 7751echo "$as_me:$LINENO: checking for $ac_word" >&5 7752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7753if test "${ac_cv_path_MSGFMT+set}" = set; then 7754 echo $ECHO_N "(cached) $ECHO_C" >&6 7755else 7756 case "$MSGFMT" in 7757 /*) 7758 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7759 ;; 7760 *) 7761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7762 for ac_dir in $PATH; do 7763 test -z "$ac_dir" && ac_dir=. 7764 if test -f $ac_dir/$ac_word; then 7765 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 7766 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 7767 break 7768 fi 7769 fi 7770 done 7771 IFS="$ac_save_ifs" 7772 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 7773 ;; 7774esac 7775fi 7776MSGFMT="$ac_cv_path_MSGFMT" 7777if test -n "$MSGFMT"; then 7778 echo "$as_me:$LINENO: result: $MSGFMT" >&5 7779echo "${ECHO_T}$MSGFMT" >&6 7780else 7781 echo "$as_me:$LINENO: result: no" >&5 7782echo "${ECHO_T}no" >&6 7783fi 7784 if test "$MSGFMT" != "no"; then 7785 7786for ac_func in dcgettext 7787do 7788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7789echo "$as_me:$LINENO: checking for $ac_func" >&5 7790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7791if eval "test \"\${$as_ac_var+set}\" = set"; then 7792 echo $ECHO_N "(cached) $ECHO_C" >&6 7793else 7794 cat >conftest.$ac_ext <<_ACEOF 7795/* confdefs.h. */ 7796_ACEOF 7797cat confdefs.h >>conftest.$ac_ext 7798cat >>conftest.$ac_ext <<_ACEOF 7799/* end confdefs.h. */ 7800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7801 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7802#define $ac_func innocuous_$ac_func 7803 7804/* System header to define __stub macros and hopefully few prototypes, 7805 which can conflict with char $ac_func (); below. 7806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7807 <limits.h> exists even on freestanding compilers. */ 7808 7809#ifdef __STDC__ 7810# include <limits.h> 7811#else 7812# include <assert.h> 7813#endif 7814 7815#undef $ac_func 7816 7817/* Override any gcc2 internal prototype to avoid an error. */ 7818#ifdef __cplusplus 7819extern "C" 7820{ 7821#endif 7822/* We use char because int might match the return type of a gcc2 7823 builtin and then its argument prototype would still apply. */ 7824char $ac_func (); 7825/* The GNU C library defines this for functions which it implements 7826 to always fail with ENOSYS. Some functions are actually named 7827 something starting with __ and the normal name is an alias. */ 7828#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7829choke me 7830#else 7831char (*f) () = $ac_func; 7832#endif 7833#ifdef __cplusplus 7834} 7835#endif 7836 7837int 7838main () 7839{ 7840return f != $ac_func; 7841 ; 7842 return 0; 7843} 7844_ACEOF 7845rm -f conftest.$ac_objext conftest$ac_exeext 7846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7847 (eval $ac_link) 2>conftest.er1 7848 ac_status=$? 7849 grep -v '^ *+' conftest.er1 >conftest.err 7850 rm -f conftest.er1 7851 cat conftest.err >&5 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853 (exit $ac_status); } && 7854 { ac_try='test -z "$ac_c_werror_flag" 7855 || test ! -s conftest.err' 7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7857 (eval $ac_try) 2>&5 7858 ac_status=$? 7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7860 (exit $ac_status); }; } && 7861 { ac_try='test -s conftest$ac_exeext' 7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7863 (eval $ac_try) 2>&5 7864 ac_status=$? 7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7866 (exit $ac_status); }; }; then 7867 eval "$as_ac_var=yes" 7868else 7869 echo "$as_me: failed program was:" >&5 7870sed 's/^/| /' conftest.$ac_ext >&5 7871 7872eval "$as_ac_var=no" 7873fi 7874rm -f conftest.err conftest.$ac_objext \ 7875 conftest$ac_exeext conftest.$ac_ext 7876fi 7877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7879if test `eval echo '${'$as_ac_var'}'` = yes; then 7880 cat >>confdefs.h <<_ACEOF 7881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7882_ACEOF 7883 7884fi 7885done 7886 7887 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7888set dummy gmsgfmt; ac_word=$2 7889echo "$as_me:$LINENO: checking for $ac_word" >&5 7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7891if test "${ac_cv_path_GMSGFMT+set}" = set; then 7892 echo $ECHO_N "(cached) $ECHO_C" >&6 7893else 7894 case $GMSGFMT in 7895 [\\/]* | ?:[\\/]*) 7896 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7897 ;; 7898 *) 7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7900for as_dir in $PATH 7901do 7902 IFS=$as_save_IFS 7903 test -z "$as_dir" && as_dir=. 7904 for ac_exec_ext in '' $ac_executable_extensions; do 7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7906 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7908 break 2 7909 fi 7910done 7911done 7912 7913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7914 ;; 7915esac 7916fi 7917GMSGFMT=$ac_cv_path_GMSGFMT 7918 7919if test -n "$GMSGFMT"; then 7920 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 7921echo "${ECHO_T}$GMSGFMT" >&6 7922else 7923 echo "$as_me:$LINENO: result: no" >&5 7924echo "${ECHO_T}no" >&6 7925fi 7926 7927 # Extract the first word of "xgettext", so it can be a program name with args. 7928set dummy xgettext; ac_word=$2 7929echo "$as_me:$LINENO: checking for $ac_word" >&5 7930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7931if test "${ac_cv_path_XGETTEXT+set}" = set; then 7932 echo $ECHO_N "(cached) $ECHO_C" >&6 7933else 7934 case "$XGETTEXT" in 7935 /*) 7936 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7937 ;; 7938 *) 7939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7940 for ac_dir in $PATH; do 7941 test -z "$ac_dir" && ac_dir=. 7942 if test -f $ac_dir/$ac_word; then 7943 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 7944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 7945 break 7946 fi 7947 fi 7948 done 7949 IFS="$ac_save_ifs" 7950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7951 ;; 7952esac 7953fi 7954XGETTEXT="$ac_cv_path_XGETTEXT" 7955if test -n "$XGETTEXT"; then 7956 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 7957echo "${ECHO_T}$XGETTEXT" >&6 7958else 7959 echo "$as_me:$LINENO: result: no" >&5 7960echo "${ECHO_T}no" >&6 7961fi 7962 7963 cat >conftest.$ac_ext <<_ACEOF 7964/* confdefs.h. */ 7965_ACEOF 7966cat confdefs.h >>conftest.$ac_ext 7967cat >>conftest.$ac_ext <<_ACEOF 7968/* end confdefs.h. */ 7969 7970int 7971main () 7972{ 7973extern int _nl_msg_cat_cntr; 7974 return _nl_msg_cat_cntr 7975 ; 7976 return 0; 7977} 7978_ACEOF 7979rm -f conftest.$ac_objext conftest$ac_exeext 7980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7981 (eval $ac_link) 2>conftest.er1 7982 ac_status=$? 7983 grep -v '^ *+' conftest.er1 >conftest.err 7984 rm -f conftest.er1 7985 cat conftest.err >&5 7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7987 (exit $ac_status); } && 7988 { ac_try='test -z "$ac_c_werror_flag" 7989 || test ! -s conftest.err' 7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7991 (eval $ac_try) 2>&5 7992 ac_status=$? 7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7994 (exit $ac_status); }; } && 7995 { ac_try='test -s conftest$ac_exeext' 7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7997 (eval $ac_try) 2>&5 7998 ac_status=$? 7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8000 (exit $ac_status); }; }; then 8001 CATOBJEXT=.gmo 8002 DATADIRNAME=share 8003else 8004 echo "$as_me: failed program was:" >&5 8005sed 's/^/| /' conftest.$ac_ext >&5 8006 8007CATOBJEXT=.mo 8008 DATADIRNAME=lib 8009fi 8010rm -f conftest.err conftest.$ac_objext \ 8011 conftest$ac_exeext conftest.$ac_ext 8012 INSTOBJEXT=.mo 8013 fi 8014 fi 8015 8016fi 8017 8018 8019 8020 8021 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then 8022 # Neither gettext nor catgets in included in the C library. 8023 # Fall back on GNU gettext library (assuming it is present). 8024 nls_cv_use_gnu_gettext=yes 8025 fi 8026 fi 8027 8028 if test "$nls_cv_use_gnu_gettext" = "yes"; then 8029 INTLOBJS="\$(GETTOBJS)" 8030 # Extract the first word of "msgfmt", so it can be a program name with args. 8031set dummy msgfmt; ac_word=$2 8032echo "$as_me:$LINENO: checking for $ac_word" >&5 8033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8034if test "${ac_cv_path_MSGFMT+set}" = set; then 8035 echo $ECHO_N "(cached) $ECHO_C" >&6 8036else 8037 case "$MSGFMT" in 8038 /*) 8039 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 8040 ;; 8041 *) 8042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8043 for ac_dir in $PATH; do 8044 test -z "$ac_dir" && ac_dir=. 8045 if test -f $ac_dir/$ac_word; then 8046 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 8047 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 8048 break 8049 fi 8050 fi 8051 done 8052 IFS="$ac_save_ifs" 8053 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 8054 ;; 8055esac 8056fi 8057MSGFMT="$ac_cv_path_MSGFMT" 8058if test -n "$MSGFMT"; then 8059 echo "$as_me:$LINENO: result: $MSGFMT" >&5 8060echo "${ECHO_T}$MSGFMT" >&6 8061else 8062 echo "$as_me:$LINENO: result: no" >&5 8063echo "${ECHO_T}no" >&6 8064fi 8065 8066 # Extract the first word of "gmsgfmt", so it can be a program name with args. 8067set dummy gmsgfmt; ac_word=$2 8068echo "$as_me:$LINENO: checking for $ac_word" >&5 8069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8070if test "${ac_cv_path_GMSGFMT+set}" = set; then 8071 echo $ECHO_N "(cached) $ECHO_C" >&6 8072else 8073 case $GMSGFMT in 8074 [\\/]* | ?:[\\/]*) 8075 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 8076 ;; 8077 *) 8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8079for as_dir in $PATH 8080do 8081 IFS=$as_save_IFS 8082 test -z "$as_dir" && as_dir=. 8083 for ac_exec_ext in '' $ac_executable_extensions; do 8084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8085 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8087 break 2 8088 fi 8089done 8090done 8091 8092 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 8093 ;; 8094esac 8095fi 8096GMSGFMT=$ac_cv_path_GMSGFMT 8097 8098if test -n "$GMSGFMT"; then 8099 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 8100echo "${ECHO_T}$GMSGFMT" >&6 8101else 8102 echo "$as_me:$LINENO: result: no" >&5 8103echo "${ECHO_T}no" >&6 8104fi 8105 8106 # Extract the first word of "xgettext", so it can be a program name with args. 8107set dummy xgettext; ac_word=$2 8108echo "$as_me:$LINENO: checking for $ac_word" >&5 8109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8110if test "${ac_cv_path_XGETTEXT+set}" = set; then 8111 echo $ECHO_N "(cached) $ECHO_C" >&6 8112else 8113 case "$XGETTEXT" in 8114 /*) 8115 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 8116 ;; 8117 *) 8118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8119 for ac_dir in $PATH; do 8120 test -z "$ac_dir" && ac_dir=. 8121 if test -f $ac_dir/$ac_word; then 8122 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 8123 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 8124 break 8125 fi 8126 fi 8127 done 8128 IFS="$ac_save_ifs" 8129 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 8130 ;; 8131esac 8132fi 8133XGETTEXT="$ac_cv_path_XGETTEXT" 8134if test -n "$XGETTEXT"; then 8135 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 8136echo "${ECHO_T}$XGETTEXT" >&6 8137else 8138 echo "$as_me:$LINENO: result: no" >&5 8139echo "${ECHO_T}no" >&6 8140fi 8141 8142 8143 USE_INCLUDED_LIBINTL=yes 8144 CATOBJEXT=.gmo 8145 INSTOBJEXT=.mo 8146 DATADIRNAME=share 8147 INTLDEPS='$(top_builddir)/../intl/libintl.a' 8148 INTLLIBS=$INTLDEPS 8149 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 8150 nls_cv_header_intl=libintl.h 8151 nls_cv_header_libgt=libgettext.h 8152 fi 8153 8154 if test "$XGETTEXT" != ":"; then 8155 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 8156 : ; 8157 else 8158 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 8159echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 8160 XGETTEXT=":" 8161 fi 8162 fi 8163 8164 # We need to process the po/ directory. 8165 POSUB=po 8166 else 8167 DATADIRNAME=share 8168 nls_cv_header_intl=libintl.h 8169 nls_cv_header_libgt=libgettext.h 8170 fi 8171 8172 # If this is used in GNU gettext we have to set USE_NLS to `yes' 8173 # because some of the sources are only built for this goal. 8174 if test "$PACKAGE" = gettext; then 8175 USE_NLS=yes 8176 USE_INCLUDED_LIBINTL=yes 8177 fi 8178 8179 for lang in $ALL_LINGUAS; do 8180 GMOFILES="$GMOFILES $lang.gmo" 8181 POFILES="$POFILES $lang.po" 8182 done 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 if test "x$CATOBJEXT" != "x"; then 8196 8197cat >>confdefs.h <<\_ACEOF 8198#define ENABLE_NLS 1 8199_ACEOF 8200 8201 fi 8202 8203 8204 if test "x$CATOBJEXT" != "x"; then 8205 if test "x$ALL_LINGUAS" = "x"; then 8206 LINGUAS= 8207 else 8208 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 8209echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 8210 NEW_LINGUAS= 8211 for lang in ${LINGUAS=$ALL_LINGUAS}; do 8212 case "$ALL_LINGUAS" in 8213 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 8214 esac 8215 done 8216 LINGUAS=$NEW_LINGUAS 8217 echo "$as_me:$LINENO: result: $LINGUAS" >&5 8218echo "${ECHO_T}$LINGUAS" >&6 8219 fi 8220 8221 if test -n "$LINGUAS"; then 8222 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 8223 fi 8224 fi 8225 8226 if test $ac_cv_header_locale_h = yes; then 8227 INCLUDE_LOCALE_H="#include <locale.h>" 8228 else 8229 INCLUDE_LOCALE_H="\ 8230/* The system does not provide the header <locale.h>. Take care yourself. */" 8231 fi 8232 8233 8234 if test -f $srcdir/po2tbl.sed.in; then 8235 if test "$CATOBJEXT" = ".cat"; then 8236 if test "${ac_cv_header_linux_version_h+set}" = set; then 8237 echo "$as_me:$LINENO: checking for linux/version.h" >&5 8238echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 8239if test "${ac_cv_header_linux_version_h+set}" = set; then 8240 echo $ECHO_N "(cached) $ECHO_C" >&6 8241fi 8242echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 8243echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 8244else 8245 # Is the header compilable? 8246echo "$as_me:$LINENO: checking linux/version.h usability" >&5 8247echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 8248cat >conftest.$ac_ext <<_ACEOF 8249/* confdefs.h. */ 8250_ACEOF 8251cat confdefs.h >>conftest.$ac_ext 8252cat >>conftest.$ac_ext <<_ACEOF 8253/* end confdefs.h. */ 8254$ac_includes_default 8255#include <linux/version.h> 8256_ACEOF 8257rm -f conftest.$ac_objext 8258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8259 (eval $ac_compile) 2>conftest.er1 8260 ac_status=$? 8261 grep -v '^ *+' conftest.er1 >conftest.err 8262 rm -f conftest.er1 8263 cat conftest.err >&5 8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8265 (exit $ac_status); } && 8266 { ac_try='test -z "$ac_c_werror_flag" 8267 || test ! -s conftest.err' 8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8269 (eval $ac_try) 2>&5 8270 ac_status=$? 8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8272 (exit $ac_status); }; } && 8273 { ac_try='test -s conftest.$ac_objext' 8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8275 (eval $ac_try) 2>&5 8276 ac_status=$? 8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8278 (exit $ac_status); }; }; then 8279 ac_header_compiler=yes 8280else 8281 echo "$as_me: failed program was:" >&5 8282sed 's/^/| /' conftest.$ac_ext >&5 8283 8284ac_header_compiler=no 8285fi 8286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8288echo "${ECHO_T}$ac_header_compiler" >&6 8289 8290# Is the header present? 8291echo "$as_me:$LINENO: checking linux/version.h presence" >&5 8292echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 8293cat >conftest.$ac_ext <<_ACEOF 8294/* confdefs.h. */ 8295_ACEOF 8296cat confdefs.h >>conftest.$ac_ext 8297cat >>conftest.$ac_ext <<_ACEOF 8298/* end confdefs.h. */ 8299#include <linux/version.h> 8300_ACEOF 8301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8303 ac_status=$? 8304 grep -v '^ *+' conftest.er1 >conftest.err 8305 rm -f conftest.er1 8306 cat conftest.err >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8308 (exit $ac_status); } >/dev/null; then 8309 if test -s conftest.err; then 8310 ac_cpp_err=$ac_c_preproc_warn_flag 8311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8312 else 8313 ac_cpp_err= 8314 fi 8315else 8316 ac_cpp_err=yes 8317fi 8318if test -z "$ac_cpp_err"; then 8319 ac_header_preproc=yes 8320else 8321 echo "$as_me: failed program was:" >&5 8322sed 's/^/| /' conftest.$ac_ext >&5 8323 8324 ac_header_preproc=no 8325fi 8326rm -f conftest.err conftest.$ac_ext 8327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8328echo "${ECHO_T}$ac_header_preproc" >&6 8329 8330# So? What about this header? 8331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8332 yes:no: ) 8333 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 8334echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8335 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 8336echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} 8337 ac_header_preproc=yes 8338 ;; 8339 no:yes:* ) 8340 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 8341echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} 8342 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 8343echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} 8344 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 8345echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} 8346 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 8347echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} 8348 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 8349echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} 8350 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 8351echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} 8352 ( 8353 cat <<\_ASBOX 8354## ------------------------------------------ ## 8355## Report this to the AC_PACKAGE_NAME lists. ## 8356## ------------------------------------------ ## 8357_ASBOX 8358 ) | 8359 sed "s/^/$as_me: WARNING: /" >&2 8360 ;; 8361esac 8362echo "$as_me:$LINENO: checking for linux/version.h" >&5 8363echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 8364if test "${ac_cv_header_linux_version_h+set}" = set; then 8365 echo $ECHO_N "(cached) $ECHO_C" >&6 8366else 8367 ac_cv_header_linux_version_h=$ac_header_preproc 8368fi 8369echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 8370echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 8371 8372fi 8373if test $ac_cv_header_linux_version_h = yes; then 8374 msgformat=linux 8375else 8376 msgformat=xopen 8377fi 8378 8379 8380 8381 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed 8382 fi 8383 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 8384 $srcdir/po2tbl.sed.in > po2tbl.sed 8385 fi 8386 8387 if test "$PACKAGE" = "gettext"; then 8388 GT_NO="#NO#" 8389 GT_YES= 8390 else 8391 GT_NO= 8392 GT_YES="#YES#" 8393 fi 8394 8395 8396 8397 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" 8398 8399 8400 l= 8401 8402 8403 if test -f $srcdir/po/POTFILES.in; then 8404 test -d po || mkdir po 8405 if test "x$srcdir" != "x."; then 8406 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 8407 posrcprefix="$srcdir/" 8408 else 8409 posrcprefix="../$srcdir/" 8410 fi 8411 else 8412 posrcprefix="../" 8413 fi 8414 rm -f po/POTFILES 8415 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 8416 < $srcdir/po/POTFILES.in > po/POTFILES 8417 fi 8418 8419 8420# Permit host specific settings. 8421. ${srcdir}/configure.host 8422 8423 8424# Find a good install program. We prefer a C program (faster), 8425# so one script is as good as another. But avoid the broken or 8426# incompatible versions: 8427# SysV /etc/install, /usr/sbin/install 8428# SunOS /usr/etc/install 8429# IRIX /sbin/install 8430# AIX /bin/install 8431# AmigaOS /C/install, which installs bootblocks on floppy discs 8432# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 8433# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8434# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8435# OS/2's system install, which has a completely different semantic 8436# ./install, which can be erroneously created by make from ./install.sh. 8437echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 8438echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 8439if test -z "$INSTALL"; then 8440if test "${ac_cv_path_install+set}" = set; then 8441 echo $ECHO_N "(cached) $ECHO_C" >&6 8442else 8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8444for as_dir in $PATH 8445do 8446 IFS=$as_save_IFS 8447 test -z "$as_dir" && as_dir=. 8448 # Account for people who put trailing slashes in PATH elements. 8449case $as_dir/ in 8450 ./ | .// | /cC/* | \ 8451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 8452 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 8453 /usr/ucb/* ) ;; 8454 *) 8455 # OSF1 and SCO ODT 3.0 have their own names for install. 8456 # Don't use installbsd from OSF since it installs stuff as root 8457 # by default. 8458 for ac_prog in ginstall scoinst install; do 8459 for ac_exec_ext in '' $ac_executable_extensions; do 8460 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 8461 if test $ac_prog = install && 8462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8463 # AIX install. It has an incompatible calling convention. 8464 : 8465 elif test $ac_prog = install && 8466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8467 # program-specific install script used by HP pwplus--don't use. 8468 : 8469 else 8470 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 8471 break 3 8472 fi 8473 fi 8474 done 8475 done 8476 ;; 8477esac 8478done 8479 8480 8481fi 8482 if test "${ac_cv_path_install+set}" = set; then 8483 INSTALL=$ac_cv_path_install 8484 else 8485 # As a last resort, use the slow shell script. We don't cache a 8486 # path for INSTALL within a source directory, because that will 8487 # break other packages using the cache if that directory is 8488 # removed, or if the path is relative. 8489 INSTALL=$ac_install_sh 8490 fi 8491fi 8492echo "$as_me:$LINENO: result: $INSTALL" >&5 8493echo "${ECHO_T}$INSTALL" >&6 8494 8495# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8496# It thinks the first close brace ends the variable substitution. 8497test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8498 8499test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 8500 8501test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8502 8503 8504BFD_HOST_64BIT_LONG=0 8505BFD_HOST_LONG_LONG=0 8506BFD_HOST_64_BIT_DEFINED=0 8507BFD_HOST_64_BIT= 8508BFD_HOST_U_64_BIT= 8509 8510echo "$as_me:$LINENO: checking for long long" >&5 8511echo $ECHO_N "checking for long long... $ECHO_C" >&6 8512if test "${bfd_cv_has_long_long+set}" = set; then 8513 echo $ECHO_N "(cached) $ECHO_C" >&6 8514else 8515 cat >conftest.$ac_ext <<_ACEOF 8516/* confdefs.h. */ 8517_ACEOF 8518cat confdefs.h >>conftest.$ac_ext 8519cat >>conftest.$ac_ext <<_ACEOF 8520/* end confdefs.h. */ 8521 8522int 8523main () 8524{ 8525unsigned long long ll = 18446744073709551615ULL; 8526 ; 8527 return 0; 8528} 8529_ACEOF 8530rm -f conftest.$ac_objext 8531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8532 (eval $ac_compile) 2>conftest.er1 8533 ac_status=$? 8534 grep -v '^ *+' conftest.er1 >conftest.err 8535 rm -f conftest.er1 8536 cat conftest.err >&5 8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8538 (exit $ac_status); } && 8539 { ac_try='test -z "$ac_c_werror_flag" 8540 || test ! -s conftest.err' 8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8542 (eval $ac_try) 2>&5 8543 ac_status=$? 8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8545 (exit $ac_status); }; } && 8546 { ac_try='test -s conftest.$ac_objext' 8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8548 (eval $ac_try) 2>&5 8549 ac_status=$? 8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8551 (exit $ac_status); }; }; then 8552 bfd_cv_has_long_long=yes 8553else 8554 echo "$as_me: failed program was:" >&5 8555sed 's/^/| /' conftest.$ac_ext >&5 8556 8557bfd_cv_has_long_long=no 8558fi 8559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8560fi 8561 8562echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5 8563echo "${ECHO_T}$bfd_cv_has_long_long" >&6 8564if test $bfd_cv_has_long_long = yes; then 8565 BFD_HOST_LONG_LONG=1 8566 echo "$as_me:$LINENO: checking for long long" >&5 8567echo $ECHO_N "checking for long long... $ECHO_C" >&6 8568if test "${ac_cv_type_long_long+set}" = set; then 8569 echo $ECHO_N "(cached) $ECHO_C" >&6 8570else 8571 cat >conftest.$ac_ext <<_ACEOF 8572/* confdefs.h. */ 8573_ACEOF 8574cat confdefs.h >>conftest.$ac_ext 8575cat >>conftest.$ac_ext <<_ACEOF 8576/* end confdefs.h. */ 8577$ac_includes_default 8578int 8579main () 8580{ 8581if ((long long *) 0) 8582 return 0; 8583if (sizeof (long long)) 8584 return 0; 8585 ; 8586 return 0; 8587} 8588_ACEOF 8589rm -f conftest.$ac_objext 8590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8591 (eval $ac_compile) 2>conftest.er1 8592 ac_status=$? 8593 grep -v '^ *+' conftest.er1 >conftest.err 8594 rm -f conftest.er1 8595 cat conftest.err >&5 8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8597 (exit $ac_status); } && 8598 { ac_try='test -z "$ac_c_werror_flag" 8599 || test ! -s conftest.err' 8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8601 (eval $ac_try) 2>&5 8602 ac_status=$? 8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8604 (exit $ac_status); }; } && 8605 { ac_try='test -s conftest.$ac_objext' 8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8607 (eval $ac_try) 2>&5 8608 ac_status=$? 8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8610 (exit $ac_status); }; }; then 8611 ac_cv_type_long_long=yes 8612else 8613 echo "$as_me: failed program was:" >&5 8614sed 's/^/| /' conftest.$ac_ext >&5 8615 8616ac_cv_type_long_long=no 8617fi 8618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8619fi 8620echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 8621echo "${ECHO_T}$ac_cv_type_long_long" >&6 8622 8623echo "$as_me:$LINENO: checking size of long long" >&5 8624echo $ECHO_N "checking size of long long... $ECHO_C" >&6 8625if test "${ac_cv_sizeof_long_long+set}" = set; then 8626 echo $ECHO_N "(cached) $ECHO_C" >&6 8627else 8628 if test "$ac_cv_type_long_long" = yes; then 8629 # The cast to unsigned long works around a bug in the HP C Compiler 8630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8632 # This bug is HP SR number 8606223364. 8633 if test "$cross_compiling" = yes; then 8634 # Depending upon the size, compute the lo and hi bounds. 8635cat >conftest.$ac_ext <<_ACEOF 8636/* confdefs.h. */ 8637_ACEOF 8638cat confdefs.h >>conftest.$ac_ext 8639cat >>conftest.$ac_ext <<_ACEOF 8640/* end confdefs.h. */ 8641$ac_includes_default 8642int 8643main () 8644{ 8645static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 8646test_array [0] = 0 8647 8648 ; 8649 return 0; 8650} 8651_ACEOF 8652rm -f conftest.$ac_objext 8653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8654 (eval $ac_compile) 2>conftest.er1 8655 ac_status=$? 8656 grep -v '^ *+' conftest.er1 >conftest.err 8657 rm -f conftest.er1 8658 cat conftest.err >&5 8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8660 (exit $ac_status); } && 8661 { ac_try='test -z "$ac_c_werror_flag" 8662 || test ! -s conftest.err' 8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8664 (eval $ac_try) 2>&5 8665 ac_status=$? 8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8667 (exit $ac_status); }; } && 8668 { ac_try='test -s conftest.$ac_objext' 8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8670 (eval $ac_try) 2>&5 8671 ac_status=$? 8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8673 (exit $ac_status); }; }; then 8674 ac_lo=0 ac_mid=0 8675 while :; do 8676 cat >conftest.$ac_ext <<_ACEOF 8677/* confdefs.h. */ 8678_ACEOF 8679cat confdefs.h >>conftest.$ac_ext 8680cat >>conftest.$ac_ext <<_ACEOF 8681/* end confdefs.h. */ 8682$ac_includes_default 8683int 8684main () 8685{ 8686static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 8687test_array [0] = 0 8688 8689 ; 8690 return 0; 8691} 8692_ACEOF 8693rm -f conftest.$ac_objext 8694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8695 (eval $ac_compile) 2>conftest.er1 8696 ac_status=$? 8697 grep -v '^ *+' conftest.er1 >conftest.err 8698 rm -f conftest.er1 8699 cat conftest.err >&5 8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8701 (exit $ac_status); } && 8702 { ac_try='test -z "$ac_c_werror_flag" 8703 || test ! -s conftest.err' 8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8705 (eval $ac_try) 2>&5 8706 ac_status=$? 8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8708 (exit $ac_status); }; } && 8709 { ac_try='test -s conftest.$ac_objext' 8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8711 (eval $ac_try) 2>&5 8712 ac_status=$? 8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8714 (exit $ac_status); }; }; then 8715 ac_hi=$ac_mid; break 8716else 8717 echo "$as_me: failed program was:" >&5 8718sed 's/^/| /' conftest.$ac_ext >&5 8719 8720ac_lo=`expr $ac_mid + 1` 8721 if test $ac_lo -le $ac_mid; then 8722 ac_lo= ac_hi= 8723 break 8724 fi 8725 ac_mid=`expr 2 '*' $ac_mid + 1` 8726fi 8727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8728 done 8729else 8730 echo "$as_me: failed program was:" >&5 8731sed 's/^/| /' conftest.$ac_ext >&5 8732 8733cat >conftest.$ac_ext <<_ACEOF 8734/* confdefs.h. */ 8735_ACEOF 8736cat confdefs.h >>conftest.$ac_ext 8737cat >>conftest.$ac_ext <<_ACEOF 8738/* end confdefs.h. */ 8739$ac_includes_default 8740int 8741main () 8742{ 8743static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 8744test_array [0] = 0 8745 8746 ; 8747 return 0; 8748} 8749_ACEOF 8750rm -f conftest.$ac_objext 8751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8752 (eval $ac_compile) 2>conftest.er1 8753 ac_status=$? 8754 grep -v '^ *+' conftest.er1 >conftest.err 8755 rm -f conftest.er1 8756 cat conftest.err >&5 8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8758 (exit $ac_status); } && 8759 { ac_try='test -z "$ac_c_werror_flag" 8760 || test ! -s conftest.err' 8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8762 (eval $ac_try) 2>&5 8763 ac_status=$? 8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8765 (exit $ac_status); }; } && 8766 { ac_try='test -s conftest.$ac_objext' 8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8768 (eval $ac_try) 2>&5 8769 ac_status=$? 8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8771 (exit $ac_status); }; }; then 8772 ac_hi=-1 ac_mid=-1 8773 while :; do 8774 cat >conftest.$ac_ext <<_ACEOF 8775/* confdefs.h. */ 8776_ACEOF 8777cat confdefs.h >>conftest.$ac_ext 8778cat >>conftest.$ac_ext <<_ACEOF 8779/* end confdefs.h. */ 8780$ac_includes_default 8781int 8782main () 8783{ 8784static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 8785test_array [0] = 0 8786 8787 ; 8788 return 0; 8789} 8790_ACEOF 8791rm -f conftest.$ac_objext 8792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8793 (eval $ac_compile) 2>conftest.er1 8794 ac_status=$? 8795 grep -v '^ *+' conftest.er1 >conftest.err 8796 rm -f conftest.er1 8797 cat conftest.err >&5 8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8799 (exit $ac_status); } && 8800 { ac_try='test -z "$ac_c_werror_flag" 8801 || test ! -s conftest.err' 8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8803 (eval $ac_try) 2>&5 8804 ac_status=$? 8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8806 (exit $ac_status); }; } && 8807 { ac_try='test -s conftest.$ac_objext' 8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8809 (eval $ac_try) 2>&5 8810 ac_status=$? 8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8812 (exit $ac_status); }; }; then 8813 ac_lo=$ac_mid; break 8814else 8815 echo "$as_me: failed program was:" >&5 8816sed 's/^/| /' conftest.$ac_ext >&5 8817 8818ac_hi=`expr '(' $ac_mid ')' - 1` 8819 if test $ac_mid -le $ac_hi; then 8820 ac_lo= ac_hi= 8821 break 8822 fi 8823 ac_mid=`expr 2 '*' $ac_mid` 8824fi 8825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8826 done 8827else 8828 echo "$as_me: failed program was:" >&5 8829sed 's/^/| /' conftest.$ac_ext >&5 8830 8831ac_lo= ac_hi= 8832fi 8833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8834fi 8835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8836# Binary search between lo and hi bounds. 8837while test "x$ac_lo" != "x$ac_hi"; do 8838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8839 cat >conftest.$ac_ext <<_ACEOF 8840/* confdefs.h. */ 8841_ACEOF 8842cat confdefs.h >>conftest.$ac_ext 8843cat >>conftest.$ac_ext <<_ACEOF 8844/* end confdefs.h. */ 8845$ac_includes_default 8846int 8847main () 8848{ 8849static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 8850test_array [0] = 0 8851 8852 ; 8853 return 0; 8854} 8855_ACEOF 8856rm -f conftest.$ac_objext 8857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8858 (eval $ac_compile) 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_objext' 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_hi=$ac_mid 8879else 8880 echo "$as_me: failed program was:" >&5 8881sed 's/^/| /' conftest.$ac_ext >&5 8882 8883ac_lo=`expr '(' $ac_mid ')' + 1` 8884fi 8885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8886done 8887case $ac_lo in 8888?*) ac_cv_sizeof_long_long=$ac_lo;; 8889'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 8890See \`config.log' for more details." >&5 8891echo "$as_me: error: cannot compute sizeof (long long), 77 8892See \`config.log' for more details." >&2;} 8893 { (exit 1); exit 1; }; } ;; 8894esac 8895else 8896 if test "$cross_compiling" = yes; then 8897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8898See \`config.log' for more details." >&5 8899echo "$as_me: error: cannot run test program while cross compiling 8900See \`config.log' for more details." >&2;} 8901 { (exit 1); exit 1; }; } 8902else 8903 cat >conftest.$ac_ext <<_ACEOF 8904/* confdefs.h. */ 8905_ACEOF 8906cat confdefs.h >>conftest.$ac_ext 8907cat >>conftest.$ac_ext <<_ACEOF 8908/* end confdefs.h. */ 8909$ac_includes_default 8910long longval () { return (long) (sizeof (long long)); } 8911unsigned long ulongval () { return (long) (sizeof (long long)); } 8912#include <stdio.h> 8913#include <stdlib.h> 8914int 8915main () 8916{ 8917 8918 FILE *f = fopen ("conftest.val", "w"); 8919 if (! f) 8920 exit (1); 8921 if (((long) (sizeof (long long))) < 0) 8922 { 8923 long i = longval (); 8924 if (i != ((long) (sizeof (long long)))) 8925 exit (1); 8926 fprintf (f, "%ld\n", i); 8927 } 8928 else 8929 { 8930 unsigned long i = ulongval (); 8931 if (i != ((long) (sizeof (long long)))) 8932 exit (1); 8933 fprintf (f, "%lu\n", i); 8934 } 8935 exit (ferror (f) || fclose (f) != 0); 8936 8937 ; 8938 return 0; 8939} 8940_ACEOF 8941rm -f conftest$ac_exeext 8942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8943 (eval $ac_link) 2>&5 8944 ac_status=$? 8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8948 (eval $ac_try) 2>&5 8949 ac_status=$? 8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8951 (exit $ac_status); }; }; then 8952 ac_cv_sizeof_long_long=`cat conftest.val` 8953else 8954 echo "$as_me: program exited with status $ac_status" >&5 8955echo "$as_me: failed program was:" >&5 8956sed 's/^/| /' conftest.$ac_ext >&5 8957 8958( exit $ac_status ) 8959{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 8960See \`config.log' for more details." >&5 8961echo "$as_me: error: cannot compute sizeof (long long), 77 8962See \`config.log' for more details." >&2;} 8963 { (exit 1); exit 1; }; } 8964fi 8965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8966fi 8967fi 8968rm -f conftest.val 8969else 8970 ac_cv_sizeof_long_long=0 8971fi 8972fi 8973echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 8974echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 8975cat >>confdefs.h <<_ACEOF 8976#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8977_ACEOF 8978 8979 8980fi 8981 8982echo "$as_me:$LINENO: checking for long" >&5 8983echo $ECHO_N "checking for long... $ECHO_C" >&6 8984if test "${ac_cv_type_long+set}" = set; then 8985 echo $ECHO_N "(cached) $ECHO_C" >&6 8986else 8987 cat >conftest.$ac_ext <<_ACEOF 8988/* confdefs.h. */ 8989_ACEOF 8990cat confdefs.h >>conftest.$ac_ext 8991cat >>conftest.$ac_ext <<_ACEOF 8992/* end confdefs.h. */ 8993$ac_includes_default 8994int 8995main () 8996{ 8997if ((long *) 0) 8998 return 0; 8999if (sizeof (long)) 9000 return 0; 9001 ; 9002 return 0; 9003} 9004_ACEOF 9005rm -f conftest.$ac_objext 9006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9007 (eval $ac_compile) 2>conftest.er1 9008 ac_status=$? 9009 grep -v '^ *+' conftest.er1 >conftest.err 9010 rm -f conftest.er1 9011 cat conftest.err >&5 9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9013 (exit $ac_status); } && 9014 { ac_try='test -z "$ac_c_werror_flag" 9015 || test ! -s conftest.err' 9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9017 (eval $ac_try) 2>&5 9018 ac_status=$? 9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9020 (exit $ac_status); }; } && 9021 { ac_try='test -s conftest.$ac_objext' 9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9023 (eval $ac_try) 2>&5 9024 ac_status=$? 9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9026 (exit $ac_status); }; }; then 9027 ac_cv_type_long=yes 9028else 9029 echo "$as_me: failed program was:" >&5 9030sed 's/^/| /' conftest.$ac_ext >&5 9031 9032ac_cv_type_long=no 9033fi 9034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9035fi 9036echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 9037echo "${ECHO_T}$ac_cv_type_long" >&6 9038 9039echo "$as_me:$LINENO: checking size of long" >&5 9040echo $ECHO_N "checking size of long... $ECHO_C" >&6 9041if test "${ac_cv_sizeof_long+set}" = set; then 9042 echo $ECHO_N "(cached) $ECHO_C" >&6 9043else 9044 if test "$ac_cv_type_long" = yes; then 9045 # The cast to unsigned long works around a bug in the HP C Compiler 9046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9048 # This bug is HP SR number 8606223364. 9049 if test "$cross_compiling" = yes; then 9050 # Depending upon the size, compute the lo and hi bounds. 9051cat >conftest.$ac_ext <<_ACEOF 9052/* confdefs.h. */ 9053_ACEOF 9054cat confdefs.h >>conftest.$ac_ext 9055cat >>conftest.$ac_ext <<_ACEOF 9056/* end confdefs.h. */ 9057$ac_includes_default 9058int 9059main () 9060{ 9061static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 9062test_array [0] = 0 9063 9064 ; 9065 return 0; 9066} 9067_ACEOF 9068rm -f conftest.$ac_objext 9069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9070 (eval $ac_compile) 2>conftest.er1 9071 ac_status=$? 9072 grep -v '^ *+' conftest.er1 >conftest.err 9073 rm -f conftest.er1 9074 cat conftest.err >&5 9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9076 (exit $ac_status); } && 9077 { ac_try='test -z "$ac_c_werror_flag" 9078 || test ! -s conftest.err' 9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9080 (eval $ac_try) 2>&5 9081 ac_status=$? 9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9083 (exit $ac_status); }; } && 9084 { ac_try='test -s conftest.$ac_objext' 9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9086 (eval $ac_try) 2>&5 9087 ac_status=$? 9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9089 (exit $ac_status); }; }; then 9090 ac_lo=0 ac_mid=0 9091 while :; do 9092 cat >conftest.$ac_ext <<_ACEOF 9093/* confdefs.h. */ 9094_ACEOF 9095cat confdefs.h >>conftest.$ac_ext 9096cat >>conftest.$ac_ext <<_ACEOF 9097/* end confdefs.h. */ 9098$ac_includes_default 9099int 9100main () 9101{ 9102static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 9103test_array [0] = 0 9104 9105 ; 9106 return 0; 9107} 9108_ACEOF 9109rm -f conftest.$ac_objext 9110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9111 (eval $ac_compile) 2>conftest.er1 9112 ac_status=$? 9113 grep -v '^ *+' conftest.er1 >conftest.err 9114 rm -f conftest.er1 9115 cat conftest.err >&5 9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9117 (exit $ac_status); } && 9118 { ac_try='test -z "$ac_c_werror_flag" 9119 || test ! -s conftest.err' 9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9121 (eval $ac_try) 2>&5 9122 ac_status=$? 9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9124 (exit $ac_status); }; } && 9125 { ac_try='test -s conftest.$ac_objext' 9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9127 (eval $ac_try) 2>&5 9128 ac_status=$? 9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9130 (exit $ac_status); }; }; then 9131 ac_hi=$ac_mid; break 9132else 9133 echo "$as_me: failed program was:" >&5 9134sed 's/^/| /' conftest.$ac_ext >&5 9135 9136ac_lo=`expr $ac_mid + 1` 9137 if test $ac_lo -le $ac_mid; then 9138 ac_lo= ac_hi= 9139 break 9140 fi 9141 ac_mid=`expr 2 '*' $ac_mid + 1` 9142fi 9143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9144 done 9145else 9146 echo "$as_me: failed program was:" >&5 9147sed 's/^/| /' conftest.$ac_ext >&5 9148 9149cat >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$ac_includes_default 9156int 9157main () 9158{ 9159static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 9160test_array [0] = 0 9161 9162 ; 9163 return 0; 9164} 9165_ACEOF 9166rm -f conftest.$ac_objext 9167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9168 (eval $ac_compile) 2>conftest.er1 9169 ac_status=$? 9170 grep -v '^ *+' conftest.er1 >conftest.err 9171 rm -f conftest.er1 9172 cat conftest.err >&5 9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9174 (exit $ac_status); } && 9175 { ac_try='test -z "$ac_c_werror_flag" 9176 || test ! -s conftest.err' 9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9178 (eval $ac_try) 2>&5 9179 ac_status=$? 9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9181 (exit $ac_status); }; } && 9182 { ac_try='test -s conftest.$ac_objext' 9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9184 (eval $ac_try) 2>&5 9185 ac_status=$? 9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9187 (exit $ac_status); }; }; then 9188 ac_hi=-1 ac_mid=-1 9189 while :; do 9190 cat >conftest.$ac_ext <<_ACEOF 9191/* confdefs.h. */ 9192_ACEOF 9193cat confdefs.h >>conftest.$ac_ext 9194cat >>conftest.$ac_ext <<_ACEOF 9195/* end confdefs.h. */ 9196$ac_includes_default 9197int 9198main () 9199{ 9200static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 9201test_array [0] = 0 9202 9203 ; 9204 return 0; 9205} 9206_ACEOF 9207rm -f conftest.$ac_objext 9208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9209 (eval $ac_compile) 2>conftest.er1 9210 ac_status=$? 9211 grep -v '^ *+' conftest.er1 >conftest.err 9212 rm -f conftest.er1 9213 cat conftest.err >&5 9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9215 (exit $ac_status); } && 9216 { ac_try='test -z "$ac_c_werror_flag" 9217 || test ! -s conftest.err' 9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9219 (eval $ac_try) 2>&5 9220 ac_status=$? 9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9222 (exit $ac_status); }; } && 9223 { ac_try='test -s conftest.$ac_objext' 9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9225 (eval $ac_try) 2>&5 9226 ac_status=$? 9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9228 (exit $ac_status); }; }; then 9229 ac_lo=$ac_mid; break 9230else 9231 echo "$as_me: failed program was:" >&5 9232sed 's/^/| /' conftest.$ac_ext >&5 9233 9234ac_hi=`expr '(' $ac_mid ')' - 1` 9235 if test $ac_mid -le $ac_hi; then 9236 ac_lo= ac_hi= 9237 break 9238 fi 9239 ac_mid=`expr 2 '*' $ac_mid` 9240fi 9241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9242 done 9243else 9244 echo "$as_me: failed program was:" >&5 9245sed 's/^/| /' conftest.$ac_ext >&5 9246 9247ac_lo= ac_hi= 9248fi 9249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9250fi 9251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9252# Binary search between lo and hi bounds. 9253while test "x$ac_lo" != "x$ac_hi"; do 9254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9255 cat >conftest.$ac_ext <<_ACEOF 9256/* confdefs.h. */ 9257_ACEOF 9258cat confdefs.h >>conftest.$ac_ext 9259cat >>conftest.$ac_ext <<_ACEOF 9260/* end confdefs.h. */ 9261$ac_includes_default 9262int 9263main () 9264{ 9265static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 9266test_array [0] = 0 9267 9268 ; 9269 return 0; 9270} 9271_ACEOF 9272rm -f conftest.$ac_objext 9273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9274 (eval $ac_compile) 2>conftest.er1 9275 ac_status=$? 9276 grep -v '^ *+' conftest.er1 >conftest.err 9277 rm -f conftest.er1 9278 cat conftest.err >&5 9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9280 (exit $ac_status); } && 9281 { ac_try='test -z "$ac_c_werror_flag" 9282 || test ! -s conftest.err' 9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9284 (eval $ac_try) 2>&5 9285 ac_status=$? 9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9287 (exit $ac_status); }; } && 9288 { ac_try='test -s conftest.$ac_objext' 9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9290 (eval $ac_try) 2>&5 9291 ac_status=$? 9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9293 (exit $ac_status); }; }; then 9294 ac_hi=$ac_mid 9295else 9296 echo "$as_me: failed program was:" >&5 9297sed 's/^/| /' conftest.$ac_ext >&5 9298 9299ac_lo=`expr '(' $ac_mid ')' + 1` 9300fi 9301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9302done 9303case $ac_lo in 9304?*) ac_cv_sizeof_long=$ac_lo;; 9305'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 9306See \`config.log' for more details." >&5 9307echo "$as_me: error: cannot compute sizeof (long), 77 9308See \`config.log' for more details." >&2;} 9309 { (exit 1); exit 1; }; } ;; 9310esac 9311else 9312 if test "$cross_compiling" = yes; then 9313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9314See \`config.log' for more details." >&5 9315echo "$as_me: error: cannot run test program while cross compiling 9316See \`config.log' for more details." >&2;} 9317 { (exit 1); exit 1; }; } 9318else 9319 cat >conftest.$ac_ext <<_ACEOF 9320/* confdefs.h. */ 9321_ACEOF 9322cat confdefs.h >>conftest.$ac_ext 9323cat >>conftest.$ac_ext <<_ACEOF 9324/* end confdefs.h. */ 9325$ac_includes_default 9326long longval () { return (long) (sizeof (long)); } 9327unsigned long ulongval () { return (long) (sizeof (long)); } 9328#include <stdio.h> 9329#include <stdlib.h> 9330int 9331main () 9332{ 9333 9334 FILE *f = fopen ("conftest.val", "w"); 9335 if (! f) 9336 exit (1); 9337 if (((long) (sizeof (long))) < 0) 9338 { 9339 long i = longval (); 9340 if (i != ((long) (sizeof (long)))) 9341 exit (1); 9342 fprintf (f, "%ld\n", i); 9343 } 9344 else 9345 { 9346 unsigned long i = ulongval (); 9347 if (i != ((long) (sizeof (long)))) 9348 exit (1); 9349 fprintf (f, "%lu\n", i); 9350 } 9351 exit (ferror (f) || fclose (f) != 0); 9352 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357rm -f conftest$ac_exeext 9358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9359 (eval $ac_link) 2>&5 9360 ac_status=$? 9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9364 (eval $ac_try) 2>&5 9365 ac_status=$? 9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9367 (exit $ac_status); }; }; then 9368 ac_cv_sizeof_long=`cat conftest.val` 9369else 9370 echo "$as_me: program exited with status $ac_status" >&5 9371echo "$as_me: failed program was:" >&5 9372sed 's/^/| /' conftest.$ac_ext >&5 9373 9374( exit $ac_status ) 9375{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 9376See \`config.log' for more details." >&5 9377echo "$as_me: error: cannot compute sizeof (long), 77 9378See \`config.log' for more details." >&2;} 9379 { (exit 1); exit 1; }; } 9380fi 9381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9382fi 9383fi 9384rm -f conftest.val 9385else 9386 ac_cv_sizeof_long=0 9387fi 9388fi 9389echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 9390echo "${ECHO_T}$ac_cv_sizeof_long" >&6 9391cat >>confdefs.h <<_ACEOF 9392#define SIZEOF_LONG $ac_cv_sizeof_long 9393_ACEOF 9394 9395 9396if test "x${ac_cv_sizeof_long}" = "x8"; then 9397 host64=true 9398 BFD_HOST_64BIT_LONG=1 9399 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" 9400 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" 9401elif test "x${ac_cv_sizeof_long_long}" = "x8"; then 9402 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" 9403 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" 9404fi 9405 9406if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then 9407 BFD_HOST_64_BIT_DEFINED=1 9408 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" 9409 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" 9410fi 9411 9412 9413 9414 9415 9416 9417 9418# Put a plausible default for CC_FOR_BUILD in Makefile. 9419if test -z "$CC_FOR_BUILD"; then 9420 if test "x$cross_compiling" = "xno"; then 9421 CC_FOR_BUILD='$(CC)' 9422 else 9423 CC_FOR_BUILD=gcc 9424 fi 9425fi 9426 9427# Also set EXEEXT_FOR_BUILD. 9428if test "x$cross_compiling" = "xno"; then 9429 EXEEXT_FOR_BUILD='$(EXEEXT)' 9430else 9431 echo "$as_me:$LINENO: checking for build system executable suffix" >&5 9432echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 9433if test "${bfd_cv_build_exeext+set}" = set; then 9434 echo $ECHO_N "(cached) $ECHO_C" >&6 9435else 9436 rm -f conftest* 9437 echo 'int main () { return 0; }' > conftest.c 9438 bfd_cv_build_exeext= 9439 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 9440 for file in conftest.*; do 9441 case $file in 9442 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 9443 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 9444 esac 9445 done 9446 rm -f conftest* 9447 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 9448fi 9449echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 9450echo "${ECHO_T}$bfd_cv_build_exeext" >&6 9451 EXEEXT_FOR_BUILD="" 9452 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 9453fi 9454 9455 9456 9457 9458 9459 9460 9461 9462for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h 9463do 9464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9465if eval "test \"\${$as_ac_Header+set}\" = set"; then 9466 echo "$as_me:$LINENO: checking for $ac_header" >&5 9467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9468if eval "test \"\${$as_ac_Header+set}\" = set"; then 9469 echo $ECHO_N "(cached) $ECHO_C" >&6 9470fi 9471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9473else 9474 # Is the header compilable? 9475echo "$as_me:$LINENO: checking $ac_header usability" >&5 9476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9477cat >conftest.$ac_ext <<_ACEOF 9478/* confdefs.h. */ 9479_ACEOF 9480cat confdefs.h >>conftest.$ac_ext 9481cat >>conftest.$ac_ext <<_ACEOF 9482/* end confdefs.h. */ 9483$ac_includes_default 9484#include <$ac_header> 9485_ACEOF 9486rm -f conftest.$ac_objext 9487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9488 (eval $ac_compile) 2>conftest.er1 9489 ac_status=$? 9490 grep -v '^ *+' conftest.er1 >conftest.err 9491 rm -f conftest.er1 9492 cat conftest.err >&5 9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9494 (exit $ac_status); } && 9495 { ac_try='test -z "$ac_c_werror_flag" 9496 || test ! -s conftest.err' 9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9498 (eval $ac_try) 2>&5 9499 ac_status=$? 9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9501 (exit $ac_status); }; } && 9502 { ac_try='test -s conftest.$ac_objext' 9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9504 (eval $ac_try) 2>&5 9505 ac_status=$? 9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9507 (exit $ac_status); }; }; then 9508 ac_header_compiler=yes 9509else 9510 echo "$as_me: failed program was:" >&5 9511sed 's/^/| /' conftest.$ac_ext >&5 9512 9513ac_header_compiler=no 9514fi 9515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9517echo "${ECHO_T}$ac_header_compiler" >&6 9518 9519# Is the header present? 9520echo "$as_me:$LINENO: checking $ac_header presence" >&5 9521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9522cat >conftest.$ac_ext <<_ACEOF 9523/* confdefs.h. */ 9524_ACEOF 9525cat confdefs.h >>conftest.$ac_ext 9526cat >>conftest.$ac_ext <<_ACEOF 9527/* end confdefs.h. */ 9528#include <$ac_header> 9529_ACEOF 9530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9532 ac_status=$? 9533 grep -v '^ *+' conftest.er1 >conftest.err 9534 rm -f conftest.er1 9535 cat conftest.err >&5 9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9537 (exit $ac_status); } >/dev/null; then 9538 if test -s conftest.err; then 9539 ac_cpp_err=$ac_c_preproc_warn_flag 9540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9541 else 9542 ac_cpp_err= 9543 fi 9544else 9545 ac_cpp_err=yes 9546fi 9547if test -z "$ac_cpp_err"; then 9548 ac_header_preproc=yes 9549else 9550 echo "$as_me: failed program was:" >&5 9551sed 's/^/| /' conftest.$ac_ext >&5 9552 9553 ac_header_preproc=no 9554fi 9555rm -f conftest.err conftest.$ac_ext 9556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9557echo "${ECHO_T}$ac_header_preproc" >&6 9558 9559# So? What about this header? 9560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9561 yes:no: ) 9562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9566 ac_header_preproc=yes 9567 ;; 9568 no:yes:* ) 9569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9581 ( 9582 cat <<\_ASBOX 9583## ------------------------------------------ ## 9584## Report this to the AC_PACKAGE_NAME lists. ## 9585## ------------------------------------------ ## 9586_ASBOX 9587 ) | 9588 sed "s/^/$as_me: WARNING: /" >&2 9589 ;; 9590esac 9591echo "$as_me:$LINENO: checking for $ac_header" >&5 9592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9593if eval "test \"\${$as_ac_Header+set}\" = set"; then 9594 echo $ECHO_N "(cached) $ECHO_C" >&6 9595else 9596 eval "$as_ac_Header=\$ac_header_preproc" 9597fi 9598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9600 9601fi 9602if test `eval echo '${'$as_ac_Header'}'` = yes; then 9603 cat >>confdefs.h <<_ACEOF 9604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9605_ACEOF 9606 9607fi 9608 9609done 9610 9611 9612 9613 9614for ac_header in fcntl.h sys/file.h sys/time.h 9615do 9616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9617if eval "test \"\${$as_ac_Header+set}\" = set"; then 9618 echo "$as_me:$LINENO: checking for $ac_header" >&5 9619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9620if eval "test \"\${$as_ac_Header+set}\" = set"; then 9621 echo $ECHO_N "(cached) $ECHO_C" >&6 9622fi 9623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9625else 9626 # Is the header compilable? 9627echo "$as_me:$LINENO: checking $ac_header usability" >&5 9628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9629cat >conftest.$ac_ext <<_ACEOF 9630/* confdefs.h. */ 9631_ACEOF 9632cat confdefs.h >>conftest.$ac_ext 9633cat >>conftest.$ac_ext <<_ACEOF 9634/* end confdefs.h. */ 9635$ac_includes_default 9636#include <$ac_header> 9637_ACEOF 9638rm -f conftest.$ac_objext 9639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9640 (eval $ac_compile) 2>conftest.er1 9641 ac_status=$? 9642 grep -v '^ *+' conftest.er1 >conftest.err 9643 rm -f conftest.er1 9644 cat conftest.err >&5 9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9646 (exit $ac_status); } && 9647 { ac_try='test -z "$ac_c_werror_flag" 9648 || test ! -s conftest.err' 9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9650 (eval $ac_try) 2>&5 9651 ac_status=$? 9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9653 (exit $ac_status); }; } && 9654 { ac_try='test -s conftest.$ac_objext' 9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9656 (eval $ac_try) 2>&5 9657 ac_status=$? 9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9659 (exit $ac_status); }; }; then 9660 ac_header_compiler=yes 9661else 9662 echo "$as_me: failed program was:" >&5 9663sed 's/^/| /' conftest.$ac_ext >&5 9664 9665ac_header_compiler=no 9666fi 9667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9669echo "${ECHO_T}$ac_header_compiler" >&6 9670 9671# Is the header present? 9672echo "$as_me:$LINENO: checking $ac_header presence" >&5 9673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9674cat >conftest.$ac_ext <<_ACEOF 9675/* confdefs.h. */ 9676_ACEOF 9677cat confdefs.h >>conftest.$ac_ext 9678cat >>conftest.$ac_ext <<_ACEOF 9679/* end confdefs.h. */ 9680#include <$ac_header> 9681_ACEOF 9682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9684 ac_status=$? 9685 grep -v '^ *+' conftest.er1 >conftest.err 9686 rm -f conftest.er1 9687 cat conftest.err >&5 9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9689 (exit $ac_status); } >/dev/null; then 9690 if test -s conftest.err; then 9691 ac_cpp_err=$ac_c_preproc_warn_flag 9692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9693 else 9694 ac_cpp_err= 9695 fi 9696else 9697 ac_cpp_err=yes 9698fi 9699if test -z "$ac_cpp_err"; then 9700 ac_header_preproc=yes 9701else 9702 echo "$as_me: failed program was:" >&5 9703sed 's/^/| /' conftest.$ac_ext >&5 9704 9705 ac_header_preproc=no 9706fi 9707rm -f conftest.err conftest.$ac_ext 9708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9709echo "${ECHO_T}$ac_header_preproc" >&6 9710 9711# So? What about this header? 9712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9713 yes:no: ) 9714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9718 ac_header_preproc=yes 9719 ;; 9720 no:yes:* ) 9721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9724echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9728echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9733 ( 9734 cat <<\_ASBOX 9735## ------------------------------------------ ## 9736## Report this to the AC_PACKAGE_NAME lists. ## 9737## ------------------------------------------ ## 9738_ASBOX 9739 ) | 9740 sed "s/^/$as_me: WARNING: /" >&2 9741 ;; 9742esac 9743echo "$as_me:$LINENO: checking for $ac_header" >&5 9744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9745if eval "test \"\${$as_ac_Header+set}\" = set"; then 9746 echo $ECHO_N "(cached) $ECHO_C" >&6 9747else 9748 eval "$as_ac_Header=\$ac_header_preproc" 9749fi 9750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9752 9753fi 9754if test `eval echo '${'$as_ac_Header'}'` = yes; then 9755 cat >>confdefs.h <<_ACEOF 9756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9757_ACEOF 9758 9759fi 9760 9761done 9762 9763echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 9764echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 9765if test "${ac_cv_header_time+set}" = set; then 9766 echo $ECHO_N "(cached) $ECHO_C" >&6 9767else 9768 cat >conftest.$ac_ext <<_ACEOF 9769/* confdefs.h. */ 9770_ACEOF 9771cat confdefs.h >>conftest.$ac_ext 9772cat >>conftest.$ac_ext <<_ACEOF 9773/* end confdefs.h. */ 9774#include <sys/types.h> 9775#include <sys/time.h> 9776#include <time.h> 9777 9778int 9779main () 9780{ 9781if ((struct tm *) 0) 9782return 0; 9783 ; 9784 return 0; 9785} 9786_ACEOF 9787rm -f conftest.$ac_objext 9788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9789 (eval $ac_compile) 2>conftest.er1 9790 ac_status=$? 9791 grep -v '^ *+' conftest.er1 >conftest.err 9792 rm -f conftest.er1 9793 cat conftest.err >&5 9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9795 (exit $ac_status); } && 9796 { ac_try='test -z "$ac_c_werror_flag" 9797 || test ! -s conftest.err' 9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9799 (eval $ac_try) 2>&5 9800 ac_status=$? 9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9802 (exit $ac_status); }; } && 9803 { ac_try='test -s conftest.$ac_objext' 9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9805 (eval $ac_try) 2>&5 9806 ac_status=$? 9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9808 (exit $ac_status); }; }; then 9809 ac_cv_header_time=yes 9810else 9811 echo "$as_me: failed program was:" >&5 9812sed 's/^/| /' conftest.$ac_ext >&5 9813 9814ac_cv_header_time=no 9815fi 9816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9817fi 9818echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 9819echo "${ECHO_T}$ac_cv_header_time" >&6 9820if test $ac_cv_header_time = yes; then 9821 9822cat >>confdefs.h <<\_ACEOF 9823#define TIME_WITH_SYS_TIME 1 9824_ACEOF 9825 9826fi 9827 9828 9829 9830 9831 9832 9833ac_header_dirent=no 9834for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 9835 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 9836echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 9837echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 9838if eval "test \"\${$as_ac_Header+set}\" = set"; then 9839 echo $ECHO_N "(cached) $ECHO_C" >&6 9840else 9841 cat >conftest.$ac_ext <<_ACEOF 9842/* confdefs.h. */ 9843_ACEOF 9844cat confdefs.h >>conftest.$ac_ext 9845cat >>conftest.$ac_ext <<_ACEOF 9846/* end confdefs.h. */ 9847#include <sys/types.h> 9848#include <$ac_hdr> 9849 9850int 9851main () 9852{ 9853if ((DIR *) 0) 9854return 0; 9855 ; 9856 return 0; 9857} 9858_ACEOF 9859rm -f conftest.$ac_objext 9860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9861 (eval $ac_compile) 2>conftest.er1 9862 ac_status=$? 9863 grep -v '^ *+' conftest.er1 >conftest.err 9864 rm -f conftest.er1 9865 cat conftest.err >&5 9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9867 (exit $ac_status); } && 9868 { ac_try='test -z "$ac_c_werror_flag" 9869 || test ! -s conftest.err' 9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9871 (eval $ac_try) 2>&5 9872 ac_status=$? 9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9874 (exit $ac_status); }; } && 9875 { ac_try='test -s conftest.$ac_objext' 9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9877 (eval $ac_try) 2>&5 9878 ac_status=$? 9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9880 (exit $ac_status); }; }; then 9881 eval "$as_ac_Header=yes" 9882else 9883 echo "$as_me: failed program was:" >&5 9884sed 's/^/| /' conftest.$ac_ext >&5 9885 9886eval "$as_ac_Header=no" 9887fi 9888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9889fi 9890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9892if test `eval echo '${'$as_ac_Header'}'` = yes; then 9893 cat >>confdefs.h <<_ACEOF 9894#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 9895_ACEOF 9896 9897ac_header_dirent=$ac_hdr; break 9898fi 9899 9900done 9901# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 9902if test $ac_header_dirent = dirent.h; then 9903 echo "$as_me:$LINENO: checking for library containing opendir" >&5 9904echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 9905if test "${ac_cv_search_opendir+set}" = set; then 9906 echo $ECHO_N "(cached) $ECHO_C" >&6 9907else 9908 ac_func_search_save_LIBS=$LIBS 9909ac_cv_search_opendir=no 9910cat >conftest.$ac_ext <<_ACEOF 9911/* confdefs.h. */ 9912_ACEOF 9913cat confdefs.h >>conftest.$ac_ext 9914cat >>conftest.$ac_ext <<_ACEOF 9915/* end confdefs.h. */ 9916 9917/* Override any gcc2 internal prototype to avoid an error. */ 9918#ifdef __cplusplus 9919extern "C" 9920#endif 9921/* We use char because int might match the return type of a gcc2 9922 builtin and then its argument prototype would still apply. */ 9923char opendir (); 9924int 9925main () 9926{ 9927opendir (); 9928 ; 9929 return 0; 9930} 9931_ACEOF 9932rm -f conftest.$ac_objext conftest$ac_exeext 9933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9934 (eval $ac_link) 2>conftest.er1 9935 ac_status=$? 9936 grep -v '^ *+' conftest.er1 >conftest.err 9937 rm -f conftest.er1 9938 cat conftest.err >&5 9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9940 (exit $ac_status); } && 9941 { ac_try='test -z "$ac_c_werror_flag" 9942 || test ! -s conftest.err' 9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9944 (eval $ac_try) 2>&5 9945 ac_status=$? 9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9947 (exit $ac_status); }; } && 9948 { ac_try='test -s conftest$ac_exeext' 9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9950 (eval $ac_try) 2>&5 9951 ac_status=$? 9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9953 (exit $ac_status); }; }; then 9954 ac_cv_search_opendir="none required" 9955else 9956 echo "$as_me: failed program was:" >&5 9957sed 's/^/| /' conftest.$ac_ext >&5 9958 9959fi 9960rm -f conftest.err conftest.$ac_objext \ 9961 conftest$ac_exeext conftest.$ac_ext 9962if test "$ac_cv_search_opendir" = no; then 9963 for ac_lib in dir; do 9964 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9965 cat >conftest.$ac_ext <<_ACEOF 9966/* confdefs.h. */ 9967_ACEOF 9968cat confdefs.h >>conftest.$ac_ext 9969cat >>conftest.$ac_ext <<_ACEOF 9970/* end confdefs.h. */ 9971 9972/* Override any gcc2 internal prototype to avoid an error. */ 9973#ifdef __cplusplus 9974extern "C" 9975#endif 9976/* We use char because int might match the return type of a gcc2 9977 builtin and then its argument prototype would still apply. */ 9978char opendir (); 9979int 9980main () 9981{ 9982opendir (); 9983 ; 9984 return 0; 9985} 9986_ACEOF 9987rm -f conftest.$ac_objext conftest$ac_exeext 9988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9989 (eval $ac_link) 2>conftest.er1 9990 ac_status=$? 9991 grep -v '^ *+' conftest.er1 >conftest.err 9992 rm -f conftest.er1 9993 cat conftest.err >&5 9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9995 (exit $ac_status); } && 9996 { ac_try='test -z "$ac_c_werror_flag" 9997 || test ! -s conftest.err' 9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9999 (eval $ac_try) 2>&5 10000 ac_status=$? 10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10002 (exit $ac_status); }; } && 10003 { ac_try='test -s conftest$ac_exeext' 10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10005 (eval $ac_try) 2>&5 10006 ac_status=$? 10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10008 (exit $ac_status); }; }; then 10009 ac_cv_search_opendir="-l$ac_lib" 10010break 10011else 10012 echo "$as_me: failed program was:" >&5 10013sed 's/^/| /' conftest.$ac_ext >&5 10014 10015fi 10016rm -f conftest.err conftest.$ac_objext \ 10017 conftest$ac_exeext conftest.$ac_ext 10018 done 10019fi 10020LIBS=$ac_func_search_save_LIBS 10021fi 10022echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10023echo "${ECHO_T}$ac_cv_search_opendir" >&6 10024if test "$ac_cv_search_opendir" != no; then 10025 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 10026 10027fi 10028 10029else 10030 echo "$as_me:$LINENO: checking for library containing opendir" >&5 10031echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 10032if test "${ac_cv_search_opendir+set}" = set; then 10033 echo $ECHO_N "(cached) $ECHO_C" >&6 10034else 10035 ac_func_search_save_LIBS=$LIBS 10036ac_cv_search_opendir=no 10037cat >conftest.$ac_ext <<_ACEOF 10038/* confdefs.h. */ 10039_ACEOF 10040cat confdefs.h >>conftest.$ac_ext 10041cat >>conftest.$ac_ext <<_ACEOF 10042/* end confdefs.h. */ 10043 10044/* Override any gcc2 internal prototype to avoid an error. */ 10045#ifdef __cplusplus 10046extern "C" 10047#endif 10048/* We use char because int might match the return type of a gcc2 10049 builtin and then its argument prototype would still apply. */ 10050char opendir (); 10051int 10052main () 10053{ 10054opendir (); 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059rm -f conftest.$ac_objext conftest$ac_exeext 10060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10061 (eval $ac_link) 2>conftest.er1 10062 ac_status=$? 10063 grep -v '^ *+' conftest.er1 >conftest.err 10064 rm -f conftest.er1 10065 cat conftest.err >&5 10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10067 (exit $ac_status); } && 10068 { ac_try='test -z "$ac_c_werror_flag" 10069 || test ! -s conftest.err' 10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10071 (eval $ac_try) 2>&5 10072 ac_status=$? 10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10074 (exit $ac_status); }; } && 10075 { ac_try='test -s 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_search_opendir="none required" 10082else 10083 echo "$as_me: failed program was:" >&5 10084sed 's/^/| /' conftest.$ac_ext >&5 10085 10086fi 10087rm -f conftest.err conftest.$ac_objext \ 10088 conftest$ac_exeext conftest.$ac_ext 10089if test "$ac_cv_search_opendir" = no; then 10090 for ac_lib in x; do 10091 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10092 cat >conftest.$ac_ext <<_ACEOF 10093/* confdefs.h. */ 10094_ACEOF 10095cat confdefs.h >>conftest.$ac_ext 10096cat >>conftest.$ac_ext <<_ACEOF 10097/* end confdefs.h. */ 10098 10099/* Override any gcc2 internal prototype to avoid an error. */ 10100#ifdef __cplusplus 10101extern "C" 10102#endif 10103/* We use char because int might match the return type of a gcc2 10104 builtin and then its argument prototype would still apply. */ 10105char opendir (); 10106int 10107main () 10108{ 10109opendir (); 10110 ; 10111 return 0; 10112} 10113_ACEOF 10114rm -f conftest.$ac_objext conftest$ac_exeext 10115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10116 (eval $ac_link) 2>conftest.er1 10117 ac_status=$? 10118 grep -v '^ *+' conftest.er1 >conftest.err 10119 rm -f conftest.er1 10120 cat conftest.err >&5 10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10122 (exit $ac_status); } && 10123 { ac_try='test -z "$ac_c_werror_flag" 10124 || test ! -s conftest.err' 10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10126 (eval $ac_try) 2>&5 10127 ac_status=$? 10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10129 (exit $ac_status); }; } && 10130 { ac_try='test -s conftest$ac_exeext' 10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10132 (eval $ac_try) 2>&5 10133 ac_status=$? 10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10135 (exit $ac_status); }; }; then 10136 ac_cv_search_opendir="-l$ac_lib" 10137break 10138else 10139 echo "$as_me: failed program was:" >&5 10140sed 's/^/| /' conftest.$ac_ext >&5 10141 10142fi 10143rm -f conftest.err conftest.$ac_objext \ 10144 conftest$ac_exeext conftest.$ac_ext 10145 done 10146fi 10147LIBS=$ac_func_search_save_LIBS 10148fi 10149echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10150echo "${ECHO_T}$ac_cv_search_opendir" >&6 10151if test "$ac_cv_search_opendir" != no; then 10152 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 10153 10154fi 10155 10156fi 10157 10158echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 10159echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 10160if test "${gcc_cv_header_string+set}" = set; then 10161 echo $ECHO_N "(cached) $ECHO_C" >&6 10162else 10163 cat >conftest.$ac_ext <<_ACEOF 10164/* confdefs.h. */ 10165_ACEOF 10166cat confdefs.h >>conftest.$ac_ext 10167cat >>conftest.$ac_ext <<_ACEOF 10168/* end confdefs.h. */ 10169#include <string.h> 10170#include <strings.h> 10171int 10172main () 10173{ 10174 10175 ; 10176 return 0; 10177} 10178_ACEOF 10179rm -f conftest.$ac_objext 10180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10181 (eval $ac_compile) 2>conftest.er1 10182 ac_status=$? 10183 grep -v '^ *+' conftest.er1 >conftest.err 10184 rm -f conftest.er1 10185 cat conftest.err >&5 10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10187 (exit $ac_status); } && 10188 { ac_try='test -z "$ac_c_werror_flag" 10189 || test ! -s conftest.err' 10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10191 (eval $ac_try) 2>&5 10192 ac_status=$? 10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10194 (exit $ac_status); }; } && 10195 { ac_try='test -s conftest.$ac_objext' 10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10197 (eval $ac_try) 2>&5 10198 ac_status=$? 10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10200 (exit $ac_status); }; }; then 10201 gcc_cv_header_string=yes 10202else 10203 echo "$as_me: failed program was:" >&5 10204sed 's/^/| /' conftest.$ac_ext >&5 10205 10206gcc_cv_header_string=no 10207fi 10208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10209fi 10210echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 10211echo "${ECHO_T}$gcc_cv_header_string" >&6 10212if test $gcc_cv_header_string = yes; then 10213 10214cat >>confdefs.h <<\_ACEOF 10215#define STRING_WITH_STRINGS 1 10216_ACEOF 10217 10218fi 10219 10220 10221 10222 10223 10224 10225 10226 10227for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid 10228do 10229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10230echo "$as_me:$LINENO: checking for $ac_func" >&5 10231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10232if eval "test \"\${$as_ac_var+set}\" = set"; then 10233 echo $ECHO_N "(cached) $ECHO_C" >&6 10234else 10235 cat >conftest.$ac_ext <<_ACEOF 10236/* confdefs.h. */ 10237_ACEOF 10238cat confdefs.h >>conftest.$ac_ext 10239cat >>conftest.$ac_ext <<_ACEOF 10240/* end confdefs.h. */ 10241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10242 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10243#define $ac_func innocuous_$ac_func 10244 10245/* System header to define __stub macros and hopefully few prototypes, 10246 which can conflict with char $ac_func (); below. 10247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10248 <limits.h> exists even on freestanding compilers. */ 10249 10250#ifdef __STDC__ 10251# include <limits.h> 10252#else 10253# include <assert.h> 10254#endif 10255 10256#undef $ac_func 10257 10258/* Override any gcc2 internal prototype to avoid an error. */ 10259#ifdef __cplusplus 10260extern "C" 10261{ 10262#endif 10263/* We use char because int might match the return type of a gcc2 10264 builtin and then its argument prototype would still apply. */ 10265char $ac_func (); 10266/* The GNU C library defines this for functions which it implements 10267 to always fail with ENOSYS. Some functions are actually named 10268 something starting with __ and the normal name is an alias. */ 10269#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10270choke me 10271#else 10272char (*f) () = $ac_func; 10273#endif 10274#ifdef __cplusplus 10275} 10276#endif 10277 10278int 10279main () 10280{ 10281return f != $ac_func; 10282 ; 10283 return 0; 10284} 10285_ACEOF 10286rm -f conftest.$ac_objext conftest$ac_exeext 10287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10288 (eval $ac_link) 2>conftest.er1 10289 ac_status=$? 10290 grep -v '^ *+' conftest.er1 >conftest.err 10291 rm -f conftest.er1 10292 cat conftest.err >&5 10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10294 (exit $ac_status); } && 10295 { ac_try='test -z "$ac_c_werror_flag" 10296 || test ! -s conftest.err' 10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10298 (eval $ac_try) 2>&5 10299 ac_status=$? 10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10301 (exit $ac_status); }; } && 10302 { ac_try='test -s conftest$ac_exeext' 10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10304 (eval $ac_try) 2>&5 10305 ac_status=$? 10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10307 (exit $ac_status); }; }; then 10308 eval "$as_ac_var=yes" 10309else 10310 echo "$as_me: failed program was:" >&5 10311sed 's/^/| /' conftest.$ac_ext >&5 10312 10313eval "$as_ac_var=no" 10314fi 10315rm -f conftest.err conftest.$ac_objext \ 10316 conftest$ac_exeext conftest.$ac_ext 10317fi 10318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10320if test `eval echo '${'$as_ac_var'}'` = yes; then 10321 cat >>confdefs.h <<_ACEOF 10322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10323_ACEOF 10324 10325fi 10326done 10327 10328 10329for ac_func in strtoull 10330do 10331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10332echo "$as_me:$LINENO: checking for $ac_func" >&5 10333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10334if eval "test \"\${$as_ac_var+set}\" = set"; then 10335 echo $ECHO_N "(cached) $ECHO_C" >&6 10336else 10337 cat >conftest.$ac_ext <<_ACEOF 10338/* confdefs.h. */ 10339_ACEOF 10340cat confdefs.h >>conftest.$ac_ext 10341cat >>conftest.$ac_ext <<_ACEOF 10342/* end confdefs.h. */ 10343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10344 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10345#define $ac_func innocuous_$ac_func 10346 10347/* System header to define __stub macros and hopefully few prototypes, 10348 which can conflict with char $ac_func (); below. 10349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10350 <limits.h> exists even on freestanding compilers. */ 10351 10352#ifdef __STDC__ 10353# include <limits.h> 10354#else 10355# include <assert.h> 10356#endif 10357 10358#undef $ac_func 10359 10360/* Override any gcc2 internal prototype to avoid an error. */ 10361#ifdef __cplusplus 10362extern "C" 10363{ 10364#endif 10365/* We use char because int might match the return type of a gcc2 10366 builtin and then its argument prototype would still apply. */ 10367char $ac_func (); 10368/* The GNU C library defines this for functions which it implements 10369 to always fail with ENOSYS. Some functions are actually named 10370 something starting with __ and the normal name is an alias. */ 10371#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10372choke me 10373#else 10374char (*f) () = $ac_func; 10375#endif 10376#ifdef __cplusplus 10377} 10378#endif 10379 10380int 10381main () 10382{ 10383return f != $ac_func; 10384 ; 10385 return 0; 10386} 10387_ACEOF 10388rm -f conftest.$ac_objext conftest$ac_exeext 10389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10390 (eval $ac_link) 2>conftest.er1 10391 ac_status=$? 10392 grep -v '^ *+' conftest.er1 >conftest.err 10393 rm -f conftest.er1 10394 cat conftest.err >&5 10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10396 (exit $ac_status); } && 10397 { ac_try='test -z "$ac_c_werror_flag" 10398 || test ! -s conftest.err' 10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10400 (eval $ac_try) 2>&5 10401 ac_status=$? 10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10403 (exit $ac_status); }; } && 10404 { ac_try='test -s conftest$ac_exeext' 10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10406 (eval $ac_try) 2>&5 10407 ac_status=$? 10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10409 (exit $ac_status); }; }; then 10410 eval "$as_ac_var=yes" 10411else 10412 echo "$as_me: failed program was:" >&5 10413sed 's/^/| /' conftest.$ac_ext >&5 10414 10415eval "$as_ac_var=no" 10416fi 10417rm -f conftest.err conftest.$ac_objext \ 10418 conftest$ac_exeext conftest.$ac_ext 10419fi 10420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10422if test `eval echo '${'$as_ac_var'}'` = yes; then 10423 cat >>confdefs.h <<_ACEOF 10424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10425_ACEOF 10426 10427fi 10428done 10429 10430 10431echo "$as_me:$LINENO: checking whether basename is declared" >&5 10432echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 10433if test "${ac_cv_have_decl_basename+set}" = set; then 10434 echo $ECHO_N "(cached) $ECHO_C" >&6 10435else 10436 cat >conftest.$ac_ext <<_ACEOF 10437/* confdefs.h. */ 10438_ACEOF 10439cat confdefs.h >>conftest.$ac_ext 10440cat >>conftest.$ac_ext <<_ACEOF 10441/* end confdefs.h. */ 10442$ac_includes_default 10443int 10444main () 10445{ 10446#ifndef basename 10447 char *p = (char *) basename; 10448#endif 10449 10450 ; 10451 return 0; 10452} 10453_ACEOF 10454rm -f conftest.$ac_objext 10455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10456 (eval $ac_compile) 2>conftest.er1 10457 ac_status=$? 10458 grep -v '^ *+' conftest.er1 >conftest.err 10459 rm -f conftest.er1 10460 cat conftest.err >&5 10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10462 (exit $ac_status); } && 10463 { ac_try='test -z "$ac_c_werror_flag" 10464 || test ! -s conftest.err' 10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10466 (eval $ac_try) 2>&5 10467 ac_status=$? 10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10469 (exit $ac_status); }; } && 10470 { ac_try='test -s conftest.$ac_objext' 10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10472 (eval $ac_try) 2>&5 10473 ac_status=$? 10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10475 (exit $ac_status); }; }; then 10476 ac_cv_have_decl_basename=yes 10477else 10478 echo "$as_me: failed program was:" >&5 10479sed 's/^/| /' conftest.$ac_ext >&5 10480 10481ac_cv_have_decl_basename=no 10482fi 10483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10484fi 10485echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 10486echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 10487if test $ac_cv_have_decl_basename = yes; then 10488 10489cat >>confdefs.h <<_ACEOF 10490#define HAVE_DECL_BASENAME 1 10491_ACEOF 10492 10493 10494else 10495 cat >>confdefs.h <<_ACEOF 10496#define HAVE_DECL_BASENAME 0 10497_ACEOF 10498 10499 10500fi 10501 10502 10503echo "$as_me:$LINENO: checking whether ftello is declared" >&5 10504echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6 10505if test "${ac_cv_have_decl_ftello+set}" = set; then 10506 echo $ECHO_N "(cached) $ECHO_C" >&6 10507else 10508 cat >conftest.$ac_ext <<_ACEOF 10509/* confdefs.h. */ 10510_ACEOF 10511cat confdefs.h >>conftest.$ac_ext 10512cat >>conftest.$ac_ext <<_ACEOF 10513/* end confdefs.h. */ 10514$ac_includes_default 10515int 10516main () 10517{ 10518#ifndef ftello 10519 char *p = (char *) ftello; 10520#endif 10521 10522 ; 10523 return 0; 10524} 10525_ACEOF 10526rm -f conftest.$ac_objext 10527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10528 (eval $ac_compile) 2>conftest.er1 10529 ac_status=$? 10530 grep -v '^ *+' conftest.er1 >conftest.err 10531 rm -f conftest.er1 10532 cat conftest.err >&5 10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10534 (exit $ac_status); } && 10535 { ac_try='test -z "$ac_c_werror_flag" 10536 || test ! -s conftest.err' 10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10538 (eval $ac_try) 2>&5 10539 ac_status=$? 10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10541 (exit $ac_status); }; } && 10542 { ac_try='test -s conftest.$ac_objext' 10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10544 (eval $ac_try) 2>&5 10545 ac_status=$? 10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10547 (exit $ac_status); }; }; then 10548 ac_cv_have_decl_ftello=yes 10549else 10550 echo "$as_me: failed program was:" >&5 10551sed 's/^/| /' conftest.$ac_ext >&5 10552 10553ac_cv_have_decl_ftello=no 10554fi 10555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10556fi 10557echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5 10558echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6 10559if test $ac_cv_have_decl_ftello = yes; then 10560 10561cat >>confdefs.h <<_ACEOF 10562#define HAVE_DECL_FTELLO 1 10563_ACEOF 10564 10565 10566else 10567 cat >>confdefs.h <<_ACEOF 10568#define HAVE_DECL_FTELLO 0 10569_ACEOF 10570 10571 10572fi 10573 10574 10575echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5 10576echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6 10577if test "${ac_cv_have_decl_ftello64+set}" = set; then 10578 echo $ECHO_N "(cached) $ECHO_C" >&6 10579else 10580 cat >conftest.$ac_ext <<_ACEOF 10581/* confdefs.h. */ 10582_ACEOF 10583cat confdefs.h >>conftest.$ac_ext 10584cat >>conftest.$ac_ext <<_ACEOF 10585/* end confdefs.h. */ 10586$ac_includes_default 10587int 10588main () 10589{ 10590#ifndef ftello64 10591 char *p = (char *) ftello64; 10592#endif 10593 10594 ; 10595 return 0; 10596} 10597_ACEOF 10598rm -f conftest.$ac_objext 10599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10600 (eval $ac_compile) 2>conftest.er1 10601 ac_status=$? 10602 grep -v '^ *+' conftest.er1 >conftest.err 10603 rm -f conftest.er1 10604 cat conftest.err >&5 10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10606 (exit $ac_status); } && 10607 { ac_try='test -z "$ac_c_werror_flag" 10608 || test ! -s conftest.err' 10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10610 (eval $ac_try) 2>&5 10611 ac_status=$? 10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10613 (exit $ac_status); }; } && 10614 { ac_try='test -s conftest.$ac_objext' 10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10616 (eval $ac_try) 2>&5 10617 ac_status=$? 10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619 (exit $ac_status); }; }; then 10620 ac_cv_have_decl_ftello64=yes 10621else 10622 echo "$as_me: failed program was:" >&5 10623sed 's/^/| /' conftest.$ac_ext >&5 10624 10625ac_cv_have_decl_ftello64=no 10626fi 10627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10628fi 10629echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5 10630echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6 10631if test $ac_cv_have_decl_ftello64 = yes; then 10632 10633cat >>confdefs.h <<_ACEOF 10634#define HAVE_DECL_FTELLO64 1 10635_ACEOF 10636 10637 10638else 10639 cat >>confdefs.h <<_ACEOF 10640#define HAVE_DECL_FTELLO64 0 10641_ACEOF 10642 10643 10644fi 10645 10646 10647echo "$as_me:$LINENO: checking whether fseeko is declared" >&5 10648echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6 10649if test "${ac_cv_have_decl_fseeko+set}" = set; then 10650 echo $ECHO_N "(cached) $ECHO_C" >&6 10651else 10652 cat >conftest.$ac_ext <<_ACEOF 10653/* confdefs.h. */ 10654_ACEOF 10655cat confdefs.h >>conftest.$ac_ext 10656cat >>conftest.$ac_ext <<_ACEOF 10657/* end confdefs.h. */ 10658$ac_includes_default 10659int 10660main () 10661{ 10662#ifndef fseeko 10663 char *p = (char *) fseeko; 10664#endif 10665 10666 ; 10667 return 0; 10668} 10669_ACEOF 10670rm -f conftest.$ac_objext 10671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10672 (eval $ac_compile) 2>conftest.er1 10673 ac_status=$? 10674 grep -v '^ *+' conftest.er1 >conftest.err 10675 rm -f conftest.er1 10676 cat conftest.err >&5 10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10678 (exit $ac_status); } && 10679 { ac_try='test -z "$ac_c_werror_flag" 10680 || test ! -s conftest.err' 10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10682 (eval $ac_try) 2>&5 10683 ac_status=$? 10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10685 (exit $ac_status); }; } && 10686 { ac_try='test -s conftest.$ac_objext' 10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10688 (eval $ac_try) 2>&5 10689 ac_status=$? 10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10691 (exit $ac_status); }; }; then 10692 ac_cv_have_decl_fseeko=yes 10693else 10694 echo "$as_me: failed program was:" >&5 10695sed 's/^/| /' conftest.$ac_ext >&5 10696 10697ac_cv_have_decl_fseeko=no 10698fi 10699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10700fi 10701echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5 10702echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6 10703if test $ac_cv_have_decl_fseeko = yes; then 10704 10705cat >>confdefs.h <<_ACEOF 10706#define HAVE_DECL_FSEEKO 1 10707_ACEOF 10708 10709 10710else 10711 cat >>confdefs.h <<_ACEOF 10712#define HAVE_DECL_FSEEKO 0 10713_ACEOF 10714 10715 10716fi 10717 10718 10719echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5 10720echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6 10721if test "${ac_cv_have_decl_fseeko64+set}" = set; then 10722 echo $ECHO_N "(cached) $ECHO_C" >&6 10723else 10724 cat >conftest.$ac_ext <<_ACEOF 10725/* confdefs.h. */ 10726_ACEOF 10727cat confdefs.h >>conftest.$ac_ext 10728cat >>conftest.$ac_ext <<_ACEOF 10729/* end confdefs.h. */ 10730$ac_includes_default 10731int 10732main () 10733{ 10734#ifndef fseeko64 10735 char *p = (char *) fseeko64; 10736#endif 10737 10738 ; 10739 return 0; 10740} 10741_ACEOF 10742rm -f conftest.$ac_objext 10743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10744 (eval $ac_compile) 2>conftest.er1 10745 ac_status=$? 10746 grep -v '^ *+' conftest.er1 >conftest.err 10747 rm -f conftest.er1 10748 cat conftest.err >&5 10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10750 (exit $ac_status); } && 10751 { ac_try='test -z "$ac_c_werror_flag" 10752 || test ! -s conftest.err' 10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10754 (eval $ac_try) 2>&5 10755 ac_status=$? 10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10757 (exit $ac_status); }; } && 10758 { ac_try='test -s conftest.$ac_objext' 10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10760 (eval $ac_try) 2>&5 10761 ac_status=$? 10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10763 (exit $ac_status); }; }; then 10764 ac_cv_have_decl_fseeko64=yes 10765else 10766 echo "$as_me: failed program was:" >&5 10767sed 's/^/| /' conftest.$ac_ext >&5 10768 10769ac_cv_have_decl_fseeko64=no 10770fi 10771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10772fi 10773echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5 10774echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6 10775if test $ac_cv_have_decl_fseeko64 = yes; then 10776 10777cat >>confdefs.h <<_ACEOF 10778#define HAVE_DECL_FSEEKO64 1 10779_ACEOF 10780 10781 10782else 10783 cat >>confdefs.h <<_ACEOF 10784#define HAVE_DECL_FSEEKO64 0 10785_ACEOF 10786 10787 10788fi 10789 10790 10791 10792 10793case "${host}" in 10794*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 10795 10796cat >>confdefs.h <<\_ACEOF 10797#define USE_BINARY_FOPEN 1 10798_ACEOF 10799 ;; 10800esac 10801 10802echo "$as_me:$LINENO: checking whether ffs is declared" >&5 10803echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6 10804if test "${ac_cv_have_decl_ffs+set}" = set; then 10805 echo $ECHO_N "(cached) $ECHO_C" >&6 10806else 10807 cat >conftest.$ac_ext <<_ACEOF 10808/* confdefs.h. */ 10809_ACEOF 10810cat confdefs.h >>conftest.$ac_ext 10811cat >>conftest.$ac_ext <<_ACEOF 10812/* end confdefs.h. */ 10813$ac_includes_default 10814int 10815main () 10816{ 10817#ifndef ffs 10818 char *p = (char *) ffs; 10819#endif 10820 10821 ; 10822 return 0; 10823} 10824_ACEOF 10825rm -f conftest.$ac_objext 10826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10827 (eval $ac_compile) 2>conftest.er1 10828 ac_status=$? 10829 grep -v '^ *+' conftest.er1 >conftest.err 10830 rm -f conftest.er1 10831 cat conftest.err >&5 10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10833 (exit $ac_status); } && 10834 { ac_try='test -z "$ac_c_werror_flag" 10835 || test ! -s conftest.err' 10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10837 (eval $ac_try) 2>&5 10838 ac_status=$? 10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10840 (exit $ac_status); }; } && 10841 { ac_try='test -s conftest.$ac_objext' 10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10843 (eval $ac_try) 2>&5 10844 ac_status=$? 10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10846 (exit $ac_status); }; }; then 10847 ac_cv_have_decl_ffs=yes 10848else 10849 echo "$as_me: failed program was:" >&5 10850sed 's/^/| /' conftest.$ac_ext >&5 10851 10852ac_cv_have_decl_ffs=no 10853fi 10854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10855fi 10856echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5 10857echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6 10858if test $ac_cv_have_decl_ffs = yes; then 10859 10860cat >>confdefs.h <<_ACEOF 10861#define HAVE_DECL_FFS 1 10862_ACEOF 10863 10864 10865else 10866 cat >>confdefs.h <<_ACEOF 10867#define HAVE_DECL_FFS 0 10868_ACEOF 10869 10870 10871fi 10872 10873 10874echo "$as_me:$LINENO: checking whether free is declared" >&5 10875echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 10876if test "${ac_cv_have_decl_free+set}" = set; then 10877 echo $ECHO_N "(cached) $ECHO_C" >&6 10878else 10879 cat >conftest.$ac_ext <<_ACEOF 10880/* confdefs.h. */ 10881_ACEOF 10882cat confdefs.h >>conftest.$ac_ext 10883cat >>conftest.$ac_ext <<_ACEOF 10884/* end confdefs.h. */ 10885$ac_includes_default 10886int 10887main () 10888{ 10889#ifndef free 10890 char *p = (char *) free; 10891#endif 10892 10893 ; 10894 return 0; 10895} 10896_ACEOF 10897rm -f conftest.$ac_objext 10898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10899 (eval $ac_compile) 2>conftest.er1 10900 ac_status=$? 10901 grep -v '^ *+' conftest.er1 >conftest.err 10902 rm -f conftest.er1 10903 cat conftest.err >&5 10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10905 (exit $ac_status); } && 10906 { ac_try='test -z "$ac_c_werror_flag" 10907 || test ! -s conftest.err' 10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10909 (eval $ac_try) 2>&5 10910 ac_status=$? 10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10912 (exit $ac_status); }; } && 10913 { ac_try='test -s conftest.$ac_objext' 10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10915 (eval $ac_try) 2>&5 10916 ac_status=$? 10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10918 (exit $ac_status); }; }; then 10919 ac_cv_have_decl_free=yes 10920else 10921 echo "$as_me: failed program was:" >&5 10922sed 's/^/| /' conftest.$ac_ext >&5 10923 10924ac_cv_have_decl_free=no 10925fi 10926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10927fi 10928echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 10929echo "${ECHO_T}$ac_cv_have_decl_free" >&6 10930if test $ac_cv_have_decl_free = yes; then 10931 10932cat >>confdefs.h <<_ACEOF 10933#define HAVE_DECL_FREE 1 10934_ACEOF 10935 10936 10937else 10938 cat >>confdefs.h <<_ACEOF 10939#define HAVE_DECL_FREE 0 10940_ACEOF 10941 10942 10943fi 10944 10945 10946echo "$as_me:$LINENO: checking whether getenv is declared" >&5 10947echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 10948if test "${ac_cv_have_decl_getenv+set}" = set; then 10949 echo $ECHO_N "(cached) $ECHO_C" >&6 10950else 10951 cat >conftest.$ac_ext <<_ACEOF 10952/* confdefs.h. */ 10953_ACEOF 10954cat confdefs.h >>conftest.$ac_ext 10955cat >>conftest.$ac_ext <<_ACEOF 10956/* end confdefs.h. */ 10957$ac_includes_default 10958int 10959main () 10960{ 10961#ifndef getenv 10962 char *p = (char *) getenv; 10963#endif 10964 10965 ; 10966 return 0; 10967} 10968_ACEOF 10969rm -f conftest.$ac_objext 10970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10971 (eval $ac_compile) 2>conftest.er1 10972 ac_status=$? 10973 grep -v '^ *+' conftest.er1 >conftest.err 10974 rm -f conftest.er1 10975 cat conftest.err >&5 10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10977 (exit $ac_status); } && 10978 { ac_try='test -z "$ac_c_werror_flag" 10979 || test ! -s conftest.err' 10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10981 (eval $ac_try) 2>&5 10982 ac_status=$? 10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10984 (exit $ac_status); }; } && 10985 { ac_try='test -s conftest.$ac_objext' 10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10987 (eval $ac_try) 2>&5 10988 ac_status=$? 10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10990 (exit $ac_status); }; }; then 10991 ac_cv_have_decl_getenv=yes 10992else 10993 echo "$as_me: failed program was:" >&5 10994sed 's/^/| /' conftest.$ac_ext >&5 10995 10996ac_cv_have_decl_getenv=no 10997fi 10998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10999fi 11000echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 11001echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 11002if test $ac_cv_have_decl_getenv = yes; then 11003 11004cat >>confdefs.h <<_ACEOF 11005#define HAVE_DECL_GETENV 1 11006_ACEOF 11007 11008 11009else 11010 cat >>confdefs.h <<_ACEOF 11011#define HAVE_DECL_GETENV 0 11012_ACEOF 11013 11014 11015fi 11016 11017 11018echo "$as_me:$LINENO: checking whether malloc is declared" >&5 11019echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 11020if test "${ac_cv_have_decl_malloc+set}" = set; then 11021 echo $ECHO_N "(cached) $ECHO_C" >&6 11022else 11023 cat >conftest.$ac_ext <<_ACEOF 11024/* confdefs.h. */ 11025_ACEOF 11026cat confdefs.h >>conftest.$ac_ext 11027cat >>conftest.$ac_ext <<_ACEOF 11028/* end confdefs.h. */ 11029$ac_includes_default 11030int 11031main () 11032{ 11033#ifndef malloc 11034 char *p = (char *) malloc; 11035#endif 11036 11037 ; 11038 return 0; 11039} 11040_ACEOF 11041rm -f conftest.$ac_objext 11042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11043 (eval $ac_compile) 2>conftest.er1 11044 ac_status=$? 11045 grep -v '^ *+' conftest.er1 >conftest.err 11046 rm -f conftest.er1 11047 cat conftest.err >&5 11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11049 (exit $ac_status); } && 11050 { ac_try='test -z "$ac_c_werror_flag" 11051 || test ! -s conftest.err' 11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11053 (eval $ac_try) 2>&5 11054 ac_status=$? 11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11056 (exit $ac_status); }; } && 11057 { ac_try='test -s conftest.$ac_objext' 11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11059 (eval $ac_try) 2>&5 11060 ac_status=$? 11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11062 (exit $ac_status); }; }; then 11063 ac_cv_have_decl_malloc=yes 11064else 11065 echo "$as_me: failed program was:" >&5 11066sed 's/^/| /' conftest.$ac_ext >&5 11067 11068ac_cv_have_decl_malloc=no 11069fi 11070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11071fi 11072echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 11073echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 11074if test $ac_cv_have_decl_malloc = yes; then 11075 11076cat >>confdefs.h <<_ACEOF 11077#define HAVE_DECL_MALLOC 1 11078_ACEOF 11079 11080 11081else 11082 cat >>confdefs.h <<_ACEOF 11083#define HAVE_DECL_MALLOC 0 11084_ACEOF 11085 11086 11087fi 11088 11089 11090echo "$as_me:$LINENO: checking whether realloc is declared" >&5 11091echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 11092if test "${ac_cv_have_decl_realloc+set}" = set; then 11093 echo $ECHO_N "(cached) $ECHO_C" >&6 11094else 11095 cat >conftest.$ac_ext <<_ACEOF 11096/* confdefs.h. */ 11097_ACEOF 11098cat confdefs.h >>conftest.$ac_ext 11099cat >>conftest.$ac_ext <<_ACEOF 11100/* end confdefs.h. */ 11101$ac_includes_default 11102int 11103main () 11104{ 11105#ifndef realloc 11106 char *p = (char *) realloc; 11107#endif 11108 11109 ; 11110 return 0; 11111} 11112_ACEOF 11113rm -f conftest.$ac_objext 11114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11115 (eval $ac_compile) 2>conftest.er1 11116 ac_status=$? 11117 grep -v '^ *+' conftest.er1 >conftest.err 11118 rm -f conftest.er1 11119 cat conftest.err >&5 11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11121 (exit $ac_status); } && 11122 { ac_try='test -z "$ac_c_werror_flag" 11123 || test ! -s conftest.err' 11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11125 (eval $ac_try) 2>&5 11126 ac_status=$? 11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11128 (exit $ac_status); }; } && 11129 { ac_try='test -s conftest.$ac_objext' 11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11131 (eval $ac_try) 2>&5 11132 ac_status=$? 11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11134 (exit $ac_status); }; }; then 11135 ac_cv_have_decl_realloc=yes 11136else 11137 echo "$as_me: failed program was:" >&5 11138sed 's/^/| /' conftest.$ac_ext >&5 11139 11140ac_cv_have_decl_realloc=no 11141fi 11142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11143fi 11144echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 11145echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 11146if test $ac_cv_have_decl_realloc = yes; then 11147 11148cat >>confdefs.h <<_ACEOF 11149#define HAVE_DECL_REALLOC 1 11150_ACEOF 11151 11152 11153else 11154 cat >>confdefs.h <<_ACEOF 11155#define HAVE_DECL_REALLOC 0 11156_ACEOF 11157 11158 11159fi 11160 11161 11162echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 11163echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 11164if test "${ac_cv_have_decl_stpcpy+set}" = set; then 11165 echo $ECHO_N "(cached) $ECHO_C" >&6 11166else 11167 cat >conftest.$ac_ext <<_ACEOF 11168/* confdefs.h. */ 11169_ACEOF 11170cat confdefs.h >>conftest.$ac_ext 11171cat >>conftest.$ac_ext <<_ACEOF 11172/* end confdefs.h. */ 11173$ac_includes_default 11174int 11175main () 11176{ 11177#ifndef stpcpy 11178 char *p = (char *) stpcpy; 11179#endif 11180 11181 ; 11182 return 0; 11183} 11184_ACEOF 11185rm -f conftest.$ac_objext 11186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11187 (eval $ac_compile) 2>conftest.er1 11188 ac_status=$? 11189 grep -v '^ *+' conftest.er1 >conftest.err 11190 rm -f conftest.er1 11191 cat conftest.err >&5 11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11193 (exit $ac_status); } && 11194 { ac_try='test -z "$ac_c_werror_flag" 11195 || test ! -s conftest.err' 11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11197 (eval $ac_try) 2>&5 11198 ac_status=$? 11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11200 (exit $ac_status); }; } && 11201 { ac_try='test -s conftest.$ac_objext' 11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11203 (eval $ac_try) 2>&5 11204 ac_status=$? 11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11206 (exit $ac_status); }; }; then 11207 ac_cv_have_decl_stpcpy=yes 11208else 11209 echo "$as_me: failed program was:" >&5 11210sed 's/^/| /' conftest.$ac_ext >&5 11211 11212ac_cv_have_decl_stpcpy=no 11213fi 11214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11215fi 11216echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 11217echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 11218if test $ac_cv_have_decl_stpcpy = yes; then 11219 11220cat >>confdefs.h <<_ACEOF 11221#define HAVE_DECL_STPCPY 1 11222_ACEOF 11223 11224 11225else 11226 cat >>confdefs.h <<_ACEOF 11227#define HAVE_DECL_STPCPY 0 11228_ACEOF 11229 11230 11231fi 11232 11233 11234echo "$as_me:$LINENO: checking whether strstr is declared" >&5 11235echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 11236if test "${ac_cv_have_decl_strstr+set}" = set; then 11237 echo $ECHO_N "(cached) $ECHO_C" >&6 11238else 11239 cat >conftest.$ac_ext <<_ACEOF 11240/* confdefs.h. */ 11241_ACEOF 11242cat confdefs.h >>conftest.$ac_ext 11243cat >>conftest.$ac_ext <<_ACEOF 11244/* end confdefs.h. */ 11245$ac_includes_default 11246int 11247main () 11248{ 11249#ifndef strstr 11250 char *p = (char *) strstr; 11251#endif 11252 11253 ; 11254 return 0; 11255} 11256_ACEOF 11257rm -f conftest.$ac_objext 11258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11259 (eval $ac_compile) 2>conftest.er1 11260 ac_status=$? 11261 grep -v '^ *+' conftest.er1 >conftest.err 11262 rm -f conftest.er1 11263 cat conftest.err >&5 11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11265 (exit $ac_status); } && 11266 { ac_try='test -z "$ac_c_werror_flag" 11267 || test ! -s conftest.err' 11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11269 (eval $ac_try) 2>&5 11270 ac_status=$? 11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11272 (exit $ac_status); }; } && 11273 { ac_try='test -s conftest.$ac_objext' 11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11275 (eval $ac_try) 2>&5 11276 ac_status=$? 11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11278 (exit $ac_status); }; }; then 11279 ac_cv_have_decl_strstr=yes 11280else 11281 echo "$as_me: failed program was:" >&5 11282sed 's/^/| /' conftest.$ac_ext >&5 11283 11284ac_cv_have_decl_strstr=no 11285fi 11286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11287fi 11288echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 11289echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 11290if test $ac_cv_have_decl_strstr = yes; then 11291 11292cat >>confdefs.h <<_ACEOF 11293#define HAVE_DECL_STRSTR 1 11294_ACEOF 11295 11296 11297else 11298 cat >>confdefs.h <<_ACEOF 11299#define HAVE_DECL_STRSTR 0 11300_ACEOF 11301 11302 11303fi 11304 11305 11306echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 11307echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 11308if test "${ac_cv_have_decl_snprintf+set}" = set; then 11309 echo $ECHO_N "(cached) $ECHO_C" >&6 11310else 11311 cat >conftest.$ac_ext <<_ACEOF 11312/* confdefs.h. */ 11313_ACEOF 11314cat confdefs.h >>conftest.$ac_ext 11315cat >>conftest.$ac_ext <<_ACEOF 11316/* end confdefs.h. */ 11317$ac_includes_default 11318int 11319main () 11320{ 11321#ifndef snprintf 11322 char *p = (char *) snprintf; 11323#endif 11324 11325 ; 11326 return 0; 11327} 11328_ACEOF 11329rm -f conftest.$ac_objext 11330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11331 (eval $ac_compile) 2>conftest.er1 11332 ac_status=$? 11333 grep -v '^ *+' conftest.er1 >conftest.err 11334 rm -f conftest.er1 11335 cat conftest.err >&5 11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11337 (exit $ac_status); } && 11338 { ac_try='test -z "$ac_c_werror_flag" 11339 || test ! -s conftest.err' 11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11341 (eval $ac_try) 2>&5 11342 ac_status=$? 11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11344 (exit $ac_status); }; } && 11345 { ac_try='test -s conftest.$ac_objext' 11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11347 (eval $ac_try) 2>&5 11348 ac_status=$? 11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11350 (exit $ac_status); }; }; then 11351 ac_cv_have_decl_snprintf=yes 11352else 11353 echo "$as_me: failed program was:" >&5 11354sed 's/^/| /' conftest.$ac_ext >&5 11355 11356ac_cv_have_decl_snprintf=no 11357fi 11358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11359fi 11360echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 11361echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 11362if test $ac_cv_have_decl_snprintf = yes; then 11363 11364cat >>confdefs.h <<_ACEOF 11365#define HAVE_DECL_SNPRINTF 1 11366_ACEOF 11367 11368 11369else 11370 cat >>confdefs.h <<_ACEOF 11371#define HAVE_DECL_SNPRINTF 0 11372_ACEOF 11373 11374 11375fi 11376 11377 11378echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 11379echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 11380if test "${ac_cv_have_decl_vsnprintf+set}" = set; then 11381 echo $ECHO_N "(cached) $ECHO_C" >&6 11382else 11383 cat >conftest.$ac_ext <<_ACEOF 11384/* confdefs.h. */ 11385_ACEOF 11386cat confdefs.h >>conftest.$ac_ext 11387cat >>conftest.$ac_ext <<_ACEOF 11388/* end confdefs.h. */ 11389$ac_includes_default 11390int 11391main () 11392{ 11393#ifndef vsnprintf 11394 char *p = (char *) vsnprintf; 11395#endif 11396 11397 ; 11398 return 0; 11399} 11400_ACEOF 11401rm -f conftest.$ac_objext 11402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11403 (eval $ac_compile) 2>conftest.er1 11404 ac_status=$? 11405 grep -v '^ *+' conftest.er1 >conftest.err 11406 rm -f conftest.er1 11407 cat conftest.err >&5 11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11409 (exit $ac_status); } && 11410 { ac_try='test -z "$ac_c_werror_flag" 11411 || test ! -s conftest.err' 11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11413 (eval $ac_try) 2>&5 11414 ac_status=$? 11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11416 (exit $ac_status); }; } && 11417 { ac_try='test -s conftest.$ac_objext' 11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11419 (eval $ac_try) 2>&5 11420 ac_status=$? 11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11422 (exit $ac_status); }; }; then 11423 ac_cv_have_decl_vsnprintf=yes 11424else 11425 echo "$as_me: failed program was:" >&5 11426sed 's/^/| /' conftest.$ac_ext >&5 11427 11428ac_cv_have_decl_vsnprintf=no 11429fi 11430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11431fi 11432echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 11433echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 11434if test $ac_cv_have_decl_vsnprintf = yes; then 11435 11436cat >>confdefs.h <<_ACEOF 11437#define HAVE_DECL_VSNPRINTF 1 11438_ACEOF 11439 11440 11441else 11442 cat >>confdefs.h <<_ACEOF 11443#define HAVE_DECL_VSNPRINTF 0 11444_ACEOF 11445 11446 11447fi 11448 11449 11450 11451# If we are configured native, pick a core file support file. 11452COREFILE= 11453COREFLAG= 11454TRAD_HEADER= 11455if test "${target}" = "${host}"; then 11456 case "${host}" in 11457 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) 11458 COREFILE='' 11459 ;; 11460 alpha*-*-linux-*) 11461 COREFILE=trad-core.lo 11462 TRAD_HEADER='"hosts/alphalinux.h"' 11463 ;; 11464 alpha*-*-netbsd* | alpha*-*-openbsd*) 11465 COREFILE=netbsd-core.lo 11466 ;; 11467 alpha*-*-*) COREFILE=osf-core.lo ;; 11468 arm-*-freebsd* | arm-*-kfreebsd*-gnu) 11469 COREFILE='' ;; 11470 arm-*-netbsd* | arm-*-openbsd*) 11471 COREFILE=netbsd-core.lo 11472 ;; 11473 arm-*-riscix) COREFILE=trad-core.lo ;; 11474 hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 11475 hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 11476 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 11477 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 11478 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 11479 hppa*-*-netbsd* | hppa*-*-openbsd*) 11480 COREFILE=netbsd-core.lo 11481 ;; 11482 11483 i370-*-*) 11484 COREFILE=trad-core.lo 11485 TRAD_HEADER='"hosts/i370linux.h"' 11486 ;; 11487 11488 i[3-7]86-sequent-bsd*) 11489 COREFILE=trad-core.lo 11490 TRAD_HEADER='"hosts/symmetry.h"' 11491 ;; 11492 i[3-7]86-sequent-sysv4*) ;; 11493 i[3-7]86-sequent-sysv*) 11494 COREFILE=trad-core.lo 11495 TRAD_HEADER='"hosts/symmetry.h"' 11496 ;; 11497 i[3-7]86-*-bsdi) 11498 COREFILE= 11499 ;; 11500 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*) 11501 COREFILE=trad-core.lo 11502 TRAD_HEADER='"hosts/i386bsd.h"' 11503 ;; 11504 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) 11505 COREFILE='' 11506 TRAD_HEADER='"hosts/i386bsd.h"' 11507 ;; 11508 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) 11509 COREFILE=netbsd-core.lo 11510 ;; 11511 i[3-7]86-esix-sysv3*) 11512 COREFILE=trad-core.lo 11513 TRAD_HEADER='"hosts/esix.h"' 11514 ;; 11515 i[3-7]86-*-sco3.2v5*) 11516 COREFILE=sco5-core.lo 11517 ;; 11518 i[3-7]86-*-sco* | i[3-7]86-*-isc*) 11519 COREFILE=trad-core.lo 11520 TRAD_HEADER='"hosts/i386sco.h"' 11521 ;; 11522 i[3-7]86-*-mach3*) 11523 COREFILE=trad-core.lo 11524 TRAD_HEADER='"hosts/i386mach3.h"' 11525 ;; 11526 i[3-7]86-*-linux-*) 11527 COREFILE=trad-core.lo 11528 TRAD_HEADER='"hosts/i386linux.h"' 11529 ;; 11530 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; 11531 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; 11532 i860-*-mach3* | i860-*-osf1*) 11533 COREFILE=trad-core.lo 11534 TRAD_HEADER='"hosts/i860mach3.h"' 11535 ;; 11536 mips-*-netbsd* | mips*-*-openbsd*) 11537 COREFILE=netbsd-core.lo 11538 ;; 11539 mips-dec-*) 11540 COREFILE=trad-core.lo 11541 TRAD_HEADER='"hosts/decstation.h"' 11542 ;; 11543 mips-sgi-irix4*) COREFILE=irix-core.lo ;; 11544 mips-sgi-irix5*) COREFILE=irix-core.lo ;; 11545 mips-sgi-irix6*) COREFILE=irix-core.lo ;; 11546 mips-*-sysv4*) ;; 11547 mips-*-sysv* | mips-*-riscos*) 11548 COREFILE=trad-core.lo 11549 TRAD_HEADER='"hosts/riscos.h"' 11550 ;; 11551 mips-sony-bsd*) 11552 COREFILE=trad-core.lo 11553 TRAD_HEADER='"hosts/news-mips.h"' 11554 ;; 11555 m68*-bull*-sysv*) 11556 COREFILE=trad-core.lo 11557 TRAD_HEADER='"hosts/dpx2.h"' 11558 ;; 11559 m68*-hp-hpux*) COREFILE=hpux-core.lo ;; 11560 m68*-hp-bsd*) 11561 COREFILE=trad-core.lo 11562 TRAD_HEADER='"hosts/hp300bsd.h"' 11563 ;; 11564 m68*-*-linux-*) 11565 COREFILE=trad-core.lo 11566 TRAD_HEADER='"hosts/m68klinux.h"' 11567 ;; 11568 m68*-motorola-sysv*) 11569 COREFILE=trad-core.lo 11570 TRAD_HEADER='"hosts/delta68.h"' 11571 ;; 11572 m68*-sony-*) 11573 COREFILE=trad-core.lo 11574 TRAD_HEADER='"hosts/news.h"' 11575 ;; 11576 m68*-*-netbsd* | m68*-*-openbsd*) 11577 COREFILE=netbsd-core.lo 11578 ;; 11579 m68*-apple-aux*) 11580 COREFILE=trad-core.lo 11581 TRAD_HEADER='"hosts/m68kaux.h"' 11582 ;; 11583 m88*-*-sysv4*) 11584 ;; 11585 m88*-motorola-sysv*) 11586 COREFILE=ptrace-core.lo 11587 ;; 11588 m88*-*-mach3*) 11589 COREFILE=trad-core.lo 11590 TRAD_HEADER='"hosts/m88kmach3.h"' 11591 ;; 11592 m88*-*-openbsd*) 11593 COREFILE=netbsd-core.lo 11594 ;; 11595 ns32k-pc532-mach) 11596 COREFILE=trad-core.lo 11597 TRAD_HEADER='"hosts/pc532mach.h"' 11598 ;; 11599 ns32k-*-netbsd* | ns32k-*-openbsd*) 11600 COREFILE=netbsd-core.lo 11601 ;; 11602 rs6000-*-lynx*) 11603 COREFILE=lynx-core.lo 11604 ;; 11605 rs6000-*-aix5.* | powerpc-*-aix5.*) 11606 COREFILE=rs6000-core.lo 11607 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" 11608 ;; 11609 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) 11610 COREFILE=rs6000-core.lo 11611 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" 11612 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE 11613 # have c_impl as a member of struct core_dumpx 11614 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5 11615echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6 11616 cat >conftest.$ac_ext <<_ACEOF 11617/* confdefs.h. */ 11618_ACEOF 11619cat confdefs.h >>conftest.$ac_ext 11620cat >>conftest.$ac_ext <<_ACEOF 11621/* end confdefs.h. */ 11622#include <core.h> 11623int 11624main () 11625{ 11626struct core_dumpx c; c.c_impl = 0; 11627 ; 11628 return 0; 11629} 11630_ACEOF 11631rm -f conftest.$ac_objext 11632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11633 (eval $ac_compile) 2>conftest.er1 11634 ac_status=$? 11635 grep -v '^ *+' conftest.er1 >conftest.err 11636 rm -f conftest.er1 11637 cat conftest.err >&5 11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11639 (exit $ac_status); } && 11640 { ac_try='test -z "$ac_c_werror_flag" 11641 || test ! -s conftest.err' 11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11643 (eval $ac_try) 2>&5 11644 ac_status=$? 11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11646 (exit $ac_status); }; } && 11647 { ac_try='test -s conftest.$ac_objext' 11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11649 (eval $ac_try) 2>&5 11650 ac_status=$? 11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11652 (exit $ac_status); }; }; then 11653 11654cat >>confdefs.h <<\_ACEOF 11655#define HAVE_ST_C_IMPL 1 11656_ACEOF 11657 11658 echo "$as_me:$LINENO: result: yes" >&5 11659echo "${ECHO_T}yes" >&6 11660else 11661 echo "$as_me: failed program was:" >&5 11662sed 's/^/| /' conftest.$ac_ext >&5 11663 11664echo "$as_me:$LINENO: result: no" >&5 11665echo "${ECHO_T}no" >&6 11666fi 11667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11668 ;; 11669 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 11670 rs6000-*-*) COREFILE=rs6000-core.lo ;; 11671 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 11672 powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 11673 powerpc-*-beos*) ;; 11674 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) 11675 COREFILE='' ;; 11676 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 11677 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 11678 s390*-*-*) COREFILE=trad-core.lo ;; 11679 sh*-*-netbsd* | sh*-*-openbsd*) 11680 COREFILE=netbsd-core.lo 11681 ;; 11682 sparc-*-netbsd* | sparc*-*-openbsd*) 11683 COREFILE=netbsd-core.lo 11684 ;; 11685 tahoe-*-*) 11686 COREFILE=trad-core.lo 11687 TRAD_HEADER='"hosts/tahoe.h"' 11688 ;; 11689 vax-*-netbsd* | vax-*-openbsd*) 11690 COREFILE=netbsd-core.lo 11691 ;; 11692 vax-*-ultrix2*) 11693 COREFILE=trad-core.lo 11694 TRAD_HEADER='"hosts/vaxult2.h"' 11695 ;; 11696 vax-*-ultrix*) 11697 COREFILE=trad-core.lo 11698 TRAD_HEADER='"hosts/vaxult2.h"' 11699 ;; 11700 vax-*-linux-*) 11701 COREFILE=trad-core.lo 11702 TRAD_HEADER='"hosts/vaxlinux.h"' 11703 ;; 11704 vax-*-*) 11705 COREFILE=trad-core.lo 11706 TRAD_HEADER='"hosts/vaxbsd.h"' 11707 ;; 11708 x86_64-*-netbsd* | x86_64-*-openbsd*) 11709 COREFILE=netbsd-core.lo 11710 ;; 11711 esac 11712 11713 case "$COREFILE" in 11714 aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 11715 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 11716 hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 11717 irix-core.lo) COREFLAG=-DIRIX_CORE ;; 11718 lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 11719 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 11720 osf-core.lo) COREFLAG=-DOSF_CORE ;; 11721 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 11722 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 11723 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; 11724 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 11725 esac 11726 11727 # ELF corefile support has several flavors, but all of 11728 # them use something called <sys/procfs.h> 11729 11730for ac_header in sys/procfs.h 11731do 11732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11733if eval "test \"\${$as_ac_Header+set}\" = set"; then 11734 echo "$as_me:$LINENO: checking for $ac_header" >&5 11735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11736if eval "test \"\${$as_ac_Header+set}\" = set"; then 11737 echo $ECHO_N "(cached) $ECHO_C" >&6 11738fi 11739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11741else 11742 # Is the header compilable? 11743echo "$as_me:$LINENO: checking $ac_header usability" >&5 11744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11745cat >conftest.$ac_ext <<_ACEOF 11746/* confdefs.h. */ 11747_ACEOF 11748cat confdefs.h >>conftest.$ac_ext 11749cat >>conftest.$ac_ext <<_ACEOF 11750/* end confdefs.h. */ 11751$ac_includes_default 11752#include <$ac_header> 11753_ACEOF 11754rm -f conftest.$ac_objext 11755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11756 (eval $ac_compile) 2>conftest.er1 11757 ac_status=$? 11758 grep -v '^ *+' conftest.er1 >conftest.err 11759 rm -f conftest.er1 11760 cat conftest.err >&5 11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11762 (exit $ac_status); } && 11763 { ac_try='test -z "$ac_c_werror_flag" 11764 || test ! -s conftest.err' 11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11766 (eval $ac_try) 2>&5 11767 ac_status=$? 11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11769 (exit $ac_status); }; } && 11770 { ac_try='test -s conftest.$ac_objext' 11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11772 (eval $ac_try) 2>&5 11773 ac_status=$? 11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11775 (exit $ac_status); }; }; then 11776 ac_header_compiler=yes 11777else 11778 echo "$as_me: failed program was:" >&5 11779sed 's/^/| /' conftest.$ac_ext >&5 11780 11781ac_header_compiler=no 11782fi 11783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11785echo "${ECHO_T}$ac_header_compiler" >&6 11786 11787# Is the header present? 11788echo "$as_me:$LINENO: checking $ac_header presence" >&5 11789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11790cat >conftest.$ac_ext <<_ACEOF 11791/* confdefs.h. */ 11792_ACEOF 11793cat confdefs.h >>conftest.$ac_ext 11794cat >>conftest.$ac_ext <<_ACEOF 11795/* end confdefs.h. */ 11796#include <$ac_header> 11797_ACEOF 11798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11800 ac_status=$? 11801 grep -v '^ *+' conftest.er1 >conftest.err 11802 rm -f conftest.er1 11803 cat conftest.err >&5 11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11805 (exit $ac_status); } >/dev/null; then 11806 if test -s conftest.err; then 11807 ac_cpp_err=$ac_c_preproc_warn_flag 11808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11809 else 11810 ac_cpp_err= 11811 fi 11812else 11813 ac_cpp_err=yes 11814fi 11815if test -z "$ac_cpp_err"; then 11816 ac_header_preproc=yes 11817else 11818 echo "$as_me: failed program was:" >&5 11819sed 's/^/| /' conftest.$ac_ext >&5 11820 11821 ac_header_preproc=no 11822fi 11823rm -f conftest.err conftest.$ac_ext 11824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11825echo "${ECHO_T}$ac_header_preproc" >&6 11826 11827# So? What about this header? 11828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11829 yes:no: ) 11830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11834 ac_header_preproc=yes 11835 ;; 11836 no:yes:* ) 11837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11849 ( 11850 cat <<\_ASBOX 11851## ------------------------------------------ ## 11852## Report this to the AC_PACKAGE_NAME lists. ## 11853## ------------------------------------------ ## 11854_ASBOX 11855 ) | 11856 sed "s/^/$as_me: WARNING: /" >&2 11857 ;; 11858esac 11859echo "$as_me:$LINENO: checking for $ac_header" >&5 11860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11861if eval "test \"\${$as_ac_Header+set}\" = set"; then 11862 echo $ECHO_N "(cached) $ECHO_C" >&6 11863else 11864 eval "$as_ac_Header=\$ac_header_preproc" 11865fi 11866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11868 11869fi 11870if test `eval echo '${'$as_ac_Header'}'` = yes; then 11871 cat >>confdefs.h <<_ACEOF 11872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11873_ACEOF 11874 11875fi 11876 11877done 11878 11879 if test "$ac_cv_header_sys_procfs_h" = yes; then 11880 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5 11881echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 11882 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then 11883 echo $ECHO_N "(cached) $ECHO_C" >&6 11884else 11885 cat >conftest.$ac_ext <<_ACEOF 11886/* confdefs.h. */ 11887_ACEOF 11888cat confdefs.h >>conftest.$ac_ext 11889cat >>conftest.$ac_ext <<_ACEOF 11890/* end confdefs.h. */ 11891 11892#define _SYSCALL32 11893#include <sys/procfs.h> 11894int 11895main () 11896{ 11897prstatus_t avar 11898 ; 11899 return 0; 11900} 11901_ACEOF 11902rm -f conftest.$ac_objext 11903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11904 (eval $ac_compile) 2>conftest.er1 11905 ac_status=$? 11906 grep -v '^ *+' conftest.er1 >conftest.err 11907 rm -f conftest.er1 11908 cat conftest.err >&5 11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11910 (exit $ac_status); } && 11911 { ac_try='test -z "$ac_c_werror_flag" 11912 || test ! -s conftest.err' 11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11914 (eval $ac_try) 2>&5 11915 ac_status=$? 11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11917 (exit $ac_status); }; } && 11918 { ac_try='test -s conftest.$ac_objext' 11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11920 (eval $ac_try) 2>&5 11921 ac_status=$? 11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11923 (exit $ac_status); }; }; then 11924 bfd_cv_have_sys_procfs_type_prstatus_t=yes 11925else 11926 echo "$as_me: failed program was:" >&5 11927sed 's/^/| /' conftest.$ac_ext >&5 11928 11929bfd_cv_have_sys_procfs_type_prstatus_t=no 11930 11931fi 11932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11933fi 11934 11935 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then 11936 11937cat >>confdefs.h <<\_ACEOF 11938#define HAVE_PRSTATUS_T 1 11939_ACEOF 11940 11941 fi 11942 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 11943echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 11944 11945 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5 11946echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 11947 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then 11948 echo $ECHO_N "(cached) $ECHO_C" >&6 11949else 11950 cat >conftest.$ac_ext <<_ACEOF 11951/* confdefs.h. */ 11952_ACEOF 11953cat confdefs.h >>conftest.$ac_ext 11954cat >>conftest.$ac_ext <<_ACEOF 11955/* end confdefs.h. */ 11956 11957#define _SYSCALL32 11958#include <sys/procfs.h> 11959int 11960main () 11961{ 11962prstatus32_t avar 11963 ; 11964 return 0; 11965} 11966_ACEOF 11967rm -f conftest.$ac_objext 11968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11969 (eval $ac_compile) 2>conftest.er1 11970 ac_status=$? 11971 grep -v '^ *+' conftest.er1 >conftest.err 11972 rm -f conftest.er1 11973 cat conftest.err >&5 11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11975 (exit $ac_status); } && 11976 { ac_try='test -z "$ac_c_werror_flag" 11977 || test ! -s conftest.err' 11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11979 (eval $ac_try) 2>&5 11980 ac_status=$? 11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11982 (exit $ac_status); }; } && 11983 { ac_try='test -s conftest.$ac_objext' 11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11985 (eval $ac_try) 2>&5 11986 ac_status=$? 11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11988 (exit $ac_status); }; }; then 11989 bfd_cv_have_sys_procfs_type_prstatus32_t=yes 11990else 11991 echo "$as_me: failed program was:" >&5 11992sed 's/^/| /' conftest.$ac_ext >&5 11993 11994bfd_cv_have_sys_procfs_type_prstatus32_t=no 11995 11996fi 11997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11998fi 11999 12000 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then 12001 12002cat >>confdefs.h <<\_ACEOF 12003#define HAVE_PRSTATUS32_T 1 12004_ACEOF 12005 12006 fi 12007 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 12008echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 12009 12010 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5 12011echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 12012 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then 12013 echo $ECHO_N "(cached) $ECHO_C" >&6 12014else 12015 cat >conftest.$ac_ext <<_ACEOF 12016/* confdefs.h. */ 12017_ACEOF 12018cat confdefs.h >>conftest.$ac_ext 12019cat >>conftest.$ac_ext <<_ACEOF 12020/* end confdefs.h. */ 12021 12022#define _SYSCALL32 12023#include <sys/procfs.h> 12024int 12025main () 12026{ 12027prstatus_t avar; void* aref = (void*) &avar.pr_who 12028 ; 12029 return 0; 12030} 12031_ACEOF 12032rm -f conftest.$ac_objext 12033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12034 (eval $ac_compile) 2>conftest.er1 12035 ac_status=$? 12036 grep -v '^ *+' conftest.er1 >conftest.err 12037 rm -f conftest.er1 12038 cat conftest.err >&5 12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12040 (exit $ac_status); } && 12041 { ac_try='test -z "$ac_c_werror_flag" 12042 || test ! -s conftest.err' 12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12044 (eval $ac_try) 2>&5 12045 ac_status=$? 12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12047 (exit $ac_status); }; } && 12048 { ac_try='test -s conftest.$ac_objext' 12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12050 (eval $ac_try) 2>&5 12051 ac_status=$? 12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12053 (exit $ac_status); }; }; then 12054 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes 12055else 12056 echo "$as_me: failed program was:" >&5 12057sed 's/^/| /' conftest.$ac_ext >&5 12058 12059bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no 12060 12061fi 12062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12063fi 12064 12065 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then 12066 12067cat >>confdefs.h <<\_ACEOF 12068#define HAVE_PRSTATUS_T_PR_WHO 1 12069_ACEOF 12070 12071 fi 12072 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 12073echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 12074 12075 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 12076echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 12077 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then 12078 echo $ECHO_N "(cached) $ECHO_C" >&6 12079else 12080 cat >conftest.$ac_ext <<_ACEOF 12081/* confdefs.h. */ 12082_ACEOF 12083cat confdefs.h >>conftest.$ac_ext 12084cat >>conftest.$ac_ext <<_ACEOF 12085/* end confdefs.h. */ 12086 12087#define _SYSCALL32 12088#include <sys/procfs.h> 12089int 12090main () 12091{ 12092prstatus32_t avar; void* aref = (void*) &avar.pr_who 12093 ; 12094 return 0; 12095} 12096_ACEOF 12097rm -f conftest.$ac_objext 12098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12099 (eval $ac_compile) 2>conftest.er1 12100 ac_status=$? 12101 grep -v '^ *+' conftest.er1 >conftest.err 12102 rm -f conftest.er1 12103 cat conftest.err >&5 12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12105 (exit $ac_status); } && 12106 { ac_try='test -z "$ac_c_werror_flag" 12107 || test ! -s conftest.err' 12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12109 (eval $ac_try) 2>&5 12110 ac_status=$? 12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12112 (exit $ac_status); }; } && 12113 { ac_try='test -s conftest.$ac_objext' 12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12115 (eval $ac_try) 2>&5 12116 ac_status=$? 12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12118 (exit $ac_status); }; }; then 12119 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes 12120else 12121 echo "$as_me: failed program was:" >&5 12122sed 's/^/| /' conftest.$ac_ext >&5 12123 12124bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no 12125 12126fi 12127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12128fi 12129 12130 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then 12131 12132cat >>confdefs.h <<\_ACEOF 12133#define HAVE_PRSTATUS32_T_PR_WHO 1 12134_ACEOF 12135 12136 fi 12137 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 12138echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 12139 12140 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 12141echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 12142 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then 12143 echo $ECHO_N "(cached) $ECHO_C" >&6 12144else 12145 cat >conftest.$ac_ext <<_ACEOF 12146/* confdefs.h. */ 12147_ACEOF 12148cat confdefs.h >>conftest.$ac_ext 12149cat >>conftest.$ac_ext <<_ACEOF 12150/* end confdefs.h. */ 12151 12152#define _SYSCALL32 12153#include <sys/procfs.h> 12154int 12155main () 12156{ 12157pstatus_t avar 12158 ; 12159 return 0; 12160} 12161_ACEOF 12162rm -f conftest.$ac_objext 12163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12164 (eval $ac_compile) 2>conftest.er1 12165 ac_status=$? 12166 grep -v '^ *+' conftest.er1 >conftest.err 12167 rm -f conftest.er1 12168 cat conftest.err >&5 12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12170 (exit $ac_status); } && 12171 { ac_try='test -z "$ac_c_werror_flag" 12172 || test ! -s conftest.err' 12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12174 (eval $ac_try) 2>&5 12175 ac_status=$? 12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12177 (exit $ac_status); }; } && 12178 { ac_try='test -s conftest.$ac_objext' 12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12180 (eval $ac_try) 2>&5 12181 ac_status=$? 12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12183 (exit $ac_status); }; }; then 12184 bfd_cv_have_sys_procfs_type_pstatus_t=yes 12185else 12186 echo "$as_me: failed program was:" >&5 12187sed 's/^/| /' conftest.$ac_ext >&5 12188 12189bfd_cv_have_sys_procfs_type_pstatus_t=no 12190 12191fi 12192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12193fi 12194 12195 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then 12196 12197cat >>confdefs.h <<\_ACEOF 12198#define HAVE_PSTATUS_T 1 12199_ACEOF 12200 12201 fi 12202 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 12203echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 12204 12205 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5 12206echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 12207 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then 12208 echo $ECHO_N "(cached) $ECHO_C" >&6 12209else 12210 cat >conftest.$ac_ext <<_ACEOF 12211/* confdefs.h. */ 12212_ACEOF 12213cat confdefs.h >>conftest.$ac_ext 12214cat >>conftest.$ac_ext <<_ACEOF 12215/* end confdefs.h. */ 12216 12217#define _SYSCALL32 12218#include <sys/procfs.h> 12219int 12220main () 12221{ 12222pxstatus_t avar 12223 ; 12224 return 0; 12225} 12226_ACEOF 12227rm -f conftest.$ac_objext 12228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12229 (eval $ac_compile) 2>conftest.er1 12230 ac_status=$? 12231 grep -v '^ *+' conftest.er1 >conftest.err 12232 rm -f conftest.er1 12233 cat conftest.err >&5 12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12235 (exit $ac_status); } && 12236 { ac_try='test -z "$ac_c_werror_flag" 12237 || test ! -s conftest.err' 12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12239 (eval $ac_try) 2>&5 12240 ac_status=$? 12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12242 (exit $ac_status); }; } && 12243 { ac_try='test -s conftest.$ac_objext' 12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12245 (eval $ac_try) 2>&5 12246 ac_status=$? 12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12248 (exit $ac_status); }; }; then 12249 bfd_cv_have_sys_procfs_type_pxstatus_t=yes 12250else 12251 echo "$as_me: failed program was:" >&5 12252sed 's/^/| /' conftest.$ac_ext >&5 12253 12254bfd_cv_have_sys_procfs_type_pxstatus_t=no 12255 12256fi 12257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12258fi 12259 12260 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then 12261 12262cat >>confdefs.h <<\_ACEOF 12263#define HAVE_PXSTATUS_T 1 12264_ACEOF 12265 12266 fi 12267 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 12268echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 12269 12270 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5 12271echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 12272 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then 12273 echo $ECHO_N "(cached) $ECHO_C" >&6 12274else 12275 cat >conftest.$ac_ext <<_ACEOF 12276/* confdefs.h. */ 12277_ACEOF 12278cat confdefs.h >>conftest.$ac_ext 12279cat >>conftest.$ac_ext <<_ACEOF 12280/* end confdefs.h. */ 12281 12282#define _SYSCALL32 12283#include <sys/procfs.h> 12284int 12285main () 12286{ 12287pstatus32_t avar 12288 ; 12289 return 0; 12290} 12291_ACEOF 12292rm -f conftest.$ac_objext 12293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12294 (eval $ac_compile) 2>conftest.er1 12295 ac_status=$? 12296 grep -v '^ *+' conftest.er1 >conftest.err 12297 rm -f conftest.er1 12298 cat conftest.err >&5 12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12300 (exit $ac_status); } && 12301 { ac_try='test -z "$ac_c_werror_flag" 12302 || test ! -s conftest.err' 12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12304 (eval $ac_try) 2>&5 12305 ac_status=$? 12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12307 (exit $ac_status); }; } && 12308 { ac_try='test -s conftest.$ac_objext' 12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12310 (eval $ac_try) 2>&5 12311 ac_status=$? 12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12313 (exit $ac_status); }; }; then 12314 bfd_cv_have_sys_procfs_type_pstatus32_t=yes 12315else 12316 echo "$as_me: failed program was:" >&5 12317sed 's/^/| /' conftest.$ac_ext >&5 12318 12319bfd_cv_have_sys_procfs_type_pstatus32_t=no 12320 12321fi 12322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12323fi 12324 12325 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then 12326 12327cat >>confdefs.h <<\_ACEOF 12328#define HAVE_PSTATUS32_T 1 12329_ACEOF 12330 12331 fi 12332 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 12333echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 12334 12335 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5 12336echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 12337 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then 12338 echo $ECHO_N "(cached) $ECHO_C" >&6 12339else 12340 cat >conftest.$ac_ext <<_ACEOF 12341/* confdefs.h. */ 12342_ACEOF 12343cat confdefs.h >>conftest.$ac_ext 12344cat >>conftest.$ac_ext <<_ACEOF 12345/* end confdefs.h. */ 12346 12347#define _SYSCALL32 12348#include <sys/procfs.h> 12349int 12350main () 12351{ 12352prpsinfo_t avar 12353 ; 12354 return 0; 12355} 12356_ACEOF 12357rm -f conftest.$ac_objext 12358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12359 (eval $ac_compile) 2>conftest.er1 12360 ac_status=$? 12361 grep -v '^ *+' conftest.er1 >conftest.err 12362 rm -f conftest.er1 12363 cat conftest.err >&5 12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12365 (exit $ac_status); } && 12366 { ac_try='test -z "$ac_c_werror_flag" 12367 || test ! -s conftest.err' 12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12369 (eval $ac_try) 2>&5 12370 ac_status=$? 12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12372 (exit $ac_status); }; } && 12373 { ac_try='test -s conftest.$ac_objext' 12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12375 (eval $ac_try) 2>&5 12376 ac_status=$? 12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12378 (exit $ac_status); }; }; then 12379 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes 12380else 12381 echo "$as_me: failed program was:" >&5 12382sed 's/^/| /' conftest.$ac_ext >&5 12383 12384bfd_cv_have_sys_procfs_type_prpsinfo_t=no 12385 12386fi 12387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12388fi 12389 12390 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then 12391 12392cat >>confdefs.h <<\_ACEOF 12393#define HAVE_PRPSINFO_T 1 12394_ACEOF 12395 12396 fi 12397 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 12398echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 12399 12400 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5 12401echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 12402 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then 12403 echo $ECHO_N "(cached) $ECHO_C" >&6 12404else 12405 cat >conftest.$ac_ext <<_ACEOF 12406/* confdefs.h. */ 12407_ACEOF 12408cat confdefs.h >>conftest.$ac_ext 12409cat >>conftest.$ac_ext <<_ACEOF 12410/* end confdefs.h. */ 12411 12412#define _SYSCALL32 12413#include <sys/procfs.h> 12414int 12415main () 12416{ 12417prpsinfo32_t avar 12418 ; 12419 return 0; 12420} 12421_ACEOF 12422rm -f conftest.$ac_objext 12423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12424 (eval $ac_compile) 2>conftest.er1 12425 ac_status=$? 12426 grep -v '^ *+' conftest.er1 >conftest.err 12427 rm -f conftest.er1 12428 cat conftest.err >&5 12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12430 (exit $ac_status); } && 12431 { ac_try='test -z "$ac_c_werror_flag" 12432 || test ! -s conftest.err' 12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12434 (eval $ac_try) 2>&5 12435 ac_status=$? 12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12437 (exit $ac_status); }; } && 12438 { ac_try='test -s conftest.$ac_objext' 12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12440 (eval $ac_try) 2>&5 12441 ac_status=$? 12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12443 (exit $ac_status); }; }; then 12444 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes 12445else 12446 echo "$as_me: failed program was:" >&5 12447sed 's/^/| /' conftest.$ac_ext >&5 12448 12449bfd_cv_have_sys_procfs_type_prpsinfo32_t=no 12450 12451fi 12452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12453fi 12454 12455 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then 12456 12457cat >>confdefs.h <<\_ACEOF 12458#define HAVE_PRPSINFO32_T 1 12459_ACEOF 12460 12461 fi 12462 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 12463echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 12464 12465 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5 12466echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 12467 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then 12468 echo $ECHO_N "(cached) $ECHO_C" >&6 12469else 12470 cat >conftest.$ac_ext <<_ACEOF 12471/* confdefs.h. */ 12472_ACEOF 12473cat confdefs.h >>conftest.$ac_ext 12474cat >>conftest.$ac_ext <<_ACEOF 12475/* end confdefs.h. */ 12476 12477#define _SYSCALL32 12478#include <sys/procfs.h> 12479int 12480main () 12481{ 12482psinfo_t avar 12483 ; 12484 return 0; 12485} 12486_ACEOF 12487rm -f conftest.$ac_objext 12488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12489 (eval $ac_compile) 2>conftest.er1 12490 ac_status=$? 12491 grep -v '^ *+' conftest.er1 >conftest.err 12492 rm -f conftest.er1 12493 cat conftest.err >&5 12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12495 (exit $ac_status); } && 12496 { ac_try='test -z "$ac_c_werror_flag" 12497 || test ! -s conftest.err' 12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12499 (eval $ac_try) 2>&5 12500 ac_status=$? 12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12502 (exit $ac_status); }; } && 12503 { ac_try='test -s conftest.$ac_objext' 12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12505 (eval $ac_try) 2>&5 12506 ac_status=$? 12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12508 (exit $ac_status); }; }; then 12509 bfd_cv_have_sys_procfs_type_psinfo_t=yes 12510else 12511 echo "$as_me: failed program was:" >&5 12512sed 's/^/| /' conftest.$ac_ext >&5 12513 12514bfd_cv_have_sys_procfs_type_psinfo_t=no 12515 12516fi 12517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12518fi 12519 12520 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then 12521 12522cat >>confdefs.h <<\_ACEOF 12523#define HAVE_PSINFO_T 1 12524_ACEOF 12525 12526 fi 12527 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 12528echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 12529 12530 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5 12531echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 12532 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then 12533 echo $ECHO_N "(cached) $ECHO_C" >&6 12534else 12535 cat >conftest.$ac_ext <<_ACEOF 12536/* confdefs.h. */ 12537_ACEOF 12538cat confdefs.h >>conftest.$ac_ext 12539cat >>conftest.$ac_ext <<_ACEOF 12540/* end confdefs.h. */ 12541 12542#define _SYSCALL32 12543#include <sys/procfs.h> 12544int 12545main () 12546{ 12547psinfo32_t avar 12548 ; 12549 return 0; 12550} 12551_ACEOF 12552rm -f conftest.$ac_objext 12553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12554 (eval $ac_compile) 2>conftest.er1 12555 ac_status=$? 12556 grep -v '^ *+' conftest.er1 >conftest.err 12557 rm -f conftest.er1 12558 cat conftest.err >&5 12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12560 (exit $ac_status); } && 12561 { ac_try='test -z "$ac_c_werror_flag" 12562 || test ! -s conftest.err' 12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12564 (eval $ac_try) 2>&5 12565 ac_status=$? 12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12567 (exit $ac_status); }; } && 12568 { ac_try='test -s conftest.$ac_objext' 12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12570 (eval $ac_try) 2>&5 12571 ac_status=$? 12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12573 (exit $ac_status); }; }; then 12574 bfd_cv_have_sys_procfs_type_psinfo32_t=yes 12575else 12576 echo "$as_me: failed program was:" >&5 12577sed 's/^/| /' conftest.$ac_ext >&5 12578 12579bfd_cv_have_sys_procfs_type_psinfo32_t=no 12580 12581fi 12582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12583fi 12584 12585 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then 12586 12587cat >>confdefs.h <<\_ACEOF 12588#define HAVE_PSINFO32_T 1 12589_ACEOF 12590 12591 fi 12592 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 12593echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 12594 12595 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5 12596echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 12597 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then 12598 echo $ECHO_N "(cached) $ECHO_C" >&6 12599else 12600 cat >conftest.$ac_ext <<_ACEOF 12601/* confdefs.h. */ 12602_ACEOF 12603cat confdefs.h >>conftest.$ac_ext 12604cat >>conftest.$ac_ext <<_ACEOF 12605/* end confdefs.h. */ 12606 12607#define _SYSCALL32 12608#include <sys/procfs.h> 12609int 12610main () 12611{ 12612lwpstatus_t avar 12613 ; 12614 return 0; 12615} 12616_ACEOF 12617rm -f conftest.$ac_objext 12618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12619 (eval $ac_compile) 2>conftest.er1 12620 ac_status=$? 12621 grep -v '^ *+' conftest.er1 >conftest.err 12622 rm -f conftest.er1 12623 cat conftest.err >&5 12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12625 (exit $ac_status); } && 12626 { ac_try='test -z "$ac_c_werror_flag" 12627 || test ! -s conftest.err' 12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12629 (eval $ac_try) 2>&5 12630 ac_status=$? 12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12632 (exit $ac_status); }; } && 12633 { ac_try='test -s conftest.$ac_objext' 12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12635 (eval $ac_try) 2>&5 12636 ac_status=$? 12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12638 (exit $ac_status); }; }; then 12639 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes 12640else 12641 echo "$as_me: failed program was:" >&5 12642sed 's/^/| /' conftest.$ac_ext >&5 12643 12644bfd_cv_have_sys_procfs_type_lwpstatus_t=no 12645 12646fi 12647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12648fi 12649 12650 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then 12651 12652cat >>confdefs.h <<\_ACEOF 12653#define HAVE_LWPSTATUS_T 1 12654_ACEOF 12655 12656 fi 12657 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 12658echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 12659 12660 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5 12661echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 12662 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then 12663 echo $ECHO_N "(cached) $ECHO_C" >&6 12664else 12665 cat >conftest.$ac_ext <<_ACEOF 12666/* confdefs.h. */ 12667_ACEOF 12668cat confdefs.h >>conftest.$ac_ext 12669cat >>conftest.$ac_ext <<_ACEOF 12670/* end confdefs.h. */ 12671 12672#define _SYSCALL32 12673#include <sys/procfs.h> 12674int 12675main () 12676{ 12677lwpxstatus_t avar 12678 ; 12679 return 0; 12680} 12681_ACEOF 12682rm -f conftest.$ac_objext 12683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12684 (eval $ac_compile) 2>conftest.er1 12685 ac_status=$? 12686 grep -v '^ *+' conftest.er1 >conftest.err 12687 rm -f conftest.er1 12688 cat conftest.err >&5 12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12690 (exit $ac_status); } && 12691 { ac_try='test -z "$ac_c_werror_flag" 12692 || test ! -s conftest.err' 12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12694 (eval $ac_try) 2>&5 12695 ac_status=$? 12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12697 (exit $ac_status); }; } && 12698 { ac_try='test -s conftest.$ac_objext' 12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12700 (eval $ac_try) 2>&5 12701 ac_status=$? 12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12703 (exit $ac_status); }; }; then 12704 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes 12705else 12706 echo "$as_me: failed program was:" >&5 12707sed 's/^/| /' conftest.$ac_ext >&5 12708 12709bfd_cv_have_sys_procfs_type_lwpxstatus_t=no 12710 12711fi 12712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12713fi 12714 12715 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then 12716 12717cat >>confdefs.h <<\_ACEOF 12718#define HAVE_LWPXSTATUS_T 1 12719_ACEOF 12720 12721 fi 12722 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 12723echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 12724 12725 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 12726echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 12727 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then 12728 echo $ECHO_N "(cached) $ECHO_C" >&6 12729else 12730 cat >conftest.$ac_ext <<_ACEOF 12731/* confdefs.h. */ 12732_ACEOF 12733cat confdefs.h >>conftest.$ac_ext 12734cat >>conftest.$ac_ext <<_ACEOF 12735/* end confdefs.h. */ 12736 12737#define _SYSCALL32 12738#include <sys/procfs.h> 12739int 12740main () 12741{ 12742lwpstatus_t avar; void* aref = (void*) &avar.pr_context 12743 ; 12744 return 0; 12745} 12746_ACEOF 12747rm -f conftest.$ac_objext 12748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12749 (eval $ac_compile) 2>conftest.er1 12750 ac_status=$? 12751 grep -v '^ *+' conftest.er1 >conftest.err 12752 rm -f conftest.er1 12753 cat conftest.err >&5 12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12755 (exit $ac_status); } && 12756 { ac_try='test -z "$ac_c_werror_flag" 12757 || test ! -s conftest.err' 12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12759 (eval $ac_try) 2>&5 12760 ac_status=$? 12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12762 (exit $ac_status); }; } && 12763 { ac_try='test -s conftest.$ac_objext' 12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12765 (eval $ac_try) 2>&5 12766 ac_status=$? 12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12768 (exit $ac_status); }; }; then 12769 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes 12770else 12771 echo "$as_me: failed program was:" >&5 12772sed 's/^/| /' conftest.$ac_ext >&5 12773 12774bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no 12775 12776fi 12777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12778fi 12779 12780 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then 12781 12782cat >>confdefs.h <<\_ACEOF 12783#define HAVE_LWPSTATUS_T_PR_CONTEXT 1 12784_ACEOF 12785 12786 fi 12787 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 12788echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 12789 12790 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 12791echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 12792 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then 12793 echo $ECHO_N "(cached) $ECHO_C" >&6 12794else 12795 cat >conftest.$ac_ext <<_ACEOF 12796/* confdefs.h. */ 12797_ACEOF 12798cat confdefs.h >>conftest.$ac_ext 12799cat >>conftest.$ac_ext <<_ACEOF 12800/* end confdefs.h. */ 12801 12802#define _SYSCALL32 12803#include <sys/procfs.h> 12804int 12805main () 12806{ 12807lwpstatus_t avar; void* aref = (void*) &avar.pr_reg 12808 ; 12809 return 0; 12810} 12811_ACEOF 12812rm -f conftest.$ac_objext 12813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12814 (eval $ac_compile) 2>conftest.er1 12815 ac_status=$? 12816 grep -v '^ *+' conftest.er1 >conftest.err 12817 rm -f conftest.er1 12818 cat conftest.err >&5 12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12820 (exit $ac_status); } && 12821 { ac_try='test -z "$ac_c_werror_flag" 12822 || test ! -s conftest.err' 12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12824 (eval $ac_try) 2>&5 12825 ac_status=$? 12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12827 (exit $ac_status); }; } && 12828 { ac_try='test -s conftest.$ac_objext' 12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12830 (eval $ac_try) 2>&5 12831 ac_status=$? 12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12833 (exit $ac_status); }; }; then 12834 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes 12835else 12836 echo "$as_me: failed program was:" >&5 12837sed 's/^/| /' conftest.$ac_ext >&5 12838 12839bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no 12840 12841fi 12842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12843fi 12844 12845 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then 12846 12847cat >>confdefs.h <<\_ACEOF 12848#define HAVE_LWPSTATUS_T_PR_REG 1 12849_ACEOF 12850 12851 fi 12852 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 12853echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 12854 12855 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5 12856echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 12857 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then 12858 echo $ECHO_N "(cached) $ECHO_C" >&6 12859else 12860 cat >conftest.$ac_ext <<_ACEOF 12861/* confdefs.h. */ 12862_ACEOF 12863cat confdefs.h >>conftest.$ac_ext 12864cat >>conftest.$ac_ext <<_ACEOF 12865/* end confdefs.h. */ 12866 12867#define _SYSCALL32 12868#include <sys/procfs.h> 12869int 12870main () 12871{ 12872win32_pstatus_t avar 12873 ; 12874 return 0; 12875} 12876_ACEOF 12877rm -f conftest.$ac_objext 12878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12879 (eval $ac_compile) 2>conftest.er1 12880 ac_status=$? 12881 grep -v '^ *+' conftest.er1 >conftest.err 12882 rm -f conftest.er1 12883 cat conftest.err >&5 12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12885 (exit $ac_status); } && 12886 { ac_try='test -z "$ac_c_werror_flag" 12887 || test ! -s conftest.err' 12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12889 (eval $ac_try) 2>&5 12890 ac_status=$? 12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12892 (exit $ac_status); }; } && 12893 { ac_try='test -s conftest.$ac_objext' 12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12895 (eval $ac_try) 2>&5 12896 ac_status=$? 12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12898 (exit $ac_status); }; }; then 12899 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes 12900else 12901 echo "$as_me: failed program was:" >&5 12902sed 's/^/| /' conftest.$ac_ext >&5 12903 12904bfd_cv_have_sys_procfs_type_win32_pstatus_t=no 12905 12906fi 12907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12908fi 12909 12910 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then 12911 12912cat >>confdefs.h <<\_ACEOF 12913#define HAVE_WIN32_PSTATUS_T 1 12914_ACEOF 12915 12916 fi 12917 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 12918echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 12919 12920 fi 12921fi 12922 12923 12924if test -n "$TRAD_HEADER"; then 12925 12926cat >>confdefs.h <<_ACEOF 12927#define TRAD_HEADER $TRAD_HEADER 12928_ACEOF 12929 12930fi 12931 12932# Horrible hacks to build DLLs on Windows. 12933WIN32LDFLAGS= 12934WIN32LIBADD= 12935case "${host}" in 12936*-*-cygwin*) 12937 if test "$enable_shared" = "yes"; then 12938 WIN32LDFLAGS="-no-undefined" 12939 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" 12940 fi 12941 ;; 12942*-*-linux*) 12943 # We borrow WIN32LIBADD so that the shared libbfd won't depend on 12944 # libiberty.a. 12945 case "${host}" in 12946 mips*-*-linux*) 12947 # Linux/MIPS uses PIC by default. 12948 if test "$enable_shared" = "yes"; then 12949 WIN32LIBADD="-L../libiberty -liberty" 12950 fi 12951 ;; 12952 *) 12953 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 12954 if test -n "$x"; then 12955 WIN32LIBADD="-L../libiberty/pic -liberty" 12956 fi 12957 ;; 12958 esac 12959 ;; 12960esac 12961 12962 12963 12964# target stuff: 12965 12966# Canonicalize the secondary target names. 12967if test -n "$enable_targets" ; then 12968 for targ in `echo $enable_targets | sed 's/,/ /g'` 12969 do 12970 result=`$ac_config_sub $targ 2>/dev/null` 12971 if test -n "$result" ; then 12972 canon_targets="$canon_targets $result" 12973 else 12974 # Allow targets that config.sub doesn't recognize, like "all". 12975 canon_targets="$canon_targets $targ" 12976 fi 12977 done 12978fi 12979 12980all_targets=false 12981defvec= 12982selvecs= 12983assocvecs= 12984selarchs= 12985TDEFINES= 12986for targ in $target $canon_targets 12987do 12988 if test "x$targ" = "xall"; then 12989 all_targets=true 12990 assocvecs="$assocvecs $targ_defvec $targ_selvecs" 12991 else 12992 . $srcdir/config.bfd 12993 if test "x$targ" = "x$target"; then 12994 defvec=$targ_defvec 12995 fi 12996 selvecs="$selvecs $targ_defvec $targ_selvecs" 12997 selarchs="$selarchs $targ_archs" 12998 TDEFINES="$TDEFINES $targ_cflags" 12999 fi 13000done 13001 13002 13003# This processing still needs to be done if we're to decide properly whether 13004# 64-bit support needs to be compiled in. Currently, it will be included if 13005# the default or any other explicitly requested target requires it; it 13006# will not be included on a 32-bit host if no 64-bit target is requested, and 13007# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 13008# used. 13009 13010# uniq the default and selected vectors in all the configured targets. 13011f="" 13012for i in $selvecs ; do 13013 case " $f " in 13014 *" $i "*) ;; 13015 *) f="$f $i" ;; 13016 esac 13017done 13018selvecs="$f" 13019 13020 13021# uniq the associated vectors in all the configured targets. 13022f="" 13023for i in $assocvecs ; do 13024 case " $f " in 13025 *" $i "*) ;; 13026 *) f="$f $i" ;; 13027 esac 13028done 13029assocvecs="$f" 13030 13031 13032# uniq the architectures in all the configured targets. 13033f="" 13034for i in $selarchs ; do 13035 case " $f " in 13036 *" $i "*) ;; 13037 *) f="$f $i" ;; 13038 esac 13039done 13040selarchs="$f" 13041 13042# Target backend .o files. 13043tb= 13044 13045elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" 13046 13047for vec in $selvecs 13048do 13049 target_size=32 13050 case "$vec" in 13051 # This list is alphabetized to make it easy to compare 13052 # with the two vector lists in targets.c. For the same reason, 13053 # use one entry per line, even though this leads to long lines. 13054 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; 13055 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; 13056 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; 13057 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; 13058 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; 13059 apollocoff_vec) tb="$tb coff-apollo.lo" ;; 13060 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 13061 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 13062 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 13063 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 13064 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 13065 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 13066 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; 13067 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 13068 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 13069 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 13070 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 13071 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; 13072 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; 13073 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; 13074 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; 13075 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pepigen.lo cofflink.lo"; target_size=64 ;; 13076 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; 13077 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 13078 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 13079 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 13080 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 13081 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 13082 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 13083 bfd_elf32_bigarm_symbian_vec) 13084 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 13085 bfd_elf32_bigarm_vxworks_vec) 13086 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 13087 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 13088 bfd_elf32_bigmips_vxworks_vec) 13089 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 13090 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; 13091 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 13092 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; 13093 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 13094 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 13095 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; 13096 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 13097 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 13098 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 13099 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 13100 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 13101 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 13102 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 13103 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; 13104 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; 13105 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; 13106 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; 13107 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 13108 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 13109 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; 13110 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; 13111 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; 13112 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; 13113 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; 13114 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 13115 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 13116 bfd_elf32_littlearm_symbian_vec) 13117 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 13118 bfd_elf32_littlearm_vxworks_vec) 13119 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 13120 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 13121 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 13122 bfd_elf32_littlemips_vxworks_vec) 13123 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 13124 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; 13125 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 13126 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 13127 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 13128 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 13129 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 13130 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 13131 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 13132 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; 13133 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 13134 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 13135 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 13136 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 13137 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; 13138 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 13139 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 13140 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 13141 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 13142 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 13143 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; 13144 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; 13145 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 13146 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 13147 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 13148 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 13149 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 13150 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; 13151 # FIXME: We include cofflink.lo not because it's needed for 13152 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec 13153 # which needs it but does not list it. Should be fixed in right place. 13154 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; 13155 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; 13156 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; 13157 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; 13158 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; 13159 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; 13160 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 13161 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 13162 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 13163 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;; 13164 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 13165 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 13166 bfd_elf32_shlobsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 13167 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 13168 bfd_elf32_shobsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 13169 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 13170 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 13171 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 13172 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 13173 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 13174 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 13175 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; 13176 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; 13177 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; 13178 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 13179 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 13180 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 13181 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 13182 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 13183 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 13184 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 13185 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 13186 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 13187 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 13188 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 13189 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 13190 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 13191 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; 13192 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 13193 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 13194 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; 13195 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 13196 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 13197 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 13198 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 13199 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 13200 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 13201 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 13202 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 13203 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 13204 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; 13205 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; 13206 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 13207 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 13208 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 13209 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 13210 cris_aout_vec) tb="$tb aout-cris.lo" ;; 13211 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; 13212 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 13213 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 13214 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 13215 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; 13216 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; 13217 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; 13218 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; 13219 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; 13220 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 13221 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; 13222 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; 13223 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 13224 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 13225 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; 13226 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; 13227 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; 13228 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; 13229 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 13230 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; 13231 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; 13232 i386msdos_vec) tb="$tb i386msdos.lo" ;; 13233 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 13234 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; 13235 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; 13236 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; 13237 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; 13238 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 13239 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 13240 ieee_vec) tb="$tb ieee.lo" ;; 13241 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; 13242 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; 13243 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; 13244 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; 13245 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; 13246 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; 13247 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; 13248 m88kbcs_vec) tb="$tb coff-m88k.lo" ;; 13249 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; 13250 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; 13251 maxqcoff_vec) tb="$tb coff-maxq.lo" ;; 13252 mach_o_be_vec) tb="$tb mach-o.lo" ;; 13253 mach_o_le_vec) tb="$tb mach-o.lo" ;; 13254 mach_o_fat_vec) tb="$tb mach-o.lo" ;; 13255 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 13256 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 13257 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 13258 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 13259 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; 13260 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; 13261 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; 13262 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; 13263 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; 13264 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; 13265 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; 13266 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; 13267 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 13268 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 13269 pef_vec) tb="$tb pef.lo" ;; 13270 pef_xlib_vec) tb="$tb pef.lo" ;; 13271 pdp11_aout_vec) tb="$tb pdp11.lo" ;; 13272 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 13273 ppcboot_vec) tb="$tb ppcboot.lo" ;; 13274 riscix_vec) tb="$tb aout32.lo riscix.lo" ;; 13275 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; 13276 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 13277 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 13278 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 13279 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 13280 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 13281 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; 13282 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; 13283 som_vec) tb="$tb som.lo" ;; 13284 sparccoff_vec) tb="$tb coff-sparc.lo" ;; 13285 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; 13286 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; 13287 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; 13288 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; 13289 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; 13290 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; 13291 sym_vec) tb="$tb xsym.lo" ;; 13292 tic30_aout_vec) tb="$tb aout-tic30.lo" ;; 13293 tic30_coff_vec) tb="$tb coff-tic30.lo" ;; 13294 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; 13295 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; 13296 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; 13297 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; 13298 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; 13299 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; 13300 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; 13301 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; 13302 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; 13303 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; 13304 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; 13305 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; 13306 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; 13307 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; 13308 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; 13309 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; 13310 versados_vec) tb="$tb versados.lo" ;; 13311 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; 13312 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; 13313 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; 13314 we32kcoff_vec) tb="$tb coff-we32k.lo" ;; 13315 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;; 13316 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;; 13317 13318 # These appear out of order in targets.c 13319 srec_vec) tb="$tb srec.lo" ;; 13320 symbolsrec_vec) tb="$tb srec.lo" ;; 13321 tekhex_vec) tb="$tb tekhex.lo" ;; 13322 cisco_core_big_vec) tb="$tb cisco-core.lo" ;; 13323 cisco_core_little_vec) tb="$tb cisco-core.lo" ;; 13324 13325 "") ;; 13326 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5 13327echo "$as_me: error: *** unknown target vector $vec" >&2;} 13328 { (exit 1); exit 1; }; } ;; 13329 esac 13330 13331 if test ${target_size} = 64; then 13332 target64=true 13333 fi 13334 if test x"${vec}" = x"${defvec}"; then 13335 bfd_default_target_size=${target_size} 13336 fi 13337done 13338 13339# Target architecture .o files. 13340# A couple of CPUs use shorter file names to avoid problems on DOS 13341# filesystems. 13342ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 13343 13344# Weed out duplicate .o files. 13345f="" 13346for i in $tb ; do 13347 case " $f " in 13348 *" $i "*) ;; 13349 *) f="$f $i" ;; 13350 esac 13351done 13352tb="$f" 13353 13354f="" 13355for i in $ta ; do 13356 case " $f " in 13357 *" $i "*) ;; 13358 *) f="$f $i" ;; 13359 esac 13360done 13361ta="$f" 13362 13363bfd_backends="$tb" 13364bfd_machines="$ta" 13365 13366if test x${all_targets} = xtrue ; then 13367 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 13368 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 13369 selvecs= 13370 havevecs= 13371 selarchs= 13372 test -n "$assocvecs" && 13373 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 13374else # all_targets is true 13375 # Only set these if they will be nonempty, for the clever echo. 13376 havevecs= 13377 assocvecs= 13378 test -n "$selvecs" && 13379 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 13380 test -n "$selvecs" && 13381 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 13382 test -n "$selarchs" && 13383 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 13384fi # all_targets is true 13385 13386case ${host64}-${target64}-${want64} in 13387 *true*) 13388 wordsize=64 13389 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)' 13390 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 13391 if test $BFD_HOST_64_BIT_DEFINED = 0; then 13392 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5 13393echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} 13394 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5 13395echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} 13396 fi 13397 if test -n "$GCC" ; then 13398 bad_64bit_gcc=no; 13399 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5 13400echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6 13401 # Add more tests for gcc versions with non-working 64-bit support here. 13402 cat >conftest.$ac_ext <<_ACEOF 13403/* confdefs.h. */ 13404_ACEOF 13405cat confdefs.h >>conftest.$ac_ext 13406cat >>conftest.$ac_ext <<_ACEOF 13407/* end confdefs.h. */ 13408:__GNUC__:__GNUC_MINOR__:__i386__: 13409_ACEOF 13410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13411 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then 13412 bad_64bit_gcc=yes; 13413 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5 13414echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6 13415else 13416 echo "$as_me:$LINENO: result: no" >&5 13417echo "${ECHO_T}no" >&6 13418fi 13419rm -f conftest* 13420 13421 if test $bad_64bit_gcc = yes ; then 13422 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5 13423echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;} 13424 { (exit 1); exit 1; }; } 13425 fi 13426 fi 13427 ;; 13428 false-false-false) 13429 wordsize=32 13430 bfd_libs='$(BFD32_LIBS)' 13431 all_backends='$(BFD32_BACKENDS)' 13432 ;; 13433esac 13434 13435 13436 13437 13438 13439 13440 13441 13442# Determine the host dependant file_ptr a.k.a. off_t type. In order 13443# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and 13444# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. 13445# Hopefully a reasonable assumption since fseeko et.al. should be 13446# upward compatible. 13447 13448 13449 13450 13451 13452for ac_func in ftello ftello64 fseeko fseeko64 fopen64 13453do 13454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13455echo "$as_me:$LINENO: checking for $ac_func" >&5 13456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13457if eval "test \"\${$as_ac_var+set}\" = set"; then 13458 echo $ECHO_N "(cached) $ECHO_C" >&6 13459else 13460 cat >conftest.$ac_ext <<_ACEOF 13461/* confdefs.h. */ 13462_ACEOF 13463cat confdefs.h >>conftest.$ac_ext 13464cat >>conftest.$ac_ext <<_ACEOF 13465/* end confdefs.h. */ 13466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13467 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13468#define $ac_func innocuous_$ac_func 13469 13470/* System header to define __stub macros and hopefully few prototypes, 13471 which can conflict with char $ac_func (); below. 13472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13473 <limits.h> exists even on freestanding compilers. */ 13474 13475#ifdef __STDC__ 13476# include <limits.h> 13477#else 13478# include <assert.h> 13479#endif 13480 13481#undef $ac_func 13482 13483/* Override any gcc2 internal prototype to avoid an error. */ 13484#ifdef __cplusplus 13485extern "C" 13486{ 13487#endif 13488/* We use char because int might match the return type of a gcc2 13489 builtin and then its argument prototype would still apply. */ 13490char $ac_func (); 13491/* The GNU C library defines this for functions which it implements 13492 to always fail with ENOSYS. Some functions are actually named 13493 something starting with __ and the normal name is an alias. */ 13494#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13495choke me 13496#else 13497char (*f) () = $ac_func; 13498#endif 13499#ifdef __cplusplus 13500} 13501#endif 13502 13503int 13504main () 13505{ 13506return f != $ac_func; 13507 ; 13508 return 0; 13509} 13510_ACEOF 13511rm -f conftest.$ac_objext conftest$ac_exeext 13512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13513 (eval $ac_link) 2>conftest.er1 13514 ac_status=$? 13515 grep -v '^ *+' conftest.er1 >conftest.err 13516 rm -f conftest.er1 13517 cat conftest.err >&5 13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13519 (exit $ac_status); } && 13520 { ac_try='test -z "$ac_c_werror_flag" 13521 || test ! -s conftest.err' 13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13523 (eval $ac_try) 2>&5 13524 ac_status=$? 13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13526 (exit $ac_status); }; } && 13527 { ac_try='test -s conftest$ac_exeext' 13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13529 (eval $ac_try) 2>&5 13530 ac_status=$? 13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13532 (exit $ac_status); }; }; then 13533 eval "$as_ac_var=yes" 13534else 13535 echo "$as_me: failed program was:" >&5 13536sed 's/^/| /' conftest.$ac_ext >&5 13537 13538eval "$as_ac_var=no" 13539fi 13540rm -f conftest.err conftest.$ac_objext \ 13541 conftest$ac_exeext conftest.$ac_ext 13542fi 13543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13544echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13545if test `eval echo '${'$as_ac_var'}'` = yes; then 13546 cat >>confdefs.h <<_ACEOF 13547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13548_ACEOF 13549 13550fi 13551done 13552 13553if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then 13554 echo "$as_me:$LINENO: checking for off_t" >&5 13555echo $ECHO_N "checking for off_t... $ECHO_C" >&6 13556if test "${ac_cv_type_off_t+set}" = set; then 13557 echo $ECHO_N "(cached) $ECHO_C" >&6 13558else 13559 cat >conftest.$ac_ext <<_ACEOF 13560/* confdefs.h. */ 13561_ACEOF 13562cat confdefs.h >>conftest.$ac_ext 13563cat >>conftest.$ac_ext <<_ACEOF 13564/* end confdefs.h. */ 13565$ac_includes_default 13566int 13567main () 13568{ 13569if ((off_t *) 0) 13570 return 0; 13571if (sizeof (off_t)) 13572 return 0; 13573 ; 13574 return 0; 13575} 13576_ACEOF 13577rm -f conftest.$ac_objext 13578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13579 (eval $ac_compile) 2>conftest.er1 13580 ac_status=$? 13581 grep -v '^ *+' conftest.er1 >conftest.err 13582 rm -f conftest.er1 13583 cat conftest.err >&5 13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13585 (exit $ac_status); } && 13586 { ac_try='test -z "$ac_c_werror_flag" 13587 || test ! -s conftest.err' 13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13589 (eval $ac_try) 2>&5 13590 ac_status=$? 13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13592 (exit $ac_status); }; } && 13593 { ac_try='test -s conftest.$ac_objext' 13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13595 (eval $ac_try) 2>&5 13596 ac_status=$? 13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13598 (exit $ac_status); }; }; then 13599 ac_cv_type_off_t=yes 13600else 13601 echo "$as_me: failed program was:" >&5 13602sed 's/^/| /' conftest.$ac_ext >&5 13603 13604ac_cv_type_off_t=no 13605fi 13606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13607fi 13608echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 13609echo "${ECHO_T}$ac_cv_type_off_t" >&6 13610 13611echo "$as_me:$LINENO: checking size of off_t" >&5 13612echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 13613if test "${ac_cv_sizeof_off_t+set}" = set; then 13614 echo $ECHO_N "(cached) $ECHO_C" >&6 13615else 13616 if test "$ac_cv_type_off_t" = yes; then 13617 # The cast to unsigned long works around a bug in the HP C Compiler 13618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13620 # This bug is HP SR number 8606223364. 13621 if test "$cross_compiling" = yes; then 13622 # Depending upon the size, compute the lo and hi bounds. 13623cat >conftest.$ac_ext <<_ACEOF 13624/* confdefs.h. */ 13625_ACEOF 13626cat confdefs.h >>conftest.$ac_ext 13627cat >>conftest.$ac_ext <<_ACEOF 13628/* end confdefs.h. */ 13629$ac_includes_default 13630int 13631main () 13632{ 13633static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)]; 13634test_array [0] = 0 13635 13636 ; 13637 return 0; 13638} 13639_ACEOF 13640rm -f conftest.$ac_objext 13641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13642 (eval $ac_compile) 2>conftest.er1 13643 ac_status=$? 13644 grep -v '^ *+' conftest.er1 >conftest.err 13645 rm -f conftest.er1 13646 cat conftest.err >&5 13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13648 (exit $ac_status); } && 13649 { ac_try='test -z "$ac_c_werror_flag" 13650 || test ! -s conftest.err' 13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13652 (eval $ac_try) 2>&5 13653 ac_status=$? 13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13655 (exit $ac_status); }; } && 13656 { ac_try='test -s conftest.$ac_objext' 13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13658 (eval $ac_try) 2>&5 13659 ac_status=$? 13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13661 (exit $ac_status); }; }; then 13662 ac_lo=0 ac_mid=0 13663 while :; do 13664 cat >conftest.$ac_ext <<_ACEOF 13665/* confdefs.h. */ 13666_ACEOF 13667cat confdefs.h >>conftest.$ac_ext 13668cat >>conftest.$ac_ext <<_ACEOF 13669/* end confdefs.h. */ 13670$ac_includes_default 13671int 13672main () 13673{ 13674static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; 13675test_array [0] = 0 13676 13677 ; 13678 return 0; 13679} 13680_ACEOF 13681rm -f conftest.$ac_objext 13682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13683 (eval $ac_compile) 2>conftest.er1 13684 ac_status=$? 13685 grep -v '^ *+' conftest.er1 >conftest.err 13686 rm -f conftest.er1 13687 cat conftest.err >&5 13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13689 (exit $ac_status); } && 13690 { ac_try='test -z "$ac_c_werror_flag" 13691 || test ! -s conftest.err' 13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13693 (eval $ac_try) 2>&5 13694 ac_status=$? 13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13696 (exit $ac_status); }; } && 13697 { ac_try='test -s conftest.$ac_objext' 13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13699 (eval $ac_try) 2>&5 13700 ac_status=$? 13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13702 (exit $ac_status); }; }; then 13703 ac_hi=$ac_mid; break 13704else 13705 echo "$as_me: failed program was:" >&5 13706sed 's/^/| /' conftest.$ac_ext >&5 13707 13708ac_lo=`expr $ac_mid + 1` 13709 if test $ac_lo -le $ac_mid; then 13710 ac_lo= ac_hi= 13711 break 13712 fi 13713 ac_mid=`expr 2 '*' $ac_mid + 1` 13714fi 13715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13716 done 13717else 13718 echo "$as_me: failed program was:" >&5 13719sed 's/^/| /' conftest.$ac_ext >&5 13720 13721cat >conftest.$ac_ext <<_ACEOF 13722/* confdefs.h. */ 13723_ACEOF 13724cat confdefs.h >>conftest.$ac_ext 13725cat >>conftest.$ac_ext <<_ACEOF 13726/* end confdefs.h. */ 13727$ac_includes_default 13728int 13729main () 13730{ 13731static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)]; 13732test_array [0] = 0 13733 13734 ; 13735 return 0; 13736} 13737_ACEOF 13738rm -f conftest.$ac_objext 13739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13740 (eval $ac_compile) 2>conftest.er1 13741 ac_status=$? 13742 grep -v '^ *+' conftest.er1 >conftest.err 13743 rm -f conftest.er1 13744 cat conftest.err >&5 13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13746 (exit $ac_status); } && 13747 { ac_try='test -z "$ac_c_werror_flag" 13748 || test ! -s conftest.err' 13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13750 (eval $ac_try) 2>&5 13751 ac_status=$? 13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13753 (exit $ac_status); }; } && 13754 { ac_try='test -s conftest.$ac_objext' 13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13756 (eval $ac_try) 2>&5 13757 ac_status=$? 13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13759 (exit $ac_status); }; }; then 13760 ac_hi=-1 ac_mid=-1 13761 while :; do 13762 cat >conftest.$ac_ext <<_ACEOF 13763/* confdefs.h. */ 13764_ACEOF 13765cat confdefs.h >>conftest.$ac_ext 13766cat >>conftest.$ac_ext <<_ACEOF 13767/* end confdefs.h. */ 13768$ac_includes_default 13769int 13770main () 13771{ 13772static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)]; 13773test_array [0] = 0 13774 13775 ; 13776 return 0; 13777} 13778_ACEOF 13779rm -f conftest.$ac_objext 13780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13781 (eval $ac_compile) 2>conftest.er1 13782 ac_status=$? 13783 grep -v '^ *+' conftest.er1 >conftest.err 13784 rm -f conftest.er1 13785 cat conftest.err >&5 13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13787 (exit $ac_status); } && 13788 { ac_try='test -z "$ac_c_werror_flag" 13789 || test ! -s conftest.err' 13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13791 (eval $ac_try) 2>&5 13792 ac_status=$? 13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13794 (exit $ac_status); }; } && 13795 { ac_try='test -s conftest.$ac_objext' 13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13797 (eval $ac_try) 2>&5 13798 ac_status=$? 13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13800 (exit $ac_status); }; }; then 13801 ac_lo=$ac_mid; break 13802else 13803 echo "$as_me: failed program was:" >&5 13804sed 's/^/| /' conftest.$ac_ext >&5 13805 13806ac_hi=`expr '(' $ac_mid ')' - 1` 13807 if test $ac_mid -le $ac_hi; then 13808 ac_lo= ac_hi= 13809 break 13810 fi 13811 ac_mid=`expr 2 '*' $ac_mid` 13812fi 13813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13814 done 13815else 13816 echo "$as_me: failed program was:" >&5 13817sed 's/^/| /' conftest.$ac_ext >&5 13818 13819ac_lo= ac_hi= 13820fi 13821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13822fi 13823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13824# Binary search between lo and hi bounds. 13825while test "x$ac_lo" != "x$ac_hi"; do 13826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13827 cat >conftest.$ac_ext <<_ACEOF 13828/* confdefs.h. */ 13829_ACEOF 13830cat confdefs.h >>conftest.$ac_ext 13831cat >>conftest.$ac_ext <<_ACEOF 13832/* end confdefs.h. */ 13833$ac_includes_default 13834int 13835main () 13836{ 13837static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; 13838test_array [0] = 0 13839 13840 ; 13841 return 0; 13842} 13843_ACEOF 13844rm -f conftest.$ac_objext 13845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13846 (eval $ac_compile) 2>conftest.er1 13847 ac_status=$? 13848 grep -v '^ *+' conftest.er1 >conftest.err 13849 rm -f conftest.er1 13850 cat conftest.err >&5 13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13852 (exit $ac_status); } && 13853 { ac_try='test -z "$ac_c_werror_flag" 13854 || test ! -s conftest.err' 13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13856 (eval $ac_try) 2>&5 13857 ac_status=$? 13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13859 (exit $ac_status); }; } && 13860 { ac_try='test -s conftest.$ac_objext' 13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13862 (eval $ac_try) 2>&5 13863 ac_status=$? 13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13865 (exit $ac_status); }; }; then 13866 ac_hi=$ac_mid 13867else 13868 echo "$as_me: failed program was:" >&5 13869sed 's/^/| /' conftest.$ac_ext >&5 13870 13871ac_lo=`expr '(' $ac_mid ')' + 1` 13872fi 13873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13874done 13875case $ac_lo in 13876?*) ac_cv_sizeof_off_t=$ac_lo;; 13877'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 13878See \`config.log' for more details." >&5 13879echo "$as_me: error: cannot compute sizeof (off_t), 77 13880See \`config.log' for more details." >&2;} 13881 { (exit 1); exit 1; }; } ;; 13882esac 13883else 13884 if test "$cross_compiling" = yes; then 13885 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13886See \`config.log' for more details." >&5 13887echo "$as_me: error: cannot run test program while cross compiling 13888See \`config.log' for more details." >&2;} 13889 { (exit 1); exit 1; }; } 13890else 13891 cat >conftest.$ac_ext <<_ACEOF 13892/* confdefs.h. */ 13893_ACEOF 13894cat confdefs.h >>conftest.$ac_ext 13895cat >>conftest.$ac_ext <<_ACEOF 13896/* end confdefs.h. */ 13897$ac_includes_default 13898long longval () { return (long) (sizeof (off_t)); } 13899unsigned long ulongval () { return (long) (sizeof (off_t)); } 13900#include <stdio.h> 13901#include <stdlib.h> 13902int 13903main () 13904{ 13905 13906 FILE *f = fopen ("conftest.val", "w"); 13907 if (! f) 13908 exit (1); 13909 if (((long) (sizeof (off_t))) < 0) 13910 { 13911 long i = longval (); 13912 if (i != ((long) (sizeof (off_t)))) 13913 exit (1); 13914 fprintf (f, "%ld\n", i); 13915 } 13916 else 13917 { 13918 unsigned long i = ulongval (); 13919 if (i != ((long) (sizeof (off_t)))) 13920 exit (1); 13921 fprintf (f, "%lu\n", i); 13922 } 13923 exit (ferror (f) || fclose (f) != 0); 13924 13925 ; 13926 return 0; 13927} 13928_ACEOF 13929rm -f conftest$ac_exeext 13930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13931 (eval $ac_link) 2>&5 13932 ac_status=$? 13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13936 (eval $ac_try) 2>&5 13937 ac_status=$? 13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13939 (exit $ac_status); }; }; then 13940 ac_cv_sizeof_off_t=`cat conftest.val` 13941else 13942 echo "$as_me: program exited with status $ac_status" >&5 13943echo "$as_me: failed program was:" >&5 13944sed 's/^/| /' conftest.$ac_ext >&5 13945 13946( exit $ac_status ) 13947{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 13948See \`config.log' for more details." >&5 13949echo "$as_me: error: cannot compute sizeof (off_t), 77 13950See \`config.log' for more details." >&2;} 13951 { (exit 1); exit 1; }; } 13952fi 13953rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13954fi 13955fi 13956rm -f conftest.val 13957else 13958 ac_cv_sizeof_off_t=0 13959fi 13960fi 13961echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 13962echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 13963cat >>confdefs.h <<_ACEOF 13964#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 13965_ACEOF 13966 13967 13968fi 13969echo "$as_me:$LINENO: checking file_ptr type" >&5 13970echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6 13971bfd_file_ptr="long" 13972bfd_ufile_ptr="unsigned long" 13973if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ 13974 -o x"${ac_cv_sizeof_off_t}" = x8; then 13975 bfd_file_ptr=BFD_HOST_64_BIT 13976 bfd_ufile_ptr=BFD_HOST_U_64_BIT 13977fi 13978echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5 13979echo "${ECHO_T}$bfd_file_ptr" >&6 13980 13981 13982 13983 13984tdefaults="" 13985test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 13986test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 13987test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" 13988test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 13989test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" 13990 13991 13992 13993 13994for ac_header in stdlib.h unistd.h 13995do 13996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13997if eval "test \"\${$as_ac_Header+set}\" = set"; then 13998 echo "$as_me:$LINENO: checking for $ac_header" >&5 13999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14000if eval "test \"\${$as_ac_Header+set}\" = set"; then 14001 echo $ECHO_N "(cached) $ECHO_C" >&6 14002fi 14003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14005else 14006 # Is the header compilable? 14007echo "$as_me:$LINENO: checking $ac_header usability" >&5 14008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 14009cat >conftest.$ac_ext <<_ACEOF 14010/* confdefs.h. */ 14011_ACEOF 14012cat confdefs.h >>conftest.$ac_ext 14013cat >>conftest.$ac_ext <<_ACEOF 14014/* end confdefs.h. */ 14015$ac_includes_default 14016#include <$ac_header> 14017_ACEOF 14018rm -f conftest.$ac_objext 14019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14020 (eval $ac_compile) 2>conftest.er1 14021 ac_status=$? 14022 grep -v '^ *+' conftest.er1 >conftest.err 14023 rm -f conftest.er1 14024 cat conftest.err >&5 14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14026 (exit $ac_status); } && 14027 { ac_try='test -z "$ac_c_werror_flag" 14028 || test ! -s conftest.err' 14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14030 (eval $ac_try) 2>&5 14031 ac_status=$? 14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14033 (exit $ac_status); }; } && 14034 { ac_try='test -s conftest.$ac_objext' 14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14036 (eval $ac_try) 2>&5 14037 ac_status=$? 14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14039 (exit $ac_status); }; }; then 14040 ac_header_compiler=yes 14041else 14042 echo "$as_me: failed program was:" >&5 14043sed 's/^/| /' conftest.$ac_ext >&5 14044 14045ac_header_compiler=no 14046fi 14047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14048echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14049echo "${ECHO_T}$ac_header_compiler" >&6 14050 14051# Is the header present? 14052echo "$as_me:$LINENO: checking $ac_header presence" >&5 14053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 14054cat >conftest.$ac_ext <<_ACEOF 14055/* confdefs.h. */ 14056_ACEOF 14057cat confdefs.h >>conftest.$ac_ext 14058cat >>conftest.$ac_ext <<_ACEOF 14059/* end confdefs.h. */ 14060#include <$ac_header> 14061_ACEOF 14062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14064 ac_status=$? 14065 grep -v '^ *+' conftest.er1 >conftest.err 14066 rm -f conftest.er1 14067 cat conftest.err >&5 14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14069 (exit $ac_status); } >/dev/null; then 14070 if test -s conftest.err; then 14071 ac_cpp_err=$ac_c_preproc_warn_flag 14072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14073 else 14074 ac_cpp_err= 14075 fi 14076else 14077 ac_cpp_err=yes 14078fi 14079if test -z "$ac_cpp_err"; then 14080 ac_header_preproc=yes 14081else 14082 echo "$as_me: failed program was:" >&5 14083sed 's/^/| /' conftest.$ac_ext >&5 14084 14085 ac_header_preproc=no 14086fi 14087rm -f conftest.err conftest.$ac_ext 14088echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14089echo "${ECHO_T}$ac_header_preproc" >&6 14090 14091# So? What about this header? 14092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14093 yes:no: ) 14094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14095echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14097echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14098 ac_header_preproc=yes 14099 ;; 14100 no:yes:* ) 14101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14102echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14104echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14106echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14108echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14110echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14112echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14113 ( 14114 cat <<\_ASBOX 14115## ------------------------------------------ ## 14116## Report this to the AC_PACKAGE_NAME lists. ## 14117## ------------------------------------------ ## 14118_ASBOX 14119 ) | 14120 sed "s/^/$as_me: WARNING: /" >&2 14121 ;; 14122esac 14123echo "$as_me:$LINENO: checking for $ac_header" >&5 14124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14125if eval "test \"\${$as_ac_Header+set}\" = set"; then 14126 echo $ECHO_N "(cached) $ECHO_C" >&6 14127else 14128 eval "$as_ac_Header=\$ac_header_preproc" 14129fi 14130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14132 14133fi 14134if test `eval echo '${'$as_ac_Header'}'` = yes; then 14135 cat >>confdefs.h <<_ACEOF 14136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14137_ACEOF 14138 14139fi 14140 14141done 14142 14143 14144for ac_func in getpagesize 14145do 14146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14147echo "$as_me:$LINENO: checking for $ac_func" >&5 14148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14149if eval "test \"\${$as_ac_var+set}\" = set"; then 14150 echo $ECHO_N "(cached) $ECHO_C" >&6 14151else 14152 cat >conftest.$ac_ext <<_ACEOF 14153/* confdefs.h. */ 14154_ACEOF 14155cat confdefs.h >>conftest.$ac_ext 14156cat >>conftest.$ac_ext <<_ACEOF 14157/* end confdefs.h. */ 14158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14159 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14160#define $ac_func innocuous_$ac_func 14161 14162/* System header to define __stub macros and hopefully few prototypes, 14163 which can conflict with char $ac_func (); below. 14164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14165 <limits.h> exists even on freestanding compilers. */ 14166 14167#ifdef __STDC__ 14168# include <limits.h> 14169#else 14170# include <assert.h> 14171#endif 14172 14173#undef $ac_func 14174 14175/* Override any gcc2 internal prototype to avoid an error. */ 14176#ifdef __cplusplus 14177extern "C" 14178{ 14179#endif 14180/* We use char because int might match the return type of a gcc2 14181 builtin and then its argument prototype would still apply. */ 14182char $ac_func (); 14183/* The GNU C library defines this for functions which it implements 14184 to always fail with ENOSYS. Some functions are actually named 14185 something starting with __ and the normal name is an alias. */ 14186#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14187choke me 14188#else 14189char (*f) () = $ac_func; 14190#endif 14191#ifdef __cplusplus 14192} 14193#endif 14194 14195int 14196main () 14197{ 14198return f != $ac_func; 14199 ; 14200 return 0; 14201} 14202_ACEOF 14203rm -f conftest.$ac_objext conftest$ac_exeext 14204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14205 (eval $ac_link) 2>conftest.er1 14206 ac_status=$? 14207 grep -v '^ *+' conftest.er1 >conftest.err 14208 rm -f conftest.er1 14209 cat conftest.err >&5 14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14211 (exit $ac_status); } && 14212 { ac_try='test -z "$ac_c_werror_flag" 14213 || test ! -s conftest.err' 14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14215 (eval $ac_try) 2>&5 14216 ac_status=$? 14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14218 (exit $ac_status); }; } && 14219 { ac_try='test -s conftest$ac_exeext' 14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14221 (eval $ac_try) 2>&5 14222 ac_status=$? 14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14224 (exit $ac_status); }; }; then 14225 eval "$as_ac_var=yes" 14226else 14227 echo "$as_me: failed program was:" >&5 14228sed 's/^/| /' conftest.$ac_ext >&5 14229 14230eval "$as_ac_var=no" 14231fi 14232rm -f conftest.err conftest.$ac_objext \ 14233 conftest$ac_exeext conftest.$ac_ext 14234fi 14235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14236echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14237if test `eval echo '${'$as_ac_var'}'` = yes; then 14238 cat >>confdefs.h <<_ACEOF 14239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14240_ACEOF 14241 14242fi 14243done 14244 14245echo "$as_me:$LINENO: checking for working mmap" >&5 14246echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 14247if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 14248 echo $ECHO_N "(cached) $ECHO_C" >&6 14249else 14250 if test "$cross_compiling" = yes; then 14251 ac_cv_func_mmap_fixed_mapped=no 14252else 14253 cat >conftest.$ac_ext <<_ACEOF 14254/* confdefs.h. */ 14255_ACEOF 14256cat confdefs.h >>conftest.$ac_ext 14257cat >>conftest.$ac_ext <<_ACEOF 14258/* end confdefs.h. */ 14259$ac_includes_default 14260/* malloc might have been renamed as rpl_malloc. */ 14261#undef malloc 14262 14263/* Thanks to Mike Haertel and Jim Avera for this test. 14264 Here is a matrix of mmap possibilities: 14265 mmap private not fixed 14266 mmap private fixed at somewhere currently unmapped 14267 mmap private fixed at somewhere already mapped 14268 mmap shared not fixed 14269 mmap shared fixed at somewhere currently unmapped 14270 mmap shared fixed at somewhere already mapped 14271 For private mappings, we should verify that changes cannot be read() 14272 back from the file, nor mmap's back from the file at a different 14273 address. (There have been systems where private was not correctly 14274 implemented like the infamous i386 svr4.0, and systems where the 14275 VM page cache was not coherent with the file system buffer cache 14276 like early versions of FreeBSD and possibly contemporary NetBSD.) 14277 For shared mappings, we should conversely verify that changes get 14278 propagated back to all the places they're supposed to be. 14279 14280 Grep wants private fixed already mapped. 14281 The main things grep needs to know about mmap are: 14282 * does it exist and is it safe to write into the mmap'd area 14283 * how to use it (BSD variants) */ 14284 14285#include <fcntl.h> 14286#include <sys/mman.h> 14287 14288#if !STDC_HEADERS && !HAVE_STDLIB_H 14289char *malloc (); 14290#endif 14291 14292/* This mess was copied from the GNU getpagesize.h. */ 14293#if !HAVE_GETPAGESIZE 14294/* Assume that all systems that can run configure have sys/param.h. */ 14295# if !HAVE_SYS_PARAM_H 14296# define HAVE_SYS_PARAM_H 1 14297# endif 14298 14299# ifdef _SC_PAGESIZE 14300# define getpagesize() sysconf(_SC_PAGESIZE) 14301# else /* no _SC_PAGESIZE */ 14302# if HAVE_SYS_PARAM_H 14303# include <sys/param.h> 14304# ifdef EXEC_PAGESIZE 14305# define getpagesize() EXEC_PAGESIZE 14306# else /* no EXEC_PAGESIZE */ 14307# ifdef NBPG 14308# define getpagesize() NBPG * CLSIZE 14309# ifndef CLSIZE 14310# define CLSIZE 1 14311# endif /* no CLSIZE */ 14312# else /* no NBPG */ 14313# ifdef NBPC 14314# define getpagesize() NBPC 14315# else /* no NBPC */ 14316# ifdef PAGESIZE 14317# define getpagesize() PAGESIZE 14318# endif /* PAGESIZE */ 14319# endif /* no NBPC */ 14320# endif /* no NBPG */ 14321# endif /* no EXEC_PAGESIZE */ 14322# else /* no HAVE_SYS_PARAM_H */ 14323# define getpagesize() 8192 /* punt totally */ 14324# endif /* no HAVE_SYS_PARAM_H */ 14325# endif /* no _SC_PAGESIZE */ 14326 14327#endif /* no HAVE_GETPAGESIZE */ 14328 14329int 14330main () 14331{ 14332 char *data, *data2, *data3; 14333 int i, pagesize; 14334 int fd; 14335 14336 pagesize = getpagesize (); 14337 14338 /* First, make a file with some known garbage in it. */ 14339 data = (char *) malloc (pagesize); 14340 if (!data) 14341 exit (1); 14342 for (i = 0; i < pagesize; ++i) 14343 *(data + i) = rand (); 14344 umask (0); 14345 fd = creat ("conftest.mmap", 0600); 14346 if (fd < 0) 14347 exit (1); 14348 if (write (fd, data, pagesize) != pagesize) 14349 exit (1); 14350 close (fd); 14351 14352 /* Next, try to mmap the file at a fixed address which already has 14353 something else allocated at it. If we can, also make sure that 14354 we see the same garbage. */ 14355 fd = open ("conftest.mmap", O_RDWR); 14356 if (fd < 0) 14357 exit (1); 14358 data2 = (char *) malloc (2 * pagesize); 14359 if (!data2) 14360 exit (1); 14361 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 14362 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 14363 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 14364 exit (1); 14365 for (i = 0; i < pagesize; ++i) 14366 if (*(data + i) != *(data2 + i)) 14367 exit (1); 14368 14369 /* Finally, make sure that changes to the mapped area do not 14370 percolate back to the file as seen by read(). (This is a bug on 14371 some variants of i386 svr4.0.) */ 14372 for (i = 0; i < pagesize; ++i) 14373 *(data2 + i) = *(data2 + i) + 1; 14374 data3 = (char *) malloc (pagesize); 14375 if (!data3) 14376 exit (1); 14377 if (read (fd, data3, pagesize) != pagesize) 14378 exit (1); 14379 for (i = 0; i < pagesize; ++i) 14380 if (*(data + i) != *(data3 + i)) 14381 exit (1); 14382 close (fd); 14383 exit (0); 14384} 14385_ACEOF 14386rm -f conftest$ac_exeext 14387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14388 (eval $ac_link) 2>&5 14389 ac_status=$? 14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14393 (eval $ac_try) 2>&5 14394 ac_status=$? 14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14396 (exit $ac_status); }; }; then 14397 ac_cv_func_mmap_fixed_mapped=yes 14398else 14399 echo "$as_me: program exited with status $ac_status" >&5 14400echo "$as_me: failed program was:" >&5 14401sed 's/^/| /' conftest.$ac_ext >&5 14402 14403( exit $ac_status ) 14404ac_cv_func_mmap_fixed_mapped=no 14405fi 14406rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14407fi 14408fi 14409echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 14410echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 14411if test $ac_cv_func_mmap_fixed_mapped = yes; then 14412 14413cat >>confdefs.h <<\_ACEOF 14414#define HAVE_MMAP 1 14415_ACEOF 14416 14417fi 14418rm -f conftest.mmap 14419 14420 14421 14422for ac_func in madvise mprotect 14423do 14424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14425echo "$as_me:$LINENO: checking for $ac_func" >&5 14426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14427if eval "test \"\${$as_ac_var+set}\" = set"; then 14428 echo $ECHO_N "(cached) $ECHO_C" >&6 14429else 14430 cat >conftest.$ac_ext <<_ACEOF 14431/* confdefs.h. */ 14432_ACEOF 14433cat confdefs.h >>conftest.$ac_ext 14434cat >>conftest.$ac_ext <<_ACEOF 14435/* end confdefs.h. */ 14436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14437 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14438#define $ac_func innocuous_$ac_func 14439 14440/* System header to define __stub macros and hopefully few prototypes, 14441 which can conflict with char $ac_func (); below. 14442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14443 <limits.h> exists even on freestanding compilers. */ 14444 14445#ifdef __STDC__ 14446# include <limits.h> 14447#else 14448# include <assert.h> 14449#endif 14450 14451#undef $ac_func 14452 14453/* Override any gcc2 internal prototype to avoid an error. */ 14454#ifdef __cplusplus 14455extern "C" 14456{ 14457#endif 14458/* We use char because int might match the return type of a gcc2 14459 builtin and then its argument prototype would still apply. */ 14460char $ac_func (); 14461/* The GNU C library defines this for functions which it implements 14462 to always fail with ENOSYS. Some functions are actually named 14463 something starting with __ and the normal name is an alias. */ 14464#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14465choke me 14466#else 14467char (*f) () = $ac_func; 14468#endif 14469#ifdef __cplusplus 14470} 14471#endif 14472 14473int 14474main () 14475{ 14476return f != $ac_func; 14477 ; 14478 return 0; 14479} 14480_ACEOF 14481rm -f conftest.$ac_objext conftest$ac_exeext 14482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14483 (eval $ac_link) 2>conftest.er1 14484 ac_status=$? 14485 grep -v '^ *+' conftest.er1 >conftest.err 14486 rm -f conftest.er1 14487 cat conftest.err >&5 14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14489 (exit $ac_status); } && 14490 { ac_try='test -z "$ac_c_werror_flag" 14491 || test ! -s conftest.err' 14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14493 (eval $ac_try) 2>&5 14494 ac_status=$? 14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14496 (exit $ac_status); }; } && 14497 { ac_try='test -s conftest$ac_exeext' 14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14499 (eval $ac_try) 2>&5 14500 ac_status=$? 14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14502 (exit $ac_status); }; }; then 14503 eval "$as_ac_var=yes" 14504else 14505 echo "$as_me: failed program was:" >&5 14506sed 's/^/| /' conftest.$ac_ext >&5 14507 14508eval "$as_ac_var=no" 14509fi 14510rm -f conftest.err conftest.$ac_objext \ 14511 conftest$ac_exeext conftest.$ac_ext 14512fi 14513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14514echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14515if test `eval echo '${'$as_ac_var'}'` = yes; then 14516 cat >>confdefs.h <<_ACEOF 14517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14518_ACEOF 14519 14520fi 14521done 14522 14523case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 14524 true+yes ) 14525cat >>confdefs.h <<\_ACEOF 14526#define USE_MMAP 1 14527_ACEOF 14528 ;; 14529esac 14530 14531rm -f doc/config.status 14532 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" 14533 14534 ac_config_commands="$ac_config_commands default" 14535 14536 14537 14538 14539 14540 14541cat >confcache <<\_ACEOF 14542# This file is a shell script that caches the results of configure 14543# tests run on this system so they can be shared between configure 14544# scripts and configure runs, see configure's option --config-cache. 14545# It is not useful on other systems. If it contains results you don't 14546# want to keep, you may remove or edit it. 14547# 14548# config.status only pays attention to the cache file if you give it 14549# the --recheck option to rerun configure. 14550# 14551# `ac_cv_env_foo' variables (set or unset) will be overridden when 14552# loading this file, other *unset* `ac_cv_foo' will be assigned the 14553# following values. 14554 14555_ACEOF 14556 14557# The following way of writing the cache mishandles newlines in values, 14558# but we know of no workaround that is simple, portable, and efficient. 14559# So, don't put newlines in cache variables' values. 14560# Ultrix sh set writes to stderr and can't be redirected directly, 14561# and sets the high bit in the cache file unless we assign to the vars. 14562{ 14563 (set) 2>&1 | 14564 case `(ac_space=' '; set | grep ac_space) 2>&1` in 14565 *ac_space=\ *) 14566 # `set' does not quote correctly, so add quotes (double-quote 14567 # substitution turns \\\\ into \\, and sed turns \\ into \). 14568 sed -n \ 14569 "s/'/'\\\\''/g; 14570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14571 ;; 14572 *) 14573 # `set' quotes correctly as required by POSIX, so do not add quotes. 14574 sed -n \ 14575 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 14576 ;; 14577 esac; 14578} | 14579 sed ' 14580 t clear 14581 : clear 14582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14583 t end 14584 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14585 : end' >>confcache 14586if diff $cache_file confcache >/dev/null 2>&1; then :; else 14587 if test -w $cache_file; then 14588 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 14589 cat confcache >$cache_file 14590 else 14591 echo "not updating unwritable cache $cache_file" 14592 fi 14593fi 14594rm -f confcache 14595 14596test "x$prefix" = xNONE && prefix=$ac_default_prefix 14597# Let make expand exec_prefix. 14598test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14599 14600# VPATH may cause trouble with some makes, so we remove $(srcdir), 14601# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14602# trailing colons and then remove the whole line if VPATH becomes empty 14603# (actually we leave an empty line to preserve line numbers). 14604if test "x$srcdir" = x.; then 14605 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14606s/:*\$(srcdir):*/:/; 14607s/:*\${srcdir}:*/:/; 14608s/:*@srcdir@:*/:/; 14609s/^\([^=]*=[ ]*\):*/\1/; 14610s/:*$//; 14611s/^[^=]*=[ ]*$//; 14612}' 14613fi 14614 14615DEFS=-DHAVE_CONFIG_H 14616 14617ac_libobjs= 14618ac_ltlibobjs= 14619for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14620 # 1. Remove the extension, and $U if already installed. 14621 ac_i=`echo "$ac_i" | 14622 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 14623 # 2. Add them. 14624 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 14625 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 14626done 14627LIBOBJS=$ac_libobjs 14628 14629LTLIBOBJS=$ac_ltlibobjs 14630 14631 14632if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14633 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14634Usually this means the macro was only invoked conditionally." >&5 14635echo "$as_me: error: conditional \"AMDEP\" was never defined. 14636Usually this means the macro was only invoked conditionally." >&2;} 14637 { (exit 1); exit 1; }; } 14638fi 14639if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14640 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14641Usually this means the macro was only invoked conditionally." >&5 14642echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14643Usually this means the macro was only invoked conditionally." >&2;} 14644 { (exit 1); exit 1; }; } 14645fi 14646if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14647 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 14648Usually this means the macro was only invoked conditionally." >&5 14649echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 14650Usually this means the macro was only invoked conditionally." >&2;} 14651 { (exit 1); exit 1; }; } 14652fi 14653if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 14654 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. 14655Usually this means the macro was only invoked conditionally." >&5 14656echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. 14657Usually this means the macro was only invoked conditionally." >&2;} 14658 { (exit 1); exit 1; }; } 14659fi 14660 14661: ${CONFIG_STATUS=./config.status} 14662ac_clean_files_save=$ac_clean_files 14663ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14664{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14665echo "$as_me: creating $CONFIG_STATUS" >&6;} 14666cat >$CONFIG_STATUS <<_ACEOF 14667#! $SHELL 14668# Generated by $as_me. 14669# Run this file to recreate the current configuration. 14670# Compiler output produced by configure, useful for debugging 14671# configure, is in config.log if it exists. 14672 14673debug=false 14674ac_cs_recheck=false 14675ac_cs_silent=false 14676SHELL=\${CONFIG_SHELL-$SHELL} 14677_ACEOF 14678 14679cat >>$CONFIG_STATUS <<\_ACEOF 14680## --------------------- ## 14681## M4sh Initialization. ## 14682## --------------------- ## 14683 14684# Be Bourne compatible 14685if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14686 emulate sh 14687 NULLCMD=: 14688 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 14689 # is contrary to our usage. Disable this feature. 14690 alias -g '${1+"$@"}'='"$@"' 14691elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 14692 set -o posix 14693fi 14694DUALCASE=1; export DUALCASE # for MKS sh 14695 14696# Support unset when possible. 14697if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14698 as_unset=unset 14699else 14700 as_unset=false 14701fi 14702 14703 14704# Work around bugs in pre-3.0 UWIN ksh. 14705$as_unset ENV MAIL MAILPATH 14706PS1='$ ' 14707PS2='> ' 14708PS4='+ ' 14709 14710# NLS nuisances. 14711for as_var in \ 14712 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 14713 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 14714 LC_TELEPHONE LC_TIME 14715do 14716 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 14717 eval $as_var=C; export $as_var 14718 else 14719 $as_unset $as_var 14720 fi 14721done 14722 14723# Required to use basename. 14724if expr a : '\(a\)' >/dev/null 2>&1; then 14725 as_expr=expr 14726else 14727 as_expr=false 14728fi 14729 14730if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 14731 as_basename=basename 14732else 14733 as_basename=false 14734fi 14735 14736 14737# Name of the executable. 14738as_me=`$as_basename "$0" || 14739$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14740 X"$0" : 'X\(//\)$' \| \ 14741 X"$0" : 'X\(/\)$' \| \ 14742 . : '\(.\)' 2>/dev/null || 14743echo X/"$0" | 14744 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 14745 /^X\/\(\/\/\)$/{ s//\1/; q; } 14746 /^X\/\(\/\).*/{ s//\1/; q; } 14747 s/.*/./; q'` 14748 14749 14750# PATH needs CR, and LINENO needs CR and PATH. 14751# Avoid depending upon Character Ranges. 14752as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14753as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14754as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14755as_cr_digits='0123456789' 14756as_cr_alnum=$as_cr_Letters$as_cr_digits 14757 14758# The user is always right. 14759if test "${PATH_SEPARATOR+set}" != set; then 14760 echo "#! /bin/sh" >conf$$.sh 14761 echo "exit 0" >>conf$$.sh 14762 chmod +x conf$$.sh 14763 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 14764 PATH_SEPARATOR=';' 14765 else 14766 PATH_SEPARATOR=: 14767 fi 14768 rm -f conf$$.sh 14769fi 14770 14771 14772 as_lineno_1=$LINENO 14773 as_lineno_2=$LINENO 14774 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14775 test "x$as_lineno_1" != "x$as_lineno_2" && 14776 test "x$as_lineno_3" = "x$as_lineno_2" || { 14777 # Find who we are. Look in the path if we contain no path at all 14778 # relative or not. 14779 case $0 in 14780 *[\\/]* ) as_myself=$0 ;; 14781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14782for as_dir in $PATH 14783do 14784 IFS=$as_save_IFS 14785 test -z "$as_dir" && as_dir=. 14786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14787done 14788 14789 ;; 14790 esac 14791 # We did not find ourselves, most probably we were run as `sh COMMAND' 14792 # in which case we are not to be found in the path. 14793 if test "x$as_myself" = x; then 14794 as_myself=$0 14795 fi 14796 if test ! -f "$as_myself"; then 14797 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 14798echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 14799 { (exit 1); exit 1; }; } 14800 fi 14801 case $CONFIG_SHELL in 14802 '') 14803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14804for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 14805do 14806 IFS=$as_save_IFS 14807 test -z "$as_dir" && as_dir=. 14808 for as_base in sh bash ksh sh5; do 14809 case $as_dir in 14810 /*) 14811 if ("$as_dir/$as_base" -c ' 14812 as_lineno_1=$LINENO 14813 as_lineno_2=$LINENO 14814 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14815 test "x$as_lineno_1" != "x$as_lineno_2" && 14816 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 14817 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 14818 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 14819 CONFIG_SHELL=$as_dir/$as_base 14820 export CONFIG_SHELL 14821 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 14822 fi;; 14823 esac 14824 done 14825done 14826;; 14827 esac 14828 14829 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14830 # uniformly replaced by the line number. The first 'sed' inserts a 14831 # line-number line before each line; the second 'sed' does the real 14832 # work. The second script uses 'N' to pair each line-number line 14833 # with the numbered line, and appends trailing '-' during 14834 # substitution so that $LINENO is not a special case at line end. 14835 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14836 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 14837 sed '=' <$as_myself | 14838 sed ' 14839 N 14840 s,$,-, 14841 : loop 14842 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 14843 t loop 14844 s,-$,, 14845 s,^['$as_cr_digits']*\n,, 14846 ' >$as_me.lineno && 14847 chmod +x $as_me.lineno || 14848 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 14849echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 14850 { (exit 1); exit 1; }; } 14851 14852 # Don't try to exec as it changes $[0], causing all sort of problems 14853 # (the dirname of $[0] is not the place where we might find the 14854 # original and so on. Autoconf is especially sensible to this). 14855 . ./$as_me.lineno 14856 # Exit status is that of the last command. 14857 exit 14858} 14859 14860 14861case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 14862 *c*,-n*) ECHO_N= ECHO_C=' 14863' ECHO_T=' ' ;; 14864 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 14865 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 14866esac 14867 14868if expr a : '\(a\)' >/dev/null 2>&1; then 14869 as_expr=expr 14870else 14871 as_expr=false 14872fi 14873 14874rm -f conf$$ conf$$.exe conf$$.file 14875echo >conf$$.file 14876if ln -s conf$$.file conf$$ 2>/dev/null; then 14877 # We could just check for DJGPP; but this test a) works b) is more generic 14878 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 14879 if test -f conf$$.exe; then 14880 # Don't use ln at all; we don't have any links 14881 as_ln_s='cp -p' 14882 else 14883 as_ln_s='ln -s' 14884 fi 14885elif ln conf$$.file conf$$ 2>/dev/null; then 14886 as_ln_s=ln 14887else 14888 as_ln_s='cp -p' 14889fi 14890rm -f conf$$ conf$$.exe conf$$.file 14891 14892if mkdir -p . 2>/dev/null; then 14893 as_mkdir_p=: 14894else 14895 test -d ./-p && rmdir ./-p 14896 as_mkdir_p=false 14897fi 14898 14899as_executable_p="test -f" 14900 14901# Sed expression to map a string onto a valid CPP name. 14902as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14903 14904# Sed expression to map a string onto a valid variable name. 14905as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14906 14907 14908# IFS 14909# We need space, tab and new line, in precisely that order. 14910as_nl=' 14911' 14912IFS=" $as_nl" 14913 14914# CDPATH. 14915$as_unset CDPATH 14916 14917exec 6>&1 14918 14919# Open the log real soon, to keep \$[0] and so on meaningful, and to 14920# report actual input values of CONFIG_FILES etc. instead of their 14921# values after options handling. Logging --version etc. is OK. 14922exec 5>>config.log 14923{ 14924 echo 14925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14926## Running $as_me. ## 14927_ASBOX 14928} >&5 14929cat >&5 <<_CSEOF 14930 14931This file was extended by $as_me, which was 14932generated by GNU Autoconf 2.59. Invocation command line was 14933 14934 CONFIG_FILES = $CONFIG_FILES 14935 CONFIG_HEADERS = $CONFIG_HEADERS 14936 CONFIG_LINKS = $CONFIG_LINKS 14937 CONFIG_COMMANDS = $CONFIG_COMMANDS 14938 $ $0 $@ 14939 14940_CSEOF 14941echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 14942echo >&5 14943_ACEOF 14944 14945# Files that config.status was made for. 14946if test -n "$ac_config_files"; then 14947 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 14948fi 14949 14950if test -n "$ac_config_headers"; then 14951 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 14952fi 14953 14954if test -n "$ac_config_links"; then 14955 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 14956fi 14957 14958if test -n "$ac_config_commands"; then 14959 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 14960fi 14961 14962cat >>$CONFIG_STATUS <<\_ACEOF 14963 14964ac_cs_usage="\ 14965\`$as_me' instantiates files from templates according to the 14966current configuration. 14967 14968Usage: $0 [OPTIONS] [FILE]... 14969 14970 -h, --help print this help, then exit 14971 -V, --version print version number, then exit 14972 -q, --quiet do not print progress messages 14973 -d, --debug don't remove temporary files 14974 --recheck update $as_me by reconfiguring in the same conditions 14975 --file=FILE[:TEMPLATE] 14976 instantiate the configuration file FILE 14977 --header=FILE[:TEMPLATE] 14978 instantiate the configuration header FILE 14979 14980Configuration files: 14981$config_files 14982 14983Configuration headers: 14984$config_headers 14985 14986Configuration commands: 14987$config_commands 14988 14989Report bugs to <bug-autoconf@gnu.org>." 14990_ACEOF 14991 14992cat >>$CONFIG_STATUS <<_ACEOF 14993ac_cs_version="\\ 14994config.status 14995configured by $0, generated by GNU Autoconf 2.59, 14996 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 14997 14998Copyright (C) 2003 Free Software Foundation, Inc. 14999This config.status script is free software; the Free Software Foundation 15000gives unlimited permission to copy, distribute and modify it." 15001srcdir=$srcdir 15002INSTALL="$INSTALL" 15003_ACEOF 15004 15005cat >>$CONFIG_STATUS <<\_ACEOF 15006# If no file are specified by the user, then we need to provide default 15007# value. By we need to know if files were specified by the user. 15008ac_need_defaults=: 15009while test $# != 0 15010do 15011 case $1 in 15012 --*=*) 15013 ac_option=`expr "x$1" : 'x\([^=]*\)='` 15014 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 15015 ac_shift=: 15016 ;; 15017 -*) 15018 ac_option=$1 15019 ac_optarg=$2 15020 ac_shift=shift 15021 ;; 15022 *) # This is not an option, so the user has probably given explicit 15023 # arguments. 15024 ac_option=$1 15025 ac_need_defaults=false;; 15026 esac 15027 15028 case $ac_option in 15029 # Handling of the options. 15030_ACEOF 15031cat >>$CONFIG_STATUS <<\_ACEOF 15032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15033 ac_cs_recheck=: ;; 15034 --version | --vers* | -V ) 15035 echo "$ac_cs_version"; exit 0 ;; 15036 --he | --h) 15037 # Conflict between --help and --header 15038 { { echo "$as_me:$LINENO: error: ambiguous option: $1 15039Try \`$0 --help' for more information." >&5 15040echo "$as_me: error: ambiguous option: $1 15041Try \`$0 --help' for more information." >&2;} 15042 { (exit 1); exit 1; }; };; 15043 --help | --hel | -h ) 15044 echo "$ac_cs_usage"; exit 0 ;; 15045 --debug | --d* | -d ) 15046 debug=: ;; 15047 --file | --fil | --fi | --f ) 15048 $ac_shift 15049 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 15050 ac_need_defaults=false;; 15051 --header | --heade | --head | --hea ) 15052 $ac_shift 15053 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 15054 ac_need_defaults=false;; 15055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15056 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15057 ac_cs_silent=: ;; 15058 15059 # This is an error. 15060 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 15061Try \`$0 --help' for more information." >&5 15062echo "$as_me: error: unrecognized option: $1 15063Try \`$0 --help' for more information." >&2;} 15064 { (exit 1); exit 1; }; } ;; 15065 15066 *) ac_config_targets="$ac_config_targets $1" ;; 15067 15068 esac 15069 shift 15070done 15071 15072ac_configure_extra_args= 15073 15074if $ac_cs_silent; then 15075 exec 6>/dev/null 15076 ac_configure_extra_args="$ac_configure_extra_args --silent" 15077fi 15078 15079_ACEOF 15080cat >>$CONFIG_STATUS <<_ACEOF 15081if \$ac_cs_recheck; then 15082 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 15083 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15084fi 15085 15086_ACEOF 15087 15088cat >>$CONFIG_STATUS <<_ACEOF 15089# 15090# INIT-COMMANDS section. 15091# 15092 15093AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15094 15095 15096_ACEOF 15097 15098 15099 15100cat >>$CONFIG_STATUS <<\_ACEOF 15101for ac_config_target in $ac_config_targets 15102do 15103 case "$ac_config_target" in 15104 # Handling of arguments. 15105 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15106 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 15107 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; 15108 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 15109 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15110 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 15111 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 15112 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 15113echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15114 { (exit 1); exit 1; }; };; 15115 esac 15116done 15117 15118# If the user did not use the arguments to specify the items to instantiate, 15119# then the envvar interface is used. Set only those that are not. 15120# We use the long form for the default assignment because of an extremely 15121# bizarre bug on SunOS 4.1.3. 15122if $ac_need_defaults; then 15123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15126fi 15127 15128# Have a temporary directory for convenience. Make it in the build tree 15129# simply because there is no reason to put it here, and in addition, 15130# creating and moving files from /tmp can sometimes cause problems. 15131# Create a temporary directory, and hook for its removal unless debugging. 15132$debug || 15133{ 15134 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 15135 trap '{ (exit 1); exit 1; }' 1 2 13 15 15136} 15137 15138# Create a (secure) tmp directory for tmp files. 15139 15140{ 15141 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 15142 test -n "$tmp" && test -d "$tmp" 15143} || 15144{ 15145 tmp=./confstat$$-$RANDOM 15146 (umask 077 && mkdir $tmp) 15147} || 15148{ 15149 echo "$me: cannot create a temporary directory in ." >&2 15150 { (exit 1); exit 1; } 15151} 15152 15153_ACEOF 15154 15155cat >>$CONFIG_STATUS <<_ACEOF 15156 15157# 15158# CONFIG_FILES section. 15159# 15160 15161# No need to generate the scripts if there are no CONFIG_FILES. 15162# This happens for instance when ./config.status config.h 15163if test -n "\$CONFIG_FILES"; then 15164 # Protect against being on the right side of a sed subst in config.status. 15165 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 15166 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 15167s,@SHELL@,$SHELL,;t t 15168s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 15169s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 15170s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 15171s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 15172s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 15173s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 15174s,@exec_prefix@,$exec_prefix,;t t 15175s,@prefix@,$prefix,;t t 15176s,@program_transform_name@,$program_transform_name,;t t 15177s,@bindir@,$bindir,;t t 15178s,@sbindir@,$sbindir,;t t 15179s,@libexecdir@,$libexecdir,;t t 15180s,@datadir@,$datadir,;t t 15181s,@sysconfdir@,$sysconfdir,;t t 15182s,@sharedstatedir@,$sharedstatedir,;t t 15183s,@localstatedir@,$localstatedir,;t t 15184s,@libdir@,$libdir,;t t 15185s,@includedir@,$includedir,;t t 15186s,@oldincludedir@,$oldincludedir,;t t 15187s,@infodir@,$infodir,;t t 15188s,@mandir@,$mandir,;t t 15189s,@build_alias@,$build_alias,;t t 15190s,@host_alias@,$host_alias,;t t 15191s,@target_alias@,$target_alias,;t t 15192s,@DEFS@,$DEFS,;t t 15193s,@ECHO_C@,$ECHO_C,;t t 15194s,@ECHO_N@,$ECHO_N,;t t 15195s,@ECHO_T@,$ECHO_T,;t t 15196s,@LIBS@,$LIBS,;t t 15197s,@build@,$build,;t t 15198s,@build_cpu@,$build_cpu,;t t 15199s,@build_vendor@,$build_vendor,;t t 15200s,@build_os@,$build_os,;t t 15201s,@host@,$host,;t t 15202s,@host_cpu@,$host_cpu,;t t 15203s,@host_vendor@,$host_vendor,;t t 15204s,@host_os@,$host_os,;t t 15205s,@target@,$target,;t t 15206s,@target_cpu@,$target_cpu,;t t 15207s,@target_vendor@,$target_vendor,;t t 15208s,@target_os@,$target_os,;t t 15209s,@CC@,$CC,;t t 15210s,@CFLAGS@,$CFLAGS,;t t 15211s,@LDFLAGS@,$LDFLAGS,;t t 15212s,@CPPFLAGS@,$CPPFLAGS,;t t 15213s,@ac_ct_CC@,$ac_ct_CC,;t t 15214s,@EXEEXT@,$EXEEXT,;t t 15215s,@OBJEXT@,$OBJEXT,;t t 15216s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 15217s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 15218s,@INSTALL_DATA@,$INSTALL_DATA,;t t 15219s,@CYGPATH_W@,$CYGPATH_W,;t t 15220s,@PACKAGE@,$PACKAGE,;t t 15221s,@VERSION@,$VERSION,;t t 15222s,@ACLOCAL@,$ACLOCAL,;t t 15223s,@AUTOCONF@,$AUTOCONF,;t t 15224s,@AUTOMAKE@,$AUTOMAKE,;t t 15225s,@AUTOHEADER@,$AUTOHEADER,;t t 15226s,@MAKEINFO@,$MAKEINFO,;t t 15227s,@install_sh@,$install_sh,;t t 15228s,@STRIP@,$STRIP,;t t 15229s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 15230s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 15231s,@mkdir_p@,$mkdir_p,;t t 15232s,@AWK@,$AWK,;t t 15233s,@SET_MAKE@,$SET_MAKE,;t t 15234s,@am__leading_dot@,$am__leading_dot,;t t 15235s,@AMTAR@,$AMTAR,;t t 15236s,@am__tar@,$am__tar,;t t 15237s,@am__untar@,$am__untar,;t t 15238s,@DEPDIR@,$DEPDIR,;t t 15239s,@am__include@,$am__include,;t t 15240s,@am__quote@,$am__quote,;t t 15241s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 15242s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 15243s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 15244s,@CCDEPMODE@,$CCDEPMODE,;t t 15245s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 15246s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 15247s,@AR@,$AR,;t t 15248s,@ac_ct_AR@,$ac_ct_AR,;t t 15249s,@RANLIB@,$RANLIB,;t t 15250s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 15251s,@LN_S@,$LN_S,;t t 15252s,@LIBTOOL@,$LIBTOOL,;t t 15253s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t 15254s,@NO_WERROR@,$NO_WERROR,;t t 15255s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 15256s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 15257s,@MAINT@,$MAINT,;t t 15258s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t 15259s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t 15260s,@host_noncanonical@,$host_noncanonical,;t t 15261s,@target_noncanonical@,$target_noncanonical,;t t 15262s,@bfdlibdir@,$bfdlibdir,;t t 15263s,@bfdincludedir@,$bfdincludedir,;t t 15264s,@CPP@,$CPP,;t t 15265s,@EGREP@,$EGREP,;t t 15266s,@ALLOCA@,$ALLOCA,;t t 15267s,@USE_NLS@,$USE_NLS,;t t 15268s,@MSGFMT@,$MSGFMT,;t t 15269s,@GMSGFMT@,$GMSGFMT,;t t 15270s,@XGETTEXT@,$XGETTEXT,;t t 15271s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 15272s,@CATALOGS@,$CATALOGS,;t t 15273s,@CATOBJEXT@,$CATOBJEXT,;t t 15274s,@DATADIRNAME@,$DATADIRNAME,;t t 15275s,@GMOFILES@,$GMOFILES,;t t 15276s,@INSTOBJEXT@,$INSTOBJEXT,;t t 15277s,@INTLDEPS@,$INTLDEPS,;t t 15278s,@INTLLIBS@,$INTLLIBS,;t t 15279s,@INTLOBJS@,$INTLOBJS,;t t 15280s,@POFILES@,$POFILES,;t t 15281s,@POSUB@,$POSUB,;t t 15282s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t 15283s,@GT_NO@,$GT_NO,;t t 15284s,@GT_YES@,$GT_YES,;t t 15285s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 15286s,@l@,$l,;t t 15287s,@HDEFINES@,$HDEFINES,;t t 15288s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t 15289s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t 15290s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t 15291s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t 15292s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t 15293s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t 15294s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t 15295s,@COREFILE@,$COREFILE,;t t 15296s,@COREFLAG@,$COREFLAG,;t t 15297s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t 15298s,@WIN32LIBADD@,$WIN32LIBADD,;t t 15299s,@TDEFINES@,$TDEFINES,;t t 15300s,@wordsize@,$wordsize,;t t 15301s,@bfd_libs@,$bfd_libs,;t t 15302s,@all_backends@,$all_backends,;t t 15303s,@bfd_backends@,$bfd_backends,;t t 15304s,@bfd_machines@,$bfd_machines,;t t 15305s,@bfd_default_target_size@,$bfd_default_target_size,;t t 15306s,@bfd_file_ptr@,$bfd_file_ptr,;t t 15307s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t 15308s,@tdefaults@,$tdefaults,;t t 15309s,@datarootdir@,$datarootdir,;t t 15310s,@docdir@,$docdir,;t t 15311s,@htmldir@,$htmldir,;t t 15312s,@LIBOBJS@,$LIBOBJS,;t t 15313s,@LTLIBOBJS@,$LTLIBOBJS,;t t 15314CEOF 15315 15316_ACEOF 15317 15318 cat >>$CONFIG_STATUS <<\_ACEOF 15319 # Split the substitutions into bite-sized pieces for seds with 15320 # small command number limits, like on Digital OSF/1 and HP-UX. 15321 ac_max_sed_lines=48 15322 ac_sed_frag=1 # Number of current file. 15323 ac_beg=1 # First line for current file. 15324 ac_end=$ac_max_sed_lines # Line after last line for current file. 15325 ac_more_lines=: 15326 ac_sed_cmds= 15327 while $ac_more_lines; do 15328 if test $ac_beg -gt 1; then 15329 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15330 else 15331 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15332 fi 15333 if test ! -s $tmp/subs.frag; then 15334 ac_more_lines=false 15335 else 15336 # The purpose of the label and of the branching condition is to 15337 # speed up the sed processing (if there are no `@' at all, there 15338 # is no need to browse any of the substitutions). 15339 # These are the two extra sed commands mentioned above. 15340 (echo ':t 15341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 15342 if test -z "$ac_sed_cmds"; then 15343 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 15344 else 15345 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 15346 fi 15347 ac_sed_frag=`expr $ac_sed_frag + 1` 15348 ac_beg=$ac_end 15349 ac_end=`expr $ac_end + $ac_max_sed_lines` 15350 fi 15351 done 15352 if test -z "$ac_sed_cmds"; then 15353 ac_sed_cmds=cat 15354 fi 15355fi # test -n "$CONFIG_FILES" 15356 15357_ACEOF 15358cat >>$CONFIG_STATUS <<\_ACEOF 15359for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 15360 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 15361 case $ac_file in 15362 - | *:- | *:-:* ) # input from stdin 15363 cat >$tmp/stdin 15364 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15365 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15366 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15367 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15368 * ) ac_file_in=$ac_file.in ;; 15369 esac 15370 15371 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 15372 ac_dir=`(dirname "$ac_file") 2>/dev/null || 15373$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15374 X"$ac_file" : 'X\(//\)[^/]' \| \ 15375 X"$ac_file" : 'X\(//\)$' \| \ 15376 X"$ac_file" : 'X\(/\)' \| \ 15377 . : '\(.\)' 2>/dev/null || 15378echo X"$ac_file" | 15379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15380 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15381 /^X\(\/\/\)$/{ s//\1/; q; } 15382 /^X\(\/\).*/{ s//\1/; q; } 15383 s/.*/./; q'` 15384 { if $as_mkdir_p; then 15385 mkdir -p "$ac_dir" 15386 else 15387 as_dir="$ac_dir" 15388 as_dirs= 15389 while test ! -d "$as_dir"; do 15390 as_dirs="$as_dir $as_dirs" 15391 as_dir=`(dirname "$as_dir") 2>/dev/null || 15392$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15393 X"$as_dir" : 'X\(//\)[^/]' \| \ 15394 X"$as_dir" : 'X\(//\)$' \| \ 15395 X"$as_dir" : 'X\(/\)' \| \ 15396 . : '\(.\)' 2>/dev/null || 15397echo X"$as_dir" | 15398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15399 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15400 /^X\(\/\/\)$/{ s//\1/; q; } 15401 /^X\(\/\).*/{ s//\1/; q; } 15402 s/.*/./; q'` 15403 done 15404 test ! -n "$as_dirs" || mkdir $as_dirs 15405 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15406echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15407 { (exit 1); exit 1; }; }; } 15408 15409 ac_builddir=. 15410 15411if test "$ac_dir" != .; then 15412 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15413 # A "../" for each directory in $ac_dir_suffix. 15414 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 15415else 15416 ac_dir_suffix= ac_top_builddir= 15417fi 15418 15419case $srcdir in 15420 .) # No --srcdir option. We are building in place. 15421 ac_srcdir=. 15422 if test -z "$ac_top_builddir"; then 15423 ac_top_srcdir=. 15424 else 15425 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 15426 fi ;; 15427 [\\/]* | ?:[\\/]* ) # Absolute path. 15428 ac_srcdir=$srcdir$ac_dir_suffix; 15429 ac_top_srcdir=$srcdir ;; 15430 *) # Relative path. 15431 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 15432 ac_top_srcdir=$ac_top_builddir$srcdir ;; 15433esac 15434 15435# Do not use `cd foo && pwd` to compute absolute paths, because 15436# the directories may not exist. 15437case `pwd` in 15438.) ac_abs_builddir="$ac_dir";; 15439*) 15440 case "$ac_dir" in 15441 .) ac_abs_builddir=`pwd`;; 15442 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 15443 *) ac_abs_builddir=`pwd`/"$ac_dir";; 15444 esac;; 15445esac 15446case $ac_abs_builddir in 15447.) ac_abs_top_builddir=${ac_top_builddir}.;; 15448*) 15449 case ${ac_top_builddir}. in 15450 .) ac_abs_top_builddir=$ac_abs_builddir;; 15451 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 15452 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 15453 esac;; 15454esac 15455case $ac_abs_builddir in 15456.) ac_abs_srcdir=$ac_srcdir;; 15457*) 15458 case $ac_srcdir in 15459 .) ac_abs_srcdir=$ac_abs_builddir;; 15460 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 15461 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 15462 esac;; 15463esac 15464case $ac_abs_builddir in 15465.) ac_abs_top_srcdir=$ac_top_srcdir;; 15466*) 15467 case $ac_top_srcdir in 15468 .) ac_abs_top_srcdir=$ac_abs_builddir;; 15469 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 15470 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 15471 esac;; 15472esac 15473 15474 15475 case $INSTALL in 15476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15477 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 15478 esac 15479 15480 if test x"$ac_file" != x-; then 15481 { echo "$as_me:$LINENO: creating $ac_file" >&5 15482echo "$as_me: creating $ac_file" >&6;} 15483 rm -f "$ac_file" 15484 fi 15485 # Let's still pretend it is `configure' which instantiates (i.e., don't 15486 # use $as_me), people would be surprised to read: 15487 # /* config.h. Generated by config.status. */ 15488 if test x"$ac_file" = x-; then 15489 configure_input= 15490 else 15491 configure_input="$ac_file. " 15492 fi 15493 configure_input=$configure_input"Generated from `echo $ac_file_in | 15494 sed 's,.*/,,'` by configure." 15495 15496 # First look for the input files in the build tree, otherwise in the 15497 # src tree. 15498 ac_file_inputs=`IFS=: 15499 for f in $ac_file_in; do 15500 case $f in 15501 -) echo $tmp/stdin ;; 15502 [\\/$]*) 15503 # Absolute (can't be DOS-style, as IFS=:) 15504 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15505echo "$as_me: error: cannot find input file: $f" >&2;} 15506 { (exit 1); exit 1; }; } 15507 echo "$f";; 15508 *) # Relative 15509 if test -f "$f"; then 15510 # Build tree 15511 echo "$f" 15512 elif test -f "$srcdir/$f"; then 15513 # Source tree 15514 echo "$srcdir/$f" 15515 else 15516 # /dev/null tree 15517 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15518echo "$as_me: error: cannot find input file: $f" >&2;} 15519 { (exit 1); exit 1; }; } 15520 fi;; 15521 esac 15522 done` || { (exit 1); exit 1; } 15523_ACEOF 15524cat >>$CONFIG_STATUS <<_ACEOF 15525 sed "$ac_vpsub 15526$extrasub 15527_ACEOF 15528cat >>$CONFIG_STATUS <<\_ACEOF 15529:t 15530/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15531s,@configure_input@,$configure_input,;t t 15532s,@srcdir@,$ac_srcdir,;t t 15533s,@abs_srcdir@,$ac_abs_srcdir,;t t 15534s,@top_srcdir@,$ac_top_srcdir,;t t 15535s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 15536s,@builddir@,$ac_builddir,;t t 15537s,@abs_builddir@,$ac_abs_builddir,;t t 15538s,@top_builddir@,$ac_top_builddir,;t t 15539s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 15540s,@INSTALL@,$ac_INSTALL,;t t 15541" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 15542 rm -f $tmp/stdin 15543 if test x"$ac_file" != x-; then 15544 mv $tmp/out $ac_file 15545 else 15546 cat $tmp/out 15547 rm -f $tmp/out 15548 fi 15549 15550done 15551_ACEOF 15552cat >>$CONFIG_STATUS <<\_ACEOF 15553 15554# 15555# CONFIG_HEADER section. 15556# 15557 15558# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 15559# NAME is the cpp macro being defined and VALUE is the value it is being given. 15560# 15561# ac_d sets the value in "#define NAME VALUE" lines. 15562ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 15563ac_dB='[ ].*$,\1#\2' 15564ac_dC=' ' 15565ac_dD=',;t' 15566# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 15567ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 15568ac_uB='$,\1#\2define\3' 15569ac_uC=' ' 15570ac_uD=',;t' 15571 15572for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 15573 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 15574 case $ac_file in 15575 - | *:- | *:-:* ) # input from stdin 15576 cat >$tmp/stdin 15577 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15579 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15580 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15581 * ) ac_file_in=$ac_file.in ;; 15582 esac 15583 15584 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 15585echo "$as_me: creating $ac_file" >&6;} 15586 15587 # First look for the input files in the build tree, otherwise in the 15588 # src tree. 15589 ac_file_inputs=`IFS=: 15590 for f in $ac_file_in; do 15591 case $f in 15592 -) echo $tmp/stdin ;; 15593 [\\/$]*) 15594 # Absolute (can't be DOS-style, as IFS=:) 15595 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15596echo "$as_me: error: cannot find input file: $f" >&2;} 15597 { (exit 1); exit 1; }; } 15598 # Do quote $f, to prevent DOS paths from being IFS'd. 15599 echo "$f";; 15600 *) # Relative 15601 if test -f "$f"; then 15602 # Build tree 15603 echo "$f" 15604 elif test -f "$srcdir/$f"; then 15605 # Source tree 15606 echo "$srcdir/$f" 15607 else 15608 # /dev/null tree 15609 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15610echo "$as_me: error: cannot find input file: $f" >&2;} 15611 { (exit 1); exit 1; }; } 15612 fi;; 15613 esac 15614 done` || { (exit 1); exit 1; } 15615 # Remove the trailing spaces. 15616 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 15617 15618_ACEOF 15619 15620# Transform confdefs.h into two sed scripts, `conftest.defines' and 15621# `conftest.undefs', that substitutes the proper values into 15622# config.h.in to produce config.h. The first handles `#define' 15623# templates, and the second `#undef' templates. 15624# And first: Protect against being on the right side of a sed subst in 15625# config.status. Protect against being in an unquoted here document 15626# in config.status. 15627rm -f conftest.defines conftest.undefs 15628# Using a here document instead of a string reduces the quoting nightmare. 15629# Putting comments in sed scripts is not portable. 15630# 15631# `end' is used to avoid that the second main sed command (meant for 15632# 0-ary CPP macros) applies to n-ary macro definitions. 15633# See the Autoconf documentation for `clear'. 15634cat >confdef2sed.sed <<\_ACEOF 15635s/[\\&,]/\\&/g 15636s,[\\$`],\\&,g 15637t clear 15638: clear 15639s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 15640t end 15641s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 15642: end 15643_ACEOF 15644# If some macros were called several times there might be several times 15645# the same #defines, which is useless. Nevertheless, we may not want to 15646# sort them, since we want the *last* AC-DEFINE to be honored. 15647uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 15648sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 15649rm -f confdef2sed.sed 15650 15651# This sed command replaces #undef with comments. This is necessary, for 15652# example, in the case of _POSIX_SOURCE, which is predefined and required 15653# on some systems where configure will not decide to define it. 15654cat >>conftest.undefs <<\_ACEOF 15655s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 15656_ACEOF 15657 15658# Break up conftest.defines because some shells have a limit on the size 15659# of here documents, and old seds have small limits too (100 cmds). 15660echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 15661echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 15662echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 15663echo ' :' >>$CONFIG_STATUS 15664rm -f conftest.tail 15665while grep . conftest.defines >/dev/null 15666do 15667 # Write a limited-size here document to $tmp/defines.sed. 15668 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 15669 # Speed up: don't consider the non `#define' lines. 15670 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 15671 # Work around the forget-to-reset-the-flag bug. 15672 echo 't clr' >>$CONFIG_STATUS 15673 echo ': clr' >>$CONFIG_STATUS 15674 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 15675 echo 'CEOF 15676 sed -f $tmp/defines.sed $tmp/in >$tmp/out 15677 rm -f $tmp/in 15678 mv $tmp/out $tmp/in 15679' >>$CONFIG_STATUS 15680 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 15681 rm -f conftest.defines 15682 mv conftest.tail conftest.defines 15683done 15684rm -f conftest.defines 15685echo ' fi # grep' >>$CONFIG_STATUS 15686echo >>$CONFIG_STATUS 15687 15688# Break up conftest.undefs because some shells have a limit on the size 15689# of here documents, and old seds have small limits too (100 cmds). 15690echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 15691rm -f conftest.tail 15692while grep . conftest.undefs >/dev/null 15693do 15694 # Write a limited-size here document to $tmp/undefs.sed. 15695 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 15696 # Speed up: don't consider the non `#undef' 15697 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 15698 # Work around the forget-to-reset-the-flag bug. 15699 echo 't clr' >>$CONFIG_STATUS 15700 echo ': clr' >>$CONFIG_STATUS 15701 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 15702 echo 'CEOF 15703 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 15704 rm -f $tmp/in 15705 mv $tmp/out $tmp/in 15706' >>$CONFIG_STATUS 15707 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 15708 rm -f conftest.undefs 15709 mv conftest.tail conftest.undefs 15710done 15711rm -f conftest.undefs 15712 15713cat >>$CONFIG_STATUS <<\_ACEOF 15714 # Let's still pretend it is `configure' which instantiates (i.e., don't 15715 # use $as_me), people would be surprised to read: 15716 # /* config.h. Generated by config.status. */ 15717 if test x"$ac_file" = x-; then 15718 echo "/* Generated by configure. */" >$tmp/config.h 15719 else 15720 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 15721 fi 15722 cat $tmp/in >>$tmp/config.h 15723 rm -f $tmp/in 15724 if test x"$ac_file" != x-; then 15725 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 15726 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15727echo "$as_me: $ac_file is unchanged" >&6;} 15728 else 15729 ac_dir=`(dirname "$ac_file") 2>/dev/null || 15730$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15731 X"$ac_file" : 'X\(//\)[^/]' \| \ 15732 X"$ac_file" : 'X\(//\)$' \| \ 15733 X"$ac_file" : 'X\(/\)' \| \ 15734 . : '\(.\)' 2>/dev/null || 15735echo X"$ac_file" | 15736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15737 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15738 /^X\(\/\/\)$/{ s//\1/; q; } 15739 /^X\(\/\).*/{ s//\1/; q; } 15740 s/.*/./; q'` 15741 { if $as_mkdir_p; then 15742 mkdir -p "$ac_dir" 15743 else 15744 as_dir="$ac_dir" 15745 as_dirs= 15746 while test ! -d "$as_dir"; do 15747 as_dirs="$as_dir $as_dirs" 15748 as_dir=`(dirname "$as_dir") 2>/dev/null || 15749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15750 X"$as_dir" : 'X\(//\)[^/]' \| \ 15751 X"$as_dir" : 'X\(//\)$' \| \ 15752 X"$as_dir" : 'X\(/\)' \| \ 15753 . : '\(.\)' 2>/dev/null || 15754echo X"$as_dir" | 15755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15756 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15757 /^X\(\/\/\)$/{ s//\1/; q; } 15758 /^X\(\/\).*/{ s//\1/; q; } 15759 s/.*/./; q'` 15760 done 15761 test ! -n "$as_dirs" || mkdir $as_dirs 15762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15763echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15764 { (exit 1); exit 1; }; }; } 15765 15766 rm -f $ac_file 15767 mv $tmp/config.h $ac_file 15768 fi 15769 else 15770 cat $tmp/config.h 15771 rm -f $tmp/config.h 15772 fi 15773# Compute $ac_file's index in $config_headers. 15774_am_stamp_count=1 15775for _am_header in $config_headers :; do 15776 case $_am_header in 15777 $ac_file | $ac_file:* ) 15778 break ;; 15779 * ) 15780 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15781 esac 15782done 15783echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 15784$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15785 X$ac_file : 'X\(//\)[^/]' \| \ 15786 X$ac_file : 'X\(//\)$' \| \ 15787 X$ac_file : 'X\(/\)' \| \ 15788 . : '\(.\)' 2>/dev/null || 15789echo X$ac_file | 15790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15791 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15792 /^X\(\/\/\)$/{ s//\1/; q; } 15793 /^X\(\/\).*/{ s//\1/; q; } 15794 s/.*/./; q'`/stamp-h$_am_stamp_count 15795done 15796_ACEOF 15797cat >>$CONFIG_STATUS <<\_ACEOF 15798 15799# 15800# CONFIG_COMMANDS section. 15801# 15802for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 15803 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 15804 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 15805 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 15806$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15807 X"$ac_dest" : 'X\(//\)[^/]' \| \ 15808 X"$ac_dest" : 'X\(//\)$' \| \ 15809 X"$ac_dest" : 'X\(/\)' \| \ 15810 . : '\(.\)' 2>/dev/null || 15811echo X"$ac_dest" | 15812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15813 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15814 /^X\(\/\/\)$/{ s//\1/; q; } 15815 /^X\(\/\).*/{ s//\1/; q; } 15816 s/.*/./; q'` 15817 { if $as_mkdir_p; then 15818 mkdir -p "$ac_dir" 15819 else 15820 as_dir="$ac_dir" 15821 as_dirs= 15822 while test ! -d "$as_dir"; do 15823 as_dirs="$as_dir $as_dirs" 15824 as_dir=`(dirname "$as_dir") 2>/dev/null || 15825$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15826 X"$as_dir" : 'X\(//\)[^/]' \| \ 15827 X"$as_dir" : 'X\(//\)$' \| \ 15828 X"$as_dir" : 'X\(/\)' \| \ 15829 . : '\(.\)' 2>/dev/null || 15830echo X"$as_dir" | 15831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15832 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15833 /^X\(\/\/\)$/{ s//\1/; q; } 15834 /^X\(\/\).*/{ s//\1/; q; } 15835 s/.*/./; q'` 15836 done 15837 test ! -n "$as_dirs" || mkdir $as_dirs 15838 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15839echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15840 { (exit 1); exit 1; }; }; } 15841 15842 ac_builddir=. 15843 15844if test "$ac_dir" != .; then 15845 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15846 # A "../" for each directory in $ac_dir_suffix. 15847 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 15848else 15849 ac_dir_suffix= ac_top_builddir= 15850fi 15851 15852case $srcdir in 15853 .) # No --srcdir option. We are building in place. 15854 ac_srcdir=. 15855 if test -z "$ac_top_builddir"; then 15856 ac_top_srcdir=. 15857 else 15858 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 15859 fi ;; 15860 [\\/]* | ?:[\\/]* ) # Absolute path. 15861 ac_srcdir=$srcdir$ac_dir_suffix; 15862 ac_top_srcdir=$srcdir ;; 15863 *) # Relative path. 15864 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 15865 ac_top_srcdir=$ac_top_builddir$srcdir ;; 15866esac 15867 15868# Do not use `cd foo && pwd` to compute absolute paths, because 15869# the directories may not exist. 15870case `pwd` in 15871.) ac_abs_builddir="$ac_dir";; 15872*) 15873 case "$ac_dir" in 15874 .) ac_abs_builddir=`pwd`;; 15875 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 15876 *) ac_abs_builddir=`pwd`/"$ac_dir";; 15877 esac;; 15878esac 15879case $ac_abs_builddir in 15880.) ac_abs_top_builddir=${ac_top_builddir}.;; 15881*) 15882 case ${ac_top_builddir}. in 15883 .) ac_abs_top_builddir=$ac_abs_builddir;; 15884 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 15885 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 15886 esac;; 15887esac 15888case $ac_abs_builddir in 15889.) ac_abs_srcdir=$ac_srcdir;; 15890*) 15891 case $ac_srcdir in 15892 .) ac_abs_srcdir=$ac_abs_builddir;; 15893 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 15894 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 15895 esac;; 15896esac 15897case $ac_abs_builddir in 15898.) ac_abs_top_srcdir=$ac_top_srcdir;; 15899*) 15900 case $ac_top_srcdir in 15901 .) ac_abs_top_srcdir=$ac_abs_builddir;; 15902 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 15903 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 15904 esac;; 15905esac 15906 15907 15908 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 15909echo "$as_me: executing $ac_dest commands" >&6;} 15910 case $ac_dest in 15911 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 15912 # Strip MF so we end up with the name of the file. 15913 mf=`echo "$mf" | sed -e 's/:.*$//'` 15914 # Check whether this is an Automake generated Makefile or not. 15915 # We used to match only the files named `Makefile.in', but 15916 # some people rename them; so instead we look at the file content. 15917 # Grep'ing the first line is not enough: some people post-process 15918 # each Makefile.in and add a new line on top of each file to say so. 15919 # So let's grep whole file. 15920 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 15921 dirpart=`(dirname "$mf") 2>/dev/null || 15922$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15923 X"$mf" : 'X\(//\)[^/]' \| \ 15924 X"$mf" : 'X\(//\)$' \| \ 15925 X"$mf" : 'X\(/\)' \| \ 15926 . : '\(.\)' 2>/dev/null || 15927echo X"$mf" | 15928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15929 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15930 /^X\(\/\/\)$/{ s//\1/; q; } 15931 /^X\(\/\).*/{ s//\1/; q; } 15932 s/.*/./; q'` 15933 else 15934 continue 15935 fi 15936 # Extract the definition of DEPDIR, am__include, and am__quote 15937 # from the Makefile without running `make'. 15938 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15939 test -z "$DEPDIR" && continue 15940 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15941 test -z "am__include" && continue 15942 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15943 # When using ansi2knr, U may be empty or an underscore; expand it 15944 U=`sed -n 's/^U = //p' < "$mf"` 15945 # Find all dependency output files, they are included files with 15946 # $(DEPDIR) in their names. We invoke sed twice because it is the 15947 # simplest approach to changing $(DEPDIR) to its actual value in the 15948 # expansion. 15949 for file in `sed -n " 15950 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15951 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15952 # Make sure the directory exists. 15953 test -f "$dirpart/$file" && continue 15954 fdir=`(dirname "$file") 2>/dev/null || 15955$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15956 X"$file" : 'X\(//\)[^/]' \| \ 15957 X"$file" : 'X\(//\)$' \| \ 15958 X"$file" : 'X\(/\)' \| \ 15959 . : '\(.\)' 2>/dev/null || 15960echo X"$file" | 15961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15962 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15963 /^X\(\/\/\)$/{ s//\1/; q; } 15964 /^X\(\/\).*/{ s//\1/; q; } 15965 s/.*/./; q'` 15966 { if $as_mkdir_p; then 15967 mkdir -p $dirpart/$fdir 15968 else 15969 as_dir=$dirpart/$fdir 15970 as_dirs= 15971 while test ! -d "$as_dir"; do 15972 as_dirs="$as_dir $as_dirs" 15973 as_dir=`(dirname "$as_dir") 2>/dev/null || 15974$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15975 X"$as_dir" : 'X\(//\)[^/]' \| \ 15976 X"$as_dir" : 'X\(//\)$' \| \ 15977 X"$as_dir" : 'X\(/\)' \| \ 15978 . : '\(.\)' 2>/dev/null || 15979echo X"$as_dir" | 15980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15981 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15982 /^X\(\/\/\)$/{ s//\1/; q; } 15983 /^X\(\/\).*/{ s//\1/; q; } 15984 s/.*/./; q'` 15985 done 15986 test ! -n "$as_dirs" || mkdir $as_dirs 15987 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 15988echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 15989 { (exit 1); exit 1; }; }; } 15990 15991 # echo "creating $dirpart/$file" 15992 echo '# dummy' > "$dirpart/$file" 15993 done 15994done 15995 ;; 15996 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;; 15997 esac 15998done 15999_ACEOF 16000 16001cat >>$CONFIG_STATUS <<\_ACEOF 16002 16003{ (exit 0); exit 0; } 16004_ACEOF 16005chmod +x $CONFIG_STATUS 16006ac_clean_files=$ac_clean_files_save 16007 16008 16009# configure is writing to config.log, and then calls config.status. 16010# config.status does its own redirection, appending to config.log. 16011# Unfortunately, on DOS this fails, as config.log is still kept open 16012# by configure, so config.status won't be able to write to it; its 16013# output is simply discarded. So we exec the FD to /dev/null, 16014# effectively closing config.log, so it can be properly (re)opened and 16015# appended to by config.status. When coming back to configure, we 16016# need to make the FD available again. 16017if test "$no_create" != yes; then 16018 ac_cs_success=: 16019 ac_config_status_args= 16020 test "$silent" = yes && 16021 ac_config_status_args="$ac_config_status_args --quiet" 16022 exec 5>/dev/null 16023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16024 exec 5>>config.log 16025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16026 # would make configure fail if this is the last instruction. 16027 $ac_cs_success || { (exit 1); exit 1; } 16028fi 16029 16030 16031