configure revision 60484
133965Sjdp#! /bin/sh 233965Sjdp 333965Sjdp# Guess values for system-dependent variables and create Makefiles. 460484Sobrien# Generated automatically using autoconf version 2.13 533965Sjdp# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 633965Sjdp# 733965Sjdp# This configure script is free software; the Free Software Foundation 833965Sjdp# gives unlimited permission to copy, distribute and modify it. 933965Sjdp 1033965Sjdp# Defaults: 1133965Sjdpac_help= 1233965Sjdpac_default_prefix=/usr/local 1333965Sjdp# Any additions from configure.in: 1433965Sjdpac_help="$ac_help 1560484Sobrien --enable-shared[=PKGS] build shared libraries [default=no]" 1638889Sjdpac_help="$ac_help 1760484Sobrien --enable-static[=PKGS] build static libraries [default=yes]" 1838889Sjdpac_help="$ac_help 1960484Sobrien --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 2060484Sobrienac_help="$ac_help 2138889Sjdp --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 2238889Sjdpac_help="$ac_help 2360484Sobrien --disable-libtool-lock avoid locking (might break parallel builds)" 2460484Sobrienac_help="$ac_help 2533965Sjdp --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)" 2633965Sjdpac_help="$ac_help 2733965Sjdp --enable-targets alternative target configurations" 2833965Sjdpac_help="$ac_help 2933965Sjdp --enable-commonbfdlib build shared BFD/opcodes/libiberty library" 3033965Sjdpac_help="$ac_help 3133965Sjdp --with-mmap try using mmap for BFD input files if available" 3238889Sjdpac_help="$ac_help 3338889Sjdp --enable-maintainer-mode enable make rules and dependencies not useful 3438889Sjdp (and sometimes confusing) to the casual installer" 3560484Sobrienac_help="$ac_help 3660484Sobrien --disable-nls do not use Native Language Support" 3760484Sobrienac_help="$ac_help 3860484Sobrien --with-included-gettext use the GNU gettext library included here" 3933965Sjdp 4033965Sjdp# Initialize some variables set by options. 4133965Sjdp# The variables have the same names as the options, with 4233965Sjdp# dashes changed to underlines. 4333965Sjdpbuild=NONE 4433965Sjdpcache_file=./config.cache 4533965Sjdpexec_prefix=NONE 4633965Sjdphost=NONE 4733965Sjdpno_create= 4833965Sjdpnonopt=NONE 4933965Sjdpno_recursion= 5033965Sjdpprefix=NONE 5133965Sjdpprogram_prefix=NONE 5233965Sjdpprogram_suffix=NONE 5333965Sjdpprogram_transform_name=s,x,x, 5433965Sjdpsilent= 5533965Sjdpsite= 5660484Sobriensitefile= 5733965Sjdpsrcdir= 5833965Sjdptarget=NONE 5933965Sjdpverbose= 6033965Sjdpx_includes=NONE 6133965Sjdpx_libraries=NONE 6233965Sjdpbindir='${exec_prefix}/bin' 6333965Sjdpsbindir='${exec_prefix}/sbin' 6433965Sjdplibexecdir='${exec_prefix}/libexec' 6533965Sjdpdatadir='${prefix}/share' 6633965Sjdpsysconfdir='${prefix}/etc' 6733965Sjdpsharedstatedir='${prefix}/com' 6833965Sjdplocalstatedir='${prefix}/var' 6933965Sjdplibdir='${exec_prefix}/lib' 7033965Sjdpincludedir='${prefix}/include' 7133965Sjdpoldincludedir='/usr/include' 7233965Sjdpinfodir='${prefix}/info' 7333965Sjdpmandir='${prefix}/man' 7433965Sjdp 7533965Sjdp# Initialize some other variables. 7633965Sjdpsubdirs= 7733965SjdpMFLAGS= MAKEFLAGS= 7838889SjdpSHELL=${CONFIG_SHELL-/bin/sh} 7933965Sjdp# Maximum number of lines to put in a shell here document. 8033965Sjdpac_max_here_lines=12 8133965Sjdp 8233965Sjdpac_prev= 8333965Sjdpfor ac_option 8433965Sjdpdo 8533965Sjdp 8633965Sjdp # If the previous option needs an argument, assign it. 8733965Sjdp if test -n "$ac_prev"; then 8833965Sjdp eval "$ac_prev=\$ac_option" 8933965Sjdp ac_prev= 9033965Sjdp continue 9133965Sjdp fi 9233965Sjdp 9333965Sjdp case "$ac_option" in 9433965Sjdp -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 9533965Sjdp *) ac_optarg= ;; 9633965Sjdp esac 9733965Sjdp 9833965Sjdp # Accept the important Cygnus configure options, so we can diagnose typos. 9933965Sjdp 10033965Sjdp case "$ac_option" in 10133965Sjdp 10233965Sjdp -bindir | --bindir | --bindi | --bind | --bin | --bi) 10333965Sjdp ac_prev=bindir ;; 10433965Sjdp -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 10533965Sjdp bindir="$ac_optarg" ;; 10633965Sjdp 10733965Sjdp -build | --build | --buil | --bui | --bu) 10833965Sjdp ac_prev=build ;; 10933965Sjdp -build=* | --build=* | --buil=* | --bui=* | --bu=*) 11033965Sjdp build="$ac_optarg" ;; 11133965Sjdp 11233965Sjdp -cache-file | --cache-file | --cache-fil | --cache-fi \ 11333965Sjdp | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 11433965Sjdp ac_prev=cache_file ;; 11533965Sjdp -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 11633965Sjdp | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 11733965Sjdp cache_file="$ac_optarg" ;; 11833965Sjdp 11933965Sjdp -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 12033965Sjdp ac_prev=datadir ;; 12133965Sjdp -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 12233965Sjdp | --da=*) 12333965Sjdp datadir="$ac_optarg" ;; 12433965Sjdp 12533965Sjdp -disable-* | --disable-*) 12633965Sjdp ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 12733965Sjdp # Reject names that are not valid shell variable names. 12833965Sjdp if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 12933965Sjdp { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 13033965Sjdp fi 13133965Sjdp ac_feature=`echo $ac_feature| sed 's/-/_/g'` 13233965Sjdp eval "enable_${ac_feature}=no" ;; 13333965Sjdp 13433965Sjdp -enable-* | --enable-*) 13533965Sjdp ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 13633965Sjdp # Reject names that are not valid shell variable names. 13733965Sjdp if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 13833965Sjdp { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 13933965Sjdp fi 14033965Sjdp ac_feature=`echo $ac_feature| sed 's/-/_/g'` 14133965Sjdp case "$ac_option" in 14233965Sjdp *=*) ;; 14333965Sjdp *) ac_optarg=yes ;; 14433965Sjdp esac 14533965Sjdp eval "enable_${ac_feature}='$ac_optarg'" ;; 14633965Sjdp 14733965Sjdp -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 14833965Sjdp | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 14933965Sjdp | --exec | --exe | --ex) 15033965Sjdp ac_prev=exec_prefix ;; 15133965Sjdp -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 15233965Sjdp | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 15333965Sjdp | --exec=* | --exe=* | --ex=*) 15433965Sjdp exec_prefix="$ac_optarg" ;; 15533965Sjdp 15633965Sjdp -gas | --gas | --ga | --g) 15733965Sjdp # Obsolete; use --with-gas. 15833965Sjdp with_gas=yes ;; 15933965Sjdp 16033965Sjdp -help | --help | --hel | --he) 16133965Sjdp # Omit some internal or obsolete options to make the list less imposing. 16233965Sjdp # This message is too long to be a string in the A/UX 3.1 sh. 16333965Sjdp cat << EOF 16433965SjdpUsage: configure [options] [host] 16533965SjdpOptions: [defaults in brackets after descriptions] 16633965SjdpConfiguration: 16733965Sjdp --cache-file=FILE cache test results in FILE 16833965Sjdp --help print this message 16933965Sjdp --no-create do not create output files 17033965Sjdp --quiet, --silent do not print \`checking...' messages 17160484Sobrien --site-file=FILE use FILE as the site file 17233965Sjdp --version print the version of autoconf that created configure 17333965SjdpDirectory and file names: 17433965Sjdp --prefix=PREFIX install architecture-independent files in PREFIX 17533965Sjdp [$ac_default_prefix] 17633965Sjdp --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 17733965Sjdp [same as prefix] 17833965Sjdp --bindir=DIR user executables in DIR [EPREFIX/bin] 17933965Sjdp --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 18033965Sjdp --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 18133965Sjdp --datadir=DIR read-only architecture-independent data in DIR 18233965Sjdp [PREFIX/share] 18333965Sjdp --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 18433965Sjdp --sharedstatedir=DIR modifiable architecture-independent data in DIR 18533965Sjdp [PREFIX/com] 18633965Sjdp --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 18733965Sjdp --libdir=DIR object code libraries in DIR [EPREFIX/lib] 18833965Sjdp --includedir=DIR C header files in DIR [PREFIX/include] 18933965Sjdp --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 19033965Sjdp --infodir=DIR info documentation in DIR [PREFIX/info] 19133965Sjdp --mandir=DIR man documentation in DIR [PREFIX/man] 19233965Sjdp --srcdir=DIR find the sources in DIR [configure dir or ..] 19333965Sjdp --program-prefix=PREFIX prepend PREFIX to installed program names 19433965Sjdp --program-suffix=SUFFIX append SUFFIX to installed program names 19533965Sjdp --program-transform-name=PROGRAM 19633965Sjdp run sed PROGRAM on installed program names 19733965SjdpEOF 19833965Sjdp cat << EOF 19933965SjdpHost type: 20033965Sjdp --build=BUILD configure for building on BUILD [BUILD=HOST] 20133965Sjdp --host=HOST configure for HOST [guessed] 20233965Sjdp --target=TARGET configure for TARGET [TARGET=HOST] 20333965SjdpFeatures and packages: 20433965Sjdp --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 20533965Sjdp --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 20633965Sjdp --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 20733965Sjdp --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 20833965Sjdp --x-includes=DIR X include files are in DIR 20933965Sjdp --x-libraries=DIR X library files are in DIR 21033965SjdpEOF 21133965Sjdp if test -n "$ac_help"; then 21233965Sjdp echo "--enable and --with options recognized:$ac_help" 21333965Sjdp fi 21433965Sjdp exit 0 ;; 21533965Sjdp 21633965Sjdp -host | --host | --hos | --ho) 21733965Sjdp ac_prev=host ;; 21833965Sjdp -host=* | --host=* | --hos=* | --ho=*) 21933965Sjdp host="$ac_optarg" ;; 22033965Sjdp 22133965Sjdp -includedir | --includedir | --includedi | --included | --include \ 22233965Sjdp | --includ | --inclu | --incl | --inc) 22333965Sjdp ac_prev=includedir ;; 22433965Sjdp -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 22533965Sjdp | --includ=* | --inclu=* | --incl=* | --inc=*) 22633965Sjdp includedir="$ac_optarg" ;; 22733965Sjdp 22833965Sjdp -infodir | --infodir | --infodi | --infod | --info | --inf) 22933965Sjdp ac_prev=infodir ;; 23033965Sjdp -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 23133965Sjdp infodir="$ac_optarg" ;; 23233965Sjdp 23333965Sjdp -libdir | --libdir | --libdi | --libd) 23433965Sjdp ac_prev=libdir ;; 23533965Sjdp -libdir=* | --libdir=* | --libdi=* | --libd=*) 23633965Sjdp libdir="$ac_optarg" ;; 23733965Sjdp 23833965Sjdp -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 23933965Sjdp | --libexe | --libex | --libe) 24033965Sjdp ac_prev=libexecdir ;; 24133965Sjdp -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 24233965Sjdp | --libexe=* | --libex=* | --libe=*) 24333965Sjdp libexecdir="$ac_optarg" ;; 24433965Sjdp 24533965Sjdp -localstatedir | --localstatedir | --localstatedi | --localstated \ 24633965Sjdp | --localstate | --localstat | --localsta | --localst \ 24733965Sjdp | --locals | --local | --loca | --loc | --lo) 24833965Sjdp ac_prev=localstatedir ;; 24933965Sjdp -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 25033965Sjdp | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 25133965Sjdp | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 25233965Sjdp localstatedir="$ac_optarg" ;; 25333965Sjdp 25433965Sjdp -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 25533965Sjdp ac_prev=mandir ;; 25633965Sjdp -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 25733965Sjdp mandir="$ac_optarg" ;; 25833965Sjdp 25933965Sjdp -nfp | --nfp | --nf) 26033965Sjdp # Obsolete; use --without-fp. 26133965Sjdp with_fp=no ;; 26233965Sjdp 26333965Sjdp -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 26433965Sjdp | --no-cr | --no-c) 26533965Sjdp no_create=yes ;; 26633965Sjdp 26733965Sjdp -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 26833965Sjdp | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 26933965Sjdp no_recursion=yes ;; 27033965Sjdp 27133965Sjdp -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 27233965Sjdp | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 27333965Sjdp | --oldin | --oldi | --old | --ol | --o) 27433965Sjdp ac_prev=oldincludedir ;; 27533965Sjdp -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 27633965Sjdp | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 27733965Sjdp | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 27833965Sjdp oldincludedir="$ac_optarg" ;; 27933965Sjdp 28033965Sjdp -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 28133965Sjdp ac_prev=prefix ;; 28233965Sjdp -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 28333965Sjdp prefix="$ac_optarg" ;; 28433965Sjdp 28533965Sjdp -program-prefix | --program-prefix | --program-prefi | --program-pref \ 28633965Sjdp | --program-pre | --program-pr | --program-p) 28733965Sjdp ac_prev=program_prefix ;; 28833965Sjdp -program-prefix=* | --program-prefix=* | --program-prefi=* \ 28933965Sjdp | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 29033965Sjdp program_prefix="$ac_optarg" ;; 29133965Sjdp 29233965Sjdp -program-suffix | --program-suffix | --program-suffi | --program-suff \ 29333965Sjdp | --program-suf | --program-su | --program-s) 29433965Sjdp ac_prev=program_suffix ;; 29533965Sjdp -program-suffix=* | --program-suffix=* | --program-suffi=* \ 29633965Sjdp | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 29733965Sjdp program_suffix="$ac_optarg" ;; 29833965Sjdp 29933965Sjdp -program-transform-name | --program-transform-name \ 30033965Sjdp | --program-transform-nam | --program-transform-na \ 30133965Sjdp | --program-transform-n | --program-transform- \ 30233965Sjdp | --program-transform | --program-transfor \ 30333965Sjdp | --program-transfo | --program-transf \ 30433965Sjdp | --program-trans | --program-tran \ 30533965Sjdp | --progr-tra | --program-tr | --program-t) 30633965Sjdp ac_prev=program_transform_name ;; 30733965Sjdp -program-transform-name=* | --program-transform-name=* \ 30833965Sjdp | --program-transform-nam=* | --program-transform-na=* \ 30933965Sjdp | --program-transform-n=* | --program-transform-=* \ 31033965Sjdp | --program-transform=* | --program-transfor=* \ 31133965Sjdp | --program-transfo=* | --program-transf=* \ 31233965Sjdp | --program-trans=* | --program-tran=* \ 31333965Sjdp | --progr-tra=* | --program-tr=* | --program-t=*) 31433965Sjdp program_transform_name="$ac_optarg" ;; 31533965Sjdp 31633965Sjdp -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31733965Sjdp | -silent | --silent | --silen | --sile | --sil) 31833965Sjdp silent=yes ;; 31933965Sjdp 32033965Sjdp -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 32133965Sjdp ac_prev=sbindir ;; 32233965Sjdp -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 32333965Sjdp | --sbi=* | --sb=*) 32433965Sjdp sbindir="$ac_optarg" ;; 32533965Sjdp 32633965Sjdp -sharedstatedir | --sharedstatedir | --sharedstatedi \ 32733965Sjdp | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 32833965Sjdp | --sharedst | --shareds | --shared | --share | --shar \ 32933965Sjdp | --sha | --sh) 33033965Sjdp ac_prev=sharedstatedir ;; 33133965Sjdp -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 33233965Sjdp | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 33333965Sjdp | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 33433965Sjdp | --sha=* | --sh=*) 33533965Sjdp sharedstatedir="$ac_optarg" ;; 33633965Sjdp 33733965Sjdp -site | --site | --sit) 33833965Sjdp ac_prev=site ;; 33933965Sjdp -site=* | --site=* | --sit=*) 34033965Sjdp site="$ac_optarg" ;; 34133965Sjdp 34260484Sobrien -site-file | --site-file | --site-fil | --site-fi | --site-f) 34360484Sobrien ac_prev=sitefile ;; 34460484Sobrien -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) 34560484Sobrien sitefile="$ac_optarg" ;; 34660484Sobrien 34733965Sjdp -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 34833965Sjdp ac_prev=srcdir ;; 34933965Sjdp -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 35033965Sjdp srcdir="$ac_optarg" ;; 35133965Sjdp 35233965Sjdp -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 35333965Sjdp | --syscon | --sysco | --sysc | --sys | --sy) 35433965Sjdp ac_prev=sysconfdir ;; 35533965Sjdp -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 35633965Sjdp | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 35733965Sjdp sysconfdir="$ac_optarg" ;; 35833965Sjdp 35933965Sjdp -target | --target | --targe | --targ | --tar | --ta | --t) 36033965Sjdp ac_prev=target ;; 36133965Sjdp -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 36233965Sjdp target="$ac_optarg" ;; 36333965Sjdp 36433965Sjdp -v | -verbose | --verbose | --verbos | --verbo | --verb) 36533965Sjdp verbose=yes ;; 36633965Sjdp 36733965Sjdp -version | --version | --versio | --versi | --vers) 36860484Sobrien echo "configure generated by autoconf version 2.13" 36933965Sjdp exit 0 ;; 37033965Sjdp 37133965Sjdp -with-* | --with-*) 37233965Sjdp ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 37333965Sjdp # Reject names that are not valid shell variable names. 37433965Sjdp if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 37533965Sjdp { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 37633965Sjdp fi 37733965Sjdp ac_package=`echo $ac_package| sed 's/-/_/g'` 37833965Sjdp case "$ac_option" in 37933965Sjdp *=*) ;; 38033965Sjdp *) ac_optarg=yes ;; 38133965Sjdp esac 38233965Sjdp eval "with_${ac_package}='$ac_optarg'" ;; 38333965Sjdp 38433965Sjdp -without-* | --without-*) 38533965Sjdp ac_package=`echo $ac_option|sed -e 's/-*without-//'` 38633965Sjdp # Reject names that are not valid shell variable names. 38733965Sjdp if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 38833965Sjdp { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 38933965Sjdp fi 39033965Sjdp ac_package=`echo $ac_package| sed 's/-/_/g'` 39133965Sjdp eval "with_${ac_package}=no" ;; 39233965Sjdp 39333965Sjdp --x) 39433965Sjdp # Obsolete; use --with-x. 39533965Sjdp with_x=yes ;; 39633965Sjdp 39733965Sjdp -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 39833965Sjdp | --x-incl | --x-inc | --x-in | --x-i) 39933965Sjdp ac_prev=x_includes ;; 40033965Sjdp -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 40133965Sjdp | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 40233965Sjdp x_includes="$ac_optarg" ;; 40333965Sjdp 40433965Sjdp -x-libraries | --x-libraries | --x-librarie | --x-librari \ 40533965Sjdp | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 40633965Sjdp ac_prev=x_libraries ;; 40733965Sjdp -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 40833965Sjdp | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 40933965Sjdp x_libraries="$ac_optarg" ;; 41033965Sjdp 41133965Sjdp -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 41233965Sjdp ;; 41333965Sjdp 41433965Sjdp *) 41533965Sjdp if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 41633965Sjdp echo "configure: warning: $ac_option: invalid host type" 1>&2 41733965Sjdp fi 41833965Sjdp if test "x$nonopt" != xNONE; then 41933965Sjdp { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 42033965Sjdp fi 42133965Sjdp nonopt="$ac_option" 42233965Sjdp ;; 42333965Sjdp 42433965Sjdp esac 42533965Sjdpdone 42633965Sjdp 42733965Sjdpif test -n "$ac_prev"; then 42833965Sjdp { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 42933965Sjdpfi 43033965Sjdp 43133965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 43233965Sjdp 43333965Sjdp# File descriptor usage: 43433965Sjdp# 0 standard input 43533965Sjdp# 1 file creation 43633965Sjdp# 2 errors and warnings 43733965Sjdp# 3 some systems may open it to /dev/tty 43833965Sjdp# 4 used on the Kubota Titan 43933965Sjdp# 6 checking for... messages and results 44033965Sjdp# 5 compiler messages saved in config.log 44133965Sjdpif test "$silent" = yes; then 44233965Sjdp exec 6>/dev/null 44333965Sjdpelse 44433965Sjdp exec 6>&1 44533965Sjdpfi 44633965Sjdpexec 5>./config.log 44733965Sjdp 44833965Sjdpecho "\ 44933965SjdpThis file contains any messages produced by compilers while 45033965Sjdprunning configure, to aid debugging if configure makes a mistake. 45133965Sjdp" 1>&5 45233965Sjdp 45333965Sjdp# Strip out --no-create and --no-recursion so they do not pile up. 45433965Sjdp# Also quote any args containing shell metacharacters. 45533965Sjdpac_configure_args= 45633965Sjdpfor ac_arg 45733965Sjdpdo 45833965Sjdp case "$ac_arg" in 45933965Sjdp -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 46033965Sjdp | --no-cr | --no-c) ;; 46133965Sjdp -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 46233965Sjdp | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 46333965Sjdp *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 46433965Sjdp ac_configure_args="$ac_configure_args '$ac_arg'" ;; 46533965Sjdp *) ac_configure_args="$ac_configure_args $ac_arg" ;; 46633965Sjdp esac 46733965Sjdpdone 46833965Sjdp 46933965Sjdp# NLS nuisances. 47033965Sjdp# Only set these to C if already set. These must not be set unconditionally 47133965Sjdp# because not all systems understand e.g. LANG=C (notably SCO). 47233965Sjdp# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 47333965Sjdp# Non-C LC_CTYPE values break the ctype check. 47433965Sjdpif test "${LANG+set}" = set; then LANG=C; export LANG; fi 47533965Sjdpif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 47633965Sjdpif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 47733965Sjdpif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 47833965Sjdp 47933965Sjdp# confdefs.h avoids OS command line length limits that DEFS can exceed. 48033965Sjdprm -rf conftest* confdefs.h 48133965Sjdp# AIX cpp loses on an empty file, so make sure it contains at least a newline. 48233965Sjdpecho > confdefs.h 48333965Sjdp 48433965Sjdp# A filename unique to this package, relative to the directory that 48533965Sjdp# configure is in, which we can look for to find out if srcdir is correct. 48633965Sjdpac_unique_file=libbfd.c 48733965Sjdp 48833965Sjdp# Find the source files, if location was not specified. 48933965Sjdpif test -z "$srcdir"; then 49033965Sjdp ac_srcdir_defaulted=yes 49133965Sjdp # Try the directory containing this script, then its parent. 49233965Sjdp ac_prog=$0 49333965Sjdp ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 49433965Sjdp test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 49533965Sjdp srcdir=$ac_confdir 49633965Sjdp if test ! -r $srcdir/$ac_unique_file; then 49733965Sjdp srcdir=.. 49833965Sjdp fi 49933965Sjdpelse 50033965Sjdp ac_srcdir_defaulted=no 50133965Sjdpfi 50233965Sjdpif test ! -r $srcdir/$ac_unique_file; then 50333965Sjdp if test "$ac_srcdir_defaulted" = yes; then 50433965Sjdp { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 50533965Sjdp else 50633965Sjdp { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 50733965Sjdp fi 50833965Sjdpfi 50933965Sjdpsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 51033965Sjdp 51133965Sjdp# Prefer explicitly selected file to automatically selected ones. 51260484Sobrienif test -z "$sitefile"; then 51360484Sobrien if test -z "$CONFIG_SITE"; then 51460484Sobrien if test "x$prefix" != xNONE; then 51560484Sobrien CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 51660484Sobrien else 51760484Sobrien CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 51860484Sobrien fi 51933965Sjdp fi 52060484Sobrienelse 52160484Sobrien CONFIG_SITE="$sitefile" 52233965Sjdpfi 52333965Sjdpfor ac_site_file in $CONFIG_SITE; do 52433965Sjdp if test -r "$ac_site_file"; then 52533965Sjdp echo "loading site script $ac_site_file" 52633965Sjdp . "$ac_site_file" 52733965Sjdp fi 52833965Sjdpdone 52933965Sjdp 53033965Sjdpif test -r "$cache_file"; then 53133965Sjdp echo "loading cache $cache_file" 53233965Sjdp . $cache_file 53333965Sjdpelse 53433965Sjdp echo "creating cache $cache_file" 53533965Sjdp > $cache_file 53633965Sjdpfi 53733965Sjdp 53833965Sjdpac_ext=c 53933965Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 54033965Sjdpac_cpp='$CPP $CPPFLAGS' 54133965Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 54260484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 54333965Sjdpcross_compiling=$ac_cv_prog_cc_cross 54433965Sjdp 54560484Sobrienac_exeext= 54660484Sobrienac_objext=o 54733965Sjdpif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 54833965Sjdp # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 54933965Sjdp if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 55033965Sjdp ac_n= ac_c=' 55133965Sjdp' ac_t=' ' 55233965Sjdp else 55333965Sjdp ac_n=-n ac_c= ac_t= 55433965Sjdp fi 55533965Sjdpelse 55633965Sjdp ac_n= ac_c='\c' ac_t= 55733965Sjdpfi 55833965Sjdp 55933965Sjdp 56033965Sjdp 56133965Sjdpac_aux_dir= 56238889Sjdpfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 56333965Sjdp if test -f $ac_dir/install-sh; then 56433965Sjdp ac_aux_dir=$ac_dir 56533965Sjdp ac_install_sh="$ac_aux_dir/install-sh -c" 56633965Sjdp break 56733965Sjdp elif test -f $ac_dir/install.sh; then 56833965Sjdp ac_aux_dir=$ac_dir 56933965Sjdp ac_install_sh="$ac_aux_dir/install.sh -c" 57033965Sjdp break 57133965Sjdp fi 57233965Sjdpdone 57333965Sjdpif test -z "$ac_aux_dir"; then 57438889Sjdp { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 57533965Sjdpfi 57633965Sjdpac_config_guess=$ac_aux_dir/config.guess 57733965Sjdpac_config_sub=$ac_aux_dir/config.sub 57833965Sjdpac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 57933965Sjdp 58033965Sjdp 58133965Sjdp# Do some error checking and defaulting for the host and target type. 58233965Sjdp# The inputs are: 58333965Sjdp# configure --host=HOST --target=TARGET --build=BUILD NONOPT 58433965Sjdp# 58533965Sjdp# The rules are: 58633965Sjdp# 1. You are not allowed to specify --host, --target, and nonopt at the 58733965Sjdp# same time. 58833965Sjdp# 2. Host defaults to nonopt. 58933965Sjdp# 3. If nonopt is not specified, then host defaults to the current host, 59033965Sjdp# as determined by config.guess. 59133965Sjdp# 4. Target and build default to nonopt. 59233965Sjdp# 5. If nonopt is not specified, then target and build default to host. 59333965Sjdp 59433965Sjdp# The aliases save the names the user supplied, while $host etc. 59533965Sjdp# will get canonicalized. 59633965Sjdpcase $host---$target---$nonopt in 59733965SjdpNONE---*---* | *---NONE---* | *---*---NONE) ;; 59833965Sjdp*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 59933965Sjdpesac 60033965Sjdp 60133965Sjdp 60233965Sjdp# Make sure we can run config.sub. 60338889Sjdpif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 60433965Sjdpelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 60533965Sjdpfi 60633965Sjdp 60733965Sjdpecho $ac_n "checking host system type""... $ac_c" 1>&6 60860484Sobrienecho "configure:609: checking host system type" >&5 60933965Sjdp 61033965Sjdphost_alias=$host 61133965Sjdpcase "$host_alias" in 61233965SjdpNONE) 61333965Sjdp case $nonopt in 61433965Sjdp NONE) 61538889Sjdp if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 61633965Sjdp else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 61733965Sjdp fi ;; 61833965Sjdp *) host_alias=$nonopt ;; 61933965Sjdp esac ;; 62033965Sjdpesac 62133965Sjdp 62238889Sjdphost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 62333965Sjdphost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 62433965Sjdphost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 62533965Sjdphost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 62633965Sjdpecho "$ac_t""$host" 1>&6 62733965Sjdp 62833965Sjdpecho $ac_n "checking target system type""... $ac_c" 1>&6 62960484Sobrienecho "configure:630: checking target system type" >&5 63033965Sjdp 63133965Sjdptarget_alias=$target 63233965Sjdpcase "$target_alias" in 63333965SjdpNONE) 63433965Sjdp case $nonopt in 63533965Sjdp NONE) target_alias=$host_alias ;; 63633965Sjdp *) target_alias=$nonopt ;; 63733965Sjdp esac ;; 63833965Sjdpesac 63933965Sjdp 64038889Sjdptarget=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 64133965Sjdptarget_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 64233965Sjdptarget_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 64333965Sjdptarget_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 64433965Sjdpecho "$ac_t""$target" 1>&6 64533965Sjdp 64633965Sjdpecho $ac_n "checking build system type""... $ac_c" 1>&6 64760484Sobrienecho "configure:648: checking build system type" >&5 64833965Sjdp 64933965Sjdpbuild_alias=$build 65033965Sjdpcase "$build_alias" in 65133965SjdpNONE) 65233965Sjdp case $nonopt in 65333965Sjdp NONE) build_alias=$host_alias ;; 65433965Sjdp *) build_alias=$nonopt ;; 65533965Sjdp esac ;; 65633965Sjdpesac 65733965Sjdp 65838889Sjdpbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 65933965Sjdpbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 66033965Sjdpbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 66133965Sjdpbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 66233965Sjdpecho "$ac_t""$build" 1>&6 66333965Sjdp 66433965Sjdptest "$host_alias" != "$target_alias" && 66533965Sjdp test "$program_prefix$program_suffix$program_transform_name" = \ 66633965Sjdp NONENONEs,x,x, && 66733965Sjdp program_prefix=${target_alias}- 66833965Sjdp 66933965Sjdp# Extract the first word of "gcc", so it can be a program name with args. 67033965Sjdpset dummy gcc; ac_word=$2 67133965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 67260484Sobrienecho "configure:673: checking for $ac_word" >&5 67333965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 67433965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 67533965Sjdpelse 67633965Sjdp if test -n "$CC"; then 67733965Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 67833965Sjdpelse 67960484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 68060484Sobrien ac_dummy="$PATH" 68160484Sobrien for ac_dir in $ac_dummy; do 68233965Sjdp test -z "$ac_dir" && ac_dir=. 68333965Sjdp if test -f $ac_dir/$ac_word; then 68433965Sjdp ac_cv_prog_CC="gcc" 68533965Sjdp break 68633965Sjdp fi 68733965Sjdp done 68833965Sjdp IFS="$ac_save_ifs" 68933965Sjdpfi 69033965Sjdpfi 69133965SjdpCC="$ac_cv_prog_CC" 69233965Sjdpif test -n "$CC"; then 69333965Sjdp echo "$ac_t""$CC" 1>&6 69433965Sjdpelse 69533965Sjdp echo "$ac_t""no" 1>&6 69633965Sjdpfi 69733965Sjdp 69833965Sjdpif test -z "$CC"; then 69933965Sjdp # Extract the first word of "cc", so it can be a program name with args. 70033965Sjdpset dummy cc; ac_word=$2 70133965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 70260484Sobrienecho "configure:703: checking for $ac_word" >&5 70333965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 70433965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 70533965Sjdpelse 70633965Sjdp if test -n "$CC"; then 70733965Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 70833965Sjdpelse 70960484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 71033965Sjdp ac_prog_rejected=no 71160484Sobrien ac_dummy="$PATH" 71260484Sobrien for ac_dir in $ac_dummy; do 71333965Sjdp test -z "$ac_dir" && ac_dir=. 71433965Sjdp if test -f $ac_dir/$ac_word; then 71533965Sjdp if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 71633965Sjdp ac_prog_rejected=yes 71733965Sjdp continue 71833965Sjdp fi 71933965Sjdp ac_cv_prog_CC="cc" 72033965Sjdp break 72133965Sjdp fi 72233965Sjdp done 72333965Sjdp IFS="$ac_save_ifs" 72433965Sjdpif test $ac_prog_rejected = yes; then 72533965Sjdp # We found a bogon in the path, so make sure we never use it. 72633965Sjdp set dummy $ac_cv_prog_CC 72733965Sjdp shift 72833965Sjdp if test $# -gt 0; then 72933965Sjdp # We chose a different compiler from the bogus one. 73033965Sjdp # However, it has the same basename, so the bogon will be chosen 73133965Sjdp # first if we set CC to just the basename; use the full file name. 73233965Sjdp shift 73333965Sjdp set dummy "$ac_dir/$ac_word" "$@" 73433965Sjdp shift 73533965Sjdp ac_cv_prog_CC="$@" 73633965Sjdp fi 73733965Sjdpfi 73833965Sjdpfi 73933965Sjdpfi 74033965SjdpCC="$ac_cv_prog_CC" 74133965Sjdpif test -n "$CC"; then 74233965Sjdp echo "$ac_t""$CC" 1>&6 74333965Sjdpelse 74433965Sjdp echo "$ac_t""no" 1>&6 74533965Sjdpfi 74633965Sjdp 74760484Sobrien if test -z "$CC"; then 74860484Sobrien case "`uname -s`" in 74960484Sobrien *win32* | *WIN32*) 75060484Sobrien # Extract the first word of "cl", so it can be a program name with args. 75160484Sobrienset dummy cl; ac_word=$2 75260484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 75360484Sobrienecho "configure:754: checking for $ac_word" >&5 75460484Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 75560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 75660484Sobrienelse 75760484Sobrien if test -n "$CC"; then 75860484Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 75960484Sobrienelse 76060484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 76160484Sobrien ac_dummy="$PATH" 76260484Sobrien for ac_dir in $ac_dummy; do 76360484Sobrien test -z "$ac_dir" && ac_dir=. 76460484Sobrien if test -f $ac_dir/$ac_word; then 76560484Sobrien ac_cv_prog_CC="cl" 76660484Sobrien break 76760484Sobrien fi 76860484Sobrien done 76960484Sobrien IFS="$ac_save_ifs" 77060484Sobrienfi 77160484Sobrienfi 77260484SobrienCC="$ac_cv_prog_CC" 77360484Sobrienif test -n "$CC"; then 77460484Sobrien echo "$ac_t""$CC" 1>&6 77560484Sobrienelse 77660484Sobrien echo "$ac_t""no" 1>&6 77760484Sobrienfi 77860484Sobrien ;; 77960484Sobrien esac 78060484Sobrien fi 78133965Sjdp test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 78233965Sjdpfi 78333965Sjdp 78433965Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 78560484Sobrienecho "configure:786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 78633965Sjdp 78733965Sjdpac_ext=c 78833965Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 78933965Sjdpac_cpp='$CPP $CPPFLAGS' 79033965Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 79160484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 79233965Sjdpcross_compiling=$ac_cv_prog_cc_cross 79333965Sjdp 79460484Sobriencat > conftest.$ac_ext << EOF 79560484Sobrien 79660484Sobrien#line 797 "configure" 79733965Sjdp#include "confdefs.h" 79860484Sobrien 79933965Sjdpmain(){return(0);} 80033965SjdpEOF 80160484Sobrienif { (eval echo configure:802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 80233965Sjdp ac_cv_prog_cc_works=yes 80333965Sjdp # If we can't run a trivial program, we are probably using a cross compiler. 80433965Sjdp if (./conftest; exit) 2>/dev/null; then 80533965Sjdp ac_cv_prog_cc_cross=no 80633965Sjdp else 80733965Sjdp ac_cv_prog_cc_cross=yes 80833965Sjdp fi 80933965Sjdpelse 81033965Sjdp echo "configure: failed program was:" >&5 81133965Sjdp cat conftest.$ac_ext >&5 81233965Sjdp ac_cv_prog_cc_works=no 81333965Sjdpfi 81433965Sjdprm -fr conftest* 81560484Sobrienac_ext=c 81660484Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 81760484Sobrienac_cpp='$CPP $CPPFLAGS' 81860484Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 81960484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 82060484Sobriencross_compiling=$ac_cv_prog_cc_cross 82133965Sjdp 82233965Sjdpecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 82333965Sjdpif test $ac_cv_prog_cc_works = no; then 82433965Sjdp { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 82533965Sjdpfi 82633965Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 82760484Sobrienecho "configure:828: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 82833965Sjdpecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 82933965Sjdpcross_compiling=$ac_cv_prog_cc_cross 83033965Sjdp 83133965Sjdpecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 83260484Sobrienecho "configure:833: checking whether we are using GNU C" >&5 83333965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 83433965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 83533965Sjdpelse 83633965Sjdp cat > conftest.c <<EOF 83733965Sjdp#ifdef __GNUC__ 83833965Sjdp yes; 83933965Sjdp#endif 84033965SjdpEOF 84160484Sobrienif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 84233965Sjdp ac_cv_prog_gcc=yes 84333965Sjdpelse 84433965Sjdp ac_cv_prog_gcc=no 84533965Sjdpfi 84633965Sjdpfi 84733965Sjdp 84833965Sjdpecho "$ac_t""$ac_cv_prog_gcc" 1>&6 84933965Sjdp 85033965Sjdpif test $ac_cv_prog_gcc = yes; then 85133965Sjdp GCC=yes 85260484Sobrienelse 85360484Sobrien GCC= 85460484Sobrienfi 85560484Sobrien 85660484Sobrienac_test_CFLAGS="${CFLAGS+set}" 85760484Sobrienac_save_CFLAGS="$CFLAGS" 85860484SobrienCFLAGS= 85960484Sobrienecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 86060484Sobrienecho "configure:861: checking whether ${CC-cc} accepts -g" >&5 86133965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 86233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 86333965Sjdpelse 86433965Sjdp echo 'void f(){}' > conftest.c 86533965Sjdpif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 86633965Sjdp ac_cv_prog_cc_g=yes 86733965Sjdpelse 86833965Sjdp ac_cv_prog_cc_g=no 86933965Sjdpfi 87033965Sjdprm -f conftest* 87133965Sjdp 87233965Sjdpfi 87333965Sjdp 87433965Sjdpecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 87560484Sobrienif test "$ac_test_CFLAGS" = set; then 87660484Sobrien CFLAGS="$ac_save_CFLAGS" 87760484Sobrienelif test $ac_cv_prog_cc_g = yes; then 87860484Sobrien if test "$GCC" = yes; then 87933965Sjdp CFLAGS="-g -O2" 88033965Sjdp else 88160484Sobrien CFLAGS="-g" 88260484Sobrien fi 88360484Sobrienelse 88460484Sobrien if test "$GCC" = yes; then 88533965Sjdp CFLAGS="-O2" 88660484Sobrien else 88760484Sobrien CFLAGS= 88833965Sjdp fi 88933965Sjdpfi 89033965Sjdp 89133965Sjdpecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 89260484Sobrienecho "configure:893: checking for POSIXized ISC" >&5 89333965Sjdpif test -d /etc/conf/kconfig.d && 89433965Sjdp grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 89533965Sjdpthen 89633965Sjdp echo "$ac_t""yes" 1>&6 89733965Sjdp ISC=yes # If later tests want to check for ISC. 89833965Sjdp cat >> confdefs.h <<\EOF 89933965Sjdp#define _POSIX_SOURCE 1 90033965SjdpEOF 90133965Sjdp 90233965Sjdp if test "$GCC" = yes; then 90333965Sjdp CC="$CC -posix" 90433965Sjdp else 90533965Sjdp CC="$CC -Xp" 90633965Sjdp fi 90733965Sjdpelse 90833965Sjdp echo "$ac_t""no" 1>&6 90933965Sjdp ISC= 91033965Sjdpfi 91133965Sjdp 91233965Sjdp 91338889Sjdp# Find a good install program. We prefer a C program (faster), 91438889Sjdp# so one script is as good as another. But avoid the broken or 91538889Sjdp# incompatible versions: 91638889Sjdp# SysV /etc/install, /usr/sbin/install 91738889Sjdp# SunOS /usr/etc/install 91838889Sjdp# IRIX /sbin/install 91938889Sjdp# AIX /bin/install 92038889Sjdp# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 92138889Sjdp# AFS /usr/afsws/bin/install, which mishandles nonexistent args 92238889Sjdp# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 92338889Sjdp# ./install, which can be erroneously created by make from ./install.sh. 92438889Sjdpecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 92560484Sobrienecho "configure:926: checking for a BSD compatible install" >&5 92638889Sjdpif test -z "$INSTALL"; then 92738889Sjdpif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 92838889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 92938889Sjdpelse 93060484Sobrien IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 93138889Sjdp for ac_dir in $PATH; do 93238889Sjdp # Account for people who put trailing slashes in PATH elements. 93338889Sjdp case "$ac_dir/" in 93438889Sjdp /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 93538889Sjdp *) 93638889Sjdp # OSF1 and SCO ODT 3.0 have their own names for install. 93738889Sjdp # Don't use installbsd from OSF since it installs stuff as root 93838889Sjdp # by default. 93938889Sjdp for ac_prog in ginstall scoinst install; do 94038889Sjdp if test -f $ac_dir/$ac_prog; then 94138889Sjdp if test $ac_prog = install && 94238889Sjdp grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 94338889Sjdp # AIX install. It has an incompatible calling convention. 94438889Sjdp : 94538889Sjdp else 94638889Sjdp ac_cv_path_install="$ac_dir/$ac_prog -c" 94738889Sjdp break 2 94838889Sjdp fi 94938889Sjdp fi 95038889Sjdp done 95138889Sjdp ;; 95238889Sjdp esac 95338889Sjdp done 95438889Sjdp IFS="$ac_save_IFS" 95533965Sjdp 95638889Sjdpfi 95738889Sjdp if test "${ac_cv_path_install+set}" = set; then 95838889Sjdp INSTALL="$ac_cv_path_install" 95938889Sjdp else 96038889Sjdp # As a last resort, use the slow shell script. We don't cache a 96138889Sjdp # path for INSTALL within a source directory, because that will 96238889Sjdp # break other packages using the cache if that directory is 96338889Sjdp # removed, or if the path is relative. 96438889Sjdp INSTALL="$ac_install_sh" 96538889Sjdp fi 96638889Sjdpfi 96738889Sjdpecho "$ac_t""$INSTALL" 1>&6 96833965Sjdp 96938889Sjdp# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 97038889Sjdp# It thinks the first close brace ends the variable substitution. 97138889Sjdptest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 97238889Sjdp 97360484Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 97460484Sobrien 97538889Sjdptest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 97638889Sjdp 97738889Sjdpecho $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 97860484Sobrienecho "configure:979: checking whether build environment is sane" >&5 97938889Sjdp# Just in case 98038889Sjdpsleep 1 98138889Sjdpecho timestamp > conftestfile 98238889Sjdp# Do `set' in a subshell so we don't clobber the current shell's 98338889Sjdp# arguments. Must try -L first in case configure is actually a 98438889Sjdp# symlink; some systems play weird games with the mod time of symlinks 98538889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing 98638889Sjdp# directory). 98738889Sjdpif ( 98838889Sjdp set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 98938889Sjdp if test "$*" = "X"; then 99038889Sjdp # -L didn't work. 99138889Sjdp set X `ls -t $srcdir/configure conftestfile` 99238889Sjdp fi 99338889Sjdp if test "$*" != "X $srcdir/configure conftestfile" \ 99438889Sjdp && test "$*" != "X conftestfile $srcdir/configure"; then 99538889Sjdp 99638889Sjdp # If neither matched, then we have a broken ls. This can happen 99738889Sjdp # if, for instance, CONFIG_SHELL is bash and it inherits a 99838889Sjdp # broken ls alias from the environment. This has actually 99938889Sjdp # happened. Such a system could not be considered "sane". 100038889Sjdp { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 100138889Sjdpalias in your environment" 1>&2; exit 1; } 100238889Sjdp fi 100338889Sjdp 100438889Sjdp test "$2" = conftestfile 100538889Sjdp ) 100638889Sjdpthen 100738889Sjdp # Ok. 100838889Sjdp : 100938889Sjdpelse 101038889Sjdp { echo "configure: error: newly created file is older than distributed files! 101138889SjdpCheck your system clock" 1>&2; exit 1; } 101238889Sjdpfi 101338889Sjdprm -f conftest* 101438889Sjdpecho "$ac_t""yes" 1>&6 101538889Sjdpif test "$program_transform_name" = s,x,x,; then 101638889Sjdp program_transform_name= 101738889Sjdpelse 101838889Sjdp # Double any \ or $. echo might interpret backslashes. 101938889Sjdp cat <<\EOF_SED > conftestsed 102038889Sjdps,\\,\\\\,g; s,\$,$$,g 102138889SjdpEOF_SED 102238889Sjdp program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 102338889Sjdp rm -f conftestsed 102438889Sjdpfi 102538889Sjdptest "$program_prefix" != NONE && 102638889Sjdp program_transform_name="s,^,${program_prefix},; $program_transform_name" 102738889Sjdp# Use a double $ so make ignores it. 102838889Sjdptest "$program_suffix" != NONE && 102938889Sjdp program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 103038889Sjdp 103138889Sjdp# sed with no file args requires a program. 103238889Sjdptest "$program_transform_name" = "" && program_transform_name="s,x,x," 103338889Sjdp 103438889Sjdpecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 103560484Sobrienecho "configure:1036: checking whether ${MAKE-make} sets \${MAKE}" >&5 103638889Sjdpset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 103738889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 103838889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 103938889Sjdpelse 104038889Sjdp cat > conftestmake <<\EOF 104138889Sjdpall: 104238889Sjdp @echo 'ac_maketemp="${MAKE}"' 104338889SjdpEOF 104438889Sjdp# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 104538889Sjdpeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 104638889Sjdpif test -n "$ac_maketemp"; then 104738889Sjdp eval ac_cv_prog_make_${ac_make}_set=yes 104838889Sjdpelse 104938889Sjdp eval ac_cv_prog_make_${ac_make}_set=no 105038889Sjdpfi 105138889Sjdprm -f conftestmake 105238889Sjdpfi 105338889Sjdpif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 105438889Sjdp echo "$ac_t""yes" 1>&6 105538889Sjdp SET_MAKE= 105638889Sjdpelse 105738889Sjdp echo "$ac_t""no" 1>&6 105838889Sjdp SET_MAKE="MAKE=${MAKE-make}" 105938889Sjdpfi 106038889Sjdp 106138889Sjdp 106238889SjdpPACKAGE=bfd 106338889Sjdp 106460484SobrienVERSION=2.9.5 106538889Sjdp 106638889Sjdpif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 106738889Sjdp { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 106838889Sjdpfi 106938889Sjdpcat >> confdefs.h <<EOF 107038889Sjdp#define PACKAGE "$PACKAGE" 107138889SjdpEOF 107238889Sjdp 107338889Sjdpcat >> confdefs.h <<EOF 107438889Sjdp#define VERSION "$VERSION" 107538889SjdpEOF 107638889Sjdp 107738889Sjdp 107838889Sjdp 107938889Sjdpmissing_dir=`cd $ac_aux_dir && pwd` 108038889Sjdpecho $ac_n "checking for working aclocal""... $ac_c" 1>&6 108160484Sobrienecho "configure:1082: checking for working aclocal" >&5 108238889Sjdp# Run test in a subshell; some versions of sh will print an error if 108338889Sjdp# an executable is not found, even if stderr is redirected. 108438889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 108538889Sjdpif (aclocal --version) < /dev/null > /dev/null 2>&1; then 108638889Sjdp ACLOCAL=aclocal 108738889Sjdp echo "$ac_t""found" 1>&6 108838889Sjdpelse 108938889Sjdp ACLOCAL="$missing_dir/missing aclocal" 109038889Sjdp echo "$ac_t""missing" 1>&6 109138889Sjdpfi 109238889Sjdp 109338889Sjdpecho $ac_n "checking for working autoconf""... $ac_c" 1>&6 109460484Sobrienecho "configure:1095: checking for working autoconf" >&5 109538889Sjdp# Run test in a subshell; some versions of sh will print an error if 109638889Sjdp# an executable is not found, even if stderr is redirected. 109738889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 109838889Sjdpif (autoconf --version) < /dev/null > /dev/null 2>&1; then 109938889Sjdp AUTOCONF=autoconf 110038889Sjdp echo "$ac_t""found" 1>&6 110138889Sjdpelse 110238889Sjdp AUTOCONF="$missing_dir/missing autoconf" 110338889Sjdp echo "$ac_t""missing" 1>&6 110438889Sjdpfi 110538889Sjdp 110638889Sjdpecho $ac_n "checking for working automake""... $ac_c" 1>&6 110760484Sobrienecho "configure:1108: checking for working automake" >&5 110838889Sjdp# Run test in a subshell; some versions of sh will print an error if 110938889Sjdp# an executable is not found, even if stderr is redirected. 111038889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 111138889Sjdpif (automake --version) < /dev/null > /dev/null 2>&1; then 111238889Sjdp AUTOMAKE=automake 111338889Sjdp echo "$ac_t""found" 1>&6 111438889Sjdpelse 111538889Sjdp AUTOMAKE="$missing_dir/missing automake" 111638889Sjdp echo "$ac_t""missing" 1>&6 111738889Sjdpfi 111838889Sjdp 111938889Sjdpecho $ac_n "checking for working autoheader""... $ac_c" 1>&6 112060484Sobrienecho "configure:1121: checking for working autoheader" >&5 112138889Sjdp# Run test in a subshell; some versions of sh will print an error if 112238889Sjdp# an executable is not found, even if stderr is redirected. 112338889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 112438889Sjdpif (autoheader --version) < /dev/null > /dev/null 2>&1; then 112538889Sjdp AUTOHEADER=autoheader 112638889Sjdp echo "$ac_t""found" 1>&6 112738889Sjdpelse 112838889Sjdp AUTOHEADER="$missing_dir/missing autoheader" 112938889Sjdp echo "$ac_t""missing" 1>&6 113038889Sjdpfi 113138889Sjdp 113238889Sjdpecho $ac_n "checking for working makeinfo""... $ac_c" 1>&6 113360484Sobrienecho "configure:1134: checking for working makeinfo" >&5 113438889Sjdp# Run test in a subshell; some versions of sh will print an error if 113538889Sjdp# an executable is not found, even if stderr is redirected. 113638889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 113738889Sjdpif (makeinfo --version) < /dev/null > /dev/null 2>&1; then 113838889Sjdp MAKEINFO=makeinfo 113938889Sjdp echo "$ac_t""found" 1>&6 114038889Sjdpelse 114138889Sjdp MAKEINFO="$missing_dir/missing makeinfo" 114238889Sjdp echo "$ac_t""missing" 1>&6 114338889Sjdpfi 114438889Sjdp 114538889Sjdp 114638889Sjdp 114733965Sjdpif test $host != $build; then 114833965Sjdp ac_tool_prefix=${host_alias}- 114933965Sjdpelse 115033965Sjdp ac_tool_prefix= 115133965Sjdpfi 115233965Sjdp 115333965Sjdp# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 115433965Sjdpset dummy ${ac_tool_prefix}ar; ac_word=$2 115533965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 115660484Sobrienecho "configure:1157: checking for $ac_word" >&5 115733965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 115833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 115933965Sjdpelse 116033965Sjdp if test -n "$AR"; then 116133965Sjdp ac_cv_prog_AR="$AR" # Let the user override the test. 116233965Sjdpelse 116360484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 116460484Sobrien ac_dummy="$PATH" 116560484Sobrien for ac_dir in $ac_dummy; do 116633965Sjdp test -z "$ac_dir" && ac_dir=. 116733965Sjdp if test -f $ac_dir/$ac_word; then 116833965Sjdp ac_cv_prog_AR="${ac_tool_prefix}ar" 116933965Sjdp break 117033965Sjdp fi 117133965Sjdp done 117233965Sjdp IFS="$ac_save_ifs" 117333965Sjdp test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 117433965Sjdpfi 117533965Sjdpfi 117633965SjdpAR="$ac_cv_prog_AR" 117733965Sjdpif test -n "$AR"; then 117833965Sjdp echo "$ac_t""$AR" 1>&6 117933965Sjdpelse 118033965Sjdp echo "$ac_t""no" 1>&6 118133965Sjdpfi 118233965Sjdp 118333965Sjdp 118433965Sjdp 118533965Sjdp# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 118633965Sjdpset dummy ${ac_tool_prefix}ranlib; ac_word=$2 118733965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 118860484Sobrienecho "configure:1189: checking for $ac_word" >&5 118933965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 119033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 119133965Sjdpelse 119233965Sjdp if test -n "$RANLIB"; then 119333965Sjdp ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 119433965Sjdpelse 119560484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 119660484Sobrien ac_dummy="$PATH" 119760484Sobrien for ac_dir in $ac_dummy; do 119833965Sjdp test -z "$ac_dir" && ac_dir=. 119933965Sjdp if test -f $ac_dir/$ac_word; then 120033965Sjdp ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 120133965Sjdp break 120233965Sjdp fi 120333965Sjdp done 120433965Sjdp IFS="$ac_save_ifs" 120533965Sjdpfi 120633965Sjdpfi 120733965SjdpRANLIB="$ac_cv_prog_RANLIB" 120833965Sjdpif test -n "$RANLIB"; then 120933965Sjdp echo "$ac_t""$RANLIB" 1>&6 121033965Sjdpelse 121133965Sjdp echo "$ac_t""no" 1>&6 121233965Sjdpfi 121333965Sjdp 121433965Sjdp 121533965Sjdpif test -z "$ac_cv_prog_RANLIB"; then 121633965Sjdpif test -n "$ac_tool_prefix"; then 121733965Sjdp # Extract the first word of "ranlib", so it can be a program name with args. 121833965Sjdpset dummy ranlib; ac_word=$2 121933965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 122060484Sobrienecho "configure:1221: checking for $ac_word" >&5 122133965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 122233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 122333965Sjdpelse 122433965Sjdp if test -n "$RANLIB"; then 122533965Sjdp ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 122633965Sjdpelse 122760484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 122860484Sobrien ac_dummy="$PATH" 122960484Sobrien for ac_dir in $ac_dummy; do 123033965Sjdp test -z "$ac_dir" && ac_dir=. 123133965Sjdp if test -f $ac_dir/$ac_word; then 123233965Sjdp ac_cv_prog_RANLIB="ranlib" 123333965Sjdp break 123433965Sjdp fi 123533965Sjdp done 123633965Sjdp IFS="$ac_save_ifs" 123733965Sjdp test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 123833965Sjdpfi 123933965Sjdpfi 124033965SjdpRANLIB="$ac_cv_prog_RANLIB" 124133965Sjdpif test -n "$RANLIB"; then 124233965Sjdp echo "$ac_t""$RANLIB" 1>&6 124333965Sjdpelse 124433965Sjdp echo "$ac_t""no" 1>&6 124533965Sjdpfi 124633965Sjdp 124733965Sjdpelse 124833965Sjdp RANLIB=":" 124933965Sjdpfi 125033965Sjdpfi 125133965Sjdp 125238889Sjdp 125338889Sjdp# Check whether --enable-shared or --disable-shared was given. 125438889Sjdpif test "${enable_shared+set}" = set; then 125538889Sjdp enableval="$enable_shared" 125638889Sjdp p=${PACKAGE-default} 125738889Sjdpcase "$enableval" in 125838889Sjdpyes) enable_shared=yes ;; 125938889Sjdpno) enable_shared=no ;; 126038889Sjdp*) 126138889Sjdp enable_shared=no 126238889Sjdp # Look at the argument we got. We use all the common list separators. 126338889Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 126438889Sjdp for pkg in $enableval; do 126538889Sjdp if test "X$pkg" = "X$p"; then 126638889Sjdp enable_shared=yes 126738889Sjdp fi 126838889Sjdp done 126938889Sjdp IFS="$ac_save_ifs" 127038889Sjdp ;; 127138889Sjdpesac 127238889Sjdpelse 127338889Sjdp enable_shared=no 127438889Sjdpfi 127538889Sjdp 127638889Sjdp 127738889Sjdp# Check whether --enable-static or --disable-static was given. 127838889Sjdpif test "${enable_static+set}" = set; then 127938889Sjdp enableval="$enable_static" 128038889Sjdp p=${PACKAGE-default} 128138889Sjdpcase "$enableval" in 128238889Sjdpyes) enable_static=yes ;; 128338889Sjdpno) enable_static=no ;; 128438889Sjdp*) 128538889Sjdp enable_static=no 128638889Sjdp # Look at the argument we got. We use all the common list separators. 128738889Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 128838889Sjdp for pkg in $enableval; do 128938889Sjdp if test "X$pkg" = "X$p"; then 129038889Sjdp enable_static=yes 129138889Sjdp fi 129238889Sjdp done 129338889Sjdp IFS="$ac_save_ifs" 129438889Sjdp ;; 129538889Sjdpesac 129638889Sjdpelse 129738889Sjdp enable_static=yes 129838889Sjdpfi 129938889Sjdp 130060484Sobrien# Check whether --enable-fast-install or --disable-fast-install was given. 130160484Sobrienif test "${enable_fast_install+set}" = set; then 130260484Sobrien enableval="$enable_fast_install" 130360484Sobrien p=${PACKAGE-default} 130460484Sobriencase "$enableval" in 130560484Sobrienyes) enable_fast_install=yes ;; 130660484Sobrienno) enable_fast_install=no ;; 130760484Sobrien*) 130860484Sobrien enable_fast_install=no 130960484Sobrien # Look at the argument we got. We use all the common list separators. 131060484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 131160484Sobrien for pkg in $enableval; do 131260484Sobrien if test "X$pkg" = "X$p"; then 131360484Sobrien enable_fast_install=yes 131460484Sobrien fi 131560484Sobrien done 131660484Sobrien IFS="$ac_save_ifs" 131760484Sobrien ;; 131860484Sobrienesac 131960484Sobrienelse 132060484Sobrien enable_fast_install=yes 132160484Sobrienfi 132260484Sobrien 132338889Sjdp# Extract the first word of "ranlib", so it can be a program name with args. 132438889Sjdpset dummy ranlib; ac_word=$2 132538889Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 132660484Sobrienecho "configure:1327: checking for $ac_word" >&5 132738889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 132833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 132933965Sjdpelse 133038889Sjdp if test -n "$RANLIB"; then 133138889Sjdp ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 133238889Sjdpelse 133360484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 133460484Sobrien ac_dummy="$PATH" 133560484Sobrien for ac_dir in $ac_dummy; do 133638889Sjdp test -z "$ac_dir" && ac_dir=. 133738889Sjdp if test -f $ac_dir/$ac_word; then 133838889Sjdp ac_cv_prog_RANLIB="ranlib" 133938889Sjdp break 134038889Sjdp fi 134138889Sjdp done 134238889Sjdp IFS="$ac_save_ifs" 134338889Sjdp test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 134438889Sjdpfi 134538889Sjdpfi 134638889SjdpRANLIB="$ac_cv_prog_RANLIB" 134738889Sjdpif test -n "$RANLIB"; then 134838889Sjdp echo "$ac_t""$RANLIB" 1>&6 134938889Sjdpelse 135038889Sjdp echo "$ac_t""no" 1>&6 135138889Sjdpfi 135238889Sjdp 135338889Sjdp# Check whether --with-gnu-ld or --without-gnu-ld was given. 135438889Sjdpif test "${with_gnu_ld+set}" = set; then 135538889Sjdp withval="$with_gnu_ld" 135638889Sjdp test "$withval" = no || with_gnu_ld=yes 135738889Sjdpelse 135838889Sjdp with_gnu_ld=no 135938889Sjdpfi 136038889Sjdp 136138889Sjdpac_prog=ld 136238889Sjdpif test "$ac_cv_prog_gcc" = yes; then 136338889Sjdp # Check if gcc -print-prog-name=ld gives a path. 136438889Sjdp echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 136560484Sobrienecho "configure:1366: checking for ld used by GCC" >&5 136638889Sjdp ac_prog=`($CC -print-prog-name=ld) 2>&5` 136738889Sjdp case "$ac_prog" in 136860484Sobrien # Accept absolute paths. 136960484Sobrien [\\/]* | [A-Za-z]:[\\/]*) 137060484Sobrien re_direlt='/[^/][^/]*/\.\./' 137160484Sobrien # Canonicalize the path of ld 137260484Sobrien ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 137360484Sobrien while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 137460484Sobrien ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 137560484Sobrien done 137660484Sobrien test -z "$LD" && LD="$ac_prog" 137760484Sobrien ;; 137838889Sjdp "") 137938889Sjdp # If it fails, then pretend we aren't using GCC. 138038889Sjdp ac_prog=ld 138138889Sjdp ;; 138238889Sjdp *) 138338889Sjdp # If it is relative, then search for the first ld in PATH. 138438889Sjdp with_gnu_ld=unknown 138538889Sjdp ;; 138638889Sjdp esac 138738889Sjdpelif test "$with_gnu_ld" = yes; then 138838889Sjdp echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 138960484Sobrienecho "configure:1390: checking for GNU ld" >&5 139038889Sjdpelse 139138889Sjdp echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 139260484Sobrienecho "configure:1393: checking for non-GNU ld" >&5 139338889Sjdpfi 139438889Sjdpif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 139538889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 139638889Sjdpelse 139738889Sjdp if test -z "$LD"; then 139860484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 139938889Sjdp for ac_dir in $PATH; do 140038889Sjdp test -z "$ac_dir" && ac_dir=. 140160484Sobrien if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 140238889Sjdp ac_cv_path_LD="$ac_dir/$ac_prog" 140338889Sjdp # Check to see if the program is GNU ld. I'd rather use --version, 140438889Sjdp # but apparently some GNU ld's only accept -v. 140538889Sjdp # Break only if it was the GNU/non-GNU ld that we prefer. 140638889Sjdp if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 140738889Sjdp test "$with_gnu_ld" != no && break 140838889Sjdp else 140960484Sobrien test "$with_gnu_ld" != yes && break 141038889Sjdp fi 141138889Sjdp fi 141238889Sjdp done 141338889Sjdp IFS="$ac_save_ifs" 141438889Sjdpelse 141538889Sjdp ac_cv_path_LD="$LD" # Let the user override the test with a path. 141638889Sjdpfi 141738889Sjdpfi 141838889Sjdp 141938889SjdpLD="$ac_cv_path_LD" 142038889Sjdpif test -n "$LD"; then 142138889Sjdp echo "$ac_t""$LD" 1>&6 142238889Sjdpelse 142338889Sjdp echo "$ac_t""no" 1>&6 142438889Sjdpfi 142538889Sjdptest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 142638889Sjdpecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 142760484Sobrienecho "configure:1428: checking if the linker ($LD) is GNU ld" >&5 142838889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 142938889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 143038889Sjdpelse 143138889Sjdp # I'd rather use --version here, but apparently some GNU ld's only accept -v. 143238889Sjdpif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 143338889Sjdp ac_cv_prog_gnu_ld=yes 143438889Sjdpelse 143538889Sjdp ac_cv_prog_gnu_ld=no 143638889Sjdpfi 143738889Sjdpfi 143838889Sjdp 143938889Sjdpecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 144038889Sjdp 144138889Sjdp 144238889Sjdpecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 144360484Sobrienecho "configure:1444: checking for BSD-compatible nm" >&5 144438889Sjdpif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 144538889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 144638889Sjdpelse 144760484Sobrien if test -n "$NM"; then 144860484Sobrien # Let the user override the test. 144960484Sobrien ac_cv_path_NM="$NM" 145060484Sobrienelse 145160484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 145260484Sobrien for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 145338889Sjdp test -z "$ac_dir" && ac_dir=. 145460484Sobrien if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then 145538889Sjdp # Check to see if the nm accepts a BSD-compat flag. 145638889Sjdp # Adding the `sed 1q' prevents false positives on HP-UX, which says: 145738889Sjdp # nm: unknown option "B" ignored 145838889Sjdp if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 145960484Sobrien ac_cv_path_NM="$ac_dir/nm -B" 146060484Sobrien break 146138889Sjdp elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 146260484Sobrien ac_cv_path_NM="$ac_dir/nm -p" 146360484Sobrien break 146438889Sjdp else 146560484Sobrien ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but 146660484Sobrien continue # so that we can try to find one that supports BSD flags 146738889Sjdp fi 146838889Sjdp fi 146938889Sjdp done 147038889Sjdp IFS="$ac_save_ifs" 147138889Sjdp test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 147238889Sjdpfi 147360484Sobrienfi 147438889Sjdp 147538889SjdpNM="$ac_cv_path_NM" 147638889Sjdpecho "$ac_t""$NM" 1>&6 147738889Sjdp 147838889Sjdpecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6 147960484Sobrienecho "configure:1480: checking whether ln -s works" >&5 148038889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 148138889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 148238889Sjdpelse 148338889Sjdp rm -f conftestdata 148438889Sjdpif ln -s X conftestdata 2>/dev/null 148538889Sjdpthen 148638889Sjdp rm -f conftestdata 148738889Sjdp ac_cv_prog_LN_S="ln -s" 148838889Sjdpelse 148938889Sjdp ac_cv_prog_LN_S=ln 149038889Sjdpfi 149138889Sjdpfi 149238889SjdpLN_S="$ac_cv_prog_LN_S" 149338889Sjdpif test "$ac_cv_prog_LN_S" = "ln -s"; then 149438889Sjdp echo "$ac_t""yes" 1>&6 149538889Sjdpelse 149638889Sjdp echo "$ac_t""no" 1>&6 149738889Sjdpfi 149838889Sjdp 149938889Sjdp 150060484Sobriencase "$target" in 150160484SobrienNONE) lt_target="$host" ;; 150260484Sobrien*) lt_target="$target" ;; 150360484Sobrienesac 150460484Sobrien 150538889Sjdp# Check for any special flags to pass to ltconfig. 150660484Sobrienlibtool_flags="--cache-file=$cache_file" 150738889Sjdptest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 150838889Sjdptest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 150960484Sobrientest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 151038889Sjdptest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" 151138889Sjdptest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 151238889Sjdp 151360484Sobrien 151460484Sobrien# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 151560484Sobrienif test "${enable_libtool_lock+set}" = set; then 151660484Sobrien enableval="$enable_libtool_lock" 151760484Sobrien : 151860484Sobrienfi 151960484Sobrien 152060484Sobrientest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 152160484Sobrientest x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 152260484Sobrien 152338889Sjdp# Some flags need to be propagated to the compiler or linker for good 152438889Sjdp# libtool support. 152560484Sobriencase "$lt_target" in 152638889Sjdp*-*-irix6*) 152738889Sjdp # Find out which ABI we are using. 152860484Sobrien echo '#line 1529 "configure"' > conftest.$ac_ext 152960484Sobrien if { (eval echo configure:1530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 153038889Sjdp case "`/usr/bin/file conftest.o`" in 153138889Sjdp *32-bit*) 153238889Sjdp LD="${LD-ld} -32" 153333965Sjdp ;; 153438889Sjdp *N32*) 153538889Sjdp LD="${LD-ld} -n32" 153638889Sjdp ;; 153738889Sjdp *64-bit*) 153838889Sjdp LD="${LD-ld} -64" 153938889Sjdp ;; 154033965Sjdp esac 154138889Sjdp fi 154238889Sjdp rm -rf conftest* 154338889Sjdp ;; 154433965Sjdp 154538889Sjdp*-*-sco3.2v5*) 154638889Sjdp # On SCO OpenServer 5, we need -belf to get full-featured binaries. 154760484Sobrien SAVE_CFLAGS="$CFLAGS" 154838889Sjdp CFLAGS="$CFLAGS -belf" 154960484Sobrien echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 155060484Sobrienecho "configure:1551: checking whether the C compiler needs -belf" >&5 155160484Sobrienif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 155260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 155360484Sobrienelse 155460484Sobrien cat > conftest.$ac_ext <<EOF 155560484Sobrien#line 1556 "configure" 155660484Sobrien#include "confdefs.h" 155760484Sobrien 155860484Sobrienint main() { 155960484Sobrien 156060484Sobrien; return 0; } 156160484SobrienEOF 156260484Sobrienif { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 156360484Sobrien rm -rf conftest* 156460484Sobrien lt_cv_cc_needs_belf=yes 156560484Sobrienelse 156660484Sobrien echo "configure: failed program was:" >&5 156760484Sobrien cat conftest.$ac_ext >&5 156860484Sobrien rm -rf conftest* 156960484Sobrien lt_cv_cc_needs_belf=no 157060484Sobrienfi 157160484Sobrienrm -f conftest* 157260484Sobrienfi 157360484Sobrien 157460484Sobrienecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6 157560484Sobrien if test x"$lt_cv_cc_needs_belf" != x"yes"; then 157660484Sobrien # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 157760484Sobrien CFLAGS="$SAVE_CFLAGS" 157860484Sobrien fi 157938889Sjdp ;; 158060484Sobrien 158160484Sobrien 158238889Sjdpesac 158338889Sjdp 158460484Sobrien 158560484Sobrien# Save cache, so that ltconfig can load it 158660484Sobriencat > confcache <<\EOF 158760484Sobrien# This file is a shell script that caches the results of configure 158860484Sobrien# tests run on this system so they can be shared between configure 158960484Sobrien# scripts and configure runs. It is not useful on other systems. 159060484Sobrien# If it contains results you don't want to keep, you may remove or edit it. 159160484Sobrien# 159260484Sobrien# By default, configure uses ./config.cache as the cache file, 159360484Sobrien# creating it if it does not exist already. You can give configure 159460484Sobrien# the --cache-file=FILE option to use a different cache file; that is 159560484Sobrien# what configure does when it calls configure scripts in 159660484Sobrien# subdirectories, so they share the cache. 159760484Sobrien# Giving --cache-file=/dev/null disables caching, for debugging configure. 159860484Sobrien# config.status only pays attention to the cache file if you give it the 159960484Sobrien# --recheck option to rerun configure. 160060484Sobrien# 160160484SobrienEOF 160260484Sobrien# The following way of writing the cache mishandles newlines in values, 160360484Sobrien# but we know of no workaround that is simple, portable, and efficient. 160460484Sobrien# So, don't put newlines in cache variables' values. 160560484Sobrien# Ultrix sh set writes to stderr and can't be redirected directly, 160660484Sobrien# and sets the high bit in the cache file unless we assign to the vars. 160760484Sobrien(set) 2>&1 | 160860484Sobrien case `(ac_space=' '; set | grep ac_space) 2>&1` in 160960484Sobrien *ac_space=\ *) 161060484Sobrien # `set' does not quote correctly, so add quotes (double-quote substitution 161160484Sobrien # turns \\\\ into \\, and sed turns \\ into \). 161260484Sobrien sed -n \ 161360484Sobrien -e "s/'/'\\\\''/g" \ 161460484Sobrien -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 161560484Sobrien ;; 161660484Sobrien *) 161760484Sobrien # `set' quotes correctly as required by POSIX, so do not add quotes. 161860484Sobrien sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 161960484Sobrien ;; 162060484Sobrien esac >> confcache 162160484Sobrienif cmp -s $cache_file confcache; then 162260484Sobrien : 162360484Sobrienelse 162460484Sobrien if test -w $cache_file; then 162560484Sobrien echo "updating cache $cache_file" 162660484Sobrien cat confcache > $cache_file 162760484Sobrien else 162860484Sobrien echo "not updating unwritable cache $cache_file" 162960484Sobrien fi 163060484Sobrienfi 163160484Sobrienrm -f confcache 163260484Sobrien 163360484Sobrien 163438889Sjdp# Actually configure libtool. ac_aux_dir is where install-sh is found. 163538889SjdpCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 163660484SobrienLD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 163760484SobrienLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 163860484SobrienDLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 163960484Sobrien${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 164060484Sobrien$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ 164138889Sjdp|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 164238889Sjdp 164360484Sobrien# Reload cache, that may have been modified by ltconfig 164460484Sobrienif test -r "$cache_file"; then 164560484Sobrien echo "loading cache $cache_file" 164660484Sobrien . $cache_file 164760484Sobrienelse 164860484Sobrien echo "creating cache $cache_file" 164960484Sobrien > $cache_file 165060484Sobrienfi 165138889Sjdp 165260484Sobrien 165360484Sobrien# This can be used to rebuild libtool when needed 165460484SobrienLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" 165560484Sobrien 165660484Sobrien# Always use our own libtool. 165760484SobrienLIBTOOL='$(SHELL) $(top_builddir)/libtool' 165860484Sobrien 165960484Sobrien# Redirect the config.log output again, so that the ltconfig log is not 166060484Sobrien# clobbered by the next message. 166160484Sobrienexec 5>>./config.log 166260484Sobrien 166360484Sobrien 166438889Sjdp# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. 166538889Sjdpif test "${enable_64_bit_bfd+set}" = set; then 166638889Sjdp enableval="$enable_64_bit_bfd" 166738889Sjdp case "${enableval}" in 166838889Sjdp yes) want64=true ;; 166938889Sjdp no) want64=false ;; 167038889Sjdp *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; 167138889Sjdpesac 167238889Sjdpelse 167338889Sjdp want64=false 167433965Sjdpfi 167538889Sjdp# Check whether --enable-targets or --disable-targets was given. 167638889Sjdpif test "${enable_targets+set}" = set; then 167738889Sjdp enableval="$enable_targets" 167838889Sjdp case "${enableval}" in 167938889Sjdp yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } 168038889Sjdp ;; 168138889Sjdp no) enable_targets= ;; 168238889Sjdp *) enable_targets=$enableval ;; 168338889Sjdpesac 168438889Sjdpfi 168538889Sjdp# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 168638889Sjdpif test "${enable_commonbfdlib+set}" = set; then 168738889Sjdp enableval="$enable_commonbfdlib" 168838889Sjdp case "${enableval}" in 168938889Sjdp yes) commonbfdlib=true ;; 169038889Sjdp no) commonbfdlib=false ;; 169138889Sjdp *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; 169238889Sjdpesac 169338889Sjdpfi 169438889Sjdp# Check whether --with-mmap or --without-mmap was given. 169538889Sjdpif test "${with_mmap+set}" = set; then 169638889Sjdp withval="$with_mmap" 169738889Sjdp case "${withval}" in 169838889Sjdp yes) want_mmap=true ;; 169938889Sjdp no) want_mmap=false ;; 170038889Sjdp *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; 170138889Sjdpesac 170238889Sjdpelse 170338889Sjdp want_mmap=false 170438889Sjdpfi 170538889Sjdp 170638889Sjdp 170738889Sjdp 170838889Sjdp 170938889Sjdp 171038889Sjdpif test -z "$target" ; then 171138889Sjdp { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } 171238889Sjdpfi 171338889Sjdpif test "$program_transform_name" = s,x,x,; then 171438889Sjdp program_transform_name= 171538889Sjdpelse 171638889Sjdp # Double any \ or $. echo might interpret backslashes. 171738889Sjdp cat <<\EOF_SED > conftestsed 171838889Sjdps,\\,\\\\,g; s,\$,$$,g 171938889SjdpEOF_SED 172038889Sjdp program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 172138889Sjdp rm -f conftestsed 172238889Sjdpfi 172338889Sjdptest "$program_prefix" != NONE && 172438889Sjdp program_transform_name="s,^,${program_prefix},; $program_transform_name" 172538889Sjdp# Use a double $ so make ignores it. 172638889Sjdptest "$program_suffix" != NONE && 172738889Sjdp program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 172838889Sjdp 172938889Sjdp# sed with no file args requires a program. 173038889Sjdptest "$program_transform_name" = "" && program_transform_name="s,x,x," 173138889Sjdp 173238889Sjdp 173338889Sjdpecho $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 173460484Sobrienecho "configure:1735: checking whether to enable maintainer-specific portions of Makefiles" >&5 173538889Sjdp # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 173638889Sjdpif test "${enable_maintainer_mode+set}" = set; then 173738889Sjdp enableval="$enable_maintainer_mode" 173838889Sjdp USE_MAINTAINER_MODE=$enableval 173938889Sjdpelse 174038889Sjdp USE_MAINTAINER_MODE=no 174138889Sjdpfi 174238889Sjdp 174338889Sjdp echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 174438889Sjdp 174538889Sjdp 174660484Sobrienif test $USE_MAINTAINER_MODE = yes; then 174760484Sobrien MAINTAINER_MODE_TRUE= 174860484Sobrien MAINTAINER_MODE_FALSE='#' 174960484Sobrienelse 175060484Sobrien MAINTAINER_MODE_TRUE='#' 175160484Sobrien MAINTAINER_MODE_FALSE= 175260484Sobrienfi 175360484Sobrien MAINT=$MAINTAINER_MODE_TRUE 175460484Sobrien 175560484Sobrien 175660484Sobrienecho $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 175760484Sobrienecho "configure:1758: checking for Cygwin environment" >&5 175860484Sobrienif eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 175938889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 176038889Sjdpelse 176138889Sjdp cat > conftest.$ac_ext <<EOF 176260484Sobrien#line 1763 "configure" 176338889Sjdp#include "confdefs.h" 176438889Sjdp 176538889Sjdpint main() { 176660484Sobrien 176760484Sobrien#ifndef __CYGWIN__ 176860484Sobrien#define __CYGWIN__ __CYGWIN32__ 176960484Sobrien#endif 177060484Sobrienreturn __CYGWIN__; 177138889Sjdp; return 0; } 177238889SjdpEOF 177360484Sobrienif { (eval echo configure:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 177438889Sjdp rm -rf conftest* 177560484Sobrien ac_cv_cygwin=yes 177638889Sjdpelse 177738889Sjdp echo "configure: failed program was:" >&5 177838889Sjdp cat conftest.$ac_ext >&5 177938889Sjdp rm -rf conftest* 178060484Sobrien ac_cv_cygwin=no 178133965Sjdpfi 178238889Sjdprm -f conftest* 178338889Sjdprm -f conftest* 178438889Sjdpfi 178533965Sjdp 178660484Sobrienecho "$ac_t""$ac_cv_cygwin" 1>&6 178760484SobrienCYGWIN= 178860484Sobrientest "$ac_cv_cygwin" = yes && CYGWIN=yes 178960484Sobrienecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 179060484Sobrienecho "configure:1791: checking for mingw32 environment" >&5 179160484Sobrienif eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 179238889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 179338889Sjdpelse 179438889Sjdp cat > conftest.$ac_ext <<EOF 179560484Sobrien#line 1796 "configure" 179638889Sjdp#include "confdefs.h" 179733965Sjdp 179838889Sjdpint main() { 179938889Sjdpreturn __MINGW32__; 180038889Sjdp; return 0; } 180138889SjdpEOF 180260484Sobrienif { (eval echo configure:1803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 180338889Sjdp rm -rf conftest* 180460484Sobrien ac_cv_mingw32=yes 180538889Sjdpelse 180638889Sjdp echo "configure: failed program was:" >&5 180738889Sjdp cat conftest.$ac_ext >&5 180838889Sjdp rm -rf conftest* 180960484Sobrien ac_cv_mingw32=no 181038889Sjdpfi 181138889Sjdprm -f conftest* 181238889Sjdprm -f conftest* 181338889Sjdpfi 181433965Sjdp 181560484Sobrienecho "$ac_t""$ac_cv_mingw32" 1>&6 181638889SjdpMINGW32= 181760484Sobrientest "$ac_cv_mingw32" = yes && MINGW32=yes 181833965Sjdp 181938889Sjdp 182038889Sjdpecho $ac_n "checking for executable suffix""... $ac_c" 1>&6 182160484Sobrienecho "configure:1822: checking for executable suffix" >&5 182260484Sobrienif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 182338889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 182438889Sjdpelse 182560484Sobrien if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 182660484Sobrien ac_cv_exeext=.exe 182738889Sjdpelse 182860484Sobrien rm -f conftest* 182960484Sobrien echo 'int main () { return 0; }' > conftest.$ac_ext 183060484Sobrien ac_cv_exeext= 183160484Sobrien if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 183260484Sobrien for file in conftest.*; do 183360484Sobrien case $file in 183460484Sobrien *.c | *.o | *.obj | *.ilk | *.pdb) ;; 183560484Sobrien *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 183660484Sobrien esac 183760484Sobrien done 183860484Sobrien else 183960484Sobrien { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 184060484Sobrien fi 184160484Sobrien rm -f conftest* 184260484Sobrien test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 184338889Sjdpfi 184460484Sobrienfi 184538889Sjdp 184638889SjdpEXEEXT="" 184760484Sobrientest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 184860484Sobrienecho "$ac_t""${ac_cv_exeext}" 1>&6 184960484Sobrienac_exeext=$EXEEXT 185038889Sjdp 185138889Sjdp 185238889Sjdphost64=false 185338889Sjdptarget64=false 185438889Sjdp 185538889Sjdp# host stuff: 185638889Sjdp 185738889Sjdp# Extract the first word of "gcc", so it can be a program name with args. 185838889Sjdpset dummy gcc; ac_word=$2 185938889Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 186060484Sobrienecho "configure:1861: checking for $ac_word" >&5 186138889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 186238889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 186338889Sjdpelse 186438889Sjdp if test -n "$CC"; then 186538889Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 186638889Sjdpelse 186760484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 186860484Sobrien ac_dummy="$PATH" 186960484Sobrien for ac_dir in $ac_dummy; do 187038889Sjdp test -z "$ac_dir" && ac_dir=. 187138889Sjdp if test -f $ac_dir/$ac_word; then 187238889Sjdp ac_cv_prog_CC="gcc" 187338889Sjdp break 187438889Sjdp fi 187538889Sjdp done 187638889Sjdp IFS="$ac_save_ifs" 187738889Sjdpfi 187838889Sjdpfi 187938889SjdpCC="$ac_cv_prog_CC" 188038889Sjdpif test -n "$CC"; then 188138889Sjdp echo "$ac_t""$CC" 1>&6 188238889Sjdpelse 188338889Sjdp echo "$ac_t""no" 1>&6 188438889Sjdpfi 188538889Sjdp 188638889Sjdpif test -z "$CC"; then 188738889Sjdp # Extract the first word of "cc", so it can be a program name with args. 188838889Sjdpset dummy cc; ac_word=$2 188938889Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 189060484Sobrienecho "configure:1891: checking for $ac_word" >&5 189138889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 189238889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 189338889Sjdpelse 189438889Sjdp if test -n "$CC"; then 189538889Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 189638889Sjdpelse 189760484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 189838889Sjdp ac_prog_rejected=no 189960484Sobrien ac_dummy="$PATH" 190060484Sobrien for ac_dir in $ac_dummy; do 190138889Sjdp test -z "$ac_dir" && ac_dir=. 190238889Sjdp if test -f $ac_dir/$ac_word; then 190338889Sjdp if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 190438889Sjdp ac_prog_rejected=yes 190538889Sjdp continue 190638889Sjdp fi 190738889Sjdp ac_cv_prog_CC="cc" 190838889Sjdp break 190938889Sjdp fi 191038889Sjdp done 191138889Sjdp IFS="$ac_save_ifs" 191238889Sjdpif test $ac_prog_rejected = yes; then 191338889Sjdp # We found a bogon in the path, so make sure we never use it. 191438889Sjdp set dummy $ac_cv_prog_CC 191538889Sjdp shift 191638889Sjdp if test $# -gt 0; then 191738889Sjdp # We chose a different compiler from the bogus one. 191838889Sjdp # However, it has the same basename, so the bogon will be chosen 191938889Sjdp # first if we set CC to just the basename; use the full file name. 192038889Sjdp shift 192138889Sjdp set dummy "$ac_dir/$ac_word" "$@" 192238889Sjdp shift 192338889Sjdp ac_cv_prog_CC="$@" 192433965Sjdp fi 192533965Sjdpfi 192638889Sjdpfi 192738889Sjdpfi 192838889SjdpCC="$ac_cv_prog_CC" 192938889Sjdpif test -n "$CC"; then 193038889Sjdp echo "$ac_t""$CC" 1>&6 193138889Sjdpelse 193238889Sjdp echo "$ac_t""no" 1>&6 193338889Sjdpfi 193433965Sjdp 193560484Sobrien if test -z "$CC"; then 193660484Sobrien case "`uname -s`" in 193760484Sobrien *win32* | *WIN32*) 193860484Sobrien # Extract the first word of "cl", so it can be a program name with args. 193960484Sobrienset dummy cl; ac_word=$2 194060484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 194160484Sobrienecho "configure:1942: checking for $ac_word" >&5 194260484Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 194360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 194460484Sobrienelse 194560484Sobrien if test -n "$CC"; then 194660484Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 194760484Sobrienelse 194860484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 194960484Sobrien ac_dummy="$PATH" 195060484Sobrien for ac_dir in $ac_dummy; do 195160484Sobrien test -z "$ac_dir" && ac_dir=. 195260484Sobrien if test -f $ac_dir/$ac_word; then 195360484Sobrien ac_cv_prog_CC="cl" 195460484Sobrien break 195560484Sobrien fi 195660484Sobrien done 195760484Sobrien IFS="$ac_save_ifs" 195860484Sobrienfi 195960484Sobrienfi 196060484SobrienCC="$ac_cv_prog_CC" 196160484Sobrienif test -n "$CC"; then 196260484Sobrien echo "$ac_t""$CC" 1>&6 196360484Sobrienelse 196460484Sobrien echo "$ac_t""no" 1>&6 196560484Sobrienfi 196660484Sobrien ;; 196760484Sobrien esac 196860484Sobrien fi 196938889Sjdp test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 197038889Sjdpfi 197133965Sjdp 197238889Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 197360484Sobrienecho "configure:1974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 197433965Sjdp 197538889Sjdpac_ext=c 197638889Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 197738889Sjdpac_cpp='$CPP $CPPFLAGS' 197838889Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 197960484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 198038889Sjdpcross_compiling=$ac_cv_prog_cc_cross 198133965Sjdp 198260484Sobriencat > conftest.$ac_ext << EOF 198360484Sobrien 198460484Sobrien#line 1985 "configure" 198538889Sjdp#include "confdefs.h" 198660484Sobrien 198738889Sjdpmain(){return(0);} 198838889SjdpEOF 198960484Sobrienif { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 199038889Sjdp ac_cv_prog_cc_works=yes 199138889Sjdp # If we can't run a trivial program, we are probably using a cross compiler. 199238889Sjdp if (./conftest; exit) 2>/dev/null; then 199338889Sjdp ac_cv_prog_cc_cross=no 199438889Sjdp else 199538889Sjdp ac_cv_prog_cc_cross=yes 199638889Sjdp fi 199738889Sjdpelse 199838889Sjdp echo "configure: failed program was:" >&5 199938889Sjdp cat conftest.$ac_ext >&5 200038889Sjdp ac_cv_prog_cc_works=no 200138889Sjdpfi 200238889Sjdprm -fr conftest* 200360484Sobrienac_ext=c 200460484Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 200560484Sobrienac_cpp='$CPP $CPPFLAGS' 200660484Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 200760484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 200860484Sobriencross_compiling=$ac_cv_prog_cc_cross 200933965Sjdp 201038889Sjdpecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 201138889Sjdpif test $ac_cv_prog_cc_works = no; then 201238889Sjdp { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 201338889Sjdpfi 201438889Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 201560484Sobrienecho "configure:2016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 201638889Sjdpecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 201738889Sjdpcross_compiling=$ac_cv_prog_cc_cross 201833965Sjdp 201938889Sjdpecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 202060484Sobrienecho "configure:2021: checking whether we are using GNU C" >&5 202138889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 202238889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 202338889Sjdpelse 202438889Sjdp cat > conftest.c <<EOF 202538889Sjdp#ifdef __GNUC__ 202638889Sjdp yes; 202738889Sjdp#endif 202838889SjdpEOF 202960484Sobrienif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 203038889Sjdp ac_cv_prog_gcc=yes 203138889Sjdpelse 203238889Sjdp ac_cv_prog_gcc=no 203338889Sjdpfi 203438889Sjdpfi 203533965Sjdp 203638889Sjdpecho "$ac_t""$ac_cv_prog_gcc" 1>&6 203738889Sjdp 203838889Sjdpif test $ac_cv_prog_gcc = yes; then 203938889Sjdp GCC=yes 204060484Sobrienelse 204160484Sobrien GCC= 204260484Sobrienfi 204360484Sobrien 204460484Sobrienac_test_CFLAGS="${CFLAGS+set}" 204560484Sobrienac_save_CFLAGS="$CFLAGS" 204660484SobrienCFLAGS= 204760484Sobrienecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 204860484Sobrienecho "configure:2049: checking whether ${CC-cc} accepts -g" >&5 204938889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 205038889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 205133965Sjdpelse 205238889Sjdp echo 'void f(){}' > conftest.c 205338889Sjdpif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 205438889Sjdp ac_cv_prog_cc_g=yes 205538889Sjdpelse 205638889Sjdp ac_cv_prog_cc_g=no 205733965Sjdpfi 205838889Sjdprm -f conftest* 205933965Sjdp 206038889Sjdpfi 206133965Sjdp 206238889Sjdpecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 206360484Sobrienif test "$ac_test_CFLAGS" = set; then 206460484Sobrien CFLAGS="$ac_save_CFLAGS" 206560484Sobrienelif test $ac_cv_prog_cc_g = yes; then 206660484Sobrien if test "$GCC" = yes; then 206738889Sjdp CFLAGS="-g -O2" 206838889Sjdp else 206960484Sobrien CFLAGS="-g" 207060484Sobrien fi 207160484Sobrienelse 207260484Sobrien if test "$GCC" = yes; then 207338889Sjdp CFLAGS="-O2" 207460484Sobrien else 207560484Sobrien CFLAGS= 207638889Sjdp fi 207760484Sobrienfi 207860484Sobrien 207960484Sobrien 208060484SobrienALL_LINGUAS= 208160484Sobrienecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 208260484Sobrienecho "configure:2083: checking how to run the C preprocessor" >&5 208360484Sobrien# On Suns, sometimes $CPP names a directory. 208460484Sobrienif test -n "$CPP" && test -d "$CPP"; then 208560484Sobrien CPP= 208660484Sobrienfi 208760484Sobrienif test -z "$CPP"; then 208860484Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 208960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 209038889Sjdpelse 209160484Sobrien # This must be in double quotes, not single quotes, because CPP may get 209260484Sobrien # substituted into the Makefile and "${CC-cc}" will confuse make. 209360484Sobrien CPP="${CC-cc} -E" 209460484Sobrien # On the NeXT, cc -E runs the code through the compiler's parser, 209560484Sobrien # not just through cpp. 209660484Sobrien cat > conftest.$ac_ext <<EOF 209760484Sobrien#line 2098 "configure" 209860484Sobrien#include "confdefs.h" 209960484Sobrien#include <assert.h> 210060484SobrienSyntax Error 210160484SobrienEOF 210260484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 210360484Sobrien{ (eval echo configure:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 210460484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 210560484Sobrienif test -z "$ac_err"; then 210660484Sobrien : 210760484Sobrienelse 210860484Sobrien echo "$ac_err" >&5 210960484Sobrien echo "configure: failed program was:" >&5 211060484Sobrien cat conftest.$ac_ext >&5 211160484Sobrien rm -rf conftest* 211260484Sobrien CPP="${CC-cc} -E -traditional-cpp" 211360484Sobrien cat > conftest.$ac_ext <<EOF 211460484Sobrien#line 2115 "configure" 211560484Sobrien#include "confdefs.h" 211660484Sobrien#include <assert.h> 211760484SobrienSyntax Error 211860484SobrienEOF 211960484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 212060484Sobrien{ (eval echo configure:2121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 212160484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 212260484Sobrienif test -z "$ac_err"; then 212360484Sobrien : 212460484Sobrienelse 212560484Sobrien echo "$ac_err" >&5 212660484Sobrien echo "configure: failed program was:" >&5 212760484Sobrien cat conftest.$ac_ext >&5 212860484Sobrien rm -rf conftest* 212960484Sobrien CPP="${CC-cc} -nologo -E" 213060484Sobrien cat > conftest.$ac_ext <<EOF 213160484Sobrien#line 2132 "configure" 213260484Sobrien#include "confdefs.h" 213360484Sobrien#include <assert.h> 213460484SobrienSyntax Error 213560484SobrienEOF 213660484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 213760484Sobrien{ (eval echo configure:2138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 213860484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 213960484Sobrienif test -z "$ac_err"; then 214060484Sobrien : 214160484Sobrienelse 214260484Sobrien echo "$ac_err" >&5 214360484Sobrien echo "configure: failed program was:" >&5 214460484Sobrien cat conftest.$ac_ext >&5 214560484Sobrien rm -rf conftest* 214660484Sobrien CPP=/lib/cpp 214738889Sjdpfi 214860484Sobrienrm -f conftest* 214960484Sobrienfi 215060484Sobrienrm -f conftest* 215160484Sobrienfi 215260484Sobrienrm -f conftest* 215360484Sobrien ac_cv_prog_CPP="$CPP" 215460484Sobrienfi 215560484Sobrien CPP="$ac_cv_prog_CPP" 215660484Sobrienelse 215760484Sobrien ac_cv_prog_CPP="$CPP" 215860484Sobrienfi 215960484Sobrienecho "$ac_t""$CPP" 1>&6 216033965Sjdp 216160484Sobrienecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 216260484Sobrienecho "configure:2163: checking for ANSI C header files" >&5 216360484Sobrienif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 216460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 216560484Sobrienelse 216660484Sobrien cat > conftest.$ac_ext <<EOF 216760484Sobrien#line 2168 "configure" 216860484Sobrien#include "confdefs.h" 216960484Sobrien#include <stdlib.h> 217060484Sobrien#include <stdarg.h> 217160484Sobrien#include <string.h> 217260484Sobrien#include <float.h> 217360484SobrienEOF 217460484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 217560484Sobrien{ (eval echo configure:2176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 217660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 217760484Sobrienif test -z "$ac_err"; then 217860484Sobrien rm -rf conftest* 217960484Sobrien ac_cv_header_stdc=yes 218060484Sobrienelse 218160484Sobrien echo "$ac_err" >&5 218260484Sobrien echo "configure: failed program was:" >&5 218360484Sobrien cat conftest.$ac_ext >&5 218460484Sobrien rm -rf conftest* 218560484Sobrien ac_cv_header_stdc=no 218660484Sobrienfi 218760484Sobrienrm -f conftest* 218833965Sjdp 218960484Sobrienif test $ac_cv_header_stdc = yes; then 219060484Sobrien # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 219160484Sobriencat > conftest.$ac_ext <<EOF 219260484Sobrien#line 2193 "configure" 219360484Sobrien#include "confdefs.h" 219460484Sobrien#include <string.h> 219560484SobrienEOF 219660484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 219760484Sobrien egrep "memchr" >/dev/null 2>&1; then 219860484Sobrien : 219960484Sobrienelse 220060484Sobrien rm -rf conftest* 220160484Sobrien ac_cv_header_stdc=no 220260484Sobrienfi 220360484Sobrienrm -f conftest* 220433965Sjdp 220560484Sobrienfi 220633965Sjdp 220760484Sobrienif test $ac_cv_header_stdc = yes; then 220860484Sobrien # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 220960484Sobriencat > conftest.$ac_ext <<EOF 221060484Sobrien#line 2211 "configure" 221160484Sobrien#include "confdefs.h" 221260484Sobrien#include <stdlib.h> 221360484SobrienEOF 221460484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 221560484Sobrien egrep "free" >/dev/null 2>&1; then 221660484Sobrien : 221760484Sobrienelse 221860484Sobrien rm -rf conftest* 221960484Sobrien ac_cv_header_stdc=no 222060484Sobrienfi 222160484Sobrienrm -f conftest* 222233965Sjdp 222360484Sobrienfi 222438889Sjdp 222560484Sobrienif test $ac_cv_header_stdc = yes; then 222660484Sobrien # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 222760484Sobrienif test "$cross_compiling" = yes; then 222860484Sobrien : 222960484Sobrienelse 223060484Sobrien cat > conftest.$ac_ext <<EOF 223160484Sobrien#line 2232 "configure" 223260484Sobrien#include "confdefs.h" 223360484Sobrien#include <ctype.h> 223460484Sobrien#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 223560484Sobrien#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 223660484Sobrien#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 223760484Sobrienint main () { int i; for (i = 0; i < 256; i++) 223860484Sobrienif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 223960484Sobrienexit (0); } 224038889Sjdp 224160484SobrienEOF 224260484Sobrienif { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 224360484Sobrienthen 224460484Sobrien : 224560484Sobrienelse 224660484Sobrien echo "configure: failed program was:" >&5 224760484Sobrien cat conftest.$ac_ext >&5 224860484Sobrien rm -fr conftest* 224960484Sobrien ac_cv_header_stdc=no 225033965Sjdpfi 225160484Sobrienrm -fr conftest* 225260484Sobrienfi 225333965Sjdp 225460484Sobrienfi 225560484Sobrienfi 225633965Sjdp 225760484Sobrienecho "$ac_t""$ac_cv_header_stdc" 1>&6 225860484Sobrienif test $ac_cv_header_stdc = yes; then 225960484Sobrien cat >> confdefs.h <<\EOF 226060484Sobrien#define STDC_HEADERS 1 226160484SobrienEOF 226233965Sjdp 226360484Sobrienfi 226433965Sjdp 226560484Sobrienecho $ac_n "checking for working const""... $ac_c" 1>&6 226660484Sobrienecho "configure:2267: checking for working const" >&5 226760484Sobrienif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 226860484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 226960484Sobrienelse 227060484Sobrien cat > conftest.$ac_ext <<EOF 227160484Sobrien#line 2272 "configure" 227260484Sobrien#include "confdefs.h" 227333965Sjdp 227460484Sobrienint main() { 227560484Sobrien 227660484Sobrien/* Ultrix mips cc rejects this. */ 227760484Sobrientypedef int charset[2]; const charset x; 227860484Sobrien/* SunOS 4.1.1 cc rejects this. */ 227960484Sobrienchar const *const *ccp; 228060484Sobrienchar **p; 228160484Sobrien/* NEC SVR4.0.2 mips cc rejects this. */ 228260484Sobrienstruct point {int x, y;}; 228360484Sobrienstatic struct point const zero = {0,0}; 228460484Sobrien/* AIX XL C 1.02.0.0 rejects this. 228560484Sobrien It does not let you subtract one const X* pointer from another in an arm 228660484Sobrien of an if-expression whose if-part is not a constant expression */ 228760484Sobrienconst char *g = "string"; 228860484Sobrienccp = &g + (g ? g-g : 0); 228960484Sobrien/* HPUX 7.0 cc rejects these. */ 229060484Sobrien++ccp; 229160484Sobrienp = (char**) ccp; 229260484Sobrienccp = (char const *const *) p; 229360484Sobrien{ /* SCO 3.2v4 cc rejects this. */ 229460484Sobrien char *t; 229560484Sobrien char const *s = 0 ? (char *) 0 : (char const *) 0; 229660484Sobrien 229760484Sobrien *t++ = 0; 229860484Sobrien} 229960484Sobrien{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 230060484Sobrien int x[] = {25, 17}; 230160484Sobrien const int *foo = &x[0]; 230260484Sobrien ++foo; 230360484Sobrien} 230460484Sobrien{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 230560484Sobrien typedef const int *iptr; 230660484Sobrien iptr p = 0; 230760484Sobrien ++p; 230860484Sobrien} 230960484Sobrien{ /* AIX XL C 1.02.0.0 rejects this saying 231060484Sobrien "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 231160484Sobrien struct s { int j; const int *ap[3]; }; 231260484Sobrien struct s *b; b->j = 5; 231360484Sobrien} 231460484Sobrien{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 231560484Sobrien const int foo = 10; 231660484Sobrien} 231760484Sobrien 231860484Sobrien; return 0; } 231960484SobrienEOF 232060484Sobrienif { (eval echo configure:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 232160484Sobrien rm -rf conftest* 232260484Sobrien ac_cv_c_const=yes 232360484Sobrienelse 232460484Sobrien echo "configure: failed program was:" >&5 232560484Sobrien cat conftest.$ac_ext >&5 232660484Sobrien rm -rf conftest* 232760484Sobrien ac_cv_c_const=no 232833965Sjdpfi 232960484Sobrienrm -f conftest* 233060484Sobrienfi 233133965Sjdp 233260484Sobrienecho "$ac_t""$ac_cv_c_const" 1>&6 233360484Sobrienif test $ac_cv_c_const = no; then 233460484Sobrien cat >> confdefs.h <<\EOF 233560484Sobrien#define const 233660484SobrienEOF 233760484Sobrien 233860484Sobrienfi 233960484Sobrien 234060484Sobrienecho $ac_n "checking for inline""... $ac_c" 1>&6 234160484Sobrienecho "configure:2342: checking for inline" >&5 234260484Sobrienif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 234360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 234438889Sjdpelse 234560484Sobrien ac_cv_c_inline=no 234660484Sobrienfor ac_kw in inline __inline__ __inline; do 234760484Sobrien cat > conftest.$ac_ext <<EOF 234860484Sobrien#line 2349 "configure" 234960484Sobrien#include "confdefs.h" 235060484Sobrien 235160484Sobrienint main() { 235260484Sobrien} $ac_kw foo() { 235360484Sobrien; return 0; } 235460484SobrienEOF 235560484Sobrienif { (eval echo configure:2356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 235660484Sobrien rm -rf conftest* 235760484Sobrien ac_cv_c_inline=$ac_kw; break 235860484Sobrienelse 235960484Sobrien echo "configure: failed program was:" >&5 236060484Sobrien cat conftest.$ac_ext >&5 236160484Sobrienfi 236260484Sobrienrm -f conftest* 236360484Sobriendone 236460484Sobrien 236560484Sobrienfi 236660484Sobrien 236760484Sobrienecho "$ac_t""$ac_cv_c_inline" 1>&6 236860484Sobriencase "$ac_cv_c_inline" in 236960484Sobrien inline | yes) ;; 237060484Sobrien no) cat >> confdefs.h <<\EOF 237160484Sobrien#define inline 237260484SobrienEOF 237360484Sobrien ;; 237460484Sobrien *) cat >> confdefs.h <<EOF 237560484Sobrien#define inline $ac_cv_c_inline 237660484SobrienEOF 237760484Sobrien ;; 237860484Sobrienesac 237960484Sobrien 238060484Sobrienecho $ac_n "checking for off_t""... $ac_c" 1>&6 238160484Sobrienecho "configure:2382: checking for off_t" >&5 238260484Sobrienif eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 238338889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 238438889Sjdpelse 238560484Sobrien cat > conftest.$ac_ext <<EOF 238660484Sobrien#line 2387 "configure" 238760484Sobrien#include "confdefs.h" 238860484Sobrien#include <sys/types.h> 238960484Sobrien#if STDC_HEADERS 239060484Sobrien#include <stdlib.h> 239160484Sobrien#include <stddef.h> 239260484Sobrien#endif 239360484SobrienEOF 239460484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 239560484Sobrien egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 239660484Sobrien rm -rf conftest* 239760484Sobrien ac_cv_type_off_t=yes 239860484Sobrienelse 239960484Sobrien rm -rf conftest* 240060484Sobrien ac_cv_type_off_t=no 240160484Sobrienfi 240260484Sobrienrm -f conftest* 240360484Sobrien 240460484Sobrienfi 240560484Sobrienecho "$ac_t""$ac_cv_type_off_t" 1>&6 240660484Sobrienif test $ac_cv_type_off_t = no; then 240760484Sobrien cat >> confdefs.h <<\EOF 240860484Sobrien#define off_t long 240960484SobrienEOF 241060484Sobrien 241160484Sobrienfi 241260484Sobrien 241360484Sobrienecho $ac_n "checking for size_t""... $ac_c" 1>&6 241460484Sobrienecho "configure:2415: checking for size_t" >&5 241560484Sobrienif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 241660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 241760484Sobrienelse 241860484Sobrien cat > conftest.$ac_ext <<EOF 241960484Sobrien#line 2420 "configure" 242060484Sobrien#include "confdefs.h" 242160484Sobrien#include <sys/types.h> 242260484Sobrien#if STDC_HEADERS 242360484Sobrien#include <stdlib.h> 242460484Sobrien#include <stddef.h> 242560484Sobrien#endif 242660484SobrienEOF 242760484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 242860484Sobrien egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 242960484Sobrien rm -rf conftest* 243060484Sobrien ac_cv_type_size_t=yes 243160484Sobrienelse 243260484Sobrien rm -rf conftest* 243360484Sobrien ac_cv_type_size_t=no 243460484Sobrienfi 243560484Sobrienrm -f conftest* 243660484Sobrien 243760484Sobrienfi 243860484Sobrienecho "$ac_t""$ac_cv_type_size_t" 1>&6 243960484Sobrienif test $ac_cv_type_size_t = no; then 244060484Sobrien cat >> confdefs.h <<\EOF 244160484Sobrien#define size_t unsigned 244260484SobrienEOF 244360484Sobrien 244460484Sobrienfi 244560484Sobrien 244660484Sobrien# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 244760484Sobrien# for constant arguments. Useless! 244860484Sobrienecho $ac_n "checking for working alloca.h""... $ac_c" 1>&6 244960484Sobrienecho "configure:2450: checking for working alloca.h" >&5 245060484Sobrienif eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 245160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 245260484Sobrienelse 245360484Sobrien cat > conftest.$ac_ext <<EOF 245460484Sobrien#line 2455 "configure" 245560484Sobrien#include "confdefs.h" 245660484Sobrien#include <alloca.h> 245738889Sjdpint main() { 245860484Sobrienchar *p = alloca(2 * sizeof(int)); 245960484Sobrien; return 0; } 246060484SobrienEOF 246160484Sobrienif { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 246260484Sobrien rm -rf conftest* 246360484Sobrien ac_cv_header_alloca_h=yes 246460484Sobrienelse 246560484Sobrien echo "configure: failed program was:" >&5 246660484Sobrien cat conftest.$ac_ext >&5 246760484Sobrien rm -rf conftest* 246860484Sobrien ac_cv_header_alloca_h=no 246960484Sobrienfi 247060484Sobrienrm -f conftest* 247160484Sobrienfi 247260484Sobrien 247360484Sobrienecho "$ac_t""$ac_cv_header_alloca_h" 1>&6 247460484Sobrienif test $ac_cv_header_alloca_h = yes; then 247560484Sobrien cat >> confdefs.h <<\EOF 247660484Sobrien#define HAVE_ALLOCA_H 1 247760484SobrienEOF 247860484Sobrien 247960484Sobrienfi 248060484Sobrien 248160484Sobrienecho $ac_n "checking for alloca""... $ac_c" 1>&6 248260484Sobrienecho "configure:2483: checking for alloca" >&5 248360484Sobrienif eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 248460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 248560484Sobrienelse 248660484Sobrien cat > conftest.$ac_ext <<EOF 248760484Sobrien#line 2488 "configure" 248860484Sobrien#include "confdefs.h" 248960484Sobrien 249060484Sobrien#ifdef __GNUC__ 249160484Sobrien# define alloca __builtin_alloca 249260484Sobrien#else 249360484Sobrien# ifdef _MSC_VER 249460484Sobrien# include <malloc.h> 249560484Sobrien# define alloca _alloca 249660484Sobrien# else 249760484Sobrien# if HAVE_ALLOCA_H 249860484Sobrien# include <alloca.h> 249960484Sobrien# else 250060484Sobrien# ifdef _AIX 250160484Sobrien #pragma alloca 250260484Sobrien# else 250360484Sobrien# ifndef alloca /* predefined by HP cc +Olibcalls */ 250460484Sobrienchar *alloca (); 250560484Sobrien# endif 250660484Sobrien# endif 250760484Sobrien# endif 250860484Sobrien# endif 250960484Sobrien#endif 251060484Sobrien 251160484Sobrienint main() { 251260484Sobrienchar *p = (char *) alloca(1); 251360484Sobrien; return 0; } 251460484SobrienEOF 251560484Sobrienif { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 251660484Sobrien rm -rf conftest* 251760484Sobrien ac_cv_func_alloca_works=yes 251860484Sobrienelse 251960484Sobrien echo "configure: failed program was:" >&5 252060484Sobrien cat conftest.$ac_ext >&5 252160484Sobrien rm -rf conftest* 252260484Sobrien ac_cv_func_alloca_works=no 252360484Sobrienfi 252460484Sobrienrm -f conftest* 252560484Sobrienfi 252660484Sobrien 252760484Sobrienecho "$ac_t""$ac_cv_func_alloca_works" 1>&6 252860484Sobrienif test $ac_cv_func_alloca_works = yes; then 252960484Sobrien cat >> confdefs.h <<\EOF 253060484Sobrien#define HAVE_ALLOCA 1 253160484SobrienEOF 253260484Sobrien 253360484Sobrienfi 253460484Sobrien 253560484Sobrienif test $ac_cv_func_alloca_works = no; then 253660484Sobrien # The SVR3 libPW and SVR4 libucb both contain incompatible functions 253760484Sobrien # that cause trouble. Some versions do not even contain alloca or 253860484Sobrien # contain a buggy version. If you still want to use their alloca, 253960484Sobrien # use ar to extract alloca.o from them instead of compiling alloca.c. 254060484Sobrien ALLOCA=alloca.${ac_objext} 254160484Sobrien cat >> confdefs.h <<\EOF 254260484Sobrien#define C_ALLOCA 1 254360484SobrienEOF 254460484Sobrien 254560484Sobrien 254660484Sobrienecho $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 254760484Sobrienecho "configure:2548: checking whether alloca needs Cray hooks" >&5 254860484Sobrienif eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 254960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 255060484Sobrienelse 255160484Sobrien cat > conftest.$ac_ext <<EOF 255260484Sobrien#line 2553 "configure" 255360484Sobrien#include "confdefs.h" 255460484Sobrien#if defined(CRAY) && ! defined(CRAY2) 255560484Sobrienwebecray 255660484Sobrien#else 255760484Sobrienwenotbecray 255860484Sobrien#endif 255960484Sobrien 256060484SobrienEOF 256160484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 256260484Sobrien egrep "webecray" >/dev/null 2>&1; then 256360484Sobrien rm -rf conftest* 256460484Sobrien ac_cv_os_cray=yes 256560484Sobrienelse 256660484Sobrien rm -rf conftest* 256760484Sobrien ac_cv_os_cray=no 256860484Sobrienfi 256960484Sobrienrm -f conftest* 257060484Sobrien 257160484Sobrienfi 257260484Sobrien 257360484Sobrienecho "$ac_t""$ac_cv_os_cray" 1>&6 257460484Sobrienif test $ac_cv_os_cray = yes; then 257560484Sobrienfor ac_func in _getb67 GETB67 getb67; do 257660484Sobrien echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 257760484Sobrienecho "configure:2578: checking for $ac_func" >&5 257860484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 257960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 258060484Sobrienelse 258160484Sobrien cat > conftest.$ac_ext <<EOF 258260484Sobrien#line 2583 "configure" 258360484Sobrien#include "confdefs.h" 258460484Sobrien/* System header to define __stub macros and hopefully few prototypes, 258560484Sobrien which can conflict with char $ac_func(); below. */ 258660484Sobrien#include <assert.h> 258760484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 258860484Sobrien/* We use char because int might match the return type of a gcc2 258960484Sobrien builtin and then its argument prototype would still apply. */ 259060484Sobrienchar $ac_func(); 259160484Sobrien 259260484Sobrienint main() { 259360484Sobrien 259460484Sobrien/* The GNU C library defines this for functions which it implements 259560484Sobrien to always fail with ENOSYS. Some functions are actually named 259660484Sobrien something starting with __ and the normal name is an alias. */ 259760484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 259860484Sobrienchoke me 259960484Sobrien#else 260060484Sobrien$ac_func(); 260160484Sobrien#endif 260260484Sobrien 260360484Sobrien; return 0; } 260460484SobrienEOF 260560484Sobrienif { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 260660484Sobrien rm -rf conftest* 260760484Sobrien eval "ac_cv_func_$ac_func=yes" 260860484Sobrienelse 260960484Sobrien echo "configure: failed program was:" >&5 261060484Sobrien cat conftest.$ac_ext >&5 261160484Sobrien rm -rf conftest* 261260484Sobrien eval "ac_cv_func_$ac_func=no" 261360484Sobrienfi 261460484Sobrienrm -f conftest* 261560484Sobrienfi 261660484Sobrien 261760484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 261860484Sobrien echo "$ac_t""yes" 1>&6 261960484Sobrien cat >> confdefs.h <<EOF 262060484Sobrien#define CRAY_STACKSEG_END $ac_func 262160484SobrienEOF 262260484Sobrien 262360484Sobrien break 262460484Sobrienelse 262560484Sobrien echo "$ac_t""no" 1>&6 262660484Sobrienfi 262760484Sobrien 262860484Sobriendone 262960484Sobrienfi 263060484Sobrien 263160484Sobrienecho $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 263260484Sobrienecho "configure:2633: checking stack direction for C alloca" >&5 263360484Sobrienif eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 263460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 263560484Sobrienelse 263660484Sobrien if test "$cross_compiling" = yes; then 263760484Sobrien ac_cv_c_stack_direction=0 263860484Sobrienelse 263960484Sobrien cat > conftest.$ac_ext <<EOF 264060484Sobrien#line 2641 "configure" 264160484Sobrien#include "confdefs.h" 264260484Sobrienfind_stack_direction () 264360484Sobrien{ 264460484Sobrien static char *addr = 0; 264560484Sobrien auto char dummy; 264660484Sobrien if (addr == 0) 264760484Sobrien { 264860484Sobrien addr = &dummy; 264960484Sobrien return find_stack_direction (); 265060484Sobrien } 265160484Sobrien else 265260484Sobrien return (&dummy > addr) ? 1 : -1; 265338889Sjdp} 265460484Sobrienmain () 265560484Sobrien{ 265660484Sobrien exit (find_stack_direction() < 0); 265760484Sobrien} 265838889SjdpEOF 265960484Sobrienif { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 266060484Sobrienthen 266160484Sobrien ac_cv_c_stack_direction=1 266260484Sobrienelse 266360484Sobrien echo "configure: failed program was:" >&5 266460484Sobrien cat conftest.$ac_ext >&5 266560484Sobrien rm -fr conftest* 266660484Sobrien ac_cv_c_stack_direction=-1 266738889Sjdpfi 266860484Sobrienrm -fr conftest* 266960484Sobrienfi 267033965Sjdp 267138889Sjdpfi 267238889Sjdp 267360484Sobrienecho "$ac_t""$ac_cv_c_stack_direction" 1>&6 267460484Sobriencat >> confdefs.h <<EOF 267560484Sobrien#define STACK_DIRECTION $ac_cv_c_stack_direction 267660484SobrienEOF 267738889Sjdp 267833965Sjdpfi 267960484Sobrien 268060484Sobrienfor ac_hdr in unistd.h 268160484Sobriendo 268260484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 268360484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 268460484Sobrienecho "configure:2685: checking for $ac_hdr" >&5 268560484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 268633965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 268733965Sjdpelse 268833965Sjdp cat > conftest.$ac_ext <<EOF 268960484Sobrien#line 2690 "configure" 269033965Sjdp#include "confdefs.h" 269160484Sobrien#include <$ac_hdr> 269260484SobrienEOF 269360484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 269460484Sobrien{ (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 269560484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 269660484Sobrienif test -z "$ac_err"; then 269760484Sobrien rm -rf conftest* 269860484Sobrien eval "ac_cv_header_$ac_safe=yes" 269960484Sobrienelse 270060484Sobrien echo "$ac_err" >&5 270160484Sobrien echo "configure: failed program was:" >&5 270260484Sobrien cat conftest.$ac_ext >&5 270360484Sobrien rm -rf conftest* 270460484Sobrien eval "ac_cv_header_$ac_safe=no" 270560484Sobrienfi 270660484Sobrienrm -f conftest* 270760484Sobrienfi 270860484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 270960484Sobrien echo "$ac_t""yes" 1>&6 271060484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 271160484Sobrien cat >> confdefs.h <<EOF 271260484Sobrien#define $ac_tr_hdr 1 271360484SobrienEOF 271460484Sobrien 271560484Sobrienelse 271660484Sobrien echo "$ac_t""no" 1>&6 271760484Sobrienfi 271860484Sobriendone 271960484Sobrien 272060484Sobrienfor ac_func in getpagesize 272160484Sobriendo 272260484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 272360484Sobrienecho "configure:2724: checking for $ac_func" >&5 272460484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 272560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 272660484Sobrienelse 272760484Sobrien cat > conftest.$ac_ext <<EOF 272860484Sobrien#line 2729 "configure" 272960484Sobrien#include "confdefs.h" 273060484Sobrien/* System header to define __stub macros and hopefully few prototypes, 273160484Sobrien which can conflict with char $ac_func(); below. */ 273233965Sjdp#include <assert.h> 273360484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 273460484Sobrien/* We use char because int might match the return type of a gcc2 273560484Sobrien builtin and then its argument prototype would still apply. */ 273660484Sobrienchar $ac_func(); 273760484Sobrien 273860484Sobrienint main() { 273960484Sobrien 274060484Sobrien/* The GNU C library defines this for functions which it implements 274160484Sobrien to always fail with ENOSYS. Some functions are actually named 274260484Sobrien something starting with __ and the normal name is an alias. */ 274360484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 274460484Sobrienchoke me 274560484Sobrien#else 274660484Sobrien$ac_func(); 274760484Sobrien#endif 274860484Sobrien 274960484Sobrien; return 0; } 275033965SjdpEOF 275160484Sobrienif { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 275260484Sobrien rm -rf conftest* 275360484Sobrien eval "ac_cv_func_$ac_func=yes" 275460484Sobrienelse 275560484Sobrien echo "configure: failed program was:" >&5 275660484Sobrien cat conftest.$ac_ext >&5 275760484Sobrien rm -rf conftest* 275860484Sobrien eval "ac_cv_func_$ac_func=no" 275960484Sobrienfi 276060484Sobrienrm -f conftest* 276160484Sobrienfi 276260484Sobrien 276360484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 276460484Sobrien echo "$ac_t""yes" 1>&6 276560484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 276660484Sobrien cat >> confdefs.h <<EOF 276760484Sobrien#define $ac_tr_func 1 276860484SobrienEOF 276960484Sobrien 277060484Sobrienelse 277160484Sobrien echo "$ac_t""no" 1>&6 277260484Sobrienfi 277360484Sobriendone 277460484Sobrien 277560484Sobrienecho $ac_n "checking for working mmap""... $ac_c" 1>&6 277660484Sobrienecho "configure:2777: checking for working mmap" >&5 277760484Sobrienif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 277860484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 277960484Sobrienelse 278060484Sobrien if test "$cross_compiling" = yes; then 278160484Sobrien ac_cv_func_mmap_fixed_mapped=no 278260484Sobrienelse 278360484Sobrien cat > conftest.$ac_ext <<EOF 278460484Sobrien#line 2785 "configure" 278560484Sobrien#include "confdefs.h" 278660484Sobrien 278760484Sobrien/* Thanks to Mike Haertel and Jim Avera for this test. 278860484Sobrien Here is a matrix of mmap possibilities: 278960484Sobrien mmap private not fixed 279060484Sobrien mmap private fixed at somewhere currently unmapped 279160484Sobrien mmap private fixed at somewhere already mapped 279260484Sobrien mmap shared not fixed 279360484Sobrien mmap shared fixed at somewhere currently unmapped 279460484Sobrien mmap shared fixed at somewhere already mapped 279560484Sobrien For private mappings, we should verify that changes cannot be read() 279660484Sobrien back from the file, nor mmap's back from the file at a different 279760484Sobrien address. (There have been systems where private was not correctly 279860484Sobrien implemented like the infamous i386 svr4.0, and systems where the 279960484Sobrien VM page cache was not coherent with the filesystem buffer cache 280060484Sobrien like early versions of FreeBSD and possibly contemporary NetBSD.) 280160484Sobrien For shared mappings, we should conversely verify that changes get 280260484Sobrien propogated back to all the places they're supposed to be. 280360484Sobrien 280460484Sobrien Grep wants private fixed already mapped. 280560484Sobrien The main things grep needs to know about mmap are: 280660484Sobrien * does it exist and is it safe to write into the mmap'd area 280760484Sobrien * how to use it (BSD variants) */ 280860484Sobrien#include <sys/types.h> 280960484Sobrien#include <fcntl.h> 281060484Sobrien#include <sys/mman.h> 281160484Sobrien 281260484Sobrien/* This mess was copied from the GNU getpagesize.h. */ 281360484Sobrien#ifndef HAVE_GETPAGESIZE 281460484Sobrien# ifdef HAVE_UNISTD_H 281560484Sobrien# include <unistd.h> 281660484Sobrien# endif 281760484Sobrien 281860484Sobrien/* Assume that all systems that can run configure have sys/param.h. */ 281960484Sobrien# ifndef HAVE_SYS_PARAM_H 282060484Sobrien# define HAVE_SYS_PARAM_H 1 282160484Sobrien# endif 282260484Sobrien 282360484Sobrien# ifdef _SC_PAGESIZE 282460484Sobrien# define getpagesize() sysconf(_SC_PAGESIZE) 282560484Sobrien# else /* no _SC_PAGESIZE */ 282660484Sobrien# ifdef HAVE_SYS_PARAM_H 282760484Sobrien# include <sys/param.h> 282860484Sobrien# ifdef EXEC_PAGESIZE 282960484Sobrien# define getpagesize() EXEC_PAGESIZE 283060484Sobrien# else /* no EXEC_PAGESIZE */ 283160484Sobrien# ifdef NBPG 283260484Sobrien# define getpagesize() NBPG * CLSIZE 283360484Sobrien# ifndef CLSIZE 283460484Sobrien# define CLSIZE 1 283560484Sobrien# endif /* no CLSIZE */ 283660484Sobrien# else /* no NBPG */ 283760484Sobrien# ifdef NBPC 283860484Sobrien# define getpagesize() NBPC 283960484Sobrien# else /* no NBPC */ 284060484Sobrien# ifdef PAGESIZE 284160484Sobrien# define getpagesize() PAGESIZE 284260484Sobrien# endif /* PAGESIZE */ 284360484Sobrien# endif /* no NBPC */ 284460484Sobrien# endif /* no NBPG */ 284560484Sobrien# endif /* no EXEC_PAGESIZE */ 284660484Sobrien# else /* no HAVE_SYS_PARAM_H */ 284760484Sobrien# define getpagesize() 8192 /* punt totally */ 284860484Sobrien# endif /* no HAVE_SYS_PARAM_H */ 284960484Sobrien# endif /* no _SC_PAGESIZE */ 285060484Sobrien 285160484Sobrien#endif /* no HAVE_GETPAGESIZE */ 285260484Sobrien 285360484Sobrien#ifdef __cplusplus 285460484Sobrienextern "C" { void *malloc(unsigned); } 285560484Sobrien#else 285660484Sobrienchar *malloc(); 285760484Sobrien#endif 285860484Sobrien 285960484Sobrienint 286060484Sobrienmain() 286160484Sobrien{ 286260484Sobrien char *data, *data2, *data3; 286360484Sobrien int i, pagesize; 286460484Sobrien int fd; 286560484Sobrien 286660484Sobrien pagesize = getpagesize(); 286760484Sobrien 286860484Sobrien /* 286960484Sobrien * First, make a file with some known garbage in it. 287060484Sobrien */ 287160484Sobrien data = malloc(pagesize); 287260484Sobrien if (!data) 287360484Sobrien exit(1); 287460484Sobrien for (i = 0; i < pagesize; ++i) 287560484Sobrien *(data + i) = rand(); 287660484Sobrien umask(0); 287760484Sobrien fd = creat("conftestmmap", 0600); 287860484Sobrien if (fd < 0) 287960484Sobrien exit(1); 288060484Sobrien if (write(fd, data, pagesize) != pagesize) 288160484Sobrien exit(1); 288260484Sobrien close(fd); 288360484Sobrien 288460484Sobrien /* 288560484Sobrien * Next, try to mmap the file at a fixed address which 288660484Sobrien * already has something else allocated at it. If we can, 288760484Sobrien * also make sure that we see the same garbage. 288860484Sobrien */ 288960484Sobrien fd = open("conftestmmap", O_RDWR); 289060484Sobrien if (fd < 0) 289160484Sobrien exit(1); 289260484Sobrien data2 = malloc(2 * pagesize); 289360484Sobrien if (!data2) 289460484Sobrien exit(1); 289560484Sobrien data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 289660484Sobrien if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 289760484Sobrien MAP_PRIVATE | MAP_FIXED, fd, 0L)) 289860484Sobrien exit(1); 289960484Sobrien for (i = 0; i < pagesize; ++i) 290060484Sobrien if (*(data + i) != *(data2 + i)) 290160484Sobrien exit(1); 290260484Sobrien 290360484Sobrien /* 290460484Sobrien * Finally, make sure that changes to the mapped area 290560484Sobrien * do not percolate back to the file as seen by read(). 290660484Sobrien * (This is a bug on some variants of i386 svr4.0.) 290760484Sobrien */ 290860484Sobrien for (i = 0; i < pagesize; ++i) 290960484Sobrien *(data2 + i) = *(data2 + i) + 1; 291060484Sobrien data3 = malloc(pagesize); 291160484Sobrien if (!data3) 291260484Sobrien exit(1); 291360484Sobrien if (read(fd, data3, pagesize) != pagesize) 291460484Sobrien exit(1); 291560484Sobrien for (i = 0; i < pagesize; ++i) 291660484Sobrien if (*(data + i) != *(data3 + i)) 291760484Sobrien exit(1); 291860484Sobrien close(fd); 291960484Sobrien unlink("conftestmmap"); 292060484Sobrien exit(0); 292160484Sobrien} 292260484Sobrien 292360484SobrienEOF 292460484Sobrienif { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 292560484Sobrienthen 292660484Sobrien ac_cv_func_mmap_fixed_mapped=yes 292760484Sobrienelse 292860484Sobrien echo "configure: failed program was:" >&5 292960484Sobrien cat conftest.$ac_ext >&5 293060484Sobrien rm -fr conftest* 293160484Sobrien ac_cv_func_mmap_fixed_mapped=no 293260484Sobrienfi 293360484Sobrienrm -fr conftest* 293460484Sobrienfi 293560484Sobrien 293660484Sobrienfi 293760484Sobrien 293860484Sobrienecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 293960484Sobrienif test $ac_cv_func_mmap_fixed_mapped = yes; then 294060484Sobrien cat >> confdefs.h <<\EOF 294160484Sobrien#define HAVE_MMAP 1 294260484SobrienEOF 294360484Sobrien 294460484Sobrienfi 294560484Sobrien 294660484Sobrien 294760484Sobrien for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 294860484Sobrienunistd.h values.h sys/param.h 294960484Sobriendo 295060484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 295160484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 295260484Sobrienecho "configure:2953: checking for $ac_hdr" >&5 295360484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 295460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 295560484Sobrienelse 295660484Sobrien cat > conftest.$ac_ext <<EOF 295760484Sobrien#line 2958 "configure" 295860484Sobrien#include "confdefs.h" 295960484Sobrien#include <$ac_hdr> 296060484SobrienEOF 296133965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 296260484Sobrien{ (eval echo configure:2963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 296360484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 296433965Sjdpif test -z "$ac_err"; then 296560484Sobrien rm -rf conftest* 296660484Sobrien eval "ac_cv_header_$ac_safe=yes" 296733965Sjdpelse 296833965Sjdp echo "$ac_err" >&5 296933965Sjdp echo "configure: failed program was:" >&5 297033965Sjdp cat conftest.$ac_ext >&5 297133965Sjdp rm -rf conftest* 297260484Sobrien eval "ac_cv_header_$ac_safe=no" 297360484Sobrienfi 297460484Sobrienrm -f conftest* 297560484Sobrienfi 297660484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 297760484Sobrien echo "$ac_t""yes" 1>&6 297860484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 297960484Sobrien cat >> confdefs.h <<EOF 298060484Sobrien#define $ac_tr_hdr 1 298160484SobrienEOF 298260484Sobrien 298360484Sobrienelse 298460484Sobrien echo "$ac_t""no" 1>&6 298560484Sobrienfi 298660484Sobriendone 298760484Sobrien 298860484Sobrien for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 298960484Sobrien__argz_count __argz_stringify __argz_next 299060484Sobriendo 299160484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 299260484Sobrienecho "configure:2993: checking for $ac_func" >&5 299360484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 299460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 299560484Sobrienelse 299633965Sjdp cat > conftest.$ac_ext <<EOF 299760484Sobrien#line 2998 "configure" 299833965Sjdp#include "confdefs.h" 299960484Sobrien/* System header to define __stub macros and hopefully few prototypes, 300060484Sobrien which can conflict with char $ac_func(); below. */ 300133965Sjdp#include <assert.h> 300260484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 300360484Sobrien/* We use char because int might match the return type of a gcc2 300460484Sobrien builtin and then its argument prototype would still apply. */ 300560484Sobrienchar $ac_func(); 300660484Sobrien 300760484Sobrienint main() { 300860484Sobrien 300960484Sobrien/* The GNU C library defines this for functions which it implements 301060484Sobrien to always fail with ENOSYS. Some functions are actually named 301160484Sobrien something starting with __ and the normal name is an alias. */ 301260484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 301360484Sobrienchoke me 301460484Sobrien#else 301560484Sobrien$ac_func(); 301660484Sobrien#endif 301760484Sobrien 301860484Sobrien; return 0; } 301933965SjdpEOF 302060484Sobrienif { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 302160484Sobrien rm -rf conftest* 302260484Sobrien eval "ac_cv_func_$ac_func=yes" 302360484Sobrienelse 302460484Sobrien echo "configure: failed program was:" >&5 302560484Sobrien cat conftest.$ac_ext >&5 302660484Sobrien rm -rf conftest* 302760484Sobrien eval "ac_cv_func_$ac_func=no" 302860484Sobrienfi 302960484Sobrienrm -f conftest* 303060484Sobrienfi 303160484Sobrien 303260484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 303360484Sobrien echo "$ac_t""yes" 1>&6 303460484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 303560484Sobrien cat >> confdefs.h <<EOF 303660484Sobrien#define $ac_tr_func 1 303760484SobrienEOF 303860484Sobrien 303960484Sobrienelse 304060484Sobrien echo "$ac_t""no" 1>&6 304160484Sobrienfi 304260484Sobriendone 304360484Sobrien 304460484Sobrien 304560484Sobrien if test "${ac_cv_func_stpcpy+set}" != "set"; then 304660484Sobrien for ac_func in stpcpy 304760484Sobriendo 304860484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 304960484Sobrienecho "configure:3050: checking for $ac_func" >&5 305060484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 305160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 305260484Sobrienelse 305360484Sobrien cat > conftest.$ac_ext <<EOF 305460484Sobrien#line 3055 "configure" 305560484Sobrien#include "confdefs.h" 305660484Sobrien/* System header to define __stub macros and hopefully few prototypes, 305760484Sobrien which can conflict with char $ac_func(); below. */ 305860484Sobrien#include <assert.h> 305960484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 306060484Sobrien/* We use char because int might match the return type of a gcc2 306160484Sobrien builtin and then its argument prototype would still apply. */ 306260484Sobrienchar $ac_func(); 306360484Sobrien 306460484Sobrienint main() { 306560484Sobrien 306660484Sobrien/* The GNU C library defines this for functions which it implements 306760484Sobrien to always fail with ENOSYS. Some functions are actually named 306860484Sobrien something starting with __ and the normal name is an alias. */ 306960484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 307060484Sobrienchoke me 307160484Sobrien#else 307260484Sobrien$ac_func(); 307360484Sobrien#endif 307460484Sobrien 307560484Sobrien; return 0; } 307660484SobrienEOF 307760484Sobrienif { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 307860484Sobrien rm -rf conftest* 307960484Sobrien eval "ac_cv_func_$ac_func=yes" 308060484Sobrienelse 308160484Sobrien echo "configure: failed program was:" >&5 308260484Sobrien cat conftest.$ac_ext >&5 308360484Sobrien rm -rf conftest* 308460484Sobrien eval "ac_cv_func_$ac_func=no" 308560484Sobrienfi 308660484Sobrienrm -f conftest* 308760484Sobrienfi 308860484Sobrien 308960484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 309060484Sobrien echo "$ac_t""yes" 1>&6 309160484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 309260484Sobrien cat >> confdefs.h <<EOF 309360484Sobrien#define $ac_tr_func 1 309460484SobrienEOF 309560484Sobrien 309660484Sobrienelse 309760484Sobrien echo "$ac_t""no" 1>&6 309860484Sobrienfi 309960484Sobriendone 310060484Sobrien 310160484Sobrien fi 310260484Sobrien if test "${ac_cv_func_stpcpy}" = "yes"; then 310360484Sobrien cat >> confdefs.h <<\EOF 310460484Sobrien#define HAVE_STPCPY 1 310560484SobrienEOF 310660484Sobrien 310760484Sobrien fi 310860484Sobrien 310960484Sobrien if test $ac_cv_header_locale_h = yes; then 311060484Sobrien echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 311160484Sobrienecho "configure:3112: checking for LC_MESSAGES" >&5 311260484Sobrienif eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 311360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 311460484Sobrienelse 311560484Sobrien cat > conftest.$ac_ext <<EOF 311660484Sobrien#line 3117 "configure" 311760484Sobrien#include "confdefs.h" 311860484Sobrien#include <locale.h> 311960484Sobrienint main() { 312060484Sobrienreturn LC_MESSAGES 312160484Sobrien; return 0; } 312260484SobrienEOF 312360484Sobrienif { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 312460484Sobrien rm -rf conftest* 312560484Sobrien am_cv_val_LC_MESSAGES=yes 312660484Sobrienelse 312760484Sobrien echo "configure: failed program was:" >&5 312860484Sobrien cat conftest.$ac_ext >&5 312960484Sobrien rm -rf conftest* 313060484Sobrien am_cv_val_LC_MESSAGES=no 313160484Sobrienfi 313260484Sobrienrm -f conftest* 313360484Sobrienfi 313460484Sobrien 313560484Sobrienecho "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 313660484Sobrien if test $am_cv_val_LC_MESSAGES = yes; then 313760484Sobrien cat >> confdefs.h <<\EOF 313860484Sobrien#define HAVE_LC_MESSAGES 1 313960484SobrienEOF 314060484Sobrien 314160484Sobrien fi 314260484Sobrien fi 314360484Sobrien echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 314460484Sobrienecho "configure:3145: checking whether NLS is requested" >&5 314560484Sobrien # Check whether --enable-nls or --disable-nls was given. 314660484Sobrienif test "${enable_nls+set}" = set; then 314760484Sobrien enableval="$enable_nls" 314860484Sobrien USE_NLS=$enableval 314960484Sobrienelse 315060484Sobrien USE_NLS=yes 315160484Sobrienfi 315260484Sobrien 315360484Sobrien echo "$ac_t""$USE_NLS" 1>&6 315460484Sobrien 315560484Sobrien 315660484Sobrien USE_INCLUDED_LIBINTL=no 315760484Sobrien 315860484Sobrien if test "$USE_NLS" = "yes"; then 315960484Sobrien cat >> confdefs.h <<\EOF 316060484Sobrien#define ENABLE_NLS 1 316160484SobrienEOF 316260484Sobrien 316360484Sobrien echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 316460484Sobrienecho "configure:3165: checking whether included gettext is requested" >&5 316560484Sobrien # Check whether --with-included-gettext or --without-included-gettext was given. 316660484Sobrienif test "${with_included_gettext+set}" = set; then 316760484Sobrien withval="$with_included_gettext" 316860484Sobrien nls_cv_force_use_gnu_gettext=$withval 316960484Sobrienelse 317060484Sobrien nls_cv_force_use_gnu_gettext=no 317160484Sobrienfi 317260484Sobrien 317360484Sobrien echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 317460484Sobrien 317560484Sobrien nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 317660484Sobrien if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 317760484Sobrien nls_cv_header_intl= 317860484Sobrien nls_cv_header_libgt= 317960484Sobrien CATOBJEXT=NONE 318060484Sobrien 318160484Sobrien ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 318260484Sobrienecho $ac_n "checking for libintl.h""... $ac_c" 1>&6 318360484Sobrienecho "configure:3184: checking for libintl.h" >&5 318460484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 318560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 318660484Sobrienelse 318760484Sobrien cat > conftest.$ac_ext <<EOF 318860484Sobrien#line 3189 "configure" 318960484Sobrien#include "confdefs.h" 319060484Sobrien#include <libintl.h> 319160484SobrienEOF 319233965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 319360484Sobrien{ (eval echo configure:3194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 319460484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 319533965Sjdpif test -z "$ac_err"; then 319660484Sobrien rm -rf conftest* 319760484Sobrien eval "ac_cv_header_$ac_safe=yes" 319833965Sjdpelse 319933965Sjdp echo "$ac_err" >&5 320033965Sjdp echo "configure: failed program was:" >&5 320133965Sjdp cat conftest.$ac_ext >&5 320233965Sjdp rm -rf conftest* 320360484Sobrien eval "ac_cv_header_$ac_safe=no" 320433965Sjdpfi 320533965Sjdprm -f conftest* 320633965Sjdpfi 320760484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 320860484Sobrien echo "$ac_t""yes" 1>&6 320960484Sobrien echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 321060484Sobrienecho "configure:3211: checking for gettext in libc" >&5 321160484Sobrienif eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then 321260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 321360484Sobrienelse 321460484Sobrien cat > conftest.$ac_ext <<EOF 321560484Sobrien#line 3216 "configure" 321660484Sobrien#include "confdefs.h" 321760484Sobrien#include <libintl.h> 321860484Sobrienint main() { 321960484Sobrienreturn (int) gettext ("") 322060484Sobrien; return 0; } 322160484SobrienEOF 322260484Sobrienif { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 322360484Sobrien rm -rf conftest* 322460484Sobrien gt_cv_func_gettext_libc=yes 322560484Sobrienelse 322660484Sobrien echo "configure: failed program was:" >&5 322760484Sobrien cat conftest.$ac_ext >&5 322860484Sobrien rm -rf conftest* 322960484Sobrien gt_cv_func_gettext_libc=no 323060484Sobrienfi 323133965Sjdprm -f conftest* 323233965Sjdpfi 323360484Sobrien 323460484Sobrienecho "$ac_t""$gt_cv_func_gettext_libc" 1>&6 323560484Sobrien 323660484Sobrien if test "$gt_cv_func_gettext_libc" != "yes"; then 323760484Sobrien echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 323860484Sobrienecho "configure:3239: checking for bindtextdomain in -lintl" >&5 323960484Sobrienac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` 324060484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 324160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 324233965Sjdpelse 324360484Sobrien ac_save_LIBS="$LIBS" 324460484SobrienLIBS="-lintl $LIBS" 324560484Sobriencat > conftest.$ac_ext <<EOF 324660484Sobrien#line 3247 "configure" 324760484Sobrien#include "confdefs.h" 324860484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 324960484Sobrien/* We use char because int might match the return type of a gcc2 325060484Sobrien builtin and then its argument prototype would still apply. */ 325160484Sobrienchar bindtextdomain(); 325260484Sobrien 325360484Sobrienint main() { 325460484Sobrienbindtextdomain() 325560484Sobrien; return 0; } 325660484SobrienEOF 325760484Sobrienif { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 325860484Sobrien rm -rf conftest* 325960484Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 326060484Sobrienelse 326160484Sobrien echo "configure: failed program was:" >&5 326260484Sobrien cat conftest.$ac_ext >&5 326360484Sobrien rm -rf conftest* 326460484Sobrien eval "ac_cv_lib_$ac_lib_var=no" 326533965Sjdpfi 326660484Sobrienrm -f conftest* 326760484SobrienLIBS="$ac_save_LIBS" 326833965Sjdp 326960484Sobrienfi 327060484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 327160484Sobrien echo "$ac_t""yes" 1>&6 327260484Sobrien echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 327360484Sobrienecho "configure:3274: checking for gettext in libintl" >&5 327460484Sobrienif eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then 327560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 327660484Sobrienelse 327760484Sobrien cat > conftest.$ac_ext <<EOF 327860484Sobrien#line 3279 "configure" 327960484Sobrien#include "confdefs.h" 328060484Sobrien 328160484Sobrienint main() { 328260484Sobrienreturn (int) gettext ("") 328360484Sobrien; return 0; } 328460484SobrienEOF 328560484Sobrienif { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 328660484Sobrien rm -rf conftest* 328760484Sobrien gt_cv_func_gettext_libintl=yes 328860484Sobrienelse 328960484Sobrien echo "configure: failed program was:" >&5 329060484Sobrien cat conftest.$ac_ext >&5 329160484Sobrien rm -rf conftest* 329260484Sobrien gt_cv_func_gettext_libintl=no 329360484Sobrienfi 329460484Sobrienrm -f conftest* 329560484Sobrienfi 329660484Sobrien 329760484Sobrienecho "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 329860484Sobrienelse 329960484Sobrien echo "$ac_t""no" 1>&6 330060484Sobrienfi 330160484Sobrien 330260484Sobrien fi 330360484Sobrien 330460484Sobrien if test "$gt_cv_func_gettext_libc" = "yes" \ 330560484Sobrien || test "$gt_cv_func_gettext_libintl" = "yes"; then 330660484Sobrien cat >> confdefs.h <<\EOF 330760484Sobrien#define HAVE_GETTEXT 1 330860484SobrienEOF 330960484Sobrien 331060484Sobrien # Extract the first word of "msgfmt", so it can be a program name with args. 331160484Sobrienset dummy msgfmt; ac_word=$2 331260484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 331360484Sobrienecho "configure:3314: checking for $ac_word" >&5 331460484Sobrienif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 331560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 331660484Sobrienelse 331760484Sobrien case "$MSGFMT" in 331860484Sobrien /*) 331960484Sobrien ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 332060484Sobrien ;; 332160484Sobrien *) 332260484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 332360484Sobrien for ac_dir in $PATH; do 332460484Sobrien test -z "$ac_dir" && ac_dir=. 332560484Sobrien if test -f $ac_dir/$ac_word; then 332660484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 332760484Sobrien ac_cv_path_MSGFMT="$ac_dir/$ac_word" 332860484Sobrien break 332960484Sobrien fi 333060484Sobrien fi 333160484Sobrien done 333260484Sobrien IFS="$ac_save_ifs" 333360484Sobrien test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 333460484Sobrien ;; 333560484Sobrienesac 333660484Sobrienfi 333760484SobrienMSGFMT="$ac_cv_path_MSGFMT" 333860484Sobrienif test -n "$MSGFMT"; then 333960484Sobrien echo "$ac_t""$MSGFMT" 1>&6 334060484Sobrienelse 334160484Sobrien echo "$ac_t""no" 1>&6 334260484Sobrienfi 334360484Sobrien if test "$MSGFMT" != "no"; then 334460484Sobrien for ac_func in dcgettext 334560484Sobriendo 334660484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 334760484Sobrienecho "configure:3348: checking for $ac_func" >&5 334860484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 334960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 335060484Sobrienelse 335160484Sobrien cat > conftest.$ac_ext <<EOF 335260484Sobrien#line 3353 "configure" 335360484Sobrien#include "confdefs.h" 335460484Sobrien/* System header to define __stub macros and hopefully few prototypes, 335560484Sobrien which can conflict with char $ac_func(); below. */ 335660484Sobrien#include <assert.h> 335760484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 335860484Sobrien/* We use char because int might match the return type of a gcc2 335960484Sobrien builtin and then its argument prototype would still apply. */ 336060484Sobrienchar $ac_func(); 336160484Sobrien 336260484Sobrienint main() { 336360484Sobrien 336460484Sobrien/* The GNU C library defines this for functions which it implements 336560484Sobrien to always fail with ENOSYS. Some functions are actually named 336660484Sobrien something starting with __ and the normal name is an alias. */ 336760484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 336860484Sobrienchoke me 336960484Sobrien#else 337060484Sobrien$ac_func(); 337160484Sobrien#endif 337260484Sobrien 337360484Sobrien; return 0; } 337460484SobrienEOF 337560484Sobrienif { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 337660484Sobrien rm -rf conftest* 337760484Sobrien eval "ac_cv_func_$ac_func=yes" 337860484Sobrienelse 337960484Sobrien echo "configure: failed program was:" >&5 338060484Sobrien cat conftest.$ac_ext >&5 338160484Sobrien rm -rf conftest* 338260484Sobrien eval "ac_cv_func_$ac_func=no" 338360484Sobrienfi 338460484Sobrienrm -f conftest* 338560484Sobrienfi 338660484Sobrien 338760484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 338860484Sobrien echo "$ac_t""yes" 1>&6 338960484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 339060484Sobrien cat >> confdefs.h <<EOF 339160484Sobrien#define $ac_tr_func 1 339260484SobrienEOF 339360484Sobrien 339460484Sobrienelse 339560484Sobrien echo "$ac_t""no" 1>&6 339660484Sobrienfi 339760484Sobriendone 339860484Sobrien 339960484Sobrien # Extract the first word of "gmsgfmt", so it can be a program name with args. 340060484Sobrienset dummy gmsgfmt; ac_word=$2 340160484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 340260484Sobrienecho "configure:3403: checking for $ac_word" >&5 340360484Sobrienif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 340460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 340560484Sobrienelse 340660484Sobrien case "$GMSGFMT" in 340760484Sobrien /*) 340860484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 340960484Sobrien ;; 341060484Sobrien ?:/*) 341160484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 341260484Sobrien ;; 341360484Sobrien *) 341460484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 341560484Sobrien ac_dummy="$PATH" 341660484Sobrien for ac_dir in $ac_dummy; do 341760484Sobrien test -z "$ac_dir" && ac_dir=. 341860484Sobrien if test -f $ac_dir/$ac_word; then 341960484Sobrien ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 342060484Sobrien break 342160484Sobrien fi 342260484Sobrien done 342360484Sobrien IFS="$ac_save_ifs" 342460484Sobrien test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 342560484Sobrien ;; 342660484Sobrienesac 342760484Sobrienfi 342860484SobrienGMSGFMT="$ac_cv_path_GMSGFMT" 342960484Sobrienif test -n "$GMSGFMT"; then 343060484Sobrien echo "$ac_t""$GMSGFMT" 1>&6 343160484Sobrienelse 343260484Sobrien echo "$ac_t""no" 1>&6 343360484Sobrienfi 343460484Sobrien 343560484Sobrien # Extract the first word of "xgettext", so it can be a program name with args. 343660484Sobrienset dummy xgettext; ac_word=$2 343760484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 343860484Sobrienecho "configure:3439: checking for $ac_word" >&5 343960484Sobrienif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 344060484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 344160484Sobrienelse 344260484Sobrien case "$XGETTEXT" in 344360484Sobrien /*) 344460484Sobrien ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 344560484Sobrien ;; 344660484Sobrien *) 344760484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 344860484Sobrien for ac_dir in $PATH; do 344960484Sobrien test -z "$ac_dir" && ac_dir=. 345060484Sobrien if test -f $ac_dir/$ac_word; then 345160484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 345260484Sobrien ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 345360484Sobrien break 345460484Sobrien fi 345560484Sobrien fi 345660484Sobrien done 345760484Sobrien IFS="$ac_save_ifs" 345860484Sobrien test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 345960484Sobrien ;; 346060484Sobrienesac 346160484Sobrienfi 346260484SobrienXGETTEXT="$ac_cv_path_XGETTEXT" 346360484Sobrienif test -n "$XGETTEXT"; then 346460484Sobrien echo "$ac_t""$XGETTEXT" 1>&6 346560484Sobrienelse 346660484Sobrien echo "$ac_t""no" 1>&6 346760484Sobrienfi 346860484Sobrien 346960484Sobrien cat > conftest.$ac_ext <<EOF 347060484Sobrien#line 3471 "configure" 347160484Sobrien#include "confdefs.h" 347260484Sobrien 347360484Sobrienint main() { 347460484Sobrienextern int _nl_msg_cat_cntr; 347560484Sobrien return _nl_msg_cat_cntr 347660484Sobrien; return 0; } 347760484SobrienEOF 347860484Sobrienif { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 347960484Sobrien rm -rf conftest* 348060484Sobrien CATOBJEXT=.gmo 348160484Sobrien DATADIRNAME=share 348260484Sobrienelse 348360484Sobrien echo "configure: failed program was:" >&5 348460484Sobrien cat conftest.$ac_ext >&5 348560484Sobrien rm -rf conftest* 348660484Sobrien CATOBJEXT=.mo 348760484Sobrien DATADIRNAME=lib 348860484Sobrienfi 348960484Sobrienrm -f conftest* 349060484Sobrien INSTOBJEXT=.mo 349160484Sobrien fi 349260484Sobrien fi 349360484Sobrien 349460484Sobrienelse 349560484Sobrien echo "$ac_t""no" 1>&6 349660484Sobrienfi 349760484Sobrien 349860484Sobrien 349960484Sobrien 350060484Sobrien if test "$CATOBJEXT" = "NONE"; then 350160484Sobrien nls_cv_use_gnu_gettext=yes 350260484Sobrien fi 350360484Sobrien fi 350460484Sobrien 350560484Sobrien if test "$nls_cv_use_gnu_gettext" = "yes"; then 350660484Sobrien INTLOBJS="\$(GETTOBJS)" 350760484Sobrien # Extract the first word of "msgfmt", so it can be a program name with args. 350860484Sobrienset dummy msgfmt; ac_word=$2 350960484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 351060484Sobrienecho "configure:3511: checking for $ac_word" >&5 351160484Sobrienif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 351260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 351360484Sobrienelse 351460484Sobrien case "$MSGFMT" in 351560484Sobrien /*) 351660484Sobrien ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 351760484Sobrien ;; 351860484Sobrien *) 351960484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 352060484Sobrien for ac_dir in $PATH; do 352160484Sobrien test -z "$ac_dir" && ac_dir=. 352260484Sobrien if test -f $ac_dir/$ac_word; then 352360484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 352460484Sobrien ac_cv_path_MSGFMT="$ac_dir/$ac_word" 352560484Sobrien break 352660484Sobrien fi 352760484Sobrien fi 352860484Sobrien done 352960484Sobrien IFS="$ac_save_ifs" 353060484Sobrien test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 353160484Sobrien ;; 353260484Sobrienesac 353360484Sobrienfi 353460484SobrienMSGFMT="$ac_cv_path_MSGFMT" 353560484Sobrienif test -n "$MSGFMT"; then 353660484Sobrien echo "$ac_t""$MSGFMT" 1>&6 353760484Sobrienelse 353860484Sobrien echo "$ac_t""no" 1>&6 353960484Sobrienfi 354060484Sobrien 354160484Sobrien # Extract the first word of "gmsgfmt", so it can be a program name with args. 354260484Sobrienset dummy gmsgfmt; ac_word=$2 354360484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 354460484Sobrienecho "configure:3545: checking for $ac_word" >&5 354560484Sobrienif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 354660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 354760484Sobrienelse 354860484Sobrien case "$GMSGFMT" in 354960484Sobrien /*) 355060484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 355160484Sobrien ;; 355260484Sobrien ?:/*) 355360484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 355460484Sobrien ;; 355560484Sobrien *) 355660484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 355760484Sobrien ac_dummy="$PATH" 355860484Sobrien for ac_dir in $ac_dummy; do 355960484Sobrien test -z "$ac_dir" && ac_dir=. 356060484Sobrien if test -f $ac_dir/$ac_word; then 356160484Sobrien ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 356260484Sobrien break 356360484Sobrien fi 356460484Sobrien done 356560484Sobrien IFS="$ac_save_ifs" 356660484Sobrien test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 356760484Sobrien ;; 356860484Sobrienesac 356960484Sobrienfi 357060484SobrienGMSGFMT="$ac_cv_path_GMSGFMT" 357160484Sobrienif test -n "$GMSGFMT"; then 357260484Sobrien echo "$ac_t""$GMSGFMT" 1>&6 357360484Sobrienelse 357460484Sobrien echo "$ac_t""no" 1>&6 357560484Sobrienfi 357660484Sobrien 357760484Sobrien # Extract the first word of "xgettext", so it can be a program name with args. 357860484Sobrienset dummy xgettext; ac_word=$2 357960484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 358060484Sobrienecho "configure:3581: checking for $ac_word" >&5 358160484Sobrienif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 358260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 358360484Sobrienelse 358460484Sobrien case "$XGETTEXT" in 358560484Sobrien /*) 358660484Sobrien ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 358760484Sobrien ;; 358860484Sobrien *) 358960484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 359060484Sobrien for ac_dir in $PATH; do 359160484Sobrien test -z "$ac_dir" && ac_dir=. 359260484Sobrien if test -f $ac_dir/$ac_word; then 359360484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 359460484Sobrien ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 359560484Sobrien break 359660484Sobrien fi 359760484Sobrien fi 359860484Sobrien done 359960484Sobrien IFS="$ac_save_ifs" 360060484Sobrien test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 360160484Sobrien ;; 360260484Sobrienesac 360360484Sobrienfi 360460484SobrienXGETTEXT="$ac_cv_path_XGETTEXT" 360560484Sobrienif test -n "$XGETTEXT"; then 360660484Sobrien echo "$ac_t""$XGETTEXT" 1>&6 360760484Sobrienelse 360860484Sobrien echo "$ac_t""no" 1>&6 360960484Sobrienfi 361060484Sobrien 361160484Sobrien 361260484Sobrien USE_INCLUDED_LIBINTL=yes 361360484Sobrien CATOBJEXT=.gmo 361460484Sobrien INSTOBJEXT=.mo 361560484Sobrien DATADIRNAME=share 361660484Sobrien INTLDEPS='$(top_builddir)/../intl/libintl.a' 361760484Sobrien INTLLIBS=$INTLDEPS 361860484Sobrien LIBS=`echo $LIBS | sed -e 's/-lintl//'` 361960484Sobrien nls_cv_header_intl=libintl.h 362060484Sobrien nls_cv_header_libgt=libgettext.h 362160484Sobrien fi 362260484Sobrien 362360484Sobrien if test "$XGETTEXT" != ":"; then 362460484Sobrien if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 362560484Sobrien : ; 362660484Sobrien else 362760484Sobrien echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 362860484Sobrien XGETTEXT=":" 362960484Sobrien fi 363060484Sobrien fi 363160484Sobrien 363260484Sobrien # We need to process the po/ directory. 363360484Sobrien POSUB=po 363460484Sobrien else 363560484Sobrien DATADIRNAME=share 363660484Sobrien nls_cv_header_intl=libintl.h 363760484Sobrien nls_cv_header_libgt=libgettext.h 363860484Sobrien fi 363960484Sobrien 364060484Sobrien # If this is used in GNU gettext we have to set USE_NLS to `yes' 364160484Sobrien # because some of the sources are only built for this goal. 364260484Sobrien if test "$PACKAGE" = gettext; then 364360484Sobrien USE_NLS=yes 364460484Sobrien USE_INCLUDED_LIBINTL=yes 364560484Sobrien fi 364660484Sobrien 364760484Sobrien for lang in $ALL_LINGUAS; do 364860484Sobrien GMOFILES="$GMOFILES $lang.gmo" 364960484Sobrien POFILES="$POFILES $lang.po" 365060484Sobrien done 365160484Sobrien 365260484Sobrien 365360484Sobrien 365460484Sobrien 365560484Sobrien 365660484Sobrien 365760484Sobrien 365860484Sobrien 365960484Sobrien 366060484Sobrien 366160484Sobrien 366260484Sobrien 366360484Sobrien 366460484Sobrien 366560484Sobrien if test "x$CATOBJEXT" != "x"; then 366660484Sobrien if test "x$ALL_LINGUAS" = "x"; then 366760484Sobrien LINGUAS= 366860484Sobrien else 366960484Sobrien echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 367060484Sobrienecho "configure:3671: checking for catalogs to be installed" >&5 367160484Sobrien NEW_LINGUAS= 367260484Sobrien for lang in ${LINGUAS=$ALL_LINGUAS}; do 367360484Sobrien case "$ALL_LINGUAS" in 367460484Sobrien *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 367560484Sobrien esac 367660484Sobrien done 367760484Sobrien LINGUAS=$NEW_LINGUAS 367860484Sobrien echo "$ac_t""$LINGUAS" 1>&6 367960484Sobrien fi 368060484Sobrien 368160484Sobrien if test -n "$LINGUAS"; then 368260484Sobrien for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 368360484Sobrien fi 368460484Sobrien fi 368560484Sobrien 368660484Sobrien if test $ac_cv_header_locale_h = yes; then 368760484Sobrien INCLUDE_LOCALE_H="#include <locale.h>" 368860484Sobrien else 368960484Sobrien INCLUDE_LOCALE_H="\ 369060484Sobrien/* The system does not provide the header <locale.h>. Take care yourself. */" 369160484Sobrien fi 369260484Sobrien 369360484Sobrien 369460484Sobrien if test -f $srcdir/po2tbl.sed.in; then 369560484Sobrien if test "$CATOBJEXT" = ".cat"; then 369660484Sobrien ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` 369760484Sobrienecho $ac_n "checking for linux/version.h""... $ac_c" 1>&6 369860484Sobrienecho "configure:3699: checking for linux/version.h" >&5 369960484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 370060484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 370160484Sobrienelse 370260484Sobrien cat > conftest.$ac_ext <<EOF 370360484Sobrien#line 3704 "configure" 370460484Sobrien#include "confdefs.h" 370560484Sobrien#include <linux/version.h> 370660484SobrienEOF 370760484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 370860484Sobrien{ (eval echo configure:3709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 370960484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 371060484Sobrienif test -z "$ac_err"; then 371160484Sobrien rm -rf conftest* 371260484Sobrien eval "ac_cv_header_$ac_safe=yes" 371360484Sobrienelse 371460484Sobrien echo "$ac_err" >&5 371560484Sobrien echo "configure: failed program was:" >&5 371660484Sobrien cat conftest.$ac_ext >&5 371760484Sobrien rm -rf conftest* 371860484Sobrien eval "ac_cv_header_$ac_safe=no" 371960484Sobrienfi 372060484Sobrienrm -f conftest* 372160484Sobrienfi 372260484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 372360484Sobrien echo "$ac_t""yes" 1>&6 372460484Sobrien msgformat=linux 372560484Sobrienelse 372660484Sobrien echo "$ac_t""no" 1>&6 372760484Sobrienmsgformat=xopen 372860484Sobrienfi 372960484Sobrien 373060484Sobrien 373160484Sobrien sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed 373260484Sobrien fi 373360484Sobrien sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 373460484Sobrien $srcdir/po2tbl.sed.in > po2tbl.sed 373560484Sobrien fi 373660484Sobrien 373760484Sobrien if test "$PACKAGE" = "gettext"; then 373860484Sobrien GT_NO="#NO#" 373960484Sobrien GT_YES= 374060484Sobrien else 374160484Sobrien GT_NO= 374260484Sobrien GT_YES="#YES#" 374360484Sobrien fi 374460484Sobrien 374560484Sobrien 374660484Sobrien 374760484Sobrien MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" 374860484Sobrien 374960484Sobrien 375060484Sobrien l= 375160484Sobrien 375260484Sobrien 375360484Sobrien if test -d $srcdir/po; then 375460484Sobrien test -d po || mkdir po 375560484Sobrien if test "x$srcdir" != "x."; then 375660484Sobrien if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 375760484Sobrien posrcprefix="$srcdir/" 375860484Sobrien else 375960484Sobrien posrcprefix="../$srcdir/" 376060484Sobrien fi 376160484Sobrien else 376260484Sobrien posrcprefix="../" 376360484Sobrien fi 376460484Sobrien rm -f po/POTFILES 376560484Sobrien sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 376660484Sobrien < $srcdir/po/POTFILES.in > po/POTFILES 376760484Sobrien fi 376860484Sobrien 376960484Sobrien 377060484Sobrien# Permit host specific settings. 377160484Sobrien. ${srcdir}/configure.host 377260484Sobrien 377360484Sobrien 377460484Sobrien# Find a good install program. We prefer a C program (faster), 377560484Sobrien# so one script is as good as another. But avoid the broken or 377660484Sobrien# incompatible versions: 377760484Sobrien# SysV /etc/install, /usr/sbin/install 377860484Sobrien# SunOS /usr/etc/install 377960484Sobrien# IRIX /sbin/install 378060484Sobrien# AIX /bin/install 378160484Sobrien# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 378260484Sobrien# AFS /usr/afsws/bin/install, which mishandles nonexistent args 378360484Sobrien# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 378460484Sobrien# ./install, which can be erroneously created by make from ./install.sh. 378560484Sobrienecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 378660484Sobrienecho "configure:3787: checking for a BSD compatible install" >&5 378760484Sobrienif test -z "$INSTALL"; then 378860484Sobrienif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 378960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 379060484Sobrienelse 379160484Sobrien IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 379260484Sobrien for ac_dir in $PATH; do 379360484Sobrien # Account for people who put trailing slashes in PATH elements. 379460484Sobrien case "$ac_dir/" in 379560484Sobrien /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 379660484Sobrien *) 379760484Sobrien # OSF1 and SCO ODT 3.0 have their own names for install. 379860484Sobrien # Don't use installbsd from OSF since it installs stuff as root 379960484Sobrien # by default. 380060484Sobrien for ac_prog in ginstall scoinst install; do 380160484Sobrien if test -f $ac_dir/$ac_prog; then 380260484Sobrien if test $ac_prog = install && 380360484Sobrien grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 380460484Sobrien # AIX install. It has an incompatible calling convention. 380560484Sobrien : 380660484Sobrien else 380760484Sobrien ac_cv_path_install="$ac_dir/$ac_prog -c" 380860484Sobrien break 2 380960484Sobrien fi 381060484Sobrien fi 381160484Sobrien done 381260484Sobrien ;; 381360484Sobrien esac 381460484Sobrien done 381560484Sobrien IFS="$ac_save_IFS" 381660484Sobrien 381760484Sobrienfi 381860484Sobrien if test "${ac_cv_path_install+set}" = set; then 381960484Sobrien INSTALL="$ac_cv_path_install" 382060484Sobrien else 382160484Sobrien # As a last resort, use the slow shell script. We don't cache a 382260484Sobrien # path for INSTALL within a source directory, because that will 382360484Sobrien # break other packages using the cache if that directory is 382460484Sobrien # removed, or if the path is relative. 382560484Sobrien INSTALL="$ac_install_sh" 382660484Sobrien fi 382760484Sobrienfi 382860484Sobrienecho "$ac_t""$INSTALL" 1>&6 382960484Sobrien 383060484Sobrien# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 383160484Sobrien# It thinks the first close brace ends the variable substitution. 383260484Sobrientest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 383360484Sobrien 383460484Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 383560484Sobrien 383660484Sobrientest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 383760484Sobrien 383860484Sobrien 383960484SobrienBFD_HOST_64BIT_LONG=0 384060484SobrienBFD_HOST_64_BIT_DEFINED=0 384160484SobrienBFD_HOST_64_BIT= 384260484SobrienBFD_HOST_U_64_BIT= 384360484Sobrienif test "x${HOST_64BIT_TYPE}" = "xlong"; then 384460484Sobrien BFD_HOST_64BIT_LONG=1 384560484Sobrienelif test "x${HOST_64BIT_TYPE}" != "x"; then 384660484Sobrien BFD_HOST_64_BIT_DEFINED=1 384760484Sobrien BFD_HOST_64_BIT=${HOST_64BIT_TYPE} 384860484Sobrien BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE} 384960484Sobrienfi 385060484Sobrien 385160484Sobrien 385260484Sobrien 385360484Sobrien 385460484Sobrien 385560484Sobrien# Put a plausible default for CC_FOR_BUILD in Makefile. 385660484Sobrienif test -z "$CC_FOR_BUILD"; then 385760484Sobrien if test "x$cross_compiling" = "xno"; then 385860484Sobrien CC_FOR_BUILD='$(CC)' 385960484Sobrien else 386060484Sobrien CC_FOR_BUILD=gcc 386160484Sobrien fi 386260484Sobrienfi 386360484Sobrien 386460484Sobrien# Also set EXEEXT_FOR_BUILD. 386560484Sobrienif test "x$cross_compiling" = "xno"; then 386660484Sobrien EXEEXT_FOR_BUILD='$(EXEEXT)' 386760484Sobrienelse 386860484Sobrien echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 386960484Sobrienecho "configure:3870: checking for build system executable suffix" >&5 387060484Sobrienif eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then 387160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 387260484Sobrienelse 387360484Sobrien rm -f conftest* 387460484Sobrien echo 'int main () { return 0; }' > conftest.c 387560484Sobrien bfd_cv_build_exeext= 387660484Sobrien ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 387760484Sobrien for file in conftest.*; do 387860484Sobrien case $file in 387960484Sobrien *.c | *.o | *.obj | *.ilk | *.pdb) ;; 388060484Sobrien *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 388160484Sobrien esac 388260484Sobrien done 388360484Sobrien rm -f conftest* 388460484Sobrien test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 388560484Sobrienfi 388660484Sobrien 388760484Sobrienecho "$ac_t""$bfd_cv_build_exeext" 1>&6 388860484Sobrien EXEEXT_FOR_BUILD="" 388960484Sobrien test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 389060484Sobrienfi 389160484Sobrien 389260484Sobrien 389333965Sjdpfor ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h 389433965Sjdpdo 389533965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 389633965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 389760484Sobrienecho "configure:3898: checking for $ac_hdr" >&5 389833965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 389933965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 390033965Sjdpelse 390133965Sjdp cat > conftest.$ac_ext <<EOF 390260484Sobrien#line 3903 "configure" 390333965Sjdp#include "confdefs.h" 390433965Sjdp#include <$ac_hdr> 390533965SjdpEOF 390633965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 390760484Sobrien{ (eval echo configure:3908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 390860484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 390933965Sjdpif test -z "$ac_err"; then 391033965Sjdp rm -rf conftest* 391133965Sjdp eval "ac_cv_header_$ac_safe=yes" 391233965Sjdpelse 391333965Sjdp echo "$ac_err" >&5 391433965Sjdp echo "configure: failed program was:" >&5 391533965Sjdp cat conftest.$ac_ext >&5 391633965Sjdp rm -rf conftest* 391733965Sjdp eval "ac_cv_header_$ac_safe=no" 391833965Sjdpfi 391933965Sjdprm -f conftest* 392033965Sjdpfi 392133965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 392233965Sjdp echo "$ac_t""yes" 1>&6 392333965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 392433965Sjdp cat >> confdefs.h <<EOF 392533965Sjdp#define $ac_tr_hdr 1 392633965SjdpEOF 392733965Sjdp 392833965Sjdpelse 392933965Sjdp echo "$ac_t""no" 1>&6 393033965Sjdpfi 393133965Sjdpdone 393233965Sjdp 393333965Sjdpfor ac_hdr in fcntl.h sys/file.h sys/time.h 393433965Sjdpdo 393533965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 393633965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 393760484Sobrienecho "configure:3938: checking for $ac_hdr" >&5 393833965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 393933965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 394033965Sjdpelse 394133965Sjdp cat > conftest.$ac_ext <<EOF 394260484Sobrien#line 3943 "configure" 394333965Sjdp#include "confdefs.h" 394433965Sjdp#include <$ac_hdr> 394533965SjdpEOF 394633965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 394760484Sobrien{ (eval echo configure:3948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 394860484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 394933965Sjdpif test -z "$ac_err"; then 395033965Sjdp rm -rf conftest* 395133965Sjdp eval "ac_cv_header_$ac_safe=yes" 395233965Sjdpelse 395333965Sjdp echo "$ac_err" >&5 395433965Sjdp echo "configure: failed program was:" >&5 395533965Sjdp cat conftest.$ac_ext >&5 395633965Sjdp rm -rf conftest* 395733965Sjdp eval "ac_cv_header_$ac_safe=no" 395833965Sjdpfi 395933965Sjdprm -f conftest* 396033965Sjdpfi 396133965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 396233965Sjdp echo "$ac_t""yes" 1>&6 396333965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 396433965Sjdp cat >> confdefs.h <<EOF 396533965Sjdp#define $ac_tr_hdr 1 396633965SjdpEOF 396733965Sjdp 396833965Sjdpelse 396933965Sjdp echo "$ac_t""no" 1>&6 397033965Sjdpfi 397133965Sjdpdone 397233965Sjdp 397333965Sjdpecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 397460484Sobrienecho "configure:3975: checking whether time.h and sys/time.h may both be included" >&5 397533965Sjdpif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 397633965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 397733965Sjdpelse 397833965Sjdp cat > conftest.$ac_ext <<EOF 397960484Sobrien#line 3980 "configure" 398033965Sjdp#include "confdefs.h" 398133965Sjdp#include <sys/types.h> 398233965Sjdp#include <sys/time.h> 398333965Sjdp#include <time.h> 398433965Sjdpint main() { 398533965Sjdpstruct tm *tp; 398633965Sjdp; return 0; } 398733965SjdpEOF 398860484Sobrienif { (eval echo configure:3989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 398933965Sjdp rm -rf conftest* 399033965Sjdp ac_cv_header_time=yes 399133965Sjdpelse 399233965Sjdp echo "configure: failed program was:" >&5 399333965Sjdp cat conftest.$ac_ext >&5 399433965Sjdp rm -rf conftest* 399533965Sjdp ac_cv_header_time=no 399633965Sjdpfi 399733965Sjdprm -f conftest* 399833965Sjdpfi 399933965Sjdp 400033965Sjdpecho "$ac_t""$ac_cv_header_time" 1>&6 400133965Sjdpif test $ac_cv_header_time = yes; then 400233965Sjdp cat >> confdefs.h <<\EOF 400333965Sjdp#define TIME_WITH_SYS_TIME 1 400433965SjdpEOF 400533965Sjdp 400633965Sjdpfi 400733965Sjdp 400860484Sobrienac_header_dirent=no 400960484Sobrienfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 401033965Sjdpdo 401160484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 401260484Sobrienecho $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 401360484Sobrienecho "configure:4014: checking for $ac_hdr that defines DIR" >&5 401460484Sobrienif eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 401560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 401660484Sobrienelse 401760484Sobrien cat > conftest.$ac_ext <<EOF 401860484Sobrien#line 4019 "configure" 401960484Sobrien#include "confdefs.h" 402060484Sobrien#include <sys/types.h> 402160484Sobrien#include <$ac_hdr> 402260484Sobrienint main() { 402360484SobrienDIR *dirp = 0; 402460484Sobrien; return 0; } 402560484SobrienEOF 402660484Sobrienif { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 402760484Sobrien rm -rf conftest* 402860484Sobrien eval "ac_cv_header_dirent_$ac_safe=yes" 402960484Sobrienelse 403060484Sobrien echo "configure: failed program was:" >&5 403160484Sobrien cat conftest.$ac_ext >&5 403260484Sobrien rm -rf conftest* 403360484Sobrien eval "ac_cv_header_dirent_$ac_safe=no" 403460484Sobrienfi 403560484Sobrienrm -f conftest* 403660484Sobrienfi 403760484Sobrienif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 403860484Sobrien echo "$ac_t""yes" 1>&6 403960484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 404060484Sobrien cat >> confdefs.h <<EOF 404160484Sobrien#define $ac_tr_hdr 1 404260484SobrienEOF 404360484Sobrien ac_header_dirent=$ac_hdr; break 404460484Sobrienelse 404560484Sobrien echo "$ac_t""no" 1>&6 404660484Sobrienfi 404760484Sobriendone 404860484Sobrien# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 404960484Sobrienif test $ac_header_dirent = dirent.h; then 405060484Sobrienecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 405160484Sobrienecho "configure:4052: checking for opendir in -ldir" >&5 405260484Sobrienac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 405360484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 405460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 405560484Sobrienelse 405660484Sobrien ac_save_LIBS="$LIBS" 405760484SobrienLIBS="-ldir $LIBS" 405860484Sobriencat > conftest.$ac_ext <<EOF 405960484Sobrien#line 4060 "configure" 406060484Sobrien#include "confdefs.h" 406160484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 406260484Sobrien/* We use char because int might match the return type of a gcc2 406360484Sobrien builtin and then its argument prototype would still apply. */ 406460484Sobrienchar opendir(); 406560484Sobrien 406660484Sobrienint main() { 406760484Sobrienopendir() 406860484Sobrien; return 0; } 406960484SobrienEOF 407060484Sobrienif { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 407160484Sobrien rm -rf conftest* 407260484Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 407360484Sobrienelse 407460484Sobrien echo "configure: failed program was:" >&5 407560484Sobrien cat conftest.$ac_ext >&5 407660484Sobrien rm -rf conftest* 407760484Sobrien eval "ac_cv_lib_$ac_lib_var=no" 407860484Sobrienfi 407960484Sobrienrm -f conftest* 408060484SobrienLIBS="$ac_save_LIBS" 408160484Sobrien 408260484Sobrienfi 408360484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 408460484Sobrien echo "$ac_t""yes" 1>&6 408560484Sobrien LIBS="$LIBS -ldir" 408660484Sobrienelse 408760484Sobrien echo "$ac_t""no" 1>&6 408860484Sobrienfi 408960484Sobrien 409060484Sobrienelse 409160484Sobrienecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 409260484Sobrienecho "configure:4093: checking for opendir in -lx" >&5 409360484Sobrienac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 409460484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 409560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 409660484Sobrienelse 409760484Sobrien ac_save_LIBS="$LIBS" 409860484SobrienLIBS="-lx $LIBS" 409960484Sobriencat > conftest.$ac_ext <<EOF 410060484Sobrien#line 4101 "configure" 410160484Sobrien#include "confdefs.h" 410260484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 410360484Sobrien/* We use char because int might match the return type of a gcc2 410460484Sobrien builtin and then its argument prototype would still apply. */ 410560484Sobrienchar opendir(); 410660484Sobrien 410760484Sobrienint main() { 410860484Sobrienopendir() 410960484Sobrien; return 0; } 411060484SobrienEOF 411160484Sobrienif { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 411260484Sobrien rm -rf conftest* 411360484Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 411460484Sobrienelse 411560484Sobrien echo "configure: failed program was:" >&5 411660484Sobrien cat conftest.$ac_ext >&5 411760484Sobrien rm -rf conftest* 411860484Sobrien eval "ac_cv_lib_$ac_lib_var=no" 411960484Sobrienfi 412060484Sobrienrm -f conftest* 412160484SobrienLIBS="$ac_save_LIBS" 412260484Sobrien 412360484Sobrienfi 412460484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 412560484Sobrien echo "$ac_t""yes" 1>&6 412660484Sobrien LIBS="$LIBS -lx" 412760484Sobrienelse 412860484Sobrien echo "$ac_t""no" 1>&6 412960484Sobrienfi 413060484Sobrien 413160484Sobrienfi 413260484Sobrien 413360484Sobrienfor ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid 413460484Sobriendo 413533965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 413660484Sobrienecho "configure:4137: checking for $ac_func" >&5 413733965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 413833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 413933965Sjdpelse 414033965Sjdp cat > conftest.$ac_ext <<EOF 414160484Sobrien#line 4142 "configure" 414233965Sjdp#include "confdefs.h" 414333965Sjdp/* System header to define __stub macros and hopefully few prototypes, 414433965Sjdp which can conflict with char $ac_func(); below. */ 414533965Sjdp#include <assert.h> 414633965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 414733965Sjdp/* We use char because int might match the return type of a gcc2 414833965Sjdp builtin and then its argument prototype would still apply. */ 414933965Sjdpchar $ac_func(); 415033965Sjdp 415133965Sjdpint main() { 415233965Sjdp 415333965Sjdp/* The GNU C library defines this for functions which it implements 415433965Sjdp to always fail with ENOSYS. Some functions are actually named 415533965Sjdp something starting with __ and the normal name is an alias. */ 415633965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 415733965Sjdpchoke me 415833965Sjdp#else 415933965Sjdp$ac_func(); 416033965Sjdp#endif 416133965Sjdp 416233965Sjdp; return 0; } 416333965SjdpEOF 416460484Sobrienif { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 416533965Sjdp rm -rf conftest* 416633965Sjdp eval "ac_cv_func_$ac_func=yes" 416733965Sjdpelse 416833965Sjdp echo "configure: failed program was:" >&5 416933965Sjdp cat conftest.$ac_ext >&5 417033965Sjdp rm -rf conftest* 417133965Sjdp eval "ac_cv_func_$ac_func=no" 417233965Sjdpfi 417333965Sjdprm -f conftest* 417433965Sjdpfi 417533965Sjdp 417633965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 417733965Sjdp echo "$ac_t""yes" 1>&6 417833965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 417933965Sjdp cat >> confdefs.h <<EOF 418033965Sjdp#define $ac_tr_func 1 418133965SjdpEOF 418233965Sjdp 418333965Sjdpelse 418433965Sjdp echo "$ac_t""no" 1>&6 418533965Sjdpfi 418633965Sjdpdone 418733965Sjdp 418833965Sjdp 418933965Sjdp 419033965Sjdpcase "${host}" in 419160484Sobrien*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 419233965Sjdp cat >> confdefs.h <<\EOF 419333965Sjdp#define USE_BINARY_FOPEN 1 419433965SjdpEOF 419533965Sjdp ;; 419633965Sjdpesac 419733965Sjdp 419833965Sjdpecho $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 419960484Sobrienecho "configure:4200: checking whether strstr must be declared" >&5 420033965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then 420133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 420233965Sjdpelse 420333965Sjdp cat > conftest.$ac_ext <<EOF 420460484Sobrien#line 4205 "configure" 420533965Sjdp#include "confdefs.h" 420633965Sjdp 420733965Sjdp#include <stdio.h> 420833965Sjdp#ifdef HAVE_STRING_H 420933965Sjdp#include <string.h> 421033965Sjdp#else 421133965Sjdp#ifdef HAVE_STRINGS_H 421233965Sjdp#include <strings.h> 421333965Sjdp#endif 421433965Sjdp#endif 421533965Sjdp#ifdef HAVE_STDLIB_H 421633965Sjdp#include <stdlib.h> 421733965Sjdp#endif 421833965Sjdp#ifdef HAVE_UNISTD_H 421933965Sjdp#include <unistd.h> 422033965Sjdp#endif 422133965Sjdpint main() { 422233965Sjdpchar *(*pfn) = (char *(*)) strstr 422333965Sjdp; return 0; } 422433965SjdpEOF 422560484Sobrienif { (eval echo configure:4226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 422633965Sjdp rm -rf conftest* 422733965Sjdp bfd_cv_decl_needed_strstr=no 422833965Sjdpelse 422933965Sjdp echo "configure: failed program was:" >&5 423033965Sjdp cat conftest.$ac_ext >&5 423133965Sjdp rm -rf conftest* 423233965Sjdp bfd_cv_decl_needed_strstr=yes 423333965Sjdpfi 423433965Sjdprm -f conftest* 423533965Sjdpfi 423633965Sjdp 423733965Sjdpecho "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 423833965Sjdpif test $bfd_cv_decl_needed_strstr = yes; then 423960484Sobrien cat >> confdefs.h <<\EOF 424060484Sobrien#define NEED_DECLARATION_STRSTR 1 424133965SjdpEOF 424233965Sjdp 424333965Sjdpfi 424433965Sjdp 424533965Sjdpecho $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 424660484Sobrienecho "configure:4247: checking whether malloc must be declared" >&5 424733965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then 424833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 424933965Sjdpelse 425033965Sjdp cat > conftest.$ac_ext <<EOF 425160484Sobrien#line 4252 "configure" 425233965Sjdp#include "confdefs.h" 425333965Sjdp 425433965Sjdp#include <stdio.h> 425533965Sjdp#ifdef HAVE_STRING_H 425633965Sjdp#include <string.h> 425733965Sjdp#else 425833965Sjdp#ifdef HAVE_STRINGS_H 425933965Sjdp#include <strings.h> 426033965Sjdp#endif 426133965Sjdp#endif 426233965Sjdp#ifdef HAVE_STDLIB_H 426333965Sjdp#include <stdlib.h> 426433965Sjdp#endif 426533965Sjdp#ifdef HAVE_UNISTD_H 426633965Sjdp#include <unistd.h> 426733965Sjdp#endif 426833965Sjdpint main() { 426933965Sjdpchar *(*pfn) = (char *(*)) malloc 427033965Sjdp; return 0; } 427133965SjdpEOF 427260484Sobrienif { (eval echo configure:4273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 427333965Sjdp rm -rf conftest* 427433965Sjdp bfd_cv_decl_needed_malloc=no 427533965Sjdpelse 427633965Sjdp echo "configure: failed program was:" >&5 427733965Sjdp cat conftest.$ac_ext >&5 427833965Sjdp rm -rf conftest* 427933965Sjdp bfd_cv_decl_needed_malloc=yes 428033965Sjdpfi 428133965Sjdprm -f conftest* 428233965Sjdpfi 428333965Sjdp 428433965Sjdpecho "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 428533965Sjdpif test $bfd_cv_decl_needed_malloc = yes; then 428660484Sobrien cat >> confdefs.h <<\EOF 428760484Sobrien#define NEED_DECLARATION_MALLOC 1 428833965SjdpEOF 428933965Sjdp 429033965Sjdpfi 429133965Sjdp 429233965Sjdpecho $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 429360484Sobrienecho "configure:4294: checking whether realloc must be declared" >&5 429433965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then 429533965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 429633965Sjdpelse 429733965Sjdp cat > conftest.$ac_ext <<EOF 429860484Sobrien#line 4299 "configure" 429933965Sjdp#include "confdefs.h" 430033965Sjdp 430133965Sjdp#include <stdio.h> 430233965Sjdp#ifdef HAVE_STRING_H 430333965Sjdp#include <string.h> 430433965Sjdp#else 430533965Sjdp#ifdef HAVE_STRINGS_H 430633965Sjdp#include <strings.h> 430733965Sjdp#endif 430833965Sjdp#endif 430933965Sjdp#ifdef HAVE_STDLIB_H 431033965Sjdp#include <stdlib.h> 431133965Sjdp#endif 431233965Sjdp#ifdef HAVE_UNISTD_H 431333965Sjdp#include <unistd.h> 431433965Sjdp#endif 431533965Sjdpint main() { 431633965Sjdpchar *(*pfn) = (char *(*)) realloc 431733965Sjdp; return 0; } 431833965SjdpEOF 431960484Sobrienif { (eval echo configure:4320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 432033965Sjdp rm -rf conftest* 432133965Sjdp bfd_cv_decl_needed_realloc=no 432233965Sjdpelse 432333965Sjdp echo "configure: failed program was:" >&5 432433965Sjdp cat conftest.$ac_ext >&5 432533965Sjdp rm -rf conftest* 432633965Sjdp bfd_cv_decl_needed_realloc=yes 432733965Sjdpfi 432833965Sjdprm -f conftest* 432933965Sjdpfi 433033965Sjdp 433133965Sjdpecho "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 433233965Sjdpif test $bfd_cv_decl_needed_realloc = yes; then 433360484Sobrien cat >> confdefs.h <<\EOF 433460484Sobrien#define NEED_DECLARATION_REALLOC 1 433533965SjdpEOF 433633965Sjdp 433733965Sjdpfi 433833965Sjdp 433933965Sjdpecho $ac_n "checking whether free must be declared""... $ac_c" 1>&6 434060484Sobrienecho "configure:4341: checking whether free must be declared" >&5 434133965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then 434233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 434333965Sjdpelse 434433965Sjdp cat > conftest.$ac_ext <<EOF 434560484Sobrien#line 4346 "configure" 434633965Sjdp#include "confdefs.h" 434733965Sjdp 434833965Sjdp#include <stdio.h> 434933965Sjdp#ifdef HAVE_STRING_H 435033965Sjdp#include <string.h> 435133965Sjdp#else 435233965Sjdp#ifdef HAVE_STRINGS_H 435333965Sjdp#include <strings.h> 435433965Sjdp#endif 435533965Sjdp#endif 435633965Sjdp#ifdef HAVE_STDLIB_H 435733965Sjdp#include <stdlib.h> 435833965Sjdp#endif 435933965Sjdp#ifdef HAVE_UNISTD_H 436033965Sjdp#include <unistd.h> 436133965Sjdp#endif 436233965Sjdpint main() { 436333965Sjdpchar *(*pfn) = (char *(*)) free 436433965Sjdp; return 0; } 436533965SjdpEOF 436660484Sobrienif { (eval echo configure:4367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 436733965Sjdp rm -rf conftest* 436833965Sjdp bfd_cv_decl_needed_free=no 436933965Sjdpelse 437033965Sjdp echo "configure: failed program was:" >&5 437133965Sjdp cat conftest.$ac_ext >&5 437233965Sjdp rm -rf conftest* 437333965Sjdp bfd_cv_decl_needed_free=yes 437433965Sjdpfi 437533965Sjdprm -f conftest* 437633965Sjdpfi 437733965Sjdp 437833965Sjdpecho "$ac_t""$bfd_cv_decl_needed_free" 1>&6 437933965Sjdpif test $bfd_cv_decl_needed_free = yes; then 438060484Sobrien cat >> confdefs.h <<\EOF 438160484Sobrien#define NEED_DECLARATION_FREE 1 438233965SjdpEOF 438333965Sjdp 438433965Sjdpfi 438533965Sjdp 438633965Sjdpecho $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 438760484Sobrienecho "configure:4388: checking whether getenv must be declared" >&5 438833965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then 438933965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 439033965Sjdpelse 439133965Sjdp cat > conftest.$ac_ext <<EOF 439260484Sobrien#line 4393 "configure" 439333965Sjdp#include "confdefs.h" 439433965Sjdp 439533965Sjdp#include <stdio.h> 439633965Sjdp#ifdef HAVE_STRING_H 439733965Sjdp#include <string.h> 439833965Sjdp#else 439933965Sjdp#ifdef HAVE_STRINGS_H 440033965Sjdp#include <strings.h> 440133965Sjdp#endif 440233965Sjdp#endif 440333965Sjdp#ifdef HAVE_STDLIB_H 440433965Sjdp#include <stdlib.h> 440533965Sjdp#endif 440633965Sjdp#ifdef HAVE_UNISTD_H 440733965Sjdp#include <unistd.h> 440833965Sjdp#endif 440933965Sjdpint main() { 441033965Sjdpchar *(*pfn) = (char *(*)) getenv 441133965Sjdp; return 0; } 441233965SjdpEOF 441360484Sobrienif { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 441433965Sjdp rm -rf conftest* 441533965Sjdp bfd_cv_decl_needed_getenv=no 441633965Sjdpelse 441733965Sjdp echo "configure: failed program was:" >&5 441833965Sjdp cat conftest.$ac_ext >&5 441933965Sjdp rm -rf conftest* 442033965Sjdp bfd_cv_decl_needed_getenv=yes 442133965Sjdpfi 442233965Sjdprm -f conftest* 442333965Sjdpfi 442433965Sjdp 442533965Sjdpecho "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6 442633965Sjdpif test $bfd_cv_decl_needed_getenv = yes; then 442760484Sobrien cat >> confdefs.h <<\EOF 442860484Sobrien#define NEED_DECLARATION_GETENV 1 442933965SjdpEOF 443033965Sjdp 443133965Sjdpfi 443233965Sjdp 443333965Sjdp 443433965Sjdp# If we are configured native, pick a core file support file. 443533965SjdpCOREFILE= 443633965SjdpCOREFLAG= 443760484SobrienTRAD_HEADER= 443833965Sjdpif test "${target}" = "${host}"; then 443933965Sjdp case "${host}" in 444038889Sjdp alpha*-*-linux-gnu*) 444138889Sjdp COREFILE=trad-core.lo 444260484Sobrien TRAD_HEADER='"hosts/alphalinux.h"' 444333965Sjdp ;; 444438889Sjdp alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;; 444538889Sjdp alpha*-*-*) COREFILE=osf-core.lo ;; 444638889Sjdp arm-*-riscix) COREFILE=trad-core.lo ;; 444738889Sjdp hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 444838889Sjdp hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 444960484Sobrien hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 445038889Sjdp hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 445133965Sjdp COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 445260484Sobrien i370-*-*) 445360484Sobrien COREFILE=trad-core.lo 445460484Sobrien TRAD_HEADER='"hosts/i370linux.h"' 445560484Sobrien ;; 445660484Sobrien 445733965Sjdp i[3456]86-sequent-bsd*) 445860484Sobrien COREFILE=trad-core.lo 445960484Sobrien TRAD_HEADER='"hosts/symmetry.h"' 446033965Sjdp ;; 446133965Sjdp i[3456]86-sequent-sysv4*) ;; 446233965Sjdp i[3456]86-sequent-sysv*) 446338889Sjdp COREFILE=trad-core.lo 446460484Sobrien TRAD_HEADER='"hosts/symmetry.h"' 446533965Sjdp ;; 446633965Sjdp i[3456]86-*-bsd* | i[3456]86-*-freebsd*) 446738889Sjdp COREFILE=trad-core.lo 446860484Sobrien TRAD_HEADER='"hosts/i386bsd.h"' 446933965Sjdp ;; 447033965Sjdp i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) 447138889Sjdp COREFILE=netbsd-core.lo 447233965Sjdp ;; 447333965Sjdp i[3456]86-esix-sysv3*) 447438889Sjdp COREFILE=trad-core.lo 447560484Sobrien TRAD_HEADER='"hosts/esix.h"' 447633965Sjdp ;; 447760484Sobrien i[3456]86-*-sco3.2v5*) 447860484Sobrien COREFILE=sco5-core.lo 447960484Sobrien ;; 448033965Sjdp i[3456]86-*-sco* | i[3456]86-*-isc*) 448138889Sjdp COREFILE=trad-core.lo 448260484Sobrien TRAD_HEADER='"hosts/i386sco.h"' 448333965Sjdp ;; 448433965Sjdp i[3456]86-*-mach3*) 448538889Sjdp COREFILE=trad-core.lo 448660484Sobrien TRAD_HEADER='"hosts/i386mach3.h"' 448733965Sjdp ;; 448838889Sjdp i[3456]86-*-linux-gnu*) 448938889Sjdp COREFILE=trad-core.lo 449060484Sobrien TRAD_HEADER='"hosts/i386linux.h"' 449133965Sjdp ;; 449238889Sjdp i[3456]86-*-isc*) COREFILE=trad-core.lo ;; 449338889Sjdp i[3456]86-*-aix*) COREFILE=aix386-core.lo ;; 449433965Sjdp i860-*-mach3* | i860-*-osf1*) 449538889Sjdp COREFILE=trad-core.lo 449660484Sobrien TRAD_HEADER='"hosts/i860mach3.h"' 449733965Sjdp ;; 449833965Sjdp mips-dec-bsd*) 449938889Sjdp COREFILE=trad-core.lo 450060484Sobrien TRAD_HEADER='"hosts/mipsbsd.h"' 450133965Sjdp ;; 450233965Sjdp mips-dec-mach3*) 450338889Sjdp COREFILE=trad-core.lo 450460484Sobrien TRAD_HEADER='"hosts/mipsmach3.h"' 450533965Sjdp ;; 450633965Sjdp mips-*-netbsd* | mips*-*-openbsd*) 450738889Sjdp COREFILE=netbsd-core.lo 450833965Sjdp ;; 450933965Sjdp mips-dec-*) 451038889Sjdp COREFILE=trad-core.lo 451160484Sobrien TRAD_HEADER='"hosts/decstation.h"' 451233965Sjdp ;; 451338889Sjdp mips-sgi-irix4*) COREFILE=irix-core.lo ;; 451438889Sjdp mips-sgi-irix5*) COREFILE=irix-core.lo ;; 451538889Sjdp mips-sgi-irix6*) COREFILE=irix-core.lo ;; 451633965Sjdp mips-*-mach3*) 451738889Sjdp COREFILE=trad-core.lo 451860484Sobrien TRAD_HEADER='"hosts/mipsmach3.h"' 451933965Sjdp ;; 452033965Sjdp mips-*-sysv4*) ;; 452133965Sjdp mips-*-sysv* | mips-*-riscos*) 452238889Sjdp COREFILE=trad-core.lo 452360484Sobrien TRAD_HEADER='"hosts/riscos.h"' 452433965Sjdp ;; 452533965Sjdp mips-sony-bsd*) 452638889Sjdp COREFILE=trad-core.lo 452760484Sobrien TRAD_HEADER='"hosts/news-mips.h"' 452833965Sjdp ;; 452933965Sjdp m68*-bull*-sysv*) 453038889Sjdp COREFILE=trad-core.lo 453160484Sobrien TRAD_HEADER='"hosts/dpx2.h"' 453233965Sjdp ;; 453338889Sjdp m68*-hp-hpux*) COREFILE=hpux-core.lo ;; 453433965Sjdp m68*-hp-bsd*) 453538889Sjdp COREFILE=trad-core.lo 453660484Sobrien TRAD_HEADER='"hosts/hp300bsd.h"' 453733965Sjdp ;; 453838889Sjdp m68*-*-linux-gnu*) 453938889Sjdp COREFILE=trad-core.lo 454060484Sobrien TRAD_HEADER='"hosts/m68klinux.h"' 454133965Sjdp ;; 454233965Sjdp m68*-motorola-sysv*) 454338889Sjdp COREFILE=trad-core.lo 454460484Sobrien TRAD_HEADER='"hosts/delta68.h"' 454533965Sjdp ;; 454633965Sjdp m68*-sony-*) 454738889Sjdp COREFILE=trad-core.lo 454860484Sobrien TRAD_HEADER='"hosts/news.h"' 454933965Sjdp ;; 455033965Sjdp m68*-*-netbsd* | m68*-*-openbsd*) 455138889Sjdp COREFILE=netbsd-core.lo 455233965Sjdp ;; 455333965Sjdp m68*-apple-aux*) 455438889Sjdp COREFILE=trad-core.lo 455560484Sobrien TRAD_HEADER='"hosts/m68kaux.h"' 455633965Sjdp ;; 455733965Sjdp m88*-*-sysv4*) ;; 455838889Sjdp m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;; 455933965Sjdp m88*-*-mach3*) 456038889Sjdp COREFILE=trad-core.lo 456160484Sobrien TRAD_HEADER='"hosts/m88kmach3.h"' 456233965Sjdp ;; 456333965Sjdp ns32k-pc532-mach) 456438889Sjdp COREFILE=trad-core.lo 456560484Sobrien TRAD_HEADER='"hosts/pc532mach.h"' 456633965Sjdp ;; 456733965Sjdp ns32k-*-netbsd* | ns32k-*-openbsd*) 456838889Sjdp COREFILE=netbsd-core.lo 456933965Sjdp ;; 457038889Sjdp rs6000-*-lynx*) COREFILE=lynx-core.lo ;; 457138889Sjdp rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 457238889Sjdp rs6000-*-*) COREFILE=rs6000-core.lo ;; 457338889Sjdp powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 457438889Sjdp powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 457538889Sjdp powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 457633965Sjdp powerpc-*-beos*) ;; 457738889Sjdp powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 457833965Sjdp sparc-*-netbsd* | sparc-*-openbsd*) 457938889Sjdp COREFILE=netbsd-core.lo 458033965Sjdp ;; 458133965Sjdp tahoe-*-*) 458238889Sjdp COREFILE=trad-core.lo 458360484Sobrien TRAD_HEADER='"hosts/tahoe.h"' 458433965Sjdp ;; 458533965Sjdp vax-*-ultrix2*) 458638889Sjdp COREFILE=trad-core.lo 458760484Sobrien TRAD_HEADER='"hosts/vaxult2.h"' 458833965Sjdp ;; 458933965Sjdp vax-*-ultrix*) 459038889Sjdp COREFILE=trad-core.lo 459160484Sobrien TRAD_HEADER='"hosts/vaxult2.h"' 459233965Sjdp ;; 459333965Sjdp vax-*-*) 459438889Sjdp COREFILE=trad-core.lo 459560484Sobrien TRAD_HEADER='"hosts/vaxbsd.h"' 459633965Sjdp ;; 459733965Sjdp esac 459833965Sjdp 459933965Sjdp case "$COREFILE" in 460038889Sjdp aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 460138889Sjdp hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 460238889Sjdp hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 460338889Sjdp irix-core.lo) COREFLAG=-DIRIX_CORE ;; 460438889Sjdp lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 460538889Sjdp netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 460638889Sjdp osf-core.lo) COREFLAG=-DOSF_CORE ;; 460738889Sjdp ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 460838889Sjdp rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 460960484Sobrien sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; 461038889Sjdp trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 461133965Sjdp esac 461233965Sjdp 461360484Sobrien # ELF corefile support has several flavors, but all of 461460484Sobrien # them use something called <sys/procfs.h> 461560484Sobrien for ac_hdr in sys/procfs.h 461660484Sobriendo 461760484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 461860484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 461960484Sobrienecho "configure:4620: checking for $ac_hdr" >&5 462060484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 462133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 462233965Sjdpelse 462333965Sjdp cat > conftest.$ac_ext <<EOF 462460484Sobrien#line 4625 "configure" 462533965Sjdp#include "confdefs.h" 462660484Sobrien#include <$ac_hdr> 462760484SobrienEOF 462860484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 462960484Sobrien{ (eval echo configure:4630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 463060484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 463160484Sobrienif test -z "$ac_err"; then 463260484Sobrien rm -rf conftest* 463360484Sobrien eval "ac_cv_header_$ac_safe=yes" 463460484Sobrienelse 463560484Sobrien echo "$ac_err" >&5 463660484Sobrien echo "configure: failed program was:" >&5 463760484Sobrien cat conftest.$ac_ext >&5 463860484Sobrien rm -rf conftest* 463960484Sobrien eval "ac_cv_header_$ac_safe=no" 464060484Sobrienfi 464160484Sobrienrm -f conftest* 464260484Sobrienfi 464360484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 464460484Sobrien echo "$ac_t""yes" 1>&6 464560484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 464660484Sobrien cat >> confdefs.h <<EOF 464760484Sobrien#define $ac_tr_hdr 1 464860484SobrienEOF 464960484Sobrien 465060484Sobrienelse 465160484Sobrien echo "$ac_t""no" 1>&6 465260484Sobrienfi 465360484Sobriendone 465460484Sobrien 465560484Sobrien if test "$ac_cv_header_sys_procfs_h" = yes; then 465660484Sobrien echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6 465760484Sobrienecho "configure:4658: checking for prstatus_t in sys/procfs.h" >&5 465860484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then 465960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 466060484Sobrienelse 466160484Sobrien cat > conftest.$ac_ext <<EOF 466260484Sobrien#line 4663 "configure" 466360484Sobrien#include "confdefs.h" 466433965Sjdp#include <sys/procfs.h> 466533965Sjdpint main() { 466660484Sobrienprstatus_t avar 466733965Sjdp; return 0; } 466833965SjdpEOF 466960484Sobrienif { (eval echo configure:4670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 467033965Sjdp rm -rf conftest* 467160484Sobrien bfd_cv_have_sys_procfs_type_prstatus_t=yes 467233965Sjdpelse 467333965Sjdp echo "configure: failed program was:" >&5 467433965Sjdp cat conftest.$ac_ext >&5 467533965Sjdp rm -rf conftest* 467660484Sobrien bfd_cv_have_sys_procfs_type_prstatus_t=no 467760484Sobrien 467833965Sjdpfi 467933965Sjdprm -f conftest* 468033965Sjdpfi 468133965Sjdp 468260484Sobrien if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then 468360484Sobrien cat >> confdefs.h <<\EOF 468460484Sobrien#define HAVE_PRSTATUS_T 1 468533965SjdpEOF 468633965Sjdp 468760484Sobrien fi 468860484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6 468933965Sjdp 469060484Sobrien echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 469160484Sobrienecho "configure:4692: checking for prstatus_t.pr_who in sys/procfs.h" >&5 469260484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then 469360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 469460484Sobrienelse 469560484Sobrien cat > conftest.$ac_ext <<EOF 469660484Sobrien#line 4697 "configure" 469760484Sobrien#include "confdefs.h" 469860484Sobrien#include <sys/procfs.h> 469960484Sobrienint main() { 470060484Sobrienprstatus_t avar; void* aref = (void*) &avar.pr_who 470160484Sobrien; return 0; } 470260484SobrienEOF 470360484Sobrienif { (eval echo configure:4704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 470460484Sobrien rm -rf conftest* 470560484Sobrien bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes 470660484Sobrienelse 470760484Sobrien echo "configure: failed program was:" >&5 470860484Sobrien cat conftest.$ac_ext >&5 470960484Sobrien rm -rf conftest* 471060484Sobrien bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no 471160484Sobrien 471233965Sjdpfi 471360484Sobrienrm -f conftest* 471460484Sobrienfi 471533965Sjdp 471660484Sobrien if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then 471760484Sobrien cat >> confdefs.h <<\EOF 471860484Sobrien#define HAVE_PRSTATUS_T_PR_WHO 1 471960484SobrienEOF 472033965Sjdp 472160484Sobrien fi 472260484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6 472333965Sjdp 472460484Sobrien echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6 472560484Sobrienecho "configure:4726: checking for pstatus_t in sys/procfs.h" >&5 472660484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then 472760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 472860484Sobrienelse 472960484Sobrien cat > conftest.$ac_ext <<EOF 473060484Sobrien#line 4731 "configure" 473160484Sobrien#include "confdefs.h" 473260484Sobrien#include <sys/procfs.h> 473360484Sobrienint main() { 473460484Sobrienpstatus_t avar 473560484Sobrien; return 0; } 473660484SobrienEOF 473760484Sobrienif { (eval echo configure:4738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 473860484Sobrien rm -rf conftest* 473960484Sobrien bfd_cv_have_sys_procfs_type_pstatus_t=yes 474060484Sobrienelse 474160484Sobrien echo "configure: failed program was:" >&5 474260484Sobrien cat conftest.$ac_ext >&5 474360484Sobrien rm -rf conftest* 474460484Sobrien bfd_cv_have_sys_procfs_type_pstatus_t=no 474560484Sobrien 474660484Sobrienfi 474760484Sobrienrm -f conftest* 474860484Sobrienfi 474960484Sobrien 475060484Sobrien if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then 475160484Sobrien cat >> confdefs.h <<\EOF 475260484Sobrien#define HAVE_PSTATUS_T 1 475360484SobrienEOF 475460484Sobrien 475560484Sobrien fi 475660484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6 475760484Sobrien 475860484Sobrien echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6 475960484Sobrienecho "configure:4760: checking for prpsinfo_t in sys/procfs.h" >&5 476060484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then 476160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 476260484Sobrienelse 476360484Sobrien cat > conftest.$ac_ext <<EOF 476460484Sobrien#line 4765 "configure" 476560484Sobrien#include "confdefs.h" 476660484Sobrien#include <sys/procfs.h> 476760484Sobrienint main() { 476860484Sobrienprpsinfo_t avar 476960484Sobrien; return 0; } 477060484SobrienEOF 477160484Sobrienif { (eval echo configure:4772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 477260484Sobrien rm -rf conftest* 477360484Sobrien bfd_cv_have_sys_procfs_type_prpsinfo_t=yes 477460484Sobrienelse 477560484Sobrien echo "configure: failed program was:" >&5 477660484Sobrien cat conftest.$ac_ext >&5 477760484Sobrien rm -rf conftest* 477860484Sobrien bfd_cv_have_sys_procfs_type_prpsinfo_t=no 477960484Sobrien 478060484Sobrienfi 478160484Sobrienrm -f conftest* 478260484Sobrienfi 478360484Sobrien 478460484Sobrien if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then 478560484Sobrien cat >> confdefs.h <<\EOF 478660484Sobrien#define HAVE_PRPSINFO_T 1 478760484SobrienEOF 478860484Sobrien 478960484Sobrien fi 479060484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6 479160484Sobrien 479260484Sobrien echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6 479360484Sobrienecho "configure:4794: checking for psinfo_t in sys/procfs.h" >&5 479460484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then 479560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 479660484Sobrienelse 479760484Sobrien cat > conftest.$ac_ext <<EOF 479860484Sobrien#line 4799 "configure" 479960484Sobrien#include "confdefs.h" 480060484Sobrien#include <sys/procfs.h> 480160484Sobrienint main() { 480260484Sobrienpsinfo_t avar 480360484Sobrien; return 0; } 480460484SobrienEOF 480560484Sobrienif { (eval echo configure:4806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 480660484Sobrien rm -rf conftest* 480760484Sobrien bfd_cv_have_sys_procfs_type_psinfo_t=yes 480860484Sobrienelse 480960484Sobrien echo "configure: failed program was:" >&5 481060484Sobrien cat conftest.$ac_ext >&5 481160484Sobrien rm -rf conftest* 481260484Sobrien bfd_cv_have_sys_procfs_type_psinfo_t=no 481360484Sobrien 481460484Sobrienfi 481560484Sobrienrm -f conftest* 481660484Sobrienfi 481760484Sobrien 481860484Sobrien if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then 481960484Sobrien cat >> confdefs.h <<\EOF 482060484Sobrien#define HAVE_PSINFO_T 1 482160484SobrienEOF 482260484Sobrien 482360484Sobrien fi 482460484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6 482560484Sobrien 482660484Sobrien echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6 482760484Sobrienecho "configure:4828: checking for lwpstatus_t in sys/procfs.h" >&5 482860484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then 482960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 483060484Sobrienelse 483160484Sobrien cat > conftest.$ac_ext <<EOF 483260484Sobrien#line 4833 "configure" 483360484Sobrien#include "confdefs.h" 483460484Sobrien#include <sys/procfs.h> 483560484Sobrienint main() { 483660484Sobrienlwpstatus_t avar 483760484Sobrien; return 0; } 483860484SobrienEOF 483960484Sobrienif { (eval echo configure:4840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 484060484Sobrien rm -rf conftest* 484160484Sobrien bfd_cv_have_sys_procfs_type_lwpstatus_t=yes 484260484Sobrienelse 484360484Sobrien echo "configure: failed program was:" >&5 484460484Sobrien cat conftest.$ac_ext >&5 484560484Sobrien rm -rf conftest* 484660484Sobrien bfd_cv_have_sys_procfs_type_lwpstatus_t=no 484760484Sobrien 484860484Sobrienfi 484960484Sobrienrm -f conftest* 485060484Sobrienfi 485160484Sobrien 485260484Sobrien if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then 485360484Sobrien cat >> confdefs.h <<\EOF 485460484Sobrien#define HAVE_LWPSTATUS_T 1 485560484SobrienEOF 485660484Sobrien 485760484Sobrien fi 485860484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6 485960484Sobrien 486060484Sobrien echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6 486160484Sobrienecho "configure:4862: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 486260484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then 486360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 486460484Sobrienelse 486560484Sobrien cat > conftest.$ac_ext <<EOF 486660484Sobrien#line 4867 "configure" 486760484Sobrien#include "confdefs.h" 486860484Sobrien#include <sys/procfs.h> 486960484Sobrienint main() { 487060484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_context 487160484Sobrien; return 0; } 487260484SobrienEOF 487360484Sobrienif { (eval echo configure:4874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 487460484Sobrien rm -rf conftest* 487560484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes 487660484Sobrienelse 487760484Sobrien echo "configure: failed program was:" >&5 487860484Sobrien cat conftest.$ac_ext >&5 487960484Sobrien rm -rf conftest* 488060484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no 488160484Sobrien 488260484Sobrienfi 488360484Sobrienrm -f conftest* 488460484Sobrienfi 488560484Sobrien 488660484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then 488760484Sobrien cat >> confdefs.h <<\EOF 488860484Sobrien#define HAVE_LWPSTATUS_T_PR_CONTEXT 1 488960484SobrienEOF 489060484Sobrien 489160484Sobrien fi 489260484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6 489360484Sobrien 489460484Sobrien echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6 489560484Sobrienecho "configure:4896: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 489660484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then 489760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 489860484Sobrienelse 489960484Sobrien cat > conftest.$ac_ext <<EOF 490060484Sobrien#line 4901 "configure" 490160484Sobrien#include "confdefs.h" 490260484Sobrien#include <sys/procfs.h> 490360484Sobrienint main() { 490460484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_reg 490560484Sobrien; return 0; } 490660484SobrienEOF 490760484Sobrienif { (eval echo configure:4908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 490860484Sobrien rm -rf conftest* 490960484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes 491060484Sobrienelse 491160484Sobrien echo "configure: failed program was:" >&5 491260484Sobrien cat conftest.$ac_ext >&5 491360484Sobrien rm -rf conftest* 491460484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no 491560484Sobrien 491660484Sobrienfi 491760484Sobrienrm -f conftest* 491860484Sobrienfi 491960484Sobrien 492060484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then 492160484Sobrien cat >> confdefs.h <<\EOF 492260484Sobrien#define HAVE_LWPSTATUS_T_PR_REG 1 492360484SobrienEOF 492460484Sobrien 492560484Sobrien fi 492660484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6 492760484Sobrien 492860484Sobrien echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6 492960484Sobrienecho "configure:4930: checking for win32_pstatus_t in sys/procfs.h" >&5 493060484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then 493160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 493260484Sobrienelse 493360484Sobrien cat > conftest.$ac_ext <<EOF 493460484Sobrien#line 4935 "configure" 493560484Sobrien#include "confdefs.h" 493660484Sobrien#include <sys/procfs.h> 493760484Sobrienint main() { 493860484Sobrienwin32_pstatus_t avar 493960484Sobrien; return 0; } 494060484SobrienEOF 494160484Sobrienif { (eval echo configure:4942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 494260484Sobrien rm -rf conftest* 494360484Sobrien bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes 494460484Sobrienelse 494560484Sobrien echo "configure: failed program was:" >&5 494660484Sobrien cat conftest.$ac_ext >&5 494760484Sobrien rm -rf conftest* 494860484Sobrien bfd_cv_have_sys_procfs_type_win32_pstatus_t=no 494960484Sobrien 495060484Sobrienfi 495160484Sobrienrm -f conftest* 495260484Sobrienfi 495360484Sobrien 495460484Sobrien if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then 495560484Sobrien cat >> confdefs.h <<\EOF 495660484Sobrien#define HAVE_WIN32_PSTATUS_T 1 495760484SobrienEOF 495860484Sobrien 495960484Sobrien fi 496060484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6 496160484Sobrien 496260484Sobrien fi 496360484Sobrienfi 496460484Sobrien 496560484Sobrien 496660484Sobriencat >> confdefs.h <<EOF 496760484Sobrien#define TRAD_HEADER $TRAD_HEADER 496860484SobrienEOF 496960484Sobrien 497060484Sobrien 497160484Sobrien# Horrible hacks to build DLLs on Windows. 497260484SobrienWIN32LDFLAGS= 497360484SobrienWIN32LIBADD= 497460484Sobriencase "${host}" in 497560484Sobrien*-*-cygwin*) 497660484Sobrien if test "$enable_shared" = "yes"; then 497760484Sobrien WIN32LDFLAGS="-no-undefined" 497860484Sobrien WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" 497960484Sobrien fi 498060484Sobrien ;; 498160484Sobrienesac 498260484Sobrien 498360484Sobrien 498460484Sobrien 498533965Sjdp# target stuff: 498633965Sjdp 498733965Sjdp# Canonicalize the secondary target names. 498833965Sjdpif test -n "$enable_targets" ; then 498933965Sjdp for targ in `echo $enable_targets | sed 's/,/ /g'` 499033965Sjdp do 499160484Sobrien result=`$ac_config_sub $targ 2>/dev/null` 499233965Sjdp if test -n "$result" ; then 499333965Sjdp canon_targets="$canon_targets $result" 499433965Sjdp else 499533965Sjdp # Allow targets that config.sub doesn't recognize, like "all". 499633965Sjdp canon_targets="$canon_targets $targ" 499733965Sjdp fi 499833965Sjdp done 499933965Sjdpfi 500033965Sjdp 500133965Sjdpall_targets=false 500233965Sjdpdefvec= 500333965Sjdpselvecs= 500433965Sjdpselarchs= 500533965SjdpTDEFINES= 500633965Sjdpfor targ in $target $canon_targets 500733965Sjdpdo 500833965Sjdp if test "x$targ" = "xall"; then 500933965Sjdp all_targets=true 501033965Sjdp else 501133965Sjdp . $srcdir/config.bfd 501233965Sjdp if test "x$targ" = "x$target"; then 501333965Sjdp defvec=$targ_defvec 501433965Sjdp fi 501533965Sjdp selvecs="$selvecs $targ_defvec $targ_selvecs" 501633965Sjdp selarchs="$selarchs $targ_archs" 501733965Sjdp TDEFINES="$TDEFINES $targ_cflags" 501833965Sjdp fi 501933965Sjdpdone 502033965Sjdp 502133965Sjdp 502233965Sjdp# This processing still needs to be done if we're to decide properly whether 502333965Sjdp# 64-bit support needs to be compiled in. Currently, it will be included if 502433965Sjdp# the default or any other explicitly requested target requires it; it 502533965Sjdp# will not be included on a 32-bit host if no 64-bit target is requested, and 502660484Sobrien# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 502733965Sjdp# used. 502833965Sjdp 502933965Sjdp# uniq the default and selected vectors in all the configured targets. 503033965Sjdpf="" 503133965Sjdpfor i in $selvecs ; do 503233965Sjdp case " $f " in 503333965Sjdp *" $i "*) ;; 503433965Sjdp *) f="$f $i" ;; 503533965Sjdp esac 503633965Sjdpdone 503733965Sjdpselvecs="$f" 503833965Sjdp 503938889Sjdp 504033965Sjdp# uniq the architectures in all the configured targets. 504133965Sjdpf="" 504233965Sjdpfor i in $selarchs ; do 504333965Sjdp case " $f " in 504433965Sjdp *" $i "*) ;; 504533965Sjdp *) f="$f $i" ;; 504633965Sjdp esac 504733965Sjdpdone 504833965Sjdpselarchs="$f" 504933965Sjdp 505033965Sjdp# Target backend .o files. 505133965Sjdptb= 505233965Sjdp 505360484Sobrienelf="elf.lo elflink.lo dwarf2.lo dwarf1.lo" 505433965Sjdp 505533965Sjdpfor vec in $selvecs 505633965Sjdpdo 505733965Sjdp case "$vec" in 505833965Sjdp # This list is alphabetized to make it easy to compare 505933965Sjdp # with the two vector lists in targets.c. 506038889Sjdp a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; 506138889Sjdp a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; 506238889Sjdp armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 506338889Sjdp armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 506460484Sobrien armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; 506560484Sobrien armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 506660484Sobrien armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 506760484Sobrien armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 506860484Sobrien armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 506960484Sobrien arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 507060484Sobrien arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 507160484Sobrien arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 507260484Sobrien arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 507338889Sjdp aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; 507438889Sjdp aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; 507538889Sjdp aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; 507638889Sjdp aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 507738889Sjdp aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 507838889Sjdp apollocoff_vec) tb="$tb coff-apollo.lo" ;; 507938889Sjdp b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; 508038889Sjdp b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; 508138889Sjdp bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf" 508233965Sjdp target64=true ;; 508360484Sobrien bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 508438889Sjdp bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 508560484Sobrien bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; 508660484Sobrien bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; 508738889Sjdp bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 508860484Sobrien bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; 508960484Sobrien bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; 509038889Sjdp bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 509138889Sjdp bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 509238889Sjdp bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" 509333965Sjdp target64=true ;; 509438889Sjdp bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 509560484Sobrien bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 509660484Sobrien bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 509738889Sjdp bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 509860484Sobrien bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; 509938889Sjdp bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; 510038889Sjdp bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 510160484Sobrien bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; 510238889Sjdp bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 510338889Sjdp bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 510438889Sjdp bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" 510533965Sjdp target64=true ;; 510638889Sjdp bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 510738889Sjdp bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 510838889Sjdp bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; 510960484Sobrien bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 511060484Sobrien bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 511138889Sjdp bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 511238889Sjdp bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 511360484Sobrien bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 511460484Sobrien bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 511538889Sjdp bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 511638889Sjdp bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 511738889Sjdp bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 511838889Sjdp bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 511938889Sjdp bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; 512038889Sjdp bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 512138889Sjdp bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" 512233965Sjdp target64=true ;; 512338889Sjdp bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" 512433965Sjdp target64=true ;; 512538889Sjdp bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf" 512633965Sjdp target64=true ;; 512760484Sobrien cisco_core_big_vec) tb="$tb cisco-core.lo" ;; 512860484Sobrien cisco_core_little_vec) tb="$tb cisco-core.lo" ;; 512938889Sjdp demo_64_vec) tb="$tb demo64.lo aout64.lo" 513033965Sjdp target64=true ;; 513138889Sjdp ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 513238889Sjdp ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 513338889Sjdp ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 513438889Sjdp ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo" 513533965Sjdp target64=true ;; 513638889Sjdp go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; 513738889Sjdp go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; 513838889Sjdp h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; 513938889Sjdp h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; 514038889Sjdp host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 514138889Sjdp hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; 514238889Sjdp hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; 514338889Sjdp i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 514438889Sjdp i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 514538889Sjdp i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; 514638889Sjdp i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; 514738889Sjdp i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; 514838889Sjdp i386msdos_vec) tb="$tb i386msdos.lo" ;; 514960484Sobrien i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; 515060484Sobrien i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; 515138889Sjdp i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; 515238889Sjdp i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 515338889Sjdp i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; 515438889Sjdp i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; 515538889Sjdp i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 515638889Sjdp i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; 515738889Sjdp i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; 515838889Sjdp icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 515938889Sjdp icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 516038889Sjdp ieee_vec) tb="$tb ieee.lo" ;; 516138889Sjdp m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; 516238889Sjdp m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; 516338889Sjdp m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; 516438889Sjdp m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; 516538889Sjdp m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; 516638889Sjdp m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; 516738889Sjdp m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; 516838889Sjdp m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; 516938889Sjdp m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; 517038889Sjdp m88kbcs_vec) tb="$tb coff-m88k.lo" ;; 517160484Sobrien mipslpe_vec) tb="$tb pe-mips.lo cofflink.lo" ;; 517260484Sobrien mipslpei_vec) tb="$tb pei-mips.lo cofflink.lo" ;; 517360484Sobrien mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 517460484Sobrien mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 517560484Sobrien mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 517660484Sobrien mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 517738889Sjdp newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; 517838889Sjdp nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; 517938889Sjdp nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; 518038889Sjdp nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo" 518133965Sjdp target64=true ;; 518238889Sjdp riscix_vec) tb="$tb aout32.lo riscix.lo" ;; 518338889Sjdp nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; 518438889Sjdp pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 518538889Sjdp pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 518638889Sjdp pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;; 518738889Sjdp rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 518860484Sobrien bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 518960484Sobrien bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 519060484Sobrien bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 519160484Sobrien bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 519238889Sjdp ppcboot_vec) tb="$tb ppcboot.lo" ;; 519338889Sjdp shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 519438889Sjdp shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 519538889Sjdp shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 519638889Sjdp shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 519760484Sobrien shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo cofflink.lo" ;; 519860484Sobrien shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo cofflink.lo" ;; 519938889Sjdp som_vec) tb="$tb som.lo" ;; 520038889Sjdp sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; 520138889Sjdp sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; 520238889Sjdp sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; 520338889Sjdp sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; 520438889Sjdp sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; 520538889Sjdp sparccoff_vec) tb="$tb coff-sparc.lo" ;; 520638889Sjdp srec_vec) tb="$tb srec.lo" ;; 520738889Sjdp sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; 520838889Sjdp symbolsrec_vec) tb="$tb srec.lo" ;; 520938889Sjdp tekhex_vec) tb="$tb tekhex.lo" ;; 521038889Sjdp tic30_aout_vec) tb="$tb aout-tic30.lo" ;; 521138889Sjdp tic30_coff_vec) tb="$tb coff-tic30.lo" ;; 521260484Sobrien tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; 521360484Sobrien versados_vec) tb="$tb versados.lo" ;; 521460484Sobrien vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" 521560484Sobrien target64=true ;; 521660484Sobrien vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; 521760484Sobrien w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; 521838889Sjdp we32kcoff_vec) tb="$tb coff-we32k.lo" ;; 521938889Sjdp z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; 522033965Sjdp 522133965Sjdp "") ;; 522233965Sjdp *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;; 522333965Sjdp esac 522433965Sjdpdone 522533965Sjdp 522633965Sjdp# Target architecture .o files. 522733965Sjdp# A couple of CPUs use shorter file names to avoid problems on DOS 522833965Sjdp# filesystems. 522938889Sjdpta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 523033965Sjdp 523133965Sjdp# Weed out duplicate .o files. 523233965Sjdpf="" 523333965Sjdpfor i in $tb ; do 523433965Sjdp case " $f " in 523533965Sjdp *" $i "*) ;; 523633965Sjdp *) f="$f $i" ;; 523733965Sjdp esac 523833965Sjdpdone 523933965Sjdptb="$f" 524033965Sjdp 524133965Sjdpf="" 524233965Sjdpfor i in $ta ; do 524333965Sjdp case " $f " in 524433965Sjdp *" $i "*) ;; 524533965Sjdp *) f="$f $i" ;; 524633965Sjdp esac 524733965Sjdpdone 524833965Sjdpta="$f" 524933965Sjdp 525033965Sjdpbfd_backends="$tb" 525133965Sjdpbfd_machines="$ta" 525233965Sjdp 525333965Sjdpif test x${all_targets} = xtrue ; then 525433965Sjdp bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 525533965Sjdp bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 525633965Sjdp selvecs= 525733965Sjdp havevecs= 525833965Sjdp selarchs= 525933965Sjdpelse # all_targets is true 526033965Sjdp # Only set these if they will be nonempty, for the clever echo. 526133965Sjdp havevecs= 526233965Sjdp test -n "$selvecs" && 526333965Sjdp havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 526433965Sjdp test -n "$selvecs" && 526533965Sjdp selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 526633965Sjdp test -n "$selarchs" && 526733965Sjdp selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 526833965Sjdpfi # all_targets is true 526933965Sjdp 527033965Sjdpcase ${host64}-${target64}-${want64} in 527133965Sjdp *true*) 527233965Sjdp wordsize=64 527333965Sjdp all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 527433965Sjdp if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then 527533965Sjdp echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2 527633965Sjdp echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2 527733965Sjdp fi 527833965Sjdp ;; 527933965Sjdp false-false-false) 528033965Sjdp wordsize=32 528133965Sjdp all_backends='$(BFD32_BACKENDS)' 528233965Sjdp ;; 528333965Sjdpesac 528433965Sjdp 528533965Sjdp 528633965Sjdp 528733965Sjdp 528833965Sjdp 528933965Sjdp 529033965Sjdptdefaults="" 529133965Sjdptest -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 529233965Sjdptest -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 529333965Sjdptest -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 529433965Sjdptest -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" 529533965Sjdp 529633965Sjdp 529733965Sjdpfor ac_hdr in unistd.h 529833965Sjdpdo 529933965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 530033965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 530160484Sobrienecho "configure:5302: checking for $ac_hdr" >&5 530233965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 530333965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 530433965Sjdpelse 530533965Sjdp cat > conftest.$ac_ext <<EOF 530660484Sobrien#line 5307 "configure" 530733965Sjdp#include "confdefs.h" 530833965Sjdp#include <$ac_hdr> 530933965SjdpEOF 531033965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 531160484Sobrien{ (eval echo configure:5312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 531260484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 531333965Sjdpif test -z "$ac_err"; then 531433965Sjdp rm -rf conftest* 531533965Sjdp eval "ac_cv_header_$ac_safe=yes" 531633965Sjdpelse 531733965Sjdp echo "$ac_err" >&5 531833965Sjdp echo "configure: failed program was:" >&5 531933965Sjdp cat conftest.$ac_ext >&5 532033965Sjdp rm -rf conftest* 532133965Sjdp eval "ac_cv_header_$ac_safe=no" 532233965Sjdpfi 532333965Sjdprm -f conftest* 532433965Sjdpfi 532533965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 532633965Sjdp echo "$ac_t""yes" 1>&6 532733965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 532833965Sjdp cat >> confdefs.h <<EOF 532933965Sjdp#define $ac_tr_hdr 1 533033965SjdpEOF 533133965Sjdp 533233965Sjdpelse 533333965Sjdp echo "$ac_t""no" 1>&6 533433965Sjdpfi 533533965Sjdpdone 533633965Sjdp 533733965Sjdpfor ac_func in getpagesize 533833965Sjdpdo 533933965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 534060484Sobrienecho "configure:5341: checking for $ac_func" >&5 534133965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 534233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 534333965Sjdpelse 534433965Sjdp cat > conftest.$ac_ext <<EOF 534560484Sobrien#line 5346 "configure" 534633965Sjdp#include "confdefs.h" 534733965Sjdp/* System header to define __stub macros and hopefully few prototypes, 534833965Sjdp which can conflict with char $ac_func(); below. */ 534933965Sjdp#include <assert.h> 535033965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 535133965Sjdp/* We use char because int might match the return type of a gcc2 535233965Sjdp builtin and then its argument prototype would still apply. */ 535333965Sjdpchar $ac_func(); 535433965Sjdp 535533965Sjdpint main() { 535633965Sjdp 535733965Sjdp/* The GNU C library defines this for functions which it implements 535833965Sjdp to always fail with ENOSYS. Some functions are actually named 535933965Sjdp something starting with __ and the normal name is an alias. */ 536033965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 536133965Sjdpchoke me 536233965Sjdp#else 536333965Sjdp$ac_func(); 536433965Sjdp#endif 536533965Sjdp 536633965Sjdp; return 0; } 536733965SjdpEOF 536860484Sobrienif { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 536933965Sjdp rm -rf conftest* 537033965Sjdp eval "ac_cv_func_$ac_func=yes" 537133965Sjdpelse 537233965Sjdp echo "configure: failed program was:" >&5 537333965Sjdp cat conftest.$ac_ext >&5 537433965Sjdp rm -rf conftest* 537533965Sjdp eval "ac_cv_func_$ac_func=no" 537633965Sjdpfi 537733965Sjdprm -f conftest* 537833965Sjdpfi 537933965Sjdp 538033965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 538133965Sjdp echo "$ac_t""yes" 1>&6 538233965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 538333965Sjdp cat >> confdefs.h <<EOF 538433965Sjdp#define $ac_tr_func 1 538533965SjdpEOF 538633965Sjdp 538733965Sjdpelse 538833965Sjdp echo "$ac_t""no" 1>&6 538933965Sjdpfi 539033965Sjdpdone 539133965Sjdp 539233965Sjdpecho $ac_n "checking for working mmap""... $ac_c" 1>&6 539360484Sobrienecho "configure:5394: checking for working mmap" >&5 539433965Sjdpif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 539533965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 539633965Sjdpelse 539733965Sjdp if test "$cross_compiling" = yes; then 539833965Sjdp ac_cv_func_mmap_fixed_mapped=no 539933965Sjdpelse 540033965Sjdp cat > conftest.$ac_ext <<EOF 540160484Sobrien#line 5402 "configure" 540233965Sjdp#include "confdefs.h" 540333965Sjdp 540433965Sjdp/* Thanks to Mike Haertel and Jim Avera for this test. 540533965Sjdp Here is a matrix of mmap possibilities: 540633965Sjdp mmap private not fixed 540733965Sjdp mmap private fixed at somewhere currently unmapped 540833965Sjdp mmap private fixed at somewhere already mapped 540933965Sjdp mmap shared not fixed 541033965Sjdp mmap shared fixed at somewhere currently unmapped 541133965Sjdp mmap shared fixed at somewhere already mapped 541233965Sjdp For private mappings, we should verify that changes cannot be read() 541333965Sjdp back from the file, nor mmap's back from the file at a different 541433965Sjdp address. (There have been systems where private was not correctly 541533965Sjdp implemented like the infamous i386 svr4.0, and systems where the 541633965Sjdp VM page cache was not coherent with the filesystem buffer cache 541733965Sjdp like early versions of FreeBSD and possibly contemporary NetBSD.) 541833965Sjdp For shared mappings, we should conversely verify that changes get 541933965Sjdp propogated back to all the places they're supposed to be. 542033965Sjdp 542133965Sjdp Grep wants private fixed already mapped. 542233965Sjdp The main things grep needs to know about mmap are: 542333965Sjdp * does it exist and is it safe to write into the mmap'd area 542433965Sjdp * how to use it (BSD variants) */ 542533965Sjdp#include <sys/types.h> 542633965Sjdp#include <fcntl.h> 542733965Sjdp#include <sys/mman.h> 542833965Sjdp 542933965Sjdp/* This mess was copied from the GNU getpagesize.h. */ 543033965Sjdp#ifndef HAVE_GETPAGESIZE 543133965Sjdp# ifdef HAVE_UNISTD_H 543233965Sjdp# include <unistd.h> 543333965Sjdp# endif 543433965Sjdp 543533965Sjdp/* Assume that all systems that can run configure have sys/param.h. */ 543633965Sjdp# ifndef HAVE_SYS_PARAM_H 543733965Sjdp# define HAVE_SYS_PARAM_H 1 543833965Sjdp# endif 543933965Sjdp 544033965Sjdp# ifdef _SC_PAGESIZE 544133965Sjdp# define getpagesize() sysconf(_SC_PAGESIZE) 544233965Sjdp# else /* no _SC_PAGESIZE */ 544333965Sjdp# ifdef HAVE_SYS_PARAM_H 544433965Sjdp# include <sys/param.h> 544533965Sjdp# ifdef EXEC_PAGESIZE 544633965Sjdp# define getpagesize() EXEC_PAGESIZE 544733965Sjdp# else /* no EXEC_PAGESIZE */ 544833965Sjdp# ifdef NBPG 544933965Sjdp# define getpagesize() NBPG * CLSIZE 545033965Sjdp# ifndef CLSIZE 545133965Sjdp# define CLSIZE 1 545233965Sjdp# endif /* no CLSIZE */ 545333965Sjdp# else /* no NBPG */ 545433965Sjdp# ifdef NBPC 545533965Sjdp# define getpagesize() NBPC 545633965Sjdp# else /* no NBPC */ 545733965Sjdp# ifdef PAGESIZE 545833965Sjdp# define getpagesize() PAGESIZE 545933965Sjdp# endif /* PAGESIZE */ 546033965Sjdp# endif /* no NBPC */ 546133965Sjdp# endif /* no NBPG */ 546233965Sjdp# endif /* no EXEC_PAGESIZE */ 546333965Sjdp# else /* no HAVE_SYS_PARAM_H */ 546433965Sjdp# define getpagesize() 8192 /* punt totally */ 546533965Sjdp# endif /* no HAVE_SYS_PARAM_H */ 546633965Sjdp# endif /* no _SC_PAGESIZE */ 546733965Sjdp 546833965Sjdp#endif /* no HAVE_GETPAGESIZE */ 546933965Sjdp 547033965Sjdp#ifdef __cplusplus 547133965Sjdpextern "C" { void *malloc(unsigned); } 547233965Sjdp#else 547333965Sjdpchar *malloc(); 547433965Sjdp#endif 547533965Sjdp 547633965Sjdpint 547733965Sjdpmain() 547833965Sjdp{ 547933965Sjdp char *data, *data2, *data3; 548033965Sjdp int i, pagesize; 548133965Sjdp int fd; 548233965Sjdp 548333965Sjdp pagesize = getpagesize(); 548433965Sjdp 548533965Sjdp /* 548633965Sjdp * First, make a file with some known garbage in it. 548733965Sjdp */ 548833965Sjdp data = malloc(pagesize); 548933965Sjdp if (!data) 549033965Sjdp exit(1); 549133965Sjdp for (i = 0; i < pagesize; ++i) 549233965Sjdp *(data + i) = rand(); 549333965Sjdp umask(0); 549433965Sjdp fd = creat("conftestmmap", 0600); 549533965Sjdp if (fd < 0) 549633965Sjdp exit(1); 549733965Sjdp if (write(fd, data, pagesize) != pagesize) 549833965Sjdp exit(1); 549933965Sjdp close(fd); 550033965Sjdp 550133965Sjdp /* 550233965Sjdp * Next, try to mmap the file at a fixed address which 550333965Sjdp * already has something else allocated at it. If we can, 550433965Sjdp * also make sure that we see the same garbage. 550533965Sjdp */ 550633965Sjdp fd = open("conftestmmap", O_RDWR); 550733965Sjdp if (fd < 0) 550833965Sjdp exit(1); 550933965Sjdp data2 = malloc(2 * pagesize); 551033965Sjdp if (!data2) 551133965Sjdp exit(1); 551233965Sjdp data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 551333965Sjdp if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 551433965Sjdp MAP_PRIVATE | MAP_FIXED, fd, 0L)) 551533965Sjdp exit(1); 551633965Sjdp for (i = 0; i < pagesize; ++i) 551733965Sjdp if (*(data + i) != *(data2 + i)) 551833965Sjdp exit(1); 551933965Sjdp 552033965Sjdp /* 552133965Sjdp * Finally, make sure that changes to the mapped area 552233965Sjdp * do not percolate back to the file as seen by read(). 552333965Sjdp * (This is a bug on some variants of i386 svr4.0.) 552433965Sjdp */ 552533965Sjdp for (i = 0; i < pagesize; ++i) 552633965Sjdp *(data2 + i) = *(data2 + i) + 1; 552733965Sjdp data3 = malloc(pagesize); 552833965Sjdp if (!data3) 552933965Sjdp exit(1); 553033965Sjdp if (read(fd, data3, pagesize) != pagesize) 553133965Sjdp exit(1); 553233965Sjdp for (i = 0; i < pagesize; ++i) 553333965Sjdp if (*(data + i) != *(data3 + i)) 553433965Sjdp exit(1); 553533965Sjdp close(fd); 553633965Sjdp unlink("conftestmmap"); 553733965Sjdp exit(0); 553833965Sjdp} 553933965Sjdp 554033965SjdpEOF 554160484Sobrienif { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 554233965Sjdpthen 554333965Sjdp ac_cv_func_mmap_fixed_mapped=yes 554433965Sjdpelse 554533965Sjdp echo "configure: failed program was:" >&5 554633965Sjdp cat conftest.$ac_ext >&5 554733965Sjdp rm -fr conftest* 554833965Sjdp ac_cv_func_mmap_fixed_mapped=no 554933965Sjdpfi 555033965Sjdprm -fr conftest* 555133965Sjdpfi 555233965Sjdp 555333965Sjdpfi 555433965Sjdp 555533965Sjdpecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 555633965Sjdpif test $ac_cv_func_mmap_fixed_mapped = yes; then 555733965Sjdp cat >> confdefs.h <<\EOF 555833965Sjdp#define HAVE_MMAP 1 555933965SjdpEOF 556033965Sjdp 556133965Sjdpfi 556233965Sjdp 556333965Sjdpfor ac_func in madvise mprotect 556433965Sjdpdo 556533965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 556660484Sobrienecho "configure:5567: checking for $ac_func" >&5 556733965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 556833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 556933965Sjdpelse 557033965Sjdp cat > conftest.$ac_ext <<EOF 557160484Sobrien#line 5572 "configure" 557233965Sjdp#include "confdefs.h" 557333965Sjdp/* System header to define __stub macros and hopefully few prototypes, 557433965Sjdp which can conflict with char $ac_func(); below. */ 557533965Sjdp#include <assert.h> 557633965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 557733965Sjdp/* We use char because int might match the return type of a gcc2 557833965Sjdp builtin and then its argument prototype would still apply. */ 557933965Sjdpchar $ac_func(); 558033965Sjdp 558133965Sjdpint main() { 558233965Sjdp 558333965Sjdp/* The GNU C library defines this for functions which it implements 558433965Sjdp to always fail with ENOSYS. Some functions are actually named 558533965Sjdp something starting with __ and the normal name is an alias. */ 558633965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 558733965Sjdpchoke me 558833965Sjdp#else 558933965Sjdp$ac_func(); 559033965Sjdp#endif 559133965Sjdp 559233965Sjdp; return 0; } 559333965SjdpEOF 559460484Sobrienif { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 559533965Sjdp rm -rf conftest* 559633965Sjdp eval "ac_cv_func_$ac_func=yes" 559733965Sjdpelse 559833965Sjdp echo "configure: failed program was:" >&5 559933965Sjdp cat conftest.$ac_ext >&5 560033965Sjdp rm -rf conftest* 560133965Sjdp eval "ac_cv_func_$ac_func=no" 560233965Sjdpfi 560333965Sjdprm -f conftest* 560433965Sjdpfi 560533965Sjdp 560633965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 560733965Sjdp echo "$ac_t""yes" 1>&6 560833965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 560933965Sjdp cat >> confdefs.h <<EOF 561033965Sjdp#define $ac_tr_func 1 561133965SjdpEOF 561233965Sjdp 561333965Sjdpelse 561433965Sjdp echo "$ac_t""no" 1>&6 561533965Sjdpfi 561633965Sjdpdone 561733965Sjdp 561833965Sjdpcase ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 561933965Sjdp true+yes ) cat >> confdefs.h <<\EOF 562033965Sjdp#define USE_MMAP 1 562133965SjdpEOF 562233965Sjdp ;; 562333965Sjdpesac 562433965Sjdp 562533965Sjdprm -f doc/config.status 562633965Sjdptrap '' 1 2 15 562733965Sjdpcat > confcache <<\EOF 562833965Sjdp# This file is a shell script that caches the results of configure 562933965Sjdp# tests run on this system so they can be shared between configure 563033965Sjdp# scripts and configure runs. It is not useful on other systems. 563133965Sjdp# If it contains results you don't want to keep, you may remove or edit it. 563233965Sjdp# 563333965Sjdp# By default, configure uses ./config.cache as the cache file, 563433965Sjdp# creating it if it does not exist already. You can give configure 563533965Sjdp# the --cache-file=FILE option to use a different cache file; that is 563633965Sjdp# what configure does when it calls configure scripts in 563733965Sjdp# subdirectories, so they share the cache. 563833965Sjdp# Giving --cache-file=/dev/null disables caching, for debugging configure. 563933965Sjdp# config.status only pays attention to the cache file if you give it the 564033965Sjdp# --recheck option to rerun configure. 564133965Sjdp# 564233965SjdpEOF 564333965Sjdp# The following way of writing the cache mishandles newlines in values, 564433965Sjdp# but we know of no workaround that is simple, portable, and efficient. 564533965Sjdp# So, don't put newlines in cache variables' values. 564633965Sjdp# Ultrix sh set writes to stderr and can't be redirected directly, 564733965Sjdp# and sets the high bit in the cache file unless we assign to the vars. 564833965Sjdp(set) 2>&1 | 564960484Sobrien case `(ac_space=' '; set | grep ac_space) 2>&1` in 565033965Sjdp *ac_space=\ *) 565133965Sjdp # `set' does not quote correctly, so add quotes (double-quote substitution 565233965Sjdp # turns \\\\ into \\, and sed turns \\ into \). 565333965Sjdp sed -n \ 565433965Sjdp -e "s/'/'\\\\''/g" \ 565533965Sjdp -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 565633965Sjdp ;; 565733965Sjdp *) 565833965Sjdp # `set' quotes correctly as required by POSIX, so do not add quotes. 565933965Sjdp sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 566033965Sjdp ;; 566133965Sjdp esac >> confcache 566233965Sjdpif cmp -s $cache_file confcache; then 566333965Sjdp : 566433965Sjdpelse 566533965Sjdp if test -w $cache_file; then 566633965Sjdp echo "updating cache $cache_file" 566733965Sjdp cat confcache > $cache_file 566833965Sjdp else 566933965Sjdp echo "not updating unwritable cache $cache_file" 567033965Sjdp fi 567133965Sjdpfi 567233965Sjdprm -f confcache 567333965Sjdp 567433965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 567533965Sjdp 567633965Sjdptest "x$prefix" = xNONE && prefix=$ac_default_prefix 567733965Sjdp# Let make expand exec_prefix. 567833965Sjdptest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 567933965Sjdp 568033965Sjdp# Any assignment to VPATH causes Sun make to only execute 568133965Sjdp# the first set of double-colon rules, so remove it if not needed. 568233965Sjdp# If there is a colon in the path, we need to keep it. 568333965Sjdpif test "x$srcdir" = x.; then 568433965Sjdp ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 568533965Sjdpfi 568633965Sjdp 568733965Sjdptrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 568833965Sjdp 568933965SjdpDEFS=-DHAVE_CONFIG_H 569033965Sjdp 569133965Sjdp# Without the "./", some shells look in PATH for config.status. 569233965Sjdp: ${CONFIG_STATUS=./config.status} 569333965Sjdp 569433965Sjdpecho creating $CONFIG_STATUS 569533965Sjdprm -f $CONFIG_STATUS 569633965Sjdpcat > $CONFIG_STATUS <<EOF 569733965Sjdp#! /bin/sh 569833965Sjdp# Generated automatically by configure. 569933965Sjdp# Run this file to recreate the current configuration. 570033965Sjdp# This directory was configured as follows, 570133965Sjdp# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 570233965Sjdp# 570333965Sjdp# $0 $ac_configure_args 570433965Sjdp# 570533965Sjdp# Compiler output produced by configure, useful for debugging 570633965Sjdp# configure, is in ./config.log if it exists. 570733965Sjdp 570833965Sjdpac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 570933965Sjdpfor ac_option 571033965Sjdpdo 571133965Sjdp case "\$ac_option" in 571233965Sjdp -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 571333965Sjdp echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 571433965Sjdp exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 571533965Sjdp -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 571660484Sobrien echo "$CONFIG_STATUS generated by autoconf version 2.13" 571733965Sjdp exit 0 ;; 571833965Sjdp -help | --help | --hel | --he | --h) 571933965Sjdp echo "\$ac_cs_usage"; exit 0 ;; 572033965Sjdp *) echo "\$ac_cs_usage"; exit 1 ;; 572133965Sjdp esac 572233965Sjdpdone 572333965Sjdp 572433965Sjdpac_given_srcdir=$srcdir 572533965Sjdpac_given_INSTALL="$INSTALL" 572633965Sjdp 572760484Sobrientrap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 572833965SjdpEOF 572933965Sjdpcat >> $CONFIG_STATUS <<EOF 573033965Sjdp 573133965Sjdp# Protect against being on the right side of a sed subst in config.status. 573233965Sjdpsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 573333965Sjdp s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 573433965Sjdp$ac_vpsub 573533965Sjdp$extrasub 573638889Sjdps%@SHELL@%$SHELL%g 573733965Sjdps%@CFLAGS@%$CFLAGS%g 573833965Sjdps%@CPPFLAGS@%$CPPFLAGS%g 573933965Sjdps%@CXXFLAGS@%$CXXFLAGS%g 574060484Sobriens%@FFLAGS@%$FFLAGS%g 574133965Sjdps%@DEFS@%$DEFS%g 574233965Sjdps%@LDFLAGS@%$LDFLAGS%g 574333965Sjdps%@LIBS@%$LIBS%g 574433965Sjdps%@exec_prefix@%$exec_prefix%g 574533965Sjdps%@prefix@%$prefix%g 574633965Sjdps%@program_transform_name@%$program_transform_name%g 574733965Sjdps%@bindir@%$bindir%g 574833965Sjdps%@sbindir@%$sbindir%g 574933965Sjdps%@libexecdir@%$libexecdir%g 575033965Sjdps%@datadir@%$datadir%g 575133965Sjdps%@sysconfdir@%$sysconfdir%g 575233965Sjdps%@sharedstatedir@%$sharedstatedir%g 575333965Sjdps%@localstatedir@%$localstatedir%g 575433965Sjdps%@libdir@%$libdir%g 575533965Sjdps%@includedir@%$includedir%g 575633965Sjdps%@oldincludedir@%$oldincludedir%g 575733965Sjdps%@infodir@%$infodir%g 575833965Sjdps%@mandir@%$mandir%g 575933965Sjdps%@host@%$host%g 576033965Sjdps%@host_alias@%$host_alias%g 576133965Sjdps%@host_cpu@%$host_cpu%g 576233965Sjdps%@host_vendor@%$host_vendor%g 576333965Sjdps%@host_os@%$host_os%g 576433965Sjdps%@target@%$target%g 576533965Sjdps%@target_alias@%$target_alias%g 576633965Sjdps%@target_cpu@%$target_cpu%g 576733965Sjdps%@target_vendor@%$target_vendor%g 576833965Sjdps%@target_os@%$target_os%g 576933965Sjdps%@build@%$build%g 577033965Sjdps%@build_alias@%$build_alias%g 577133965Sjdps%@build_cpu@%$build_cpu%g 577233965Sjdps%@build_vendor@%$build_vendor%g 577333965Sjdps%@build_os@%$build_os%g 577433965Sjdps%@CC@%$CC%g 577533965Sjdps%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 577660484Sobriens%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 577733965Sjdps%@INSTALL_DATA@%$INSTALL_DATA%g 577838889Sjdps%@PACKAGE@%$PACKAGE%g 577933965Sjdps%@VERSION@%$VERSION%g 578038889Sjdps%@ACLOCAL@%$ACLOCAL%g 578138889Sjdps%@AUTOCONF@%$AUTOCONF%g 578238889Sjdps%@AUTOMAKE@%$AUTOMAKE%g 578338889Sjdps%@AUTOHEADER@%$AUTOHEADER%g 578438889Sjdps%@MAKEINFO@%$MAKEINFO%g 578538889Sjdps%@SET_MAKE@%$SET_MAKE%g 578638889Sjdps%@AR@%$AR%g 578738889Sjdps%@RANLIB@%$RANLIB%g 578838889Sjdps%@LN_S@%$LN_S%g 578938889Sjdps%@LIBTOOL@%$LIBTOOL%g 579060484Sobriens%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 579160484Sobriens%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 579238889Sjdps%@MAINT@%$MAINT%g 579338889Sjdps%@EXEEXT@%$EXEEXT%g 579460484Sobriens%@CPP@%$CPP%g 579560484Sobriens%@ALLOCA@%$ALLOCA%g 579660484Sobriens%@USE_NLS@%$USE_NLS%g 579760484Sobriens%@MSGFMT@%$MSGFMT%g 579860484Sobriens%@GMSGFMT@%$GMSGFMT%g 579960484Sobriens%@XGETTEXT@%$XGETTEXT%g 580060484Sobriens%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g 580160484Sobriens%@CATALOGS@%$CATALOGS%g 580260484Sobriens%@CATOBJEXT@%$CATOBJEXT%g 580360484Sobriens%@DATADIRNAME@%$DATADIRNAME%g 580460484Sobriens%@GMOFILES@%$GMOFILES%g 580560484Sobriens%@INSTOBJEXT@%$INSTOBJEXT%g 580660484Sobriens%@INTLDEPS@%$INTLDEPS%g 580760484Sobriens%@INTLLIBS@%$INTLLIBS%g 580860484Sobriens%@INTLOBJS@%$INTLOBJS%g 580960484Sobriens%@POFILES@%$POFILES%g 581060484Sobriens%@POSUB@%$POSUB%g 581160484Sobriens%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g 581260484Sobriens%@GT_NO@%$GT_NO%g 581360484Sobriens%@GT_YES@%$GT_YES%g 581460484Sobriens%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 581560484Sobriens%@l@%$l%g 581638889Sjdps%@HDEFINES@%$HDEFINES%g 581733965Sjdps%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g 581833965Sjdps%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g 581933965Sjdps%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g 582033965Sjdps%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g 582133965Sjdps%@CC_FOR_BUILD@%$CC_FOR_BUILD%g 582238889Sjdps%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g 582333965Sjdps%@COREFILE@%$COREFILE%g 582433965Sjdps%@COREFLAG@%$COREFLAG%g 582560484Sobriens%@WIN32LDFLAGS@%$WIN32LDFLAGS%g 582660484Sobriens%@WIN32LIBADD@%$WIN32LIBADD%g 582733965Sjdps%@TDEFINES@%$TDEFINES%g 582833965Sjdps%@wordsize@%$wordsize%g 582933965Sjdps%@all_backends@%$all_backends%g 583033965Sjdps%@bfd_backends@%$bfd_backends%g 583133965Sjdps%@bfd_machines@%$bfd_machines%g 583233965Sjdps%@tdefaults@%$tdefaults%g 583333965Sjdp 583433965SjdpCEOF 583533965SjdpEOF 583633965Sjdp 583733965Sjdpcat >> $CONFIG_STATUS <<\EOF 583833965Sjdp 583933965Sjdp# Split the substitutions into bite-sized pieces for seds with 584033965Sjdp# small command number limits, like on Digital OSF/1 and HP-UX. 584133965Sjdpac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 584233965Sjdpac_file=1 # Number of current file. 584333965Sjdpac_beg=1 # First line for current file. 584433965Sjdpac_end=$ac_max_sed_cmds # Line after last line for current file. 584533965Sjdpac_more_lines=: 584633965Sjdpac_sed_cmds="" 584733965Sjdpwhile $ac_more_lines; do 584833965Sjdp if test $ac_beg -gt 1; then 584933965Sjdp sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 585033965Sjdp else 585133965Sjdp sed "${ac_end}q" conftest.subs > conftest.s$ac_file 585233965Sjdp fi 585333965Sjdp if test ! -s conftest.s$ac_file; then 585433965Sjdp ac_more_lines=false 585533965Sjdp rm -f conftest.s$ac_file 585633965Sjdp else 585733965Sjdp if test -z "$ac_sed_cmds"; then 585833965Sjdp ac_sed_cmds="sed -f conftest.s$ac_file" 585933965Sjdp else 586033965Sjdp ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 586133965Sjdp fi 586233965Sjdp ac_file=`expr $ac_file + 1` 586333965Sjdp ac_beg=$ac_end 586433965Sjdp ac_end=`expr $ac_end + $ac_max_sed_cmds` 586533965Sjdp fi 586633965Sjdpdone 586733965Sjdpif test -z "$ac_sed_cmds"; then 586833965Sjdp ac_sed_cmds=cat 586933965Sjdpfi 587033965SjdpEOF 587133965Sjdp 587233965Sjdpcat >> $CONFIG_STATUS <<EOF 587333965Sjdp 587460484SobrienCONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"} 587533965SjdpEOF 587633965Sjdpcat >> $CONFIG_STATUS <<\EOF 587733965Sjdpfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 587833965Sjdp # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 587933965Sjdp case "$ac_file" in 588033965Sjdp *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 588133965Sjdp ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 588233965Sjdp *) ac_file_in="${ac_file}.in" ;; 588333965Sjdp esac 588433965Sjdp 588533965Sjdp # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 588633965Sjdp 588733965Sjdp # Remove last slash and all that follows it. Not all systems have dirname. 588833965Sjdp ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 588933965Sjdp if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 589033965Sjdp # The file is in a subdirectory. 589133965Sjdp test ! -d "$ac_dir" && mkdir "$ac_dir" 589233965Sjdp ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 589333965Sjdp # A "../" for each directory in $ac_dir_suffix. 589433965Sjdp ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 589533965Sjdp else 589633965Sjdp ac_dir_suffix= ac_dots= 589733965Sjdp fi 589833965Sjdp 589933965Sjdp case "$ac_given_srcdir" in 590033965Sjdp .) srcdir=. 590133965Sjdp if test -z "$ac_dots"; then top_srcdir=. 590233965Sjdp else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 590333965Sjdp /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 590433965Sjdp *) # Relative path. 590533965Sjdp srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 590633965Sjdp top_srcdir="$ac_dots$ac_given_srcdir" ;; 590733965Sjdp esac 590833965Sjdp 590933965Sjdp case "$ac_given_INSTALL" in 591033965Sjdp [/$]*) INSTALL="$ac_given_INSTALL" ;; 591133965Sjdp *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 591233965Sjdp esac 591333965Sjdp 591433965Sjdp echo creating "$ac_file" 591533965Sjdp rm -f "$ac_file" 591633965Sjdp configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 591733965Sjdp case "$ac_file" in 591833965Sjdp *Makefile*) ac_comsub="1i\\ 591933965Sjdp# $configure_input" ;; 592033965Sjdp *) ac_comsub= ;; 592133965Sjdp esac 592233965Sjdp 592333965Sjdp ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 592433965Sjdp sed -e "$ac_comsub 592533965Sjdps%@configure_input@%$configure_input%g 592633965Sjdps%@srcdir@%$srcdir%g 592733965Sjdps%@top_srcdir@%$top_srcdir%g 592833965Sjdps%@INSTALL@%$INSTALL%g 592933965Sjdp" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 593033965Sjdpfi; done 593133965Sjdprm -f conftest.s* 593233965Sjdp 593333965Sjdp# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 593433965Sjdp# NAME is the cpp macro being defined and VALUE is the value it is being given. 593533965Sjdp# 593633965Sjdp# ac_d sets the value in "#define NAME VALUE" lines. 593733965Sjdpac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 593833965Sjdpac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 593933965Sjdpac_dC='\3' 594033965Sjdpac_dD='%g' 594133965Sjdp# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 594233965Sjdpac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 594333965Sjdpac_uB='\([ ]\)%\1#\2define\3' 594433965Sjdpac_uC=' ' 594533965Sjdpac_uD='\4%g' 594633965Sjdp# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 594733965Sjdpac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 594833965Sjdpac_eB='$%\1#\2define\3' 594933965Sjdpac_eC=' ' 595033965Sjdpac_eD='%g' 595133965Sjdp 595233965Sjdpif test "${CONFIG_HEADERS+set}" != set; then 595333965SjdpEOF 595433965Sjdpcat >> $CONFIG_STATUS <<EOF 595533965Sjdp CONFIG_HEADERS="config.h:config.in" 595633965SjdpEOF 595733965Sjdpcat >> $CONFIG_STATUS <<\EOF 595833965Sjdpfi 595933965Sjdpfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 596033965Sjdp # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 596133965Sjdp case "$ac_file" in 596233965Sjdp *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 596333965Sjdp ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 596433965Sjdp *) ac_file_in="${ac_file}.in" ;; 596533965Sjdp esac 596633965Sjdp 596733965Sjdp echo creating $ac_file 596833965Sjdp 596933965Sjdp rm -f conftest.frag conftest.in conftest.out 597033965Sjdp ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 597133965Sjdp cat $ac_file_inputs > conftest.in 597233965Sjdp 597333965SjdpEOF 597433965Sjdp 597533965Sjdp# Transform confdefs.h into a sed script conftest.vals that substitutes 597633965Sjdp# the proper values into config.h.in to produce config.h. And first: 597733965Sjdp# Protect against being on the right side of a sed subst in config.status. 597833965Sjdp# Protect against being in an unquoted here document in config.status. 597933965Sjdprm -f conftest.vals 598033965Sjdpcat > conftest.hdr <<\EOF 598133965Sjdps/[\\&%]/\\&/g 598233965Sjdps%[\\$`]%\\&%g 598333965Sjdps%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 598433965Sjdps%ac_d%ac_u%gp 598533965Sjdps%ac_u%ac_e%gp 598633965SjdpEOF 598733965Sjdpsed -n -f conftest.hdr confdefs.h > conftest.vals 598833965Sjdprm -f conftest.hdr 598933965Sjdp 599033965Sjdp# This sed command replaces #undef with comments. This is necessary, for 599133965Sjdp# example, in the case of _POSIX_SOURCE, which is predefined and required 599233965Sjdp# on some systems where configure will not decide to define it. 599333965Sjdpcat >> conftest.vals <<\EOF 599433965Sjdps%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 599533965SjdpEOF 599633965Sjdp 599733965Sjdp# Break up conftest.vals because some shells have a limit on 599833965Sjdp# the size of here documents, and old seds have small limits too. 599933965Sjdp 600033965Sjdprm -f conftest.tail 600133965Sjdpwhile : 600233965Sjdpdo 600333965Sjdp ac_lines=`grep -c . conftest.vals` 600433965Sjdp # grep -c gives empty output for an empty file on some AIX systems. 600533965Sjdp if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 600633965Sjdp # Write a limited-size here document to conftest.frag. 600733965Sjdp echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 600833965Sjdp sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 600933965Sjdp echo 'CEOF 601033965Sjdp sed -f conftest.frag conftest.in > conftest.out 601133965Sjdp rm -f conftest.in 601233965Sjdp mv conftest.out conftest.in 601333965Sjdp' >> $CONFIG_STATUS 601433965Sjdp sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 601533965Sjdp rm -f conftest.vals 601633965Sjdp mv conftest.tail conftest.vals 601733965Sjdpdone 601833965Sjdprm -f conftest.vals 601933965Sjdp 602033965Sjdpcat >> $CONFIG_STATUS <<\EOF 602133965Sjdp rm -f conftest.frag conftest.h 602233965Sjdp echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 602333965Sjdp cat conftest.in >> conftest.h 602433965Sjdp rm -f conftest.in 602533965Sjdp if cmp -s $ac_file conftest.h 2>/dev/null; then 602633965Sjdp echo "$ac_file is unchanged" 602733965Sjdp rm -f conftest.h 602833965Sjdp else 602933965Sjdp # Remove last slash and all that follows it. Not all systems have dirname. 603033965Sjdp ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 603133965Sjdp if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 603233965Sjdp # The file is in a subdirectory. 603333965Sjdp test ! -d "$ac_dir" && mkdir "$ac_dir" 603433965Sjdp fi 603533965Sjdp rm -f $ac_file 603633965Sjdp mv conftest.h $ac_file 603733965Sjdp fi 603833965Sjdpfi; done 603933965Sjdp 604033965SjdpEOF 604133965Sjdpcat >> $CONFIG_STATUS <<EOF 604233965Sjdp 604338889Sjdp 604433965SjdpEOF 604533965Sjdpcat >> $CONFIG_STATUS <<\EOF 604638889Sjdptest -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 604760484Sobriensed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile 604833965Sjdpexit 0 604933965SjdpEOF 605033965Sjdpchmod +x $CONFIG_STATUS 605133965Sjdprm -fr confdefs* $ac_clean_files 605233965Sjdptest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 605333965Sjdp 6054