configure revision 91041
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
2577298Sobrien  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
2677298Sobrienac_help="$ac_help
2733965Sjdp  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)"
2833965Sjdpac_help="$ac_help
2933965Sjdp  --enable-targets        alternative target configurations"
3033965Sjdpac_help="$ac_help
3133965Sjdp  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library"
3233965Sjdpac_help="$ac_help
3333965Sjdp  --with-mmap             try using mmap for BFD input files if available"
3438889Sjdpac_help="$ac_help
3577298Sobrien  --enable-build-warnings Enable build-time compiler warnings if gcc is used"
3677298Sobrienac_help="$ac_help
3738889Sjdp  --enable-maintainer-mode enable make rules and dependencies not useful
3838889Sjdp                          (and sometimes confusing) to the casual installer"
3960484Sobrienac_help="$ac_help
4060484Sobrien  --disable-nls           do not use Native Language Support"
4160484Sobrienac_help="$ac_help
4260484Sobrien  --with-included-gettext use the GNU gettext library included here"
4333965Sjdp
4433965Sjdp# Initialize some variables set by options.
4533965Sjdp# The variables have the same names as the options, with
4633965Sjdp# dashes changed to underlines.
4733965Sjdpbuild=NONE
4833965Sjdpcache_file=./config.cache
4933965Sjdpexec_prefix=NONE
5033965Sjdphost=NONE
5133965Sjdpno_create=
5233965Sjdpnonopt=NONE
5333965Sjdpno_recursion=
5433965Sjdpprefix=NONE
5533965Sjdpprogram_prefix=NONE
5633965Sjdpprogram_suffix=NONE
5733965Sjdpprogram_transform_name=s,x,x,
5833965Sjdpsilent=
5933965Sjdpsite=
6091041Sobriensitefile=
6133965Sjdpsrcdir=
6233965Sjdptarget=NONE
6333965Sjdpverbose=
6433965Sjdpx_includes=NONE
6533965Sjdpx_libraries=NONE
6633965Sjdpbindir='${exec_prefix}/bin'
6733965Sjdpsbindir='${exec_prefix}/sbin'
6833965Sjdplibexecdir='${exec_prefix}/libexec'
6933965Sjdpdatadir='${prefix}/share'
7033965Sjdpsysconfdir='${prefix}/etc'
7133965Sjdpsharedstatedir='${prefix}/com'
7233965Sjdplocalstatedir='${prefix}/var'
7333965Sjdplibdir='${exec_prefix}/lib'
7433965Sjdpincludedir='${prefix}/include'
7533965Sjdpoldincludedir='/usr/include'
7633965Sjdpinfodir='${prefix}/info'
7733965Sjdpmandir='${prefix}/man'
7833965Sjdp
7933965Sjdp# Initialize some other variables.
8033965Sjdpsubdirs=
8133965SjdpMFLAGS= MAKEFLAGS=
8238889SjdpSHELL=${CONFIG_SHELL-/bin/sh}
8333965Sjdp# Maximum number of lines to put in a shell here document.
8433965Sjdpac_max_here_lines=12
8533965Sjdp
8633965Sjdpac_prev=
8733965Sjdpfor ac_option
8833965Sjdpdo
8933965Sjdp
9033965Sjdp  # If the previous option needs an argument, assign it.
9133965Sjdp  if test -n "$ac_prev"; then
9233965Sjdp    eval "$ac_prev=\$ac_option"
9333965Sjdp    ac_prev=
9433965Sjdp    continue
9533965Sjdp  fi
9633965Sjdp
9733965Sjdp  case "$ac_option" in
9833965Sjdp  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
9933965Sjdp  *) ac_optarg= ;;
10033965Sjdp  esac
10133965Sjdp
10233965Sjdp  # Accept the important Cygnus configure options, so we can diagnose typos.
10333965Sjdp
10433965Sjdp  case "$ac_option" in
10533965Sjdp
10633965Sjdp  -bindir | --bindir | --bindi | --bind | --bin | --bi)
10733965Sjdp    ac_prev=bindir ;;
10833965Sjdp  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
10933965Sjdp    bindir="$ac_optarg" ;;
11033965Sjdp
11133965Sjdp  -build | --build | --buil | --bui | --bu)
11233965Sjdp    ac_prev=build ;;
11333965Sjdp  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
11433965Sjdp    build="$ac_optarg" ;;
11533965Sjdp
11633965Sjdp  -cache-file | --cache-file | --cache-fil | --cache-fi \
11733965Sjdp  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11833965Sjdp    ac_prev=cache_file ;;
11933965Sjdp  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12033965Sjdp  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
12133965Sjdp    cache_file="$ac_optarg" ;;
12233965Sjdp
12333965Sjdp  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
12433965Sjdp    ac_prev=datadir ;;
12533965Sjdp  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
12633965Sjdp  | --da=*)
12733965Sjdp    datadir="$ac_optarg" ;;
12833965Sjdp
12933965Sjdp  -disable-* | --disable-*)
13033965Sjdp    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
13133965Sjdp    # Reject names that are not valid shell variable names.
13233965Sjdp    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
13333965Sjdp      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
13433965Sjdp    fi
13533965Sjdp    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
13633965Sjdp    eval "enable_${ac_feature}=no" ;;
13733965Sjdp
13833965Sjdp  -enable-* | --enable-*)
13933965Sjdp    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
14033965Sjdp    # Reject names that are not valid shell variable names.
14133965Sjdp    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
14233965Sjdp      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
14333965Sjdp    fi
14433965Sjdp    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
14533965Sjdp    case "$ac_option" in
14633965Sjdp      *=*) ;;
14733965Sjdp      *) ac_optarg=yes ;;
14833965Sjdp    esac
14933965Sjdp    eval "enable_${ac_feature}='$ac_optarg'" ;;
15033965Sjdp
15133965Sjdp  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
15233965Sjdp  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
15333965Sjdp  | --exec | --exe | --ex)
15433965Sjdp    ac_prev=exec_prefix ;;
15533965Sjdp  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
15633965Sjdp  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
15733965Sjdp  | --exec=* | --exe=* | --ex=*)
15833965Sjdp    exec_prefix="$ac_optarg" ;;
15933965Sjdp
16033965Sjdp  -gas | --gas | --ga | --g)
16133965Sjdp    # Obsolete; use --with-gas.
16233965Sjdp    with_gas=yes ;;
16333965Sjdp
16433965Sjdp  -help | --help | --hel | --he)
16533965Sjdp    # Omit some internal or obsolete options to make the list less imposing.
16633965Sjdp    # This message is too long to be a string in the A/UX 3.1 sh.
16733965Sjdp    cat << EOF
16833965SjdpUsage: configure [options] [host]
16933965SjdpOptions: [defaults in brackets after descriptions]
17033965SjdpConfiguration:
17133965Sjdp  --cache-file=FILE       cache test results in FILE
17233965Sjdp  --help                  print this message
17333965Sjdp  --no-create             do not create output files
17433965Sjdp  --quiet, --silent       do not print \`checking...' messages
17591041Sobrien  --site-file=FILE        use FILE as the site file
17633965Sjdp  --version               print the version of autoconf that created configure
17733965SjdpDirectory and file names:
17833965Sjdp  --prefix=PREFIX         install architecture-independent files in PREFIX
17933965Sjdp                          [$ac_default_prefix]
18033965Sjdp  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
18133965Sjdp                          [same as prefix]
18233965Sjdp  --bindir=DIR            user executables in DIR [EPREFIX/bin]
18333965Sjdp  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
18433965Sjdp  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
18533965Sjdp  --datadir=DIR           read-only architecture-independent data in DIR
18633965Sjdp                          [PREFIX/share]
18733965Sjdp  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
18833965Sjdp  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
18933965Sjdp                          [PREFIX/com]
19033965Sjdp  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
19133965Sjdp  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
19233965Sjdp  --includedir=DIR        C header files in DIR [PREFIX/include]
19333965Sjdp  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
19433965Sjdp  --infodir=DIR           info documentation in DIR [PREFIX/info]
19533965Sjdp  --mandir=DIR            man documentation in DIR [PREFIX/man]
19633965Sjdp  --srcdir=DIR            find the sources in DIR [configure dir or ..]
19733965Sjdp  --program-prefix=PREFIX prepend PREFIX to installed program names
19833965Sjdp  --program-suffix=SUFFIX append SUFFIX to installed program names
19933965Sjdp  --program-transform-name=PROGRAM
20033965Sjdp                          run sed PROGRAM on installed program names
20133965SjdpEOF
20233965Sjdp    cat << EOF
20333965SjdpHost type:
20433965Sjdp  --build=BUILD           configure for building on BUILD [BUILD=HOST]
20533965Sjdp  --host=HOST             configure for HOST [guessed]
20633965Sjdp  --target=TARGET         configure for TARGET [TARGET=HOST]
20733965SjdpFeatures and packages:
20833965Sjdp  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
20933965Sjdp  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
21033965Sjdp  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
21133965Sjdp  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
21233965Sjdp  --x-includes=DIR        X include files are in DIR
21333965Sjdp  --x-libraries=DIR       X library files are in DIR
21433965SjdpEOF
21533965Sjdp    if test -n "$ac_help"; then
21633965Sjdp      echo "--enable and --with options recognized:$ac_help"
21733965Sjdp    fi
21833965Sjdp    exit 0 ;;
21933965Sjdp
22033965Sjdp  -host | --host | --hos | --ho)
22133965Sjdp    ac_prev=host ;;
22233965Sjdp  -host=* | --host=* | --hos=* | --ho=*)
22333965Sjdp    host="$ac_optarg" ;;
22433965Sjdp
22533965Sjdp  -includedir | --includedir | --includedi | --included | --include \
22633965Sjdp  | --includ | --inclu | --incl | --inc)
22733965Sjdp    ac_prev=includedir ;;
22833965Sjdp  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
22933965Sjdp  | --includ=* | --inclu=* | --incl=* | --inc=*)
23033965Sjdp    includedir="$ac_optarg" ;;
23133965Sjdp
23233965Sjdp  -infodir | --infodir | --infodi | --infod | --info | --inf)
23333965Sjdp    ac_prev=infodir ;;
23433965Sjdp  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
23533965Sjdp    infodir="$ac_optarg" ;;
23633965Sjdp
23733965Sjdp  -libdir | --libdir | --libdi | --libd)
23833965Sjdp    ac_prev=libdir ;;
23933965Sjdp  -libdir=* | --libdir=* | --libdi=* | --libd=*)
24033965Sjdp    libdir="$ac_optarg" ;;
24133965Sjdp
24233965Sjdp  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
24333965Sjdp  | --libexe | --libex | --libe)
24433965Sjdp    ac_prev=libexecdir ;;
24533965Sjdp  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
24633965Sjdp  | --libexe=* | --libex=* | --libe=*)
24733965Sjdp    libexecdir="$ac_optarg" ;;
24833965Sjdp
24933965Sjdp  -localstatedir | --localstatedir | --localstatedi | --localstated \
25033965Sjdp  | --localstate | --localstat | --localsta | --localst \
25133965Sjdp  | --locals | --local | --loca | --loc | --lo)
25233965Sjdp    ac_prev=localstatedir ;;
25333965Sjdp  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
25433965Sjdp  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
25533965Sjdp  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
25633965Sjdp    localstatedir="$ac_optarg" ;;
25733965Sjdp
25833965Sjdp  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
25933965Sjdp    ac_prev=mandir ;;
26033965Sjdp  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
26133965Sjdp    mandir="$ac_optarg" ;;
26233965Sjdp
26333965Sjdp  -nfp | --nfp | --nf)
26433965Sjdp    # Obsolete; use --without-fp.
26533965Sjdp    with_fp=no ;;
26633965Sjdp
26733965Sjdp  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
26833965Sjdp  | --no-cr | --no-c)
26933965Sjdp    no_create=yes ;;
27033965Sjdp
27133965Sjdp  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
27233965Sjdp  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
27333965Sjdp    no_recursion=yes ;;
27433965Sjdp
27533965Sjdp  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
27633965Sjdp  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
27733965Sjdp  | --oldin | --oldi | --old | --ol | --o)
27833965Sjdp    ac_prev=oldincludedir ;;
27933965Sjdp  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
28033965Sjdp  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
28133965Sjdp  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
28233965Sjdp    oldincludedir="$ac_optarg" ;;
28333965Sjdp
28433965Sjdp  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28533965Sjdp    ac_prev=prefix ;;
28633965Sjdp  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28733965Sjdp    prefix="$ac_optarg" ;;
28833965Sjdp
28933965Sjdp  -program-prefix | --program-prefix | --program-prefi | --program-pref \
29033965Sjdp  | --program-pre | --program-pr | --program-p)
29133965Sjdp    ac_prev=program_prefix ;;
29233965Sjdp  -program-prefix=* | --program-prefix=* | --program-prefi=* \
29333965Sjdp  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
29433965Sjdp    program_prefix="$ac_optarg" ;;
29533965Sjdp
29633965Sjdp  -program-suffix | --program-suffix | --program-suffi | --program-suff \
29733965Sjdp  | --program-suf | --program-su | --program-s)
29833965Sjdp    ac_prev=program_suffix ;;
29933965Sjdp  -program-suffix=* | --program-suffix=* | --program-suffi=* \
30033965Sjdp  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
30133965Sjdp    program_suffix="$ac_optarg" ;;
30233965Sjdp
30333965Sjdp  -program-transform-name | --program-transform-name \
30433965Sjdp  | --program-transform-nam | --program-transform-na \
30533965Sjdp  | --program-transform-n | --program-transform- \
30633965Sjdp  | --program-transform | --program-transfor \
30733965Sjdp  | --program-transfo | --program-transf \
30833965Sjdp  | --program-trans | --program-tran \
30933965Sjdp  | --progr-tra | --program-tr | --program-t)
31033965Sjdp    ac_prev=program_transform_name ;;
31133965Sjdp  -program-transform-name=* | --program-transform-name=* \
31233965Sjdp  | --program-transform-nam=* | --program-transform-na=* \
31333965Sjdp  | --program-transform-n=* | --program-transform-=* \
31433965Sjdp  | --program-transform=* | --program-transfor=* \
31533965Sjdp  | --program-transfo=* | --program-transf=* \
31633965Sjdp  | --program-trans=* | --program-tran=* \
31733965Sjdp  | --progr-tra=* | --program-tr=* | --program-t=*)
31833965Sjdp    program_transform_name="$ac_optarg" ;;
31933965Sjdp
32033965Sjdp  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32133965Sjdp  | -silent | --silent | --silen | --sile | --sil)
32233965Sjdp    silent=yes ;;
32333965Sjdp
32433965Sjdp  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
32533965Sjdp    ac_prev=sbindir ;;
32633965Sjdp  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
32733965Sjdp  | --sbi=* | --sb=*)
32833965Sjdp    sbindir="$ac_optarg" ;;
32933965Sjdp
33033965Sjdp  -sharedstatedir | --sharedstatedir | --sharedstatedi \
33133965Sjdp  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
33233965Sjdp  | --sharedst | --shareds | --shared | --share | --shar \
33333965Sjdp  | --sha | --sh)
33433965Sjdp    ac_prev=sharedstatedir ;;
33533965Sjdp  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
33633965Sjdp  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
33733965Sjdp  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
33833965Sjdp  | --sha=* | --sh=*)
33933965Sjdp    sharedstatedir="$ac_optarg" ;;
34033965Sjdp
34133965Sjdp  -site | --site | --sit)
34233965Sjdp    ac_prev=site ;;
34333965Sjdp  -site=* | --site=* | --sit=*)
34433965Sjdp    site="$ac_optarg" ;;
34533965Sjdp
34691041Sobrien  -site-file | --site-file | --site-fil | --site-fi | --site-f)
34791041Sobrien    ac_prev=sitefile ;;
34891041Sobrien  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
34991041Sobrien    sitefile="$ac_optarg" ;;
35091041Sobrien
35133965Sjdp  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35233965Sjdp    ac_prev=srcdir ;;
35333965Sjdp  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35433965Sjdp    srcdir="$ac_optarg" ;;
35533965Sjdp
35633965Sjdp  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
35733965Sjdp  | --syscon | --sysco | --sysc | --sys | --sy)
35833965Sjdp    ac_prev=sysconfdir ;;
35933965Sjdp  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
36033965Sjdp  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
36133965Sjdp    sysconfdir="$ac_optarg" ;;
36233965Sjdp
36333965Sjdp  -target | --target | --targe | --targ | --tar | --ta | --t)
36433965Sjdp    ac_prev=target ;;
36533965Sjdp  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
36633965Sjdp    target="$ac_optarg" ;;
36733965Sjdp
36833965Sjdp  -v | -verbose | --verbose | --verbos | --verbo | --verb)
36933965Sjdp    verbose=yes ;;
37033965Sjdp
37133965Sjdp  -version | --version | --versio | --versi | --vers)
37260484Sobrien    echo "configure generated by autoconf version 2.13"
37333965Sjdp    exit 0 ;;
37433965Sjdp
37533965Sjdp  -with-* | --with-*)
37633965Sjdp    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
37733965Sjdp    # Reject names that are not valid shell variable names.
37833965Sjdp    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
37933965Sjdp      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
38033965Sjdp    fi
38133965Sjdp    ac_package=`echo $ac_package| sed 's/-/_/g'`
38233965Sjdp    case "$ac_option" in
38333965Sjdp      *=*) ;;
38433965Sjdp      *) ac_optarg=yes ;;
38533965Sjdp    esac
38633965Sjdp    eval "with_${ac_package}='$ac_optarg'" ;;
38733965Sjdp
38833965Sjdp  -without-* | --without-*)
38933965Sjdp    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
39033965Sjdp    # Reject names that are not valid shell variable names.
39133965Sjdp    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
39233965Sjdp      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
39333965Sjdp    fi
39433965Sjdp    ac_package=`echo $ac_package| sed 's/-/_/g'`
39533965Sjdp    eval "with_${ac_package}=no" ;;
39633965Sjdp
39733965Sjdp  --x)
39833965Sjdp    # Obsolete; use --with-x.
39933965Sjdp    with_x=yes ;;
40033965Sjdp
40133965Sjdp  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
40233965Sjdp  | --x-incl | --x-inc | --x-in | --x-i)
40333965Sjdp    ac_prev=x_includes ;;
40433965Sjdp  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
40533965Sjdp  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
40633965Sjdp    x_includes="$ac_optarg" ;;
40733965Sjdp
40833965Sjdp  -x-libraries | --x-libraries | --x-librarie | --x-librari \
40933965Sjdp  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
41033965Sjdp    ac_prev=x_libraries ;;
41133965Sjdp  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
41233965Sjdp  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
41333965Sjdp    x_libraries="$ac_optarg" ;;
41433965Sjdp
41533965Sjdp  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
41633965Sjdp    ;;
41733965Sjdp
41833965Sjdp  *)
41933965Sjdp    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
42033965Sjdp      echo "configure: warning: $ac_option: invalid host type" 1>&2
42133965Sjdp    fi
42233965Sjdp    if test "x$nonopt" != xNONE; then
42333965Sjdp      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
42433965Sjdp    fi
42533965Sjdp    nonopt="$ac_option"
42633965Sjdp    ;;
42733965Sjdp
42833965Sjdp  esac
42933965Sjdpdone
43033965Sjdp
43133965Sjdpif test -n "$ac_prev"; then
43233965Sjdp  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
43333965Sjdpfi
43433965Sjdp
43533965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
43633965Sjdp
43733965Sjdp# File descriptor usage:
43833965Sjdp# 0 standard input
43933965Sjdp# 1 file creation
44033965Sjdp# 2 errors and warnings
44133965Sjdp# 3 some systems may open it to /dev/tty
44233965Sjdp# 4 used on the Kubota Titan
44333965Sjdp# 6 checking for... messages and results
44433965Sjdp# 5 compiler messages saved in config.log
44533965Sjdpif test "$silent" = yes; then
44633965Sjdp  exec 6>/dev/null
44733965Sjdpelse
44833965Sjdp  exec 6>&1
44933965Sjdpfi
45033965Sjdpexec 5>./config.log
45133965Sjdp
45233965Sjdpecho "\
45333965SjdpThis file contains any messages produced by compilers while
45433965Sjdprunning configure, to aid debugging if configure makes a mistake.
45533965Sjdp" 1>&5
45633965Sjdp
45733965Sjdp# Strip out --no-create and --no-recursion so they do not pile up.
45833965Sjdp# Also quote any args containing shell metacharacters.
45933965Sjdpac_configure_args=
46033965Sjdpfor ac_arg
46133965Sjdpdo
46233965Sjdp  case "$ac_arg" in
46333965Sjdp  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
46433965Sjdp  | --no-cr | --no-c) ;;
46533965Sjdp  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
46633965Sjdp  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
46733965Sjdp  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
46833965Sjdp  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
46933965Sjdp  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
47033965Sjdp  esac
47133965Sjdpdone
47233965Sjdp
47333965Sjdp# NLS nuisances.
47433965Sjdp# Only set these to C if already set.  These must not be set unconditionally
47533965Sjdp# because not all systems understand e.g. LANG=C (notably SCO).
47633965Sjdp# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
47733965Sjdp# Non-C LC_CTYPE values break the ctype check.
47833965Sjdpif test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
47933965Sjdpif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
48033965Sjdpif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
48133965Sjdpif test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
48233965Sjdp
48333965Sjdp# confdefs.h avoids OS command line length limits that DEFS can exceed.
48433965Sjdprm -rf conftest* confdefs.h
48533965Sjdp# AIX cpp loses on an empty file, so make sure it contains at least a newline.
48633965Sjdpecho > confdefs.h
48733965Sjdp
48833965Sjdp# A filename unique to this package, relative to the directory that
48933965Sjdp# configure is in, which we can look for to find out if srcdir is correct.
49033965Sjdpac_unique_file=libbfd.c
49133965Sjdp
49233965Sjdp# Find the source files, if location was not specified.
49333965Sjdpif test -z "$srcdir"; then
49433965Sjdp  ac_srcdir_defaulted=yes
49533965Sjdp  # Try the directory containing this script, then its parent.
49633965Sjdp  ac_prog=$0
49733965Sjdp  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
49833965Sjdp  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
49933965Sjdp  srcdir=$ac_confdir
50033965Sjdp  if test ! -r $srcdir/$ac_unique_file; then
50133965Sjdp    srcdir=..
50233965Sjdp  fi
50333965Sjdpelse
50433965Sjdp  ac_srcdir_defaulted=no
50533965Sjdpfi
50633965Sjdpif test ! -r $srcdir/$ac_unique_file; then
50733965Sjdp  if test "$ac_srcdir_defaulted" = yes; then
50833965Sjdp    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
50933965Sjdp  else
51033965Sjdp    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
51133965Sjdp  fi
51233965Sjdpfi
51333965Sjdpsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
51433965Sjdp
51533965Sjdp# Prefer explicitly selected file to automatically selected ones.
51691041Sobrienif test -z "$sitefile"; then
51791041Sobrien  if test -z "$CONFIG_SITE"; then
51891041Sobrien    if test "x$prefix" != xNONE; then
51991041Sobrien      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
52091041Sobrien    else
52191041Sobrien      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
52291041Sobrien    fi
52333965Sjdp  fi
52491041Sobrienelse
52591041Sobrien  CONFIG_SITE="$sitefile"
52633965Sjdpfi
52733965Sjdpfor ac_site_file in $CONFIG_SITE; do
52833965Sjdp  if test -r "$ac_site_file"; then
52933965Sjdp    echo "loading site script $ac_site_file"
53033965Sjdp    . "$ac_site_file"
53133965Sjdp  fi
53233965Sjdpdone
53333965Sjdp
53433965Sjdpif test -r "$cache_file"; then
53533965Sjdp  echo "loading cache $cache_file"
53633965Sjdp  . $cache_file
53733965Sjdpelse
53833965Sjdp  echo "creating cache $cache_file"
53933965Sjdp  > $cache_file
54033965Sjdpfi
54133965Sjdp
54233965Sjdpac_ext=c
54333965Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
54433965Sjdpac_cpp='$CPP $CPPFLAGS'
54533965Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
54660484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
54733965Sjdpcross_compiling=$ac_cv_prog_cc_cross
54833965Sjdp
54960484Sobrienac_exeext=
55060484Sobrienac_objext=o
55133965Sjdpif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
55233965Sjdp  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
55333965Sjdp  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
55433965Sjdp    ac_n= ac_c='
55533965Sjdp' ac_t='	'
55633965Sjdp  else
55733965Sjdp    ac_n=-n ac_c= ac_t=
55833965Sjdp  fi
55933965Sjdpelse
56033965Sjdp  ac_n= ac_c='\c' ac_t=
56133965Sjdpfi
56233965Sjdp
56377298Sobrienecho $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
56491041Sobrienecho "configure:565: checking for Cygwin environment" >&5
56577298Sobrienif eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
56677298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
56777298Sobrienelse
56877298Sobrien  cat > conftest.$ac_ext <<EOF
56991041Sobrien#line 570 "configure"
57077298Sobrien#include "confdefs.h"
57133965Sjdp
57277298Sobrienint main() {
57333965Sjdp
57477298Sobrien#ifndef __CYGWIN__
57577298Sobrien#define __CYGWIN__ __CYGWIN32__
57677298Sobrien#endif
57777298Sobrienreturn __CYGWIN__;
57877298Sobrien; return 0; }
57977298SobrienEOF
58091041Sobrienif { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
58177298Sobrien  rm -rf conftest*
58277298Sobrien  ac_cv_cygwin=yes
58377298Sobrienelse
58477298Sobrien  echo "configure: failed program was:" >&5
58577298Sobrien  cat conftest.$ac_ext >&5
58677298Sobrien  rm -rf conftest*
58777298Sobrien  ac_cv_cygwin=no
58877298Sobrienfi
58977298Sobrienrm -f conftest*
59077298Sobrienrm -f conftest*
59177298Sobrienfi
59277298Sobrien
59377298Sobrienecho "$ac_t""$ac_cv_cygwin" 1>&6
59477298SobrienCYGWIN=
59577298Sobrientest "$ac_cv_cygwin" = yes && CYGWIN=yes
59677298Sobrienecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
59791041Sobrienecho "configure:598: checking for mingw32 environment" >&5
59877298Sobrienif eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
59977298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
60077298Sobrienelse
60177298Sobrien  cat > conftest.$ac_ext <<EOF
60291041Sobrien#line 603 "configure"
60377298Sobrien#include "confdefs.h"
60477298Sobrien
60577298Sobrienint main() {
60677298Sobrienreturn __MINGW32__;
60777298Sobrien; return 0; }
60877298SobrienEOF
60991041Sobrienif { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
61077298Sobrien  rm -rf conftest*
61177298Sobrien  ac_cv_mingw32=yes
61277298Sobrienelse
61377298Sobrien  echo "configure: failed program was:" >&5
61477298Sobrien  cat conftest.$ac_ext >&5
61577298Sobrien  rm -rf conftest*
61677298Sobrien  ac_cv_mingw32=no
61777298Sobrienfi
61877298Sobrienrm -f conftest*
61977298Sobrienrm -f conftest*
62077298Sobrienfi
62177298Sobrien
62277298Sobrienecho "$ac_t""$ac_cv_mingw32" 1>&6
62377298SobrienMINGW32=
62477298Sobrientest "$ac_cv_mingw32" = yes && MINGW32=yes
62577298Sobrien
62677298Sobrien
62733965Sjdpac_aux_dir=
62838889Sjdpfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
62933965Sjdp  if test -f $ac_dir/install-sh; then
63033965Sjdp    ac_aux_dir=$ac_dir
63133965Sjdp    ac_install_sh="$ac_aux_dir/install-sh -c"
63233965Sjdp    break
63333965Sjdp  elif test -f $ac_dir/install.sh; then
63433965Sjdp    ac_aux_dir=$ac_dir
63533965Sjdp    ac_install_sh="$ac_aux_dir/install.sh -c"
63633965Sjdp    break
63733965Sjdp  fi
63833965Sjdpdone
63933965Sjdpif test -z "$ac_aux_dir"; then
64038889Sjdp  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
64133965Sjdpfi
64233965Sjdpac_config_guess=$ac_aux_dir/config.guess
64333965Sjdpac_config_sub=$ac_aux_dir/config.sub
64433965Sjdpac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
64533965Sjdp
64633965Sjdp
64733965Sjdp# Do some error checking and defaulting for the host and target type.
64833965Sjdp# The inputs are:
64933965Sjdp#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
65033965Sjdp#
65133965Sjdp# The rules are:
65233965Sjdp# 1. You are not allowed to specify --host, --target, and nonopt at the
65333965Sjdp#    same time.
65433965Sjdp# 2. Host defaults to nonopt.
65533965Sjdp# 3. If nonopt is not specified, then host defaults to the current host,
65633965Sjdp#    as determined by config.guess.
65733965Sjdp# 4. Target and build default to nonopt.
65833965Sjdp# 5. If nonopt is not specified, then target and build default to host.
65933965Sjdp
66033965Sjdp# The aliases save the names the user supplied, while $host etc.
66133965Sjdp# will get canonicalized.
66233965Sjdpcase $host---$target---$nonopt in
66333965SjdpNONE---*---* | *---NONE---* | *---*---NONE) ;;
66433965Sjdp*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
66533965Sjdpesac
66633965Sjdp
66733965Sjdp
66833965Sjdp# Make sure we can run config.sub.
66938889Sjdpif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
67033965Sjdpelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
67133965Sjdpfi
67233965Sjdp
67333965Sjdpecho $ac_n "checking host system type""... $ac_c" 1>&6
67491041Sobrienecho "configure:675: checking host system type" >&5
67533965Sjdp
67633965Sjdphost_alias=$host
67733965Sjdpcase "$host_alias" in
67833965SjdpNONE)
67933965Sjdp  case $nonopt in
68033965Sjdp  NONE)
68138889Sjdp    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
68233965Sjdp    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
68333965Sjdp    fi ;;
68433965Sjdp  *) host_alias=$nonopt ;;
68533965Sjdp  esac ;;
68633965Sjdpesac
68733965Sjdp
68838889Sjdphost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
68933965Sjdphost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
69033965Sjdphost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
69133965Sjdphost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
69233965Sjdpecho "$ac_t""$host" 1>&6
69333965Sjdp
69433965Sjdpecho $ac_n "checking target system type""... $ac_c" 1>&6
69591041Sobrienecho "configure:696: checking target system type" >&5
69633965Sjdp
69733965Sjdptarget_alias=$target
69833965Sjdpcase "$target_alias" in
69933965SjdpNONE)
70033965Sjdp  case $nonopt in
70133965Sjdp  NONE) target_alias=$host_alias ;;
70233965Sjdp  *) target_alias=$nonopt ;;
70333965Sjdp  esac ;;
70433965Sjdpesac
70533965Sjdp
70638889Sjdptarget=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
70733965Sjdptarget_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
70833965Sjdptarget_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
70933965Sjdptarget_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
71033965Sjdpecho "$ac_t""$target" 1>&6
71133965Sjdp
71233965Sjdpecho $ac_n "checking build system type""... $ac_c" 1>&6
71391041Sobrienecho "configure:714: checking build system type" >&5
71433965Sjdp
71533965Sjdpbuild_alias=$build
71633965Sjdpcase "$build_alias" in
71733965SjdpNONE)
71833965Sjdp  case $nonopt in
71933965Sjdp  NONE) build_alias=$host_alias ;;
72033965Sjdp  *) build_alias=$nonopt ;;
72133965Sjdp  esac ;;
72233965Sjdpesac
72333965Sjdp
72438889Sjdpbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
72533965Sjdpbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
72633965Sjdpbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
72733965Sjdpbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
72833965Sjdpecho "$ac_t""$build" 1>&6
72933965Sjdp
73033965Sjdptest "$host_alias" != "$target_alias" &&
73133965Sjdp  test "$program_prefix$program_suffix$program_transform_name" = \
73233965Sjdp    NONENONEs,x,x, &&
73333965Sjdp  program_prefix=${target_alias}-
73433965Sjdp
73578828Sobrien# Extract the first word of "gcc", so it can be a program name with args.
73678828Sobrienset dummy gcc; ac_word=$2
73778828Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
73891041Sobrienecho "configure:739: checking for $ac_word" >&5
73978828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
74078828Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
74178828Sobrienelse
74278828Sobrien  if test -n "$CC"; then
74378828Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
74478828Sobrienelse
74578828Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
74678828Sobrien  ac_dummy="$PATH"
74778828Sobrien  for ac_dir in $ac_dummy; do
74878828Sobrien    test -z "$ac_dir" && ac_dir=.
74978828Sobrien    if test -f $ac_dir/$ac_word; then
75078828Sobrien      ac_cv_prog_CC="gcc"
75178828Sobrien      break
75278828Sobrien    fi
75378828Sobrien  done
75478828Sobrien  IFS="$ac_save_ifs"
75578828Sobrienfi
75678828Sobrienfi
75778828SobrienCC="$ac_cv_prog_CC"
75878828Sobrienif test -n "$CC"; then
75978828Sobrien  echo "$ac_t""$CC" 1>&6
76078828Sobrienelse
76178828Sobrien  echo "$ac_t""no" 1>&6
76278828Sobrienfi
76333965Sjdp
76478828Sobrienif test -z "$CC"; then
76578828Sobrien  # Extract the first word of "cc", so it can be a program name with args.
76678828Sobrienset dummy cc; ac_word=$2
76778828Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
76891041Sobrienecho "configure:769: checking for $ac_word" >&5
76978828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
77033965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
77133965Sjdpelse
77278828Sobrien  if test -n "$CC"; then
77378828Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
77478828Sobrienelse
77578828Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
77678828Sobrien  ac_prog_rejected=no
77778828Sobrien  ac_dummy="$PATH"
77878828Sobrien  for ac_dir in $ac_dummy; do
77978828Sobrien    test -z "$ac_dir" && ac_dir=.
78078828Sobrien    if test -f $ac_dir/$ac_word; then
78178828Sobrien      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
78278828Sobrien        ac_prog_rejected=yes
78378828Sobrien	continue
78478828Sobrien      fi
78578828Sobrien      ac_cv_prog_CC="cc"
78678828Sobrien      break
78778828Sobrien    fi
78878828Sobrien  done
78978828Sobrien  IFS="$ac_save_ifs"
79078828Sobrienif test $ac_prog_rejected = yes; then
79178828Sobrien  # We found a bogon in the path, so make sure we never use it.
79278828Sobrien  set dummy $ac_cv_prog_CC
79378828Sobrien  shift
79478828Sobrien  if test $# -gt 0; then
79578828Sobrien    # We chose a different compiler from the bogus one.
79678828Sobrien    # However, it has the same basename, so the bogon will be chosen
79778828Sobrien    # first if we set CC to just the basename; use the full file name.
79878828Sobrien    shift
79978828Sobrien    set dummy "$ac_dir/$ac_word" "$@"
80078828Sobrien    shift
80178828Sobrien    ac_cv_prog_CC="$@"
80278828Sobrien  fi
80378828Sobrienfi
80478828Sobrienfi
80578828Sobrienfi
80678828SobrienCC="$ac_cv_prog_CC"
80778828Sobrienif test -n "$CC"; then
80878828Sobrien  echo "$ac_t""$CC" 1>&6
80978828Sobrienelse
81078828Sobrien  echo "$ac_t""no" 1>&6
81178828Sobrienfi
81278828Sobrien
81378828Sobrien  if test -z "$CC"; then
81478828Sobrien    case "`uname -s`" in
81578828Sobrien    *win32* | *WIN32*)
81678828Sobrien      # Extract the first word of "cl", so it can be a program name with args.
81778828Sobrienset dummy cl; ac_word=$2
81878828Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
81991041Sobrienecho "configure:820: checking for $ac_word" >&5
82078828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
82178828Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
82278828Sobrienelse
82378828Sobrien  if test -n "$CC"; then
82478828Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
82578828Sobrienelse
82678828Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
82778828Sobrien  ac_dummy="$PATH"
82878828Sobrien  for ac_dir in $ac_dummy; do
82978828Sobrien    test -z "$ac_dir" && ac_dir=.
83078828Sobrien    if test -f $ac_dir/$ac_word; then
83178828Sobrien      ac_cv_prog_CC="cl"
83278828Sobrien      break
83378828Sobrien    fi
83478828Sobrien  done
83578828Sobrien  IFS="$ac_save_ifs"
83678828Sobrienfi
83778828Sobrienfi
83878828SobrienCC="$ac_cv_prog_CC"
83978828Sobrienif test -n "$CC"; then
84078828Sobrien  echo "$ac_t""$CC" 1>&6
84178828Sobrienelse
84278828Sobrien  echo "$ac_t""no" 1>&6
84378828Sobrienfi
84478828Sobrien ;;
84578828Sobrien    esac
84678828Sobrien  fi
84778828Sobrien  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
84878828Sobrienfi
84978828Sobrien
85078828Sobrienecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
85191041Sobrienecho "configure:852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
85278828Sobrien
85378828Sobrienac_ext=c
85478828Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
85578828Sobrienac_cpp='$CPP $CPPFLAGS'
85678828Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
85778828Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
85878828Sobriencross_compiling=$ac_cv_prog_cc_cross
85978828Sobrien
86078828Sobriencat > conftest.$ac_ext << EOF
86178828Sobrien
86291041Sobrien#line 863 "configure"
86333965Sjdp#include "confdefs.h"
86460484Sobrien
86578828Sobrienmain(){return(0);}
86633965SjdpEOF
86791041Sobrienif { (eval echo configure:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
86878828Sobrien  ac_cv_prog_cc_works=yes
86978828Sobrien  # If we can't run a trivial program, we are probably using a cross compiler.
87078828Sobrien  if (./conftest; exit) 2>/dev/null; then
87178828Sobrien    ac_cv_prog_cc_cross=no
87278828Sobrien  else
87378828Sobrien    ac_cv_prog_cc_cross=yes
87478828Sobrien  fi
87533965Sjdpelse
87633965Sjdp  echo "configure: failed program was:" >&5
87733965Sjdp  cat conftest.$ac_ext >&5
87878828Sobrien  ac_cv_prog_cc_works=no
87933965Sjdpfi
88078828Sobrienrm -fr conftest*
88178828Sobrienac_ext=c
88278828Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
88378828Sobrienac_cpp='$CPP $CPPFLAGS'
88478828Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
88578828Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
88678828Sobriencross_compiling=$ac_cv_prog_cc_cross
88778828Sobrien
88878828Sobrienecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
88978828Sobrienif test $ac_cv_prog_cc_works = no; then
89078828Sobrien  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
89178828Sobrienfi
89278828Sobrienecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
89391041Sobrienecho "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
89478828Sobrienecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
89578828Sobriencross_compiling=$ac_cv_prog_cc_cross
89678828Sobrien
89778828Sobrienecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
89891041Sobrienecho "configure:899: checking whether we are using GNU C" >&5
89978828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
90078828Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
90178828Sobrienelse
90278828Sobrien  cat > conftest.c <<EOF
90378828Sobrien#ifdef __GNUC__
90478828Sobrien  yes;
90578828Sobrien#endif
90678828SobrienEOF
90791041Sobrienif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
90878828Sobrien  ac_cv_prog_gcc=yes
90978828Sobrienelse
91078828Sobrien  ac_cv_prog_gcc=no
91178828Sobrienfi
91278828Sobrienfi
91378828Sobrien
91478828Sobrienecho "$ac_t""$ac_cv_prog_gcc" 1>&6
91578828Sobrien
91678828Sobrienif test $ac_cv_prog_gcc = yes; then
91778828Sobrien  GCC=yes
91878828Sobrienelse
91978828Sobrien  GCC=
92078828Sobrienfi
92178828Sobrien
92278828Sobrienac_test_CFLAGS="${CFLAGS+set}"
92378828Sobrienac_save_CFLAGS="$CFLAGS"
92478828SobrienCFLAGS=
92578828Sobrienecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
92691041Sobrienecho "configure:927: checking whether ${CC-cc} accepts -g" >&5
92778828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
92878828Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
92978828Sobrienelse
93078828Sobrien  echo 'void f(){}' > conftest.c
93178828Sobrienif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
93278828Sobrien  ac_cv_prog_cc_g=yes
93378828Sobrienelse
93478828Sobrien  ac_cv_prog_cc_g=no
93578828Sobrienfi
93633965Sjdprm -f conftest*
93733965Sjdp
93833965Sjdpfi
93978828Sobrien
94078828Sobrienecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
94178828Sobrienif test "$ac_test_CFLAGS" = set; then
94278828Sobrien  CFLAGS="$ac_save_CFLAGS"
94378828Sobrienelif test $ac_cv_prog_cc_g = yes; then
94478828Sobrien  if test "$GCC" = yes; then
94578828Sobrien    CFLAGS="-g -O2"
94678828Sobrien  else
94778828Sobrien    CFLAGS="-g"
94878828Sobrien  fi
94978828Sobrienelse
95078828Sobrien  if test "$GCC" = yes; then
95178828Sobrien    CFLAGS="-O2"
95278828Sobrien  else
95378828Sobrien    CFLAGS=
95478828Sobrien  fi
95578828Sobrienfi
95678828Sobrien
95778828Sobrienecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
95891041Sobrienecho "configure:959: checking for POSIXized ISC" >&5
95978828Sobrienif test -d /etc/conf/kconfig.d &&
96078828Sobrien  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
96178828Sobrienthen
96233965Sjdp  echo "$ac_t""yes" 1>&6
96378828Sobrien  ISC=yes # If later tests want to check for ISC.
96478828Sobrien  cat >> confdefs.h <<\EOF
96578828Sobrien#define _POSIX_SOURCE 1
96678828SobrienEOF
96778828Sobrien
96878828Sobrien  if test "$GCC" = yes; then
96978828Sobrien    CC="$CC -posix"
97078828Sobrien  else
97178828Sobrien    CC="$CC -Xp"
97278828Sobrien  fi
97333965Sjdpelse
97433965Sjdp  echo "$ac_t""no" 1>&6
97578828Sobrien  ISC=
97633965Sjdpfi
97733965Sjdp
97833965Sjdp
97938889Sjdp# Find a good install program.  We prefer a C program (faster),
98038889Sjdp# so one script is as good as another.  But avoid the broken or
98138889Sjdp# incompatible versions:
98238889Sjdp# SysV /etc/install, /usr/sbin/install
98338889Sjdp# SunOS /usr/etc/install
98438889Sjdp# IRIX /sbin/install
98538889Sjdp# AIX /bin/install
98638889Sjdp# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
98738889Sjdp# AFS /usr/afsws/bin/install, which mishandles nonexistent args
98838889Sjdp# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
98938889Sjdp# ./install, which can be erroneously created by make from ./install.sh.
99038889Sjdpecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
99191041Sobrienecho "configure:992: checking for a BSD compatible install" >&5
99238889Sjdpif test -z "$INSTALL"; then
99338889Sjdpif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
99438889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
99538889Sjdpelse
99660484Sobrien    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
99738889Sjdp  for ac_dir in $PATH; do
99838889Sjdp    # Account for people who put trailing slashes in PATH elements.
99938889Sjdp    case "$ac_dir/" in
100038889Sjdp    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
100138889Sjdp    *)
100238889Sjdp      # OSF1 and SCO ODT 3.0 have their own names for install.
100338889Sjdp      # Don't use installbsd from OSF since it installs stuff as root
100438889Sjdp      # by default.
100538889Sjdp      for ac_prog in ginstall scoinst install; do
100638889Sjdp        if test -f $ac_dir/$ac_prog; then
100738889Sjdp	  if test $ac_prog = install &&
100838889Sjdp            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
100938889Sjdp	    # AIX install.  It has an incompatible calling convention.
101038889Sjdp	    :
101138889Sjdp	  else
101238889Sjdp	    ac_cv_path_install="$ac_dir/$ac_prog -c"
101338889Sjdp	    break 2
101438889Sjdp	  fi
101538889Sjdp	fi
101638889Sjdp      done
101738889Sjdp      ;;
101838889Sjdp    esac
101938889Sjdp  done
102038889Sjdp  IFS="$ac_save_IFS"
102133965Sjdp
102238889Sjdpfi
102338889Sjdp  if test "${ac_cv_path_install+set}" = set; then
102438889Sjdp    INSTALL="$ac_cv_path_install"
102538889Sjdp  else
102638889Sjdp    # As a last resort, use the slow shell script.  We don't cache a
102738889Sjdp    # path for INSTALL within a source directory, because that will
102838889Sjdp    # break other packages using the cache if that directory is
102938889Sjdp    # removed, or if the path is relative.
103038889Sjdp    INSTALL="$ac_install_sh"
103138889Sjdp  fi
103238889Sjdpfi
103338889Sjdpecho "$ac_t""$INSTALL" 1>&6
103433965Sjdp
103538889Sjdp# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
103638889Sjdp# It thinks the first close brace ends the variable substitution.
103738889Sjdptest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
103838889Sjdp
103960484Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
104060484Sobrien
104138889Sjdptest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
104238889Sjdp
104338889Sjdpecho $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
104491041Sobrienecho "configure:1045: checking whether build environment is sane" >&5
104538889Sjdp# Just in case
104638889Sjdpsleep 1
104738889Sjdpecho timestamp > conftestfile
104838889Sjdp# Do `set' in a subshell so we don't clobber the current shell's
104938889Sjdp# arguments.  Must try -L first in case configure is actually a
105038889Sjdp# symlink; some systems play weird games with the mod time of symlinks
105138889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing
105238889Sjdp# directory).
105338889Sjdpif (
105438889Sjdp   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
105538889Sjdp   if test "$*" = "X"; then
105638889Sjdp      # -L didn't work.
105738889Sjdp      set X `ls -t $srcdir/configure conftestfile`
105838889Sjdp   fi
105938889Sjdp   if test "$*" != "X $srcdir/configure conftestfile" \
106038889Sjdp      && test "$*" != "X conftestfile $srcdir/configure"; then
106138889Sjdp
106238889Sjdp      # If neither matched, then we have a broken ls.  This can happen
106338889Sjdp      # if, for instance, CONFIG_SHELL is bash and it inherits a
106438889Sjdp      # broken ls alias from the environment.  This has actually
106538889Sjdp      # happened.  Such a system could not be considered "sane".
106638889Sjdp      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
106738889Sjdpalias in your environment" 1>&2; exit 1; }
106838889Sjdp   fi
106938889Sjdp
107038889Sjdp   test "$2" = conftestfile
107138889Sjdp   )
107238889Sjdpthen
107338889Sjdp   # Ok.
107438889Sjdp   :
107538889Sjdpelse
107638889Sjdp   { echo "configure: error: newly created file is older than distributed files!
107738889SjdpCheck your system clock" 1>&2; exit 1; }
107838889Sjdpfi
107938889Sjdprm -f conftest*
108038889Sjdpecho "$ac_t""yes" 1>&6
108138889Sjdpif test "$program_transform_name" = s,x,x,; then
108238889Sjdp  program_transform_name=
108338889Sjdpelse
108438889Sjdp  # Double any \ or $.  echo might interpret backslashes.
108538889Sjdp  cat <<\EOF_SED > conftestsed
108638889Sjdps,\\,\\\\,g; s,\$,$$,g
108738889SjdpEOF_SED
108838889Sjdp  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
108938889Sjdp  rm -f conftestsed
109038889Sjdpfi
109138889Sjdptest "$program_prefix" != NONE &&
109238889Sjdp  program_transform_name="s,^,${program_prefix},; $program_transform_name"
109338889Sjdp# Use a double $ so make ignores it.
109438889Sjdptest "$program_suffix" != NONE &&
109538889Sjdp  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
109638889Sjdp
109738889Sjdp# sed with no file args requires a program.
109838889Sjdptest "$program_transform_name" = "" && program_transform_name="s,x,x,"
109938889Sjdp
110038889Sjdpecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
110191041Sobrienecho "configure:1102: checking whether ${MAKE-make} sets \${MAKE}" >&5
110238889Sjdpset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
110338889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
110438889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
110538889Sjdpelse
110638889Sjdp  cat > conftestmake <<\EOF
110738889Sjdpall:
110838889Sjdp	@echo 'ac_maketemp="${MAKE}"'
110938889SjdpEOF
111038889Sjdp# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
111138889Sjdpeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
111238889Sjdpif test -n "$ac_maketemp"; then
111338889Sjdp  eval ac_cv_prog_make_${ac_make}_set=yes
111438889Sjdpelse
111538889Sjdp  eval ac_cv_prog_make_${ac_make}_set=no
111638889Sjdpfi
111738889Sjdprm -f conftestmake
111838889Sjdpfi
111938889Sjdpif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
112038889Sjdp  echo "$ac_t""yes" 1>&6
112138889Sjdp  SET_MAKE=
112238889Sjdpelse
112338889Sjdp  echo "$ac_t""no" 1>&6
112438889Sjdp  SET_MAKE="MAKE=${MAKE-make}"
112538889Sjdpfi
112638889Sjdp
112738889Sjdp
112838889SjdpPACKAGE=bfd
112938889Sjdp
113089857SobrienVERSION=2.11.93
113138889Sjdp
113238889Sjdpif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
113338889Sjdp  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
113438889Sjdpfi
113538889Sjdpcat >> confdefs.h <<EOF
113638889Sjdp#define PACKAGE "$PACKAGE"
113738889SjdpEOF
113838889Sjdp
113938889Sjdpcat >> confdefs.h <<EOF
114038889Sjdp#define VERSION "$VERSION"
114138889SjdpEOF
114238889Sjdp
114338889Sjdp
114438889Sjdp
114538889Sjdpmissing_dir=`cd $ac_aux_dir && pwd`
114638889Sjdpecho $ac_n "checking for working aclocal""... $ac_c" 1>&6
114791041Sobrienecho "configure:1148: checking for working aclocal" >&5
114838889Sjdp# Run test in a subshell; some versions of sh will print an error if
114938889Sjdp# an executable is not found, even if stderr is redirected.
115038889Sjdp# Redirect stdin to placate older versions of autoconf.  Sigh.
115138889Sjdpif (aclocal --version) < /dev/null > /dev/null 2>&1; then
115238889Sjdp   ACLOCAL=aclocal
115338889Sjdp   echo "$ac_t""found" 1>&6
115438889Sjdpelse
115538889Sjdp   ACLOCAL="$missing_dir/missing aclocal"
115638889Sjdp   echo "$ac_t""missing" 1>&6
115738889Sjdpfi
115838889Sjdp
115938889Sjdpecho $ac_n "checking for working autoconf""... $ac_c" 1>&6
116091041Sobrienecho "configure:1161: checking for working autoconf" >&5
116138889Sjdp# Run test in a subshell; some versions of sh will print an error if
116238889Sjdp# an executable is not found, even if stderr is redirected.
116338889Sjdp# Redirect stdin to placate older versions of autoconf.  Sigh.
116438889Sjdpif (autoconf --version) < /dev/null > /dev/null 2>&1; then
116538889Sjdp   AUTOCONF=autoconf
116638889Sjdp   echo "$ac_t""found" 1>&6
116738889Sjdpelse
116838889Sjdp   AUTOCONF="$missing_dir/missing autoconf"
116938889Sjdp   echo "$ac_t""missing" 1>&6
117038889Sjdpfi
117138889Sjdp
117238889Sjdpecho $ac_n "checking for working automake""... $ac_c" 1>&6
117391041Sobrienecho "configure:1174: checking for working automake" >&5
117438889Sjdp# Run test in a subshell; some versions of sh will print an error if
117538889Sjdp# an executable is not found, even if stderr is redirected.
117638889Sjdp# Redirect stdin to placate older versions of autoconf.  Sigh.
117738889Sjdpif (automake --version) < /dev/null > /dev/null 2>&1; then
117838889Sjdp   AUTOMAKE=automake
117938889Sjdp   echo "$ac_t""found" 1>&6
118038889Sjdpelse
118138889Sjdp   AUTOMAKE="$missing_dir/missing automake"
118238889Sjdp   echo "$ac_t""missing" 1>&6
118338889Sjdpfi
118438889Sjdp
118538889Sjdpecho $ac_n "checking for working autoheader""... $ac_c" 1>&6
118691041Sobrienecho "configure:1187: checking for working autoheader" >&5
118738889Sjdp# Run test in a subshell; some versions of sh will print an error if
118838889Sjdp# an executable is not found, even if stderr is redirected.
118938889Sjdp# Redirect stdin to placate older versions of autoconf.  Sigh.
119038889Sjdpif (autoheader --version) < /dev/null > /dev/null 2>&1; then
119138889Sjdp   AUTOHEADER=autoheader
119238889Sjdp   echo "$ac_t""found" 1>&6
119338889Sjdpelse
119438889Sjdp   AUTOHEADER="$missing_dir/missing autoheader"
119538889Sjdp   echo "$ac_t""missing" 1>&6
119638889Sjdpfi
119738889Sjdp
119838889Sjdpecho $ac_n "checking for working makeinfo""... $ac_c" 1>&6
119991041Sobrienecho "configure:1200: checking for working makeinfo" >&5
120038889Sjdp# Run test in a subshell; some versions of sh will print an error if
120138889Sjdp# an executable is not found, even if stderr is redirected.
120238889Sjdp# Redirect stdin to placate older versions of autoconf.  Sigh.
120338889Sjdpif (makeinfo --version) < /dev/null > /dev/null 2>&1; then
120438889Sjdp   MAKEINFO=makeinfo
120538889Sjdp   echo "$ac_t""found" 1>&6
120638889Sjdpelse
120738889Sjdp   MAKEINFO="$missing_dir/missing makeinfo"
120838889Sjdp   echo "$ac_t""missing" 1>&6
120938889Sjdpfi
121038889Sjdp
121138889Sjdp
121289857Sobrien# Uncomment the next line to remove the date from the reported bfd version
121389857Sobrien#is_release=y
121438889Sjdp
121589857Sobrienbfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
121689857Sobrien
121789857Sobrienbfd_version_string="\"${VERSION}\""
121889857Sobrienbfd_version_date=`sed -e 's/.*DATE //' < ${srcdir}/version.h`
121989857Sobrienif test x${is_release} = x; then
122089857Sobrien  bfd_version_string="\"${VERSION} ${bfd_version_date}\""
122189857Sobrienfi
122289857Sobrien
122389857Sobrien
122489857Sobrien
122589857Sobrien
122633965Sjdpif test $host != $build; then
122733965Sjdp  ac_tool_prefix=${host_alias}-
122833965Sjdpelse
122933965Sjdp  ac_tool_prefix=
123033965Sjdpfi
123133965Sjdp
123233965Sjdp# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
123333965Sjdpset dummy ${ac_tool_prefix}ar; ac_word=$2
123433965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
123591041Sobrienecho "configure:1236: checking for $ac_word" >&5
123633965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
123733965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
123833965Sjdpelse
123933965Sjdp  if test -n "$AR"; then
124033965Sjdp  ac_cv_prog_AR="$AR" # Let the user override the test.
124133965Sjdpelse
124260484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
124360484Sobrien  ac_dummy="$PATH"
124460484Sobrien  for ac_dir in $ac_dummy; do
124533965Sjdp    test -z "$ac_dir" && ac_dir=.
124633965Sjdp    if test -f $ac_dir/$ac_word; then
124733965Sjdp      ac_cv_prog_AR="${ac_tool_prefix}ar"
124833965Sjdp      break
124933965Sjdp    fi
125033965Sjdp  done
125133965Sjdp  IFS="$ac_save_ifs"
125233965Sjdp  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
125333965Sjdpfi
125433965Sjdpfi
125533965SjdpAR="$ac_cv_prog_AR"
125633965Sjdpif test -n "$AR"; then
125733965Sjdp  echo "$ac_t""$AR" 1>&6
125833965Sjdpelse
125933965Sjdp  echo "$ac_t""no" 1>&6
126033965Sjdpfi
126133965Sjdp
126233965Sjdp
126333965Sjdp
126433965Sjdp# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
126533965Sjdpset dummy ${ac_tool_prefix}ranlib; ac_word=$2
126633965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
126791041Sobrienecho "configure:1268: checking for $ac_word" >&5
126833965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
126933965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
127033965Sjdpelse
127133965Sjdp  if test -n "$RANLIB"; then
127233965Sjdp  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
127333965Sjdpelse
127460484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
127560484Sobrien  ac_dummy="$PATH"
127660484Sobrien  for ac_dir in $ac_dummy; do
127733965Sjdp    test -z "$ac_dir" && ac_dir=.
127833965Sjdp    if test -f $ac_dir/$ac_word; then
127933965Sjdp      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
128033965Sjdp      break
128133965Sjdp    fi
128233965Sjdp  done
128333965Sjdp  IFS="$ac_save_ifs"
128433965Sjdpfi
128533965Sjdpfi
128633965SjdpRANLIB="$ac_cv_prog_RANLIB"
128733965Sjdpif test -n "$RANLIB"; then
128833965Sjdp  echo "$ac_t""$RANLIB" 1>&6
128933965Sjdpelse
129033965Sjdp  echo "$ac_t""no" 1>&6
129133965Sjdpfi
129233965Sjdp
129333965Sjdp
129433965Sjdpif test -z "$ac_cv_prog_RANLIB"; then
129533965Sjdpif test -n "$ac_tool_prefix"; then
129633965Sjdp  # Extract the first word of "ranlib", so it can be a program name with args.
129733965Sjdpset dummy ranlib; ac_word=$2
129833965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
129991041Sobrienecho "configure:1300: checking for $ac_word" >&5
130033965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
130133965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
130233965Sjdpelse
130333965Sjdp  if test -n "$RANLIB"; then
130433965Sjdp  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
130533965Sjdpelse
130660484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
130760484Sobrien  ac_dummy="$PATH"
130860484Sobrien  for ac_dir in $ac_dummy; do
130933965Sjdp    test -z "$ac_dir" && ac_dir=.
131033965Sjdp    if test -f $ac_dir/$ac_word; then
131133965Sjdp      ac_cv_prog_RANLIB="ranlib"
131233965Sjdp      break
131333965Sjdp    fi
131433965Sjdp  done
131533965Sjdp  IFS="$ac_save_ifs"
131633965Sjdp  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
131733965Sjdpfi
131833965Sjdpfi
131933965SjdpRANLIB="$ac_cv_prog_RANLIB"
132033965Sjdpif test -n "$RANLIB"; then
132133965Sjdp  echo "$ac_t""$RANLIB" 1>&6
132233965Sjdpelse
132333965Sjdp  echo "$ac_t""no" 1>&6
132433965Sjdpfi
132533965Sjdp
132633965Sjdpelse
132733965Sjdp  RANLIB=":"
132833965Sjdpfi
132933965Sjdpfi
133033965Sjdp
133138889Sjdp
133238889Sjdp# Check whether --enable-shared or --disable-shared was given.
133338889Sjdpif test "${enable_shared+set}" = set; then
133438889Sjdp  enableval="$enable_shared"
133538889Sjdp  p=${PACKAGE-default}
133689857Sobriencase $enableval in
133738889Sjdpyes) enable_shared=yes ;;
133838889Sjdpno) enable_shared=no ;;
133938889Sjdp*)
134038889Sjdp  enable_shared=no
134138889Sjdp  # Look at the argument we got.  We use all the common list separators.
134238889Sjdp  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
134338889Sjdp  for pkg in $enableval; do
134438889Sjdp    if test "X$pkg" = "X$p"; then
134538889Sjdp      enable_shared=yes
134638889Sjdp    fi
134738889Sjdp  done
134838889Sjdp  IFS="$ac_save_ifs"
134938889Sjdp  ;;
135038889Sjdpesac
135138889Sjdpelse
135238889Sjdp  enable_shared=no
135338889Sjdpfi
135438889Sjdp
135538889Sjdp
135638889Sjdp# Check whether --enable-static or --disable-static was given.
135738889Sjdpif test "${enable_static+set}" = set; then
135838889Sjdp  enableval="$enable_static"
135938889Sjdp  p=${PACKAGE-default}
136089857Sobriencase $enableval in
136138889Sjdpyes) enable_static=yes ;;
136238889Sjdpno) enable_static=no ;;
136338889Sjdp*)
136438889Sjdp  enable_static=no
136538889Sjdp  # Look at the argument we got.  We use all the common list separators.
136638889Sjdp  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
136738889Sjdp  for pkg in $enableval; do
136838889Sjdp    if test "X$pkg" = "X$p"; then
136938889Sjdp      enable_static=yes
137038889Sjdp    fi
137138889Sjdp  done
137238889Sjdp  IFS="$ac_save_ifs"
137338889Sjdp  ;;
137438889Sjdpesac
137538889Sjdpelse
137638889Sjdp  enable_static=yes
137738889Sjdpfi
137838889Sjdp
137960484Sobrien# Check whether --enable-fast-install or --disable-fast-install was given.
138060484Sobrienif test "${enable_fast_install+set}" = set; then
138160484Sobrien  enableval="$enable_fast_install"
138260484Sobrien  p=${PACKAGE-default}
138389857Sobriencase $enableval in
138460484Sobrienyes) enable_fast_install=yes ;;
138560484Sobrienno) enable_fast_install=no ;;
138660484Sobrien*)
138760484Sobrien  enable_fast_install=no
138860484Sobrien  # Look at the argument we got.  We use all the common list separators.
138960484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
139060484Sobrien  for pkg in $enableval; do
139160484Sobrien    if test "X$pkg" = "X$p"; then
139260484Sobrien      enable_fast_install=yes
139360484Sobrien    fi
139460484Sobrien  done
139560484Sobrien  IFS="$ac_save_ifs"
139660484Sobrien  ;;
139760484Sobrienesac
139860484Sobrienelse
139960484Sobrien  enable_fast_install=yes
140060484Sobrienfi
140160484Sobrien
140238889Sjdp# Check whether --with-gnu-ld or --without-gnu-ld was given.
140338889Sjdpif test "${with_gnu_ld+set}" = set; then
140438889Sjdp  withval="$with_gnu_ld"
140538889Sjdp  test "$withval" = no || with_gnu_ld=yes
140638889Sjdpelse
140738889Sjdp  with_gnu_ld=no
140838889Sjdpfi
140938889Sjdp
141038889Sjdpac_prog=ld
141189857Sobrienif test "$GCC" = yes; then
141238889Sjdp  # Check if gcc -print-prog-name=ld gives a path.
141338889Sjdp  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
141491041Sobrienecho "configure:1415: checking for ld used by GCC" >&5
141577298Sobrien  case $host in
141677298Sobrien  *-*-mingw*)
141777298Sobrien    # gcc leaves a trailing carriage return which upsets mingw
141877298Sobrien    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
141977298Sobrien  *)
142077298Sobrien    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
142177298Sobrien  esac
142289857Sobrien  case $ac_prog in
142360484Sobrien    # Accept absolute paths.
142460484Sobrien    [\\/]* | [A-Za-z]:[\\/]*)
142560484Sobrien      re_direlt='/[^/][^/]*/\.\./'
142660484Sobrien      # Canonicalize the path of ld
142760484Sobrien      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
142860484Sobrien      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
142960484Sobrien	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
143060484Sobrien      done
143160484Sobrien      test -z "$LD" && LD="$ac_prog"
143260484Sobrien      ;;
143338889Sjdp  "")
143438889Sjdp    # If it fails, then pretend we aren't using GCC.
143538889Sjdp    ac_prog=ld
143638889Sjdp    ;;
143738889Sjdp  *)
143838889Sjdp    # If it is relative, then search for the first ld in PATH.
143938889Sjdp    with_gnu_ld=unknown
144038889Sjdp    ;;
144138889Sjdp  esac
144238889Sjdpelif test "$with_gnu_ld" = yes; then
144338889Sjdp  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
144491041Sobrienecho "configure:1445: checking for GNU ld" >&5
144538889Sjdpelse
144638889Sjdp  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
144791041Sobrienecho "configure:1448: checking for non-GNU ld" >&5
144838889Sjdpfi
144989857Sobrienif eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
145038889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
145138889Sjdpelse
145238889Sjdp  if test -z "$LD"; then
145360484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
145438889Sjdp  for ac_dir in $PATH; do
145538889Sjdp    test -z "$ac_dir" && ac_dir=.
145660484Sobrien    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
145789857Sobrien      lt_cv_path_LD="$ac_dir/$ac_prog"
145838889Sjdp      # Check to see if the program is GNU ld.  I'd rather use --version,
145938889Sjdp      # but apparently some GNU ld's only accept -v.
146038889Sjdp      # Break only if it was the GNU/non-GNU ld that we prefer.
146189857Sobrien      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
146238889Sjdp	test "$with_gnu_ld" != no && break
146338889Sjdp      else
146460484Sobrien	test "$with_gnu_ld" != yes && break
146538889Sjdp      fi
146638889Sjdp    fi
146738889Sjdp  done
146838889Sjdp  IFS="$ac_save_ifs"
146938889Sjdpelse
147089857Sobrien  lt_cv_path_LD="$LD" # Let the user override the test with a path.
147138889Sjdpfi
147238889Sjdpfi
147338889Sjdp
147489857SobrienLD="$lt_cv_path_LD"
147538889Sjdpif test -n "$LD"; then
147638889Sjdp  echo "$ac_t""$LD" 1>&6
147738889Sjdpelse
147838889Sjdp  echo "$ac_t""no" 1>&6
147938889Sjdpfi
148038889Sjdptest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
148138889Sjdpecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
148291041Sobrienecho "configure:1483: checking if the linker ($LD) is GNU ld" >&5
148389857Sobrienif eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
148438889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
148538889Sjdpelse
148638889Sjdp  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
148738889Sjdpif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
148889857Sobrien  lt_cv_prog_gnu_ld=yes
148938889Sjdpelse
149089857Sobrien  lt_cv_prog_gnu_ld=no
149138889Sjdpfi
149238889Sjdpfi
149338889Sjdp
149489857Sobrienecho "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
149589857Sobrienwith_gnu_ld=$lt_cv_prog_gnu_ld
149638889Sjdp
149738889Sjdp
149877298Sobrienecho $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
149991041Sobrienecho "configure:1500: checking for $LD option to reload object files" >&5
150077298Sobrienif eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
150177298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
150277298Sobrienelse
150377298Sobrien  lt_cv_ld_reload_flag='-r'
150477298Sobrienfi
150577298Sobrien
150677298Sobrienecho "$ac_t""$lt_cv_ld_reload_flag" 1>&6
150777298Sobrienreload_flag=$lt_cv_ld_reload_flag
150877298Sobrientest -n "$reload_flag" && reload_flag=" $reload_flag"
150977298Sobrien
151038889Sjdpecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
151191041Sobrienecho "configure:1512: checking for BSD-compatible nm" >&5
151289857Sobrienif eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
151338889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
151438889Sjdpelse
151560484Sobrien  if test -n "$NM"; then
151660484Sobrien  # Let the user override the test.
151789857Sobrien  lt_cv_path_NM="$NM"
151860484Sobrienelse
151960484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
152060484Sobrien  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
152138889Sjdp    test -z "$ac_dir" && ac_dir=.
152277298Sobrien    tmp_nm=$ac_dir/${ac_tool_prefix}nm
152377298Sobrien    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
152438889Sjdp      # Check to see if the nm accepts a BSD-compat flag.
152538889Sjdp      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
152638889Sjdp      #   nm: unknown option "B" ignored
152777298Sobrien      # Tru64's nm complains that /dev/null is an invalid object file
152877298Sobrien      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
152989857Sobrien	lt_cv_path_NM="$tmp_nm -B"
153060484Sobrien	break
153177298Sobrien      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
153289857Sobrien	lt_cv_path_NM="$tmp_nm -p"
153360484Sobrien	break
153438889Sjdp      else
153589857Sobrien	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
153660484Sobrien	continue # so that we can try to find one that supports BSD flags
153738889Sjdp      fi
153838889Sjdp    fi
153938889Sjdp  done
154038889Sjdp  IFS="$ac_save_ifs"
154189857Sobrien  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
154238889Sjdpfi
154360484Sobrienfi
154438889Sjdp
154589857SobrienNM="$lt_cv_path_NM"
154638889Sjdpecho "$ac_t""$NM" 1>&6
154738889Sjdp
154838889Sjdpecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
154991041Sobrienecho "configure:1550: checking whether ln -s works" >&5
155038889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
155138889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
155238889Sjdpelse
155338889Sjdp  rm -f conftestdata
155438889Sjdpif ln -s X conftestdata 2>/dev/null
155538889Sjdpthen
155638889Sjdp  rm -f conftestdata
155738889Sjdp  ac_cv_prog_LN_S="ln -s"
155838889Sjdpelse
155938889Sjdp  ac_cv_prog_LN_S=ln
156038889Sjdpfi
156138889Sjdpfi
156238889SjdpLN_S="$ac_cv_prog_LN_S"
156338889Sjdpif test "$ac_cv_prog_LN_S" = "ln -s"; then
156438889Sjdp  echo "$ac_t""yes" 1>&6
156538889Sjdpelse
156638889Sjdp  echo "$ac_t""no" 1>&6
156738889Sjdpfi
156838889Sjdp
156977298Sobrienecho $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
157091041Sobrienecho "configure:1571: checking how to recognise dependant libraries" >&5
157177298Sobrienif eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
157277298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
157377298Sobrienelse
157477298Sobrien  lt_cv_file_magic_cmd='$MAGIC_CMD'
157577298Sobrienlt_cv_file_magic_test_file=
157677298Sobrienlt_cv_deplibs_check_method='unknown'
157777298Sobrien# Need to set the preceding variable on all platforms that support
157877298Sobrien# interlibrary dependencies.
157977298Sobrien# 'none' -- dependencies not supported.
158077298Sobrien# `unknown' -- same as none, but documents that we really don't know.
158177298Sobrien# 'pass_all' -- all dependencies passed with no checks.
158277298Sobrien# 'test_compile' -- check by making test program.
158377298Sobrien# 'file_magic [regex]' -- check by looking for files in library path
158477298Sobrien# which responds to the $file_magic_cmd with a given egrep regex.
158577298Sobrien# If you have `file' or equivalent on your system and you're not sure
158677298Sobrien# whether `pass_all' will *always* work, you probably want this one.
158738889Sjdp
158889857Sobriencase $host_os in
158989857Sobrienaix*)
159077298Sobrien  lt_cv_deplibs_check_method=pass_all
159177298Sobrien  ;;
159277298Sobrien
159377298Sobrienbeos*)
159477298Sobrien  lt_cv_deplibs_check_method=pass_all
159577298Sobrien  ;;
159677298Sobrien
159777298Sobrienbsdi4*)
159889857Sobrien  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
159989857Sobrien  lt_cv_file_magic_cmd='/usr/bin/file -L'
160077298Sobrien  lt_cv_file_magic_test_file=/shlib/libc.so
160177298Sobrien  ;;
160277298Sobrien
160377298Sobriencygwin* | mingw* |pw32*)
160477298Sobrien  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
160577298Sobrien  lt_cv_file_magic_cmd='$OBJDUMP -f'
160677298Sobrien  ;;
160777298Sobrien
160889857Sobriendarwin* | rhapsody*)
160989857Sobrien  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
161089857Sobrien  lt_cv_file_magic_cmd='/usr/bin/file -L'
161189857Sobrien  case "$host_os" in
161289857Sobrien  rhapsody* | darwin1.012)
161389857Sobrien    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
161489857Sobrien    ;;
161589857Sobrien  *) # Darwin 1.3 on
161689857Sobrien    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
161789857Sobrien    ;;
161889857Sobrien  esac
161989857Sobrien  ;;
162089857Sobrien
162177298Sobrienfreebsd* )
162277298Sobrien  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
162389857Sobrien    case $host_cpu in
162477298Sobrien    i*86 )
162577298Sobrien      # Not sure whether the presence of OpenBSD here was a mistake.
162677298Sobrien      # Let's accept both of them until this is cleared up.
162789857Sobrien      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
162889857Sobrien      lt_cv_file_magic_cmd=/usr/bin/file
162977298Sobrien      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
163077298Sobrien      ;;
163177298Sobrien    esac
163277298Sobrien  else
163377298Sobrien    lt_cv_deplibs_check_method=pass_all
163477298Sobrien  fi
163577298Sobrien  ;;
163677298Sobrien
163777298Sobriengnu*)
163877298Sobrien  lt_cv_deplibs_check_method=pass_all
163977298Sobrien  ;;
164077298Sobrien
164189857Sobrienhpux10.20*|hpux11*)
164291041Sobrien  case $host_cpu in
164391041Sobrien  hppa*)
164491041Sobrien    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
164591041Sobrien    lt_cv_file_magic_cmd=/usr/bin/file
164691041Sobrien    lt_cv_file_magic_test_file=/usr/lib/libc.sl
164791041Sobrien    ;;
164891041Sobrien  ia64*)
164991041Sobrien    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
165091041Sobrien    lt_cv_file_magic_cmd=/usr/bin/file
165191041Sobrien    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
165291041Sobrien    ;;
165391041Sobrien  esac
165477298Sobrien  ;;
165577298Sobrien
165677298Sobrienirix5* | irix6*)
165789857Sobrien  case $host_os in
165877298Sobrien  irix5*)
165977298Sobrien    # this will be overridden with pass_all, but let us keep it just in case
166077298Sobrien    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
166177298Sobrien    ;;
166277298Sobrien  *)
166389857Sobrien    case $LD in
166477298Sobrien    *-32|*"-32 ") libmagic=32-bit;;
166577298Sobrien    *-n32|*"-n32 ") libmagic=N32;;
166677298Sobrien    *-64|*"-64 ") libmagic=64-bit;;
166777298Sobrien    *) libmagic=never-match;;
166877298Sobrien    esac
166977298Sobrien    # this will be overridden with pass_all, but let us keep it just in case
167089857Sobrien    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
167189857Sobrien    ;;
167277298Sobrien  esac
167377298Sobrien  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
167477298Sobrien  lt_cv_deplibs_check_method=pass_all
167577298Sobrien  ;;
167677298Sobrien
167777298Sobrien# This must be Linux ELF.
167877298Sobrienlinux-gnu*)
167989857Sobrien  case $host_cpu in
168089857Sobrien  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
168177298Sobrien    lt_cv_deplibs_check_method=pass_all ;;
168277298Sobrien  *)
168377298Sobrien    # glibc up to 2.1.1 does not perform some relocations on ARM
168489857Sobrien    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
168589857Sobrien  esac
168677298Sobrien  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
168777298Sobrien  ;;
168877298Sobrien
168977298Sobriennetbsd*)
169089857Sobrien  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
169189857Sobrien    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
169277298Sobrien  else
169389857Sobrien    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
169477298Sobrien  fi
169577298Sobrien  ;;
169677298Sobrien
169789857Sobriennewsos6)
169889857Sobrien  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
169989857Sobrien  lt_cv_file_magic_cmd=/usr/bin/file
170089857Sobrien  lt_cv_file_magic_test_file=/usr/lib/libnls.so
170189857Sobrien  ;;
170289857Sobrien
170377298Sobrienosf3* | osf4* | osf5*)
170477298Sobrien  # this will be overridden with pass_all, but let us keep it just in case
170577298Sobrien  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
170677298Sobrien  lt_cv_file_magic_test_file=/shlib/libc.so
170777298Sobrien  lt_cv_deplibs_check_method=pass_all
170877298Sobrien  ;;
170977298Sobrien
171077298Sobriensco3.2v5*)
171177298Sobrien  lt_cv_deplibs_check_method=pass_all
171277298Sobrien  ;;
171377298Sobrien
171477298Sobriensolaris*)
171577298Sobrien  lt_cv_deplibs_check_method=pass_all
171677298Sobrien  lt_cv_file_magic_test_file=/lib/libc.so
171777298Sobrien  ;;
171877298Sobrien
171989857Sobriensysv5uw[78]* | sysv4*uw2*)
172089857Sobrien  lt_cv_deplibs_check_method=pass_all
172189857Sobrien  ;;
172289857Sobrien
172377298Sobriensysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
172489857Sobrien  case $host_vendor in
172577298Sobrien  ncr)
172677298Sobrien    lt_cv_deplibs_check_method=pass_all
172777298Sobrien    ;;
172877298Sobrien  motorola)
172989857Sobrien    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
173089857Sobrien    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
173177298Sobrien    ;;
173277298Sobrien  esac
173377298Sobrien  ;;
173460484Sobrienesac
173560484Sobrien
173677298Sobrienfi
173777298Sobrien
173877298Sobrienecho "$ac_t""$lt_cv_deplibs_check_method" 1>&6
173977298Sobrienfile_magic_cmd=$lt_cv_file_magic_cmd
174077298Sobriendeplibs_check_method=$lt_cv_deplibs_check_method
174177298Sobrien
174277298Sobrienecho $ac_n "checking for object suffix""... $ac_c" 1>&6
174391041Sobrienecho "configure:1744: checking for object suffix" >&5
174477298Sobrienif eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
174577298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
174677298Sobrienelse
174777298Sobrien  rm -f conftest*
174877298Sobrienecho 'int i = 1;' > conftest.$ac_ext
174991041Sobrienif { (eval echo configure:1750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
175077298Sobrien  for ac_file in conftest.*; do
175177298Sobrien    case $ac_file in
175277298Sobrien    *.c) ;;
175377298Sobrien    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
175477298Sobrien    esac
175577298Sobrien  done
175677298Sobrienelse
175777298Sobrien  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
175877298Sobrienfi
175977298Sobrienrm -f conftest*
176077298Sobrienfi
176177298Sobrien
176277298Sobrienecho "$ac_t""$ac_cv_objext" 1>&6
176377298SobrienOBJEXT=$ac_cv_objext
176477298Sobrienac_objext=$ac_cv_objext
176577298Sobrien
176677298Sobrien
176777298Sobrien
176877298Sobrienecho $ac_n "checking for executable suffix""... $ac_c" 1>&6
176991041Sobrienecho "configure:1770: checking for executable suffix" >&5
177077298Sobrienif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
177177298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
177277298Sobrienelse
177377298Sobrien  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
177477298Sobrien  ac_cv_exeext=.exe
177577298Sobrienelse
177677298Sobrien  rm -f conftest*
177777298Sobrien  echo 'int main () { return 0; }' > conftest.$ac_ext
177877298Sobrien  ac_cv_exeext=
177991041Sobrien  if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
178077298Sobrien    for file in conftest.*; do
178177298Sobrien      case $file in
178291041Sobrien      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
178377298Sobrien      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
178477298Sobrien      esac
178577298Sobrien    done
178677298Sobrien  else
178777298Sobrien    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
178877298Sobrien  fi
178977298Sobrien  rm -f conftest*
179077298Sobrien  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
179177298Sobrienfi
179277298Sobrienfi
179377298Sobrien
179477298SobrienEXEEXT=""
179577298Sobrientest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
179677298Sobrienecho "$ac_t""${ac_cv_exeext}" 1>&6
179777298Sobrienac_exeext=$EXEEXT
179877298Sobrien
179977298Sobrien# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
180077298Sobrien
180177298Sobrien# Only perform the check for file, if the check method requires it
180289857Sobriencase $deplibs_check_method in
180377298Sobrienfile_magic*)
180477298Sobrien  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
180577298Sobrien    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
180691041Sobrienecho "configure:1807: checking for ${ac_tool_prefix}file" >&5
180777298Sobrienif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
180877298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
180977298Sobrienelse
181089857Sobrien  case $MAGIC_CMD in
181177298Sobrien  /*)
181277298Sobrien  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
181377298Sobrien  ;;
181477298Sobrien  ?:/*)
181577298Sobrien  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
181677298Sobrien  ;;
181777298Sobrien  *)
181877298Sobrien  ac_save_MAGIC_CMD="$MAGIC_CMD"
181977298Sobrien  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
182077298Sobrien  ac_dummy="/usr/bin:$PATH"
182177298Sobrien  for ac_dir in $ac_dummy; do
182277298Sobrien    test -z "$ac_dir" && ac_dir=.
182377298Sobrien    if test -f $ac_dir/${ac_tool_prefix}file; then
182477298Sobrien      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
182577298Sobrien      if test -n "$file_magic_test_file"; then
182689857Sobrien	case $deplibs_check_method in
182777298Sobrien	"file_magic "*)
182877298Sobrien	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
182977298Sobrien	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
183077298Sobrien	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
183177298Sobrien	    egrep "$file_magic_regex" > /dev/null; then
183277298Sobrien	    :
183377298Sobrien	  else
183477298Sobrien	    cat <<EOF 1>&2
183577298Sobrien
183677298Sobrien*** Warning: the command libtool uses to detect shared libraries,
183777298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize.
183877298Sobrien*** The result is that libtool may fail to recognize shared libraries
183977298Sobrien*** as such.  This will affect the creation of libtool libraries that
184077298Sobrien*** depend on shared libraries, but programs linked with such libtool
184177298Sobrien*** libraries will work regardless of this problem.  Nevertheless, you
184277298Sobrien*** may want to report the problem to your system manager and/or to
184377298Sobrien*** bug-libtool@gnu.org
184477298Sobrien
184577298SobrienEOF
184677298Sobrien	  fi ;;
184777298Sobrien	esac
184877298Sobrien      fi
184977298Sobrien      break
185077298Sobrien    fi
185177298Sobrien  done
185277298Sobrien  IFS="$ac_save_ifs"
185377298Sobrien  MAGIC_CMD="$ac_save_MAGIC_CMD"
185477298Sobrien  ;;
185577298Sobrienesac
185677298Sobrienfi
185777298Sobrien
185877298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
185977298Sobrienif test -n "$MAGIC_CMD"; then
186077298Sobrien  echo "$ac_t""$MAGIC_CMD" 1>&6
186177298Sobrienelse
186277298Sobrien  echo "$ac_t""no" 1>&6
186377298Sobrienfi
186477298Sobrien
186577298Sobrienif test -z "$lt_cv_path_MAGIC_CMD"; then
186677298Sobrien  if test -n "$ac_tool_prefix"; then
186777298Sobrien    echo $ac_n "checking for file""... $ac_c" 1>&6
186891041Sobrienecho "configure:1869: checking for file" >&5
186977298Sobrienif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
187077298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
187177298Sobrienelse
187289857Sobrien  case $MAGIC_CMD in
187377298Sobrien  /*)
187477298Sobrien  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
187577298Sobrien  ;;
187677298Sobrien  ?:/*)
187777298Sobrien  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
187877298Sobrien  ;;
187977298Sobrien  *)
188077298Sobrien  ac_save_MAGIC_CMD="$MAGIC_CMD"
188177298Sobrien  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
188277298Sobrien  ac_dummy="/usr/bin:$PATH"
188377298Sobrien  for ac_dir in $ac_dummy; do
188477298Sobrien    test -z "$ac_dir" && ac_dir=.
188577298Sobrien    if test -f $ac_dir/file; then
188677298Sobrien      lt_cv_path_MAGIC_CMD="$ac_dir/file"
188777298Sobrien      if test -n "$file_magic_test_file"; then
188889857Sobrien	case $deplibs_check_method in
188977298Sobrien	"file_magic "*)
189077298Sobrien	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
189177298Sobrien	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
189277298Sobrien	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
189377298Sobrien	    egrep "$file_magic_regex" > /dev/null; then
189477298Sobrien	    :
189577298Sobrien	  else
189677298Sobrien	    cat <<EOF 1>&2
189777298Sobrien
189877298Sobrien*** Warning: the command libtool uses to detect shared libraries,
189977298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize.
190077298Sobrien*** The result is that libtool may fail to recognize shared libraries
190177298Sobrien*** as such.  This will affect the creation of libtool libraries that
190277298Sobrien*** depend on shared libraries, but programs linked with such libtool
190377298Sobrien*** libraries will work regardless of this problem.  Nevertheless, you
190477298Sobrien*** may want to report the problem to your system manager and/or to
190577298Sobrien*** bug-libtool@gnu.org
190677298Sobrien
190777298SobrienEOF
190877298Sobrien	  fi ;;
190977298Sobrien	esac
191077298Sobrien      fi
191177298Sobrien      break
191277298Sobrien    fi
191377298Sobrien  done
191477298Sobrien  IFS="$ac_save_ifs"
191577298Sobrien  MAGIC_CMD="$ac_save_MAGIC_CMD"
191677298Sobrien  ;;
191777298Sobrienesac
191877298Sobrienfi
191977298Sobrien
192077298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
192177298Sobrienif test -n "$MAGIC_CMD"; then
192277298Sobrien  echo "$ac_t""$MAGIC_CMD" 1>&6
192377298Sobrienelse
192477298Sobrien  echo "$ac_t""no" 1>&6
192577298Sobrienfi
192677298Sobrien
192777298Sobrien  else
192877298Sobrien    MAGIC_CMD=:
192977298Sobrien  fi
193077298Sobrienfi
193177298Sobrien
193277298Sobrien  fi
193377298Sobrien  ;;
193477298Sobrienesac
193577298Sobrien
193677298Sobrien# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
193777298Sobrienset dummy ${ac_tool_prefix}ranlib; ac_word=$2
193877298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
193991041Sobrienecho "configure:1940: checking for $ac_word" >&5
194077298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
194177298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
194277298Sobrienelse
194377298Sobrien  if test -n "$RANLIB"; then
194477298Sobrien  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
194577298Sobrienelse
194677298Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
194777298Sobrien  ac_dummy="$PATH"
194877298Sobrien  for ac_dir in $ac_dummy; do
194977298Sobrien    test -z "$ac_dir" && ac_dir=.
195077298Sobrien    if test -f $ac_dir/$ac_word; then
195177298Sobrien      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
195277298Sobrien      break
195377298Sobrien    fi
195477298Sobrien  done
195577298Sobrien  IFS="$ac_save_ifs"
195677298Sobrienfi
195777298Sobrienfi
195877298SobrienRANLIB="$ac_cv_prog_RANLIB"
195977298Sobrienif test -n "$RANLIB"; then
196077298Sobrien  echo "$ac_t""$RANLIB" 1>&6
196177298Sobrienelse
196277298Sobrien  echo "$ac_t""no" 1>&6
196377298Sobrienfi
196477298Sobrien
196577298Sobrien
196677298Sobrienif test -z "$ac_cv_prog_RANLIB"; then
196777298Sobrienif test -n "$ac_tool_prefix"; then
196877298Sobrien  # Extract the first word of "ranlib", so it can be a program name with args.
196977298Sobrienset dummy ranlib; ac_word=$2
197077298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
197191041Sobrienecho "configure:1972: checking for $ac_word" >&5
197277298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
197377298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
197477298Sobrienelse
197577298Sobrien  if test -n "$RANLIB"; then
197677298Sobrien  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
197777298Sobrienelse
197877298Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
197977298Sobrien  ac_dummy="$PATH"
198077298Sobrien  for ac_dir in $ac_dummy; do
198177298Sobrien    test -z "$ac_dir" && ac_dir=.
198277298Sobrien    if test -f $ac_dir/$ac_word; then
198377298Sobrien      ac_cv_prog_RANLIB="ranlib"
198477298Sobrien      break
198577298Sobrien    fi
198677298Sobrien  done
198777298Sobrien  IFS="$ac_save_ifs"
198877298Sobrien  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
198977298Sobrienfi
199077298Sobrienfi
199177298SobrienRANLIB="$ac_cv_prog_RANLIB"
199277298Sobrienif test -n "$RANLIB"; then
199377298Sobrien  echo "$ac_t""$RANLIB" 1>&6
199477298Sobrienelse
199577298Sobrien  echo "$ac_t""no" 1>&6
199677298Sobrienfi
199777298Sobrien
199877298Sobrienelse
199977298Sobrien  RANLIB=":"
200077298Sobrienfi
200177298Sobrienfi
200277298Sobrien
200377298Sobrien# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
200477298Sobrienset dummy ${ac_tool_prefix}strip; ac_word=$2
200577298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
200691041Sobrienecho "configure:2007: checking for $ac_word" >&5
200777298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
200877298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
200977298Sobrienelse
201077298Sobrien  if test -n "$STRIP"; then
201177298Sobrien  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
201277298Sobrienelse
201377298Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
201477298Sobrien  ac_dummy="$PATH"
201577298Sobrien  for ac_dir in $ac_dummy; do
201677298Sobrien    test -z "$ac_dir" && ac_dir=.
201777298Sobrien    if test -f $ac_dir/$ac_word; then
201877298Sobrien      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
201977298Sobrien      break
202077298Sobrien    fi
202177298Sobrien  done
202277298Sobrien  IFS="$ac_save_ifs"
202377298Sobrienfi
202477298Sobrienfi
202577298SobrienSTRIP="$ac_cv_prog_STRIP"
202677298Sobrienif test -n "$STRIP"; then
202777298Sobrien  echo "$ac_t""$STRIP" 1>&6
202877298Sobrienelse
202977298Sobrien  echo "$ac_t""no" 1>&6
203077298Sobrienfi
203177298Sobrien
203277298Sobrien
203377298Sobrienif test -z "$ac_cv_prog_STRIP"; then
203477298Sobrienif test -n "$ac_tool_prefix"; then
203577298Sobrien  # Extract the first word of "strip", so it can be a program name with args.
203677298Sobrienset dummy strip; ac_word=$2
203777298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
203891041Sobrienecho "configure:2039: checking for $ac_word" >&5
203977298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
204077298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
204177298Sobrienelse
204277298Sobrien  if test -n "$STRIP"; then
204377298Sobrien  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
204477298Sobrienelse
204577298Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
204677298Sobrien  ac_dummy="$PATH"
204777298Sobrien  for ac_dir in $ac_dummy; do
204877298Sobrien    test -z "$ac_dir" && ac_dir=.
204977298Sobrien    if test -f $ac_dir/$ac_word; then
205077298Sobrien      ac_cv_prog_STRIP="strip"
205177298Sobrien      break
205277298Sobrien    fi
205377298Sobrien  done
205477298Sobrien  IFS="$ac_save_ifs"
205577298Sobrien  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
205677298Sobrienfi
205777298Sobrienfi
205877298SobrienSTRIP="$ac_cv_prog_STRIP"
205977298Sobrienif test -n "$STRIP"; then
206077298Sobrien  echo "$ac_t""$STRIP" 1>&6
206177298Sobrienelse
206277298Sobrien  echo "$ac_t""no" 1>&6
206377298Sobrienfi
206477298Sobrien
206577298Sobrienelse
206677298Sobrien  STRIP=":"
206777298Sobrienfi
206877298Sobrienfi
206977298Sobrien
207077298Sobrien
207138889Sjdp# Check for any special flags to pass to ltconfig.
207260484Sobrienlibtool_flags="--cache-file=$cache_file"
207338889Sjdptest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
207438889Sjdptest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
207560484Sobrientest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
207689857Sobrientest "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
207789857Sobrientest "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
207838889Sjdp
207960484Sobrien
208060484Sobrien# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
208160484Sobrienif test "${enable_libtool_lock+set}" = set; then
208260484Sobrien  enableval="$enable_libtool_lock"
208360484Sobrien  :
208460484Sobrienfi
208560484Sobrien
208660484Sobrientest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
208760484Sobrientest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
208860484Sobrien
208977298Sobrien# Check whether --with-pic or --without-pic was given.
209077298Sobrienif test "${with_pic+set}" = set; then
209177298Sobrien  withval="$with_pic"
209277298Sobrien  pic_mode="$withval"
209377298Sobrienelse
209477298Sobrien  pic_mode=default
209577298Sobrienfi
209677298Sobrien
209777298Sobrientest x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
209877298Sobrientest x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
209977298Sobrien
210038889Sjdp# Some flags need to be propagated to the compiler or linker for good
210138889Sjdp# libtool support.
210289857Sobriencase $host in
210338889Sjdp*-*-irix6*)
210438889Sjdp  # Find out which ABI we are using.
210591041Sobrien  echo '#line 2106 "configure"' > conftest.$ac_ext
210691041Sobrien  if { (eval echo configure:2107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
210789857Sobrien    case `/usr/bin/file conftest.$ac_objext` in
210838889Sjdp    *32-bit*)
210938889Sjdp      LD="${LD-ld} -32"
211033965Sjdp      ;;
211138889Sjdp    *N32*)
211238889Sjdp      LD="${LD-ld} -n32"
211338889Sjdp      ;;
211438889Sjdp    *64-bit*)
211538889Sjdp      LD="${LD-ld} -64"
211638889Sjdp      ;;
211733965Sjdp    esac
211838889Sjdp  fi
211938889Sjdp  rm -rf conftest*
212038889Sjdp  ;;
212133965Sjdp
212291041Sobrienia64-*-hpux*)
212391041Sobrien  # Find out which ABI we are using.
212491041Sobrien  echo 'int i;' > conftest.$ac_ext
212591041Sobrien  if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
212691041Sobrien    case "`/usr/bin/file conftest.o`" in
212791041Sobrien    *ELF-32*)
212891041Sobrien      HPUX_IA64_MODE="32"
212991041Sobrien      ;;
213091041Sobrien    *ELF-64*)
213191041Sobrien      HPUX_IA64_MODE="64"
213291041Sobrien      ;;
213391041Sobrien    esac
213491041Sobrien  fi
213591041Sobrien  rm -rf conftest*
213691041Sobrien  ;;
213791041Sobrien
213838889Sjdp*-*-sco3.2v5*)
213938889Sjdp  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
214060484Sobrien  SAVE_CFLAGS="$CFLAGS"
214138889Sjdp  CFLAGS="$CFLAGS -belf"
214260484Sobrien  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
214391041Sobrienecho "configure:2144: checking whether the C compiler needs -belf" >&5
214460484Sobrienif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
214560484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
214660484Sobrienelse
214777298Sobrien  
214877298Sobrien     ac_ext=c
214977298Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
215077298Sobrienac_cpp='$CPP $CPPFLAGS'
215177298Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
215277298Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
215377298Sobriencross_compiling=$ac_cv_prog_cc_cross
215477298Sobrien
215577298Sobrien     cat > conftest.$ac_ext <<EOF
215691041Sobrien#line 2157 "configure"
215760484Sobrien#include "confdefs.h"
215860484Sobrien
215960484Sobrienint main() {
216060484Sobrien
216160484Sobrien; return 0; }
216260484SobrienEOF
216391041Sobrienif { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
216460484Sobrien  rm -rf conftest*
216560484Sobrien  lt_cv_cc_needs_belf=yes
216660484Sobrienelse
216760484Sobrien  echo "configure: failed program was:" >&5
216860484Sobrien  cat conftest.$ac_ext >&5
216960484Sobrien  rm -rf conftest*
217060484Sobrien  lt_cv_cc_needs_belf=no
217160484Sobrienfi
217260484Sobrienrm -f conftest*
217377298Sobrien     ac_ext=c
217477298Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
217577298Sobrienac_cpp='$CPP $CPPFLAGS'
217677298Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
217777298Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
217877298Sobriencross_compiling=$ac_cv_prog_cc_cross
217977298Sobrien
218060484Sobrienfi
218160484Sobrien
218260484Sobrienecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6
218360484Sobrien  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
218460484Sobrien    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
218560484Sobrien    CFLAGS="$SAVE_CFLAGS"
218660484Sobrien  fi
218738889Sjdp  ;;
218860484Sobrien
218960484Sobrien
219038889Sjdpesac
219138889Sjdp
219260484Sobrien
219360484Sobrien# Save cache, so that ltconfig can load it
219460484Sobriencat > confcache <<\EOF
219560484Sobrien# This file is a shell script that caches the results of configure
219660484Sobrien# tests run on this system so they can be shared between configure
219760484Sobrien# scripts and configure runs.  It is not useful on other systems.
219860484Sobrien# If it contains results you don't want to keep, you may remove or edit it.
219960484Sobrien#
220060484Sobrien# By default, configure uses ./config.cache as the cache file,
220160484Sobrien# creating it if it does not exist already.  You can give configure
220260484Sobrien# the --cache-file=FILE option to use a different cache file; that is
220360484Sobrien# what configure does when it calls configure scripts in
220460484Sobrien# subdirectories, so they share the cache.
220560484Sobrien# Giving --cache-file=/dev/null disables caching, for debugging configure.
220660484Sobrien# config.status only pays attention to the cache file if you give it the
220760484Sobrien# --recheck option to rerun configure.
220860484Sobrien#
220960484SobrienEOF
221060484Sobrien# The following way of writing the cache mishandles newlines in values,
221160484Sobrien# but we know of no workaround that is simple, portable, and efficient.
221260484Sobrien# So, don't put newlines in cache variables' values.
221360484Sobrien# Ultrix sh set writes to stderr and can't be redirected directly,
221460484Sobrien# and sets the high bit in the cache file unless we assign to the vars.
221560484Sobrien(set) 2>&1 |
221660484Sobrien  case `(ac_space=' '; set | grep ac_space) 2>&1` in
221760484Sobrien  *ac_space=\ *)
221860484Sobrien    # `set' does not quote correctly, so add quotes (double-quote substitution
221960484Sobrien    # turns \\\\ into \\, and sed turns \\ into \).
222060484Sobrien    sed -n \
222160484Sobrien      -e "s/'/'\\\\''/g" \
222260484Sobrien      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
222360484Sobrien    ;;
222460484Sobrien  *)
222560484Sobrien    # `set' quotes correctly as required by POSIX, so do not add quotes.
222660484Sobrien    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
222760484Sobrien    ;;
222860484Sobrien  esac >> confcache
222960484Sobrienif cmp -s $cache_file confcache; then
223060484Sobrien  :
223160484Sobrienelse
223260484Sobrien  if test -w $cache_file; then
223360484Sobrien    echo "updating cache $cache_file"
223460484Sobrien    cat confcache > $cache_file
223560484Sobrien  else
223660484Sobrien    echo "not updating unwritable cache $cache_file"
223760484Sobrien  fi
223860484Sobrienfi
223960484Sobrienrm -f confcache
224060484Sobrien
224160484Sobrien
224238889Sjdp# Actually configure libtool.  ac_aux_dir is where install-sh is found.
224377298SobrienAR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
224477298SobrienMAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
224577298SobrienLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
224677298SobrienAS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
224777298Sobrienobjext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
224877298Sobriendeplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
224960484Sobrien${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
225077298Sobrien$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
225138889Sjdp|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
225238889Sjdp
225360484Sobrien# Reload cache, that may have been modified by ltconfig
225460484Sobrienif test -r "$cache_file"; then
225560484Sobrien  echo "loading cache $cache_file"
225660484Sobrien  . $cache_file
225760484Sobrienelse
225860484Sobrien  echo "creating cache $cache_file"
225960484Sobrien  > $cache_file
226060484Sobrienfi
226138889Sjdp
226260484Sobrien
226360484Sobrien# This can be used to rebuild libtool when needed
226477298SobrienLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
226560484Sobrien
226660484Sobrien# Always use our own libtool.
226760484SobrienLIBTOOL='$(SHELL) $(top_builddir)/libtool'
226860484Sobrien
226960484Sobrien# Redirect the config.log output again, so that the ltconfig log is not
227060484Sobrien# clobbered by the next message.
227160484Sobrienexec 5>>./config.log
227260484Sobrien
227377298Sobrien  
227477298Sobrien
227577298Sobrien  
227677298Sobrien	 
227777298Sobrien	 
227877298Sobrien
227938889Sjdp# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
228038889Sjdpif test "${enable_64_bit_bfd+set}" = set; then
228138889Sjdp  enableval="$enable_64_bit_bfd"
228238889Sjdp  case "${enableval}" in
228338889Sjdp  yes)  want64=true  ;;
228438889Sjdp  no)   want64=false ;;
228538889Sjdp  *)    { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
228638889Sjdpesac
228738889Sjdpelse
228838889Sjdp  want64=false
228933965Sjdpfi
229038889Sjdp# Check whether --enable-targets or --disable-targets was given.
229138889Sjdpif test "${enable_targets+set}" = set; then
229238889Sjdp  enableval="$enable_targets"
229338889Sjdp  case "${enableval}" in
229438889Sjdp  yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
229538889Sjdp            ;;
229638889Sjdp  no)       enable_targets= ;;
229738889Sjdp  *)        enable_targets=$enableval ;;
229838889Sjdpesac
229938889Sjdpfi
230038889Sjdp# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
230138889Sjdpif test "${enable_commonbfdlib+set}" = set; then
230238889Sjdp  enableval="$enable_commonbfdlib"
230338889Sjdp  case "${enableval}" in
230438889Sjdp  yes) commonbfdlib=true ;;
230538889Sjdp  no)  commonbfdlib=false ;;
230638889Sjdp  *)   { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
230738889Sjdpesac
230838889Sjdpfi
230938889Sjdp# Check whether --with-mmap or --without-mmap was given.
231038889Sjdpif test "${with_mmap+set}" = set; then
231138889Sjdp  withval="$with_mmap"
231238889Sjdp  case "${withval}" in
231338889Sjdp  yes)  want_mmap=true ;;
231438889Sjdp  no)   want_mmap=false ;;
231538889Sjdp  *)    { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
231638889Sjdpesac
231738889Sjdpelse
231838889Sjdp  want_mmap=false
231938889Sjdpfi
232038889Sjdp
232189857Sobrienbuild_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
232277298Sobrien# Check whether --enable-build-warnings or --disable-build-warnings was given.
232377298Sobrienif test "${enable_build_warnings+set}" = set; then
232477298Sobrien  enableval="$enable_build_warnings"
232577298Sobrien  case "${enableval}" in
232677298Sobrien  yes)	;;
232777298Sobrien  no)	build_warnings="-w";;
232877298Sobrien  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
232977298Sobrien        build_warnings="${build_warnings} ${t}";;
233077298Sobrien  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
233177298Sobrien        build_warnings="${t} ${build_warnings}";;
233277298Sobrien  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
233377298Sobrienesac
233477298Sobrienif test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
233577298Sobrien  echo "Setting warning flags = $build_warnings" 6>&1
233677298Sobrienfi
233777298Sobrienfi
233877298SobrienWARN_CFLAGS=""
233977298Sobrienif test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
234077298Sobrien    WARN_CFLAGS="${build_warnings}"
234177298Sobrienfi
234238889Sjdp
234338889Sjdp
234438889Sjdp
234538889Sjdp
234677298Sobrien
234777298Sobrien
234838889Sjdpif test -z "$target" ; then
234938889Sjdp    { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
235038889Sjdpfi
235138889Sjdp
235238889Sjdpecho $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
235391041Sobrienecho "configure:2354: checking whether to enable maintainer-specific portions of Makefiles" >&5
235438889Sjdp    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
235538889Sjdpif test "${enable_maintainer_mode+set}" = set; then
235638889Sjdp  enableval="$enable_maintainer_mode"
235738889Sjdp  USE_MAINTAINER_MODE=$enableval
235838889Sjdpelse
235938889Sjdp  USE_MAINTAINER_MODE=no
236038889Sjdpfi
236138889Sjdp
236238889Sjdp  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
236338889Sjdp  
236438889Sjdp
236560484Sobrienif test $USE_MAINTAINER_MODE = yes; then
236660484Sobrien  MAINTAINER_MODE_TRUE=
236760484Sobrien  MAINTAINER_MODE_FALSE='#'
236860484Sobrienelse
236960484Sobrien  MAINTAINER_MODE_TRUE='#'
237060484Sobrien  MAINTAINER_MODE_FALSE=
237160484Sobrienfi
237260484Sobrien  MAINT=$MAINTAINER_MODE_TRUE
237360484Sobrien  
237460484Sobrien
237538889Sjdp
237660484Sobrien
237738889Sjdpecho $ac_n "checking for executable suffix""... $ac_c" 1>&6
237891041Sobrienecho "configure:2379: checking for executable suffix" >&5
237960484Sobrienif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
238038889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
238138889Sjdpelse
238260484Sobrien  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
238360484Sobrien  ac_cv_exeext=.exe
238438889Sjdpelse
238560484Sobrien  rm -f conftest*
238660484Sobrien  echo 'int main () { return 0; }' > conftest.$ac_ext
238760484Sobrien  ac_cv_exeext=
238891041Sobrien  if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
238960484Sobrien    for file in conftest.*; do
239060484Sobrien      case $file in
239191041Sobrien      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
239260484Sobrien      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
239360484Sobrien      esac
239460484Sobrien    done
239560484Sobrien  else
239660484Sobrien    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
239760484Sobrien  fi
239860484Sobrien  rm -f conftest*
239960484Sobrien  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
240038889Sjdpfi
240160484Sobrienfi
240238889Sjdp
240338889SjdpEXEEXT=""
240460484Sobrientest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
240560484Sobrienecho "$ac_t""${ac_cv_exeext}" 1>&6
240660484Sobrienac_exeext=$EXEEXT
240738889Sjdp
240838889Sjdp
240938889Sjdphost64=false
241038889Sjdptarget64=false
241189857Sobrienbfd_default_target_size=32
241238889Sjdp
241338889Sjdp# host stuff:
241438889Sjdp
241538889Sjdp# Extract the first word of "gcc", so it can be a program name with args.
241638889Sjdpset dummy gcc; ac_word=$2
241738889Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
241891041Sobrienecho "configure:2419: checking for $ac_word" >&5
241938889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
242038889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
242138889Sjdpelse
242238889Sjdp  if test -n "$CC"; then
242338889Sjdp  ac_cv_prog_CC="$CC" # Let the user override the test.
242438889Sjdpelse
242560484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
242660484Sobrien  ac_dummy="$PATH"
242760484Sobrien  for ac_dir in $ac_dummy; do
242838889Sjdp    test -z "$ac_dir" && ac_dir=.
242938889Sjdp    if test -f $ac_dir/$ac_word; then
243038889Sjdp      ac_cv_prog_CC="gcc"
243138889Sjdp      break
243238889Sjdp    fi
243338889Sjdp  done
243438889Sjdp  IFS="$ac_save_ifs"
243538889Sjdpfi
243638889Sjdpfi
243738889SjdpCC="$ac_cv_prog_CC"
243838889Sjdpif test -n "$CC"; then
243938889Sjdp  echo "$ac_t""$CC" 1>&6
244038889Sjdpelse
244138889Sjdp  echo "$ac_t""no" 1>&6
244238889Sjdpfi
244338889Sjdp
244438889Sjdpif test -z "$CC"; then
244538889Sjdp  # Extract the first word of "cc", so it can be a program name with args.
244638889Sjdpset dummy cc; ac_word=$2
244738889Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
244891041Sobrienecho "configure:2449: checking for $ac_word" >&5
244938889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
245038889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
245138889Sjdpelse
245238889Sjdp  if test -n "$CC"; then
245338889Sjdp  ac_cv_prog_CC="$CC" # Let the user override the test.
245438889Sjdpelse
245560484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
245638889Sjdp  ac_prog_rejected=no
245760484Sobrien  ac_dummy="$PATH"
245860484Sobrien  for ac_dir in $ac_dummy; do
245938889Sjdp    test -z "$ac_dir" && ac_dir=.
246038889Sjdp    if test -f $ac_dir/$ac_word; then
246138889Sjdp      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
246238889Sjdp        ac_prog_rejected=yes
246338889Sjdp	continue
246438889Sjdp      fi
246538889Sjdp      ac_cv_prog_CC="cc"
246638889Sjdp      break
246738889Sjdp    fi
246838889Sjdp  done
246938889Sjdp  IFS="$ac_save_ifs"
247038889Sjdpif test $ac_prog_rejected = yes; then
247138889Sjdp  # We found a bogon in the path, so make sure we never use it.
247238889Sjdp  set dummy $ac_cv_prog_CC
247338889Sjdp  shift
247438889Sjdp  if test $# -gt 0; then
247538889Sjdp    # We chose a different compiler from the bogus one.
247638889Sjdp    # However, it has the same basename, so the bogon will be chosen
247738889Sjdp    # first if we set CC to just the basename; use the full file name.
247838889Sjdp    shift
247938889Sjdp    set dummy "$ac_dir/$ac_word" "$@"
248038889Sjdp    shift
248138889Sjdp    ac_cv_prog_CC="$@"
248233965Sjdp  fi
248333965Sjdpfi
248438889Sjdpfi
248538889Sjdpfi
248638889SjdpCC="$ac_cv_prog_CC"
248738889Sjdpif test -n "$CC"; then
248838889Sjdp  echo "$ac_t""$CC" 1>&6
248938889Sjdpelse
249038889Sjdp  echo "$ac_t""no" 1>&6
249138889Sjdpfi
249233965Sjdp
249360484Sobrien  if test -z "$CC"; then
249460484Sobrien    case "`uname -s`" in
249560484Sobrien    *win32* | *WIN32*)
249660484Sobrien      # Extract the first word of "cl", so it can be a program name with args.
249760484Sobrienset dummy cl; ac_word=$2
249860484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
249991041Sobrienecho "configure:2500: checking for $ac_word" >&5
250060484Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
250160484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
250260484Sobrienelse
250360484Sobrien  if test -n "$CC"; then
250460484Sobrien  ac_cv_prog_CC="$CC" # Let the user override the test.
250560484Sobrienelse
250660484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
250760484Sobrien  ac_dummy="$PATH"
250860484Sobrien  for ac_dir in $ac_dummy; do
250960484Sobrien    test -z "$ac_dir" && ac_dir=.
251060484Sobrien    if test -f $ac_dir/$ac_word; then
251160484Sobrien      ac_cv_prog_CC="cl"
251260484Sobrien      break
251360484Sobrien    fi
251460484Sobrien  done
251560484Sobrien  IFS="$ac_save_ifs"
251660484Sobrienfi
251760484Sobrienfi
251860484SobrienCC="$ac_cv_prog_CC"
251960484Sobrienif test -n "$CC"; then
252060484Sobrien  echo "$ac_t""$CC" 1>&6
252160484Sobrienelse
252260484Sobrien  echo "$ac_t""no" 1>&6
252360484Sobrienfi
252460484Sobrien ;;
252560484Sobrien    esac
252660484Sobrien  fi
252738889Sjdp  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
252838889Sjdpfi
252933965Sjdp
253038889Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
253191041Sobrienecho "configure:2532: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
253233965Sjdp
253338889Sjdpac_ext=c
253438889Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
253538889Sjdpac_cpp='$CPP $CPPFLAGS'
253638889Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
253760484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
253838889Sjdpcross_compiling=$ac_cv_prog_cc_cross
253933965Sjdp
254060484Sobriencat > conftest.$ac_ext << EOF
254160484Sobrien
254291041Sobrien#line 2543 "configure"
254338889Sjdp#include "confdefs.h"
254460484Sobrien
254538889Sjdpmain(){return(0);}
254638889SjdpEOF
254791041Sobrienif { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
254838889Sjdp  ac_cv_prog_cc_works=yes
254938889Sjdp  # If we can't run a trivial program, we are probably using a cross compiler.
255038889Sjdp  if (./conftest; exit) 2>/dev/null; then
255138889Sjdp    ac_cv_prog_cc_cross=no
255238889Sjdp  else
255338889Sjdp    ac_cv_prog_cc_cross=yes
255438889Sjdp  fi
255538889Sjdpelse
255638889Sjdp  echo "configure: failed program was:" >&5
255738889Sjdp  cat conftest.$ac_ext >&5
255838889Sjdp  ac_cv_prog_cc_works=no
255938889Sjdpfi
256038889Sjdprm -fr conftest*
256160484Sobrienac_ext=c
256260484Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
256360484Sobrienac_cpp='$CPP $CPPFLAGS'
256460484Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
256560484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
256660484Sobriencross_compiling=$ac_cv_prog_cc_cross
256733965Sjdp
256838889Sjdpecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
256938889Sjdpif test $ac_cv_prog_cc_works = no; then
257038889Sjdp  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
257138889Sjdpfi
257238889Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
257391041Sobrienecho "configure:2574: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
257438889Sjdpecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
257538889Sjdpcross_compiling=$ac_cv_prog_cc_cross
257633965Sjdp
257738889Sjdpecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
257891041Sobrienecho "configure:2579: checking whether we are using GNU C" >&5
257938889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
258038889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
258138889Sjdpelse
258238889Sjdp  cat > conftest.c <<EOF
258338889Sjdp#ifdef __GNUC__
258438889Sjdp  yes;
258538889Sjdp#endif
258638889SjdpEOF
258791041Sobrienif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
258838889Sjdp  ac_cv_prog_gcc=yes
258938889Sjdpelse
259038889Sjdp  ac_cv_prog_gcc=no
259138889Sjdpfi
259238889Sjdpfi
259333965Sjdp
259438889Sjdpecho "$ac_t""$ac_cv_prog_gcc" 1>&6
259538889Sjdp
259638889Sjdpif test $ac_cv_prog_gcc = yes; then
259738889Sjdp  GCC=yes
259860484Sobrienelse
259960484Sobrien  GCC=
260060484Sobrienfi
260160484Sobrien
260260484Sobrienac_test_CFLAGS="${CFLAGS+set}"
260360484Sobrienac_save_CFLAGS="$CFLAGS"
260460484SobrienCFLAGS=
260560484Sobrienecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
260691041Sobrienecho "configure:2607: checking whether ${CC-cc} accepts -g" >&5
260738889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
260838889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
260933965Sjdpelse
261038889Sjdp  echo 'void f(){}' > conftest.c
261138889Sjdpif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
261238889Sjdp  ac_cv_prog_cc_g=yes
261338889Sjdpelse
261438889Sjdp  ac_cv_prog_cc_g=no
261533965Sjdpfi
261638889Sjdprm -f conftest*
261733965Sjdp
261838889Sjdpfi
261933965Sjdp
262038889Sjdpecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
262160484Sobrienif test "$ac_test_CFLAGS" = set; then
262260484Sobrien  CFLAGS="$ac_save_CFLAGS"
262360484Sobrienelif test $ac_cv_prog_cc_g = yes; then
262460484Sobrien  if test "$GCC" = yes; then
262538889Sjdp    CFLAGS="-g -O2"
262638889Sjdp  else
262760484Sobrien    CFLAGS="-g"
262860484Sobrien  fi
262960484Sobrienelse
263060484Sobrien  if test "$GCC" = yes; then
263138889Sjdp    CFLAGS="-O2"
263260484Sobrien  else
263360484Sobrien    CFLAGS=
263438889Sjdp  fi
263560484Sobrienfi
263660484Sobrien
263760484Sobrien
263889857SobrienALL_LINGUAS="fr tr ja es sv"
263960484Sobrienecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
264091041Sobrienecho "configure:2641: checking how to run the C preprocessor" >&5
264160484Sobrien# On Suns, sometimes $CPP names a directory.
264260484Sobrienif test -n "$CPP" && test -d "$CPP"; then
264360484Sobrien  CPP=
264460484Sobrienfi
264560484Sobrienif test -z "$CPP"; then
264660484Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
264760484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
264838889Sjdpelse
264960484Sobrien    # This must be in double quotes, not single quotes, because CPP may get
265060484Sobrien  # substituted into the Makefile and "${CC-cc}" will confuse make.
265160484Sobrien  CPP="${CC-cc} -E"
265260484Sobrien  # On the NeXT, cc -E runs the code through the compiler's parser,
265360484Sobrien  # not just through cpp.
265460484Sobrien  cat > conftest.$ac_ext <<EOF
265591041Sobrien#line 2656 "configure"
265660484Sobrien#include "confdefs.h"
265760484Sobrien#include <assert.h>
265860484SobrienSyntax Error
265960484SobrienEOF
266060484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
266191041Sobrien{ (eval echo configure:2662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
266260484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
266360484Sobrienif test -z "$ac_err"; then
266460484Sobrien  :
266560484Sobrienelse
266660484Sobrien  echo "$ac_err" >&5
266760484Sobrien  echo "configure: failed program was:" >&5
266860484Sobrien  cat conftest.$ac_ext >&5
266960484Sobrien  rm -rf conftest*
267060484Sobrien  CPP="${CC-cc} -E -traditional-cpp"
267160484Sobrien  cat > conftest.$ac_ext <<EOF
267291041Sobrien#line 2673 "configure"
267360484Sobrien#include "confdefs.h"
267460484Sobrien#include <assert.h>
267560484SobrienSyntax Error
267660484SobrienEOF
267760484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
267891041Sobrien{ (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
267960484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
268060484Sobrienif test -z "$ac_err"; then
268160484Sobrien  :
268260484Sobrienelse
268360484Sobrien  echo "$ac_err" >&5
268460484Sobrien  echo "configure: failed program was:" >&5
268560484Sobrien  cat conftest.$ac_ext >&5
268660484Sobrien  rm -rf conftest*
268760484Sobrien  CPP="${CC-cc} -nologo -E"
268860484Sobrien  cat > conftest.$ac_ext <<EOF
268991041Sobrien#line 2690 "configure"
269060484Sobrien#include "confdefs.h"
269160484Sobrien#include <assert.h>
269260484SobrienSyntax Error
269360484SobrienEOF
269460484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
269591041Sobrien{ (eval echo configure:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
269660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
269760484Sobrienif test -z "$ac_err"; then
269860484Sobrien  :
269960484Sobrienelse
270060484Sobrien  echo "$ac_err" >&5
270160484Sobrien  echo "configure: failed program was:" >&5
270260484Sobrien  cat conftest.$ac_ext >&5
270360484Sobrien  rm -rf conftest*
270460484Sobrien  CPP=/lib/cpp
270538889Sjdpfi
270660484Sobrienrm -f conftest*
270760484Sobrienfi
270860484Sobrienrm -f conftest*
270960484Sobrienfi
271060484Sobrienrm -f conftest*
271160484Sobrien  ac_cv_prog_CPP="$CPP"
271260484Sobrienfi
271360484Sobrien  CPP="$ac_cv_prog_CPP"
271460484Sobrienelse
271560484Sobrien  ac_cv_prog_CPP="$CPP"
271660484Sobrienfi
271760484Sobrienecho "$ac_t""$CPP" 1>&6
271833965Sjdp
271977298Sobrien# Extract the first word of "ranlib", so it can be a program name with args.
272077298Sobrienset dummy ranlib; ac_word=$2
272177298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
272291041Sobrienecho "configure:2723: checking for $ac_word" >&5
272377298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
272477298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
272577298Sobrienelse
272677298Sobrien  if test -n "$RANLIB"; then
272777298Sobrien  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
272877298Sobrienelse
272977298Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
273077298Sobrien  ac_dummy="$PATH"
273177298Sobrien  for ac_dir in $ac_dummy; do
273277298Sobrien    test -z "$ac_dir" && ac_dir=.
273377298Sobrien    if test -f $ac_dir/$ac_word; then
273477298Sobrien      ac_cv_prog_RANLIB="ranlib"
273577298Sobrien      break
273677298Sobrien    fi
273777298Sobrien  done
273877298Sobrien  IFS="$ac_save_ifs"
273977298Sobrien  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
274077298Sobrienfi
274177298Sobrienfi
274277298SobrienRANLIB="$ac_cv_prog_RANLIB"
274377298Sobrienif test -n "$RANLIB"; then
274477298Sobrien  echo "$ac_t""$RANLIB" 1>&6
274577298Sobrienelse
274677298Sobrien  echo "$ac_t""no" 1>&6
274777298Sobrienfi
274877298Sobrien
274960484Sobrienecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
275091041Sobrienecho "configure:2751: checking for ANSI C header files" >&5
275160484Sobrienif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
275260484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
275360484Sobrienelse
275460484Sobrien  cat > conftest.$ac_ext <<EOF
275591041Sobrien#line 2756 "configure"
275660484Sobrien#include "confdefs.h"
275760484Sobrien#include <stdlib.h>
275860484Sobrien#include <stdarg.h>
275960484Sobrien#include <string.h>
276060484Sobrien#include <float.h>
276160484SobrienEOF
276260484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
276391041Sobrien{ (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
276460484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
276560484Sobrienif test -z "$ac_err"; then
276660484Sobrien  rm -rf conftest*
276760484Sobrien  ac_cv_header_stdc=yes
276860484Sobrienelse
276960484Sobrien  echo "$ac_err" >&5
277060484Sobrien  echo "configure: failed program was:" >&5
277160484Sobrien  cat conftest.$ac_ext >&5
277260484Sobrien  rm -rf conftest*
277360484Sobrien  ac_cv_header_stdc=no
277460484Sobrienfi
277560484Sobrienrm -f conftest*
277633965Sjdp
277760484Sobrienif test $ac_cv_header_stdc = yes; then
277860484Sobrien  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
277960484Sobriencat > conftest.$ac_ext <<EOF
278091041Sobrien#line 2781 "configure"
278160484Sobrien#include "confdefs.h"
278260484Sobrien#include <string.h>
278360484SobrienEOF
278460484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
278560484Sobrien  egrep "memchr" >/dev/null 2>&1; then
278660484Sobrien  :
278760484Sobrienelse
278860484Sobrien  rm -rf conftest*
278960484Sobrien  ac_cv_header_stdc=no
279060484Sobrienfi
279160484Sobrienrm -f conftest*
279233965Sjdp
279360484Sobrienfi
279433965Sjdp
279560484Sobrienif test $ac_cv_header_stdc = yes; then
279660484Sobrien  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
279760484Sobriencat > conftest.$ac_ext <<EOF
279891041Sobrien#line 2799 "configure"
279960484Sobrien#include "confdefs.h"
280060484Sobrien#include <stdlib.h>
280160484SobrienEOF
280260484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
280360484Sobrien  egrep "free" >/dev/null 2>&1; then
280460484Sobrien  :
280560484Sobrienelse
280660484Sobrien  rm -rf conftest*
280760484Sobrien  ac_cv_header_stdc=no
280860484Sobrienfi
280960484Sobrienrm -f conftest*
281033965Sjdp
281160484Sobrienfi
281238889Sjdp
281360484Sobrienif test $ac_cv_header_stdc = yes; then
281460484Sobrien  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
281560484Sobrienif test "$cross_compiling" = yes; then
281660484Sobrien  :
281760484Sobrienelse
281860484Sobrien  cat > conftest.$ac_ext <<EOF
281991041Sobrien#line 2820 "configure"
282060484Sobrien#include "confdefs.h"
282160484Sobrien#include <ctype.h>
282260484Sobrien#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
282360484Sobrien#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
282460484Sobrien#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
282560484Sobrienint main () { int i; for (i = 0; i < 256; i++)
282660484Sobrienif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
282760484Sobrienexit (0); }
282838889Sjdp
282960484SobrienEOF
283091041Sobrienif { (eval echo configure:2831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
283160484Sobrienthen
283260484Sobrien  :
283360484Sobrienelse
283460484Sobrien  echo "configure: failed program was:" >&5
283560484Sobrien  cat conftest.$ac_ext >&5
283660484Sobrien  rm -fr conftest*
283760484Sobrien  ac_cv_header_stdc=no
283833965Sjdpfi
283960484Sobrienrm -fr conftest*
284060484Sobrienfi
284133965Sjdp
284260484Sobrienfi
284360484Sobrienfi
284433965Sjdp
284560484Sobrienecho "$ac_t""$ac_cv_header_stdc" 1>&6
284660484Sobrienif test $ac_cv_header_stdc = yes; then
284760484Sobrien  cat >> confdefs.h <<\EOF
284860484Sobrien#define STDC_HEADERS 1
284960484SobrienEOF
285033965Sjdp
285160484Sobrienfi
285233965Sjdp
285360484Sobrienecho $ac_n "checking for working const""... $ac_c" 1>&6
285491041Sobrienecho "configure:2855: checking for working const" >&5
285560484Sobrienif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
285660484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
285760484Sobrienelse
285860484Sobrien  cat > conftest.$ac_ext <<EOF
285991041Sobrien#line 2860 "configure"
286060484Sobrien#include "confdefs.h"
286133965Sjdp
286260484Sobrienint main() {
286360484Sobrien
286460484Sobrien/* Ultrix mips cc rejects this.  */
286577298Sobrientypedef int charset[2]; const charset x;
286660484Sobrien/* SunOS 4.1.1 cc rejects this.  */
286760484Sobrienchar const *const *ccp;
286860484Sobrienchar **p;
286960484Sobrien/* NEC SVR4.0.2 mips cc rejects this.  */
287060484Sobrienstruct point {int x, y;};
287160484Sobrienstatic struct point const zero = {0,0};
287260484Sobrien/* AIX XL C 1.02.0.0 rejects this.
287360484Sobrien   It does not let you subtract one const X* pointer from another in an arm
287460484Sobrien   of an if-expression whose if-part is not a constant expression */
287560484Sobrienconst char *g = "string";
287660484Sobrienccp = &g + (g ? g-g : 0);
287760484Sobrien/* HPUX 7.0 cc rejects these. */
287860484Sobrien++ccp;
287960484Sobrienp = (char**) ccp;
288060484Sobrienccp = (char const *const *) p;
288160484Sobrien{ /* SCO 3.2v4 cc rejects this.  */
288260484Sobrien  char *t;
288360484Sobrien  char const *s = 0 ? (char *) 0 : (char const *) 0;
288460484Sobrien
288560484Sobrien  *t++ = 0;
288660484Sobrien}
288760484Sobrien{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
288860484Sobrien  int x[] = {25, 17};
288960484Sobrien  const int *foo = &x[0];
289060484Sobrien  ++foo;
289160484Sobrien}
289260484Sobrien{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
289360484Sobrien  typedef const int *iptr;
289460484Sobrien  iptr p = 0;
289560484Sobrien  ++p;
289660484Sobrien}
289760484Sobrien{ /* AIX XL C 1.02.0.0 rejects this saying
289860484Sobrien     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
289960484Sobrien  struct s { int j; const int *ap[3]; };
290060484Sobrien  struct s *b; b->j = 5;
290160484Sobrien}
290260484Sobrien{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
290360484Sobrien  const int foo = 10;
290460484Sobrien}
290560484Sobrien
290660484Sobrien; return 0; }
290760484SobrienEOF
290891041Sobrienif { (eval echo configure:2909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
290960484Sobrien  rm -rf conftest*
291060484Sobrien  ac_cv_c_const=yes
291160484Sobrienelse
291260484Sobrien  echo "configure: failed program was:" >&5
291360484Sobrien  cat conftest.$ac_ext >&5
291460484Sobrien  rm -rf conftest*
291560484Sobrien  ac_cv_c_const=no
291633965Sjdpfi
291760484Sobrienrm -f conftest*
291860484Sobrienfi
291933965Sjdp
292060484Sobrienecho "$ac_t""$ac_cv_c_const" 1>&6
292160484Sobrienif test $ac_cv_c_const = no; then
292260484Sobrien  cat >> confdefs.h <<\EOF
292360484Sobrien#define const 
292460484SobrienEOF
292560484Sobrien
292660484Sobrienfi
292760484Sobrien
292860484Sobrienecho $ac_n "checking for inline""... $ac_c" 1>&6
292991041Sobrienecho "configure:2930: checking for inline" >&5
293060484Sobrienif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
293160484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
293238889Sjdpelse
293360484Sobrien  ac_cv_c_inline=no
293460484Sobrienfor ac_kw in inline __inline__ __inline; do
293560484Sobrien  cat > conftest.$ac_ext <<EOF
293691041Sobrien#line 2937 "configure"
293760484Sobrien#include "confdefs.h"
293860484Sobrien
293960484Sobrienint main() {
294077298Sobrien} $ac_kw foo() {
294160484Sobrien; return 0; }
294260484SobrienEOF
294391041Sobrienif { (eval echo configure:2944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
294460484Sobrien  rm -rf conftest*
294560484Sobrien  ac_cv_c_inline=$ac_kw; break
294660484Sobrienelse
294760484Sobrien  echo "configure: failed program was:" >&5
294860484Sobrien  cat conftest.$ac_ext >&5
294960484Sobrienfi
295060484Sobrienrm -f conftest*
295160484Sobriendone
295260484Sobrien
295360484Sobrienfi
295460484Sobrien
295560484Sobrienecho "$ac_t""$ac_cv_c_inline" 1>&6
295660484Sobriencase "$ac_cv_c_inline" in
295760484Sobrien  inline | yes) ;;
295860484Sobrien  no) cat >> confdefs.h <<\EOF
295960484Sobrien#define inline 
296060484SobrienEOF
296160484Sobrien ;;
296260484Sobrien  *)  cat >> confdefs.h <<EOF
296360484Sobrien#define inline $ac_cv_c_inline
296460484SobrienEOF
296560484Sobrien ;;
296660484Sobrienesac
296760484Sobrien
296860484Sobrienecho $ac_n "checking for off_t""... $ac_c" 1>&6
296991041Sobrienecho "configure:2970: checking for off_t" >&5
297060484Sobrienif eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
297138889Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
297238889Sjdpelse
297360484Sobrien  cat > conftest.$ac_ext <<EOF
297491041Sobrien#line 2975 "configure"
297560484Sobrien#include "confdefs.h"
297660484Sobrien#include <sys/types.h>
297760484Sobrien#if STDC_HEADERS
297860484Sobrien#include <stdlib.h>
297960484Sobrien#include <stddef.h>
298060484Sobrien#endif
298160484SobrienEOF
298260484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
298360484Sobrien  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
298460484Sobrien  rm -rf conftest*
298560484Sobrien  ac_cv_type_off_t=yes
298660484Sobrienelse
298760484Sobrien  rm -rf conftest*
298860484Sobrien  ac_cv_type_off_t=no
298960484Sobrienfi
299060484Sobrienrm -f conftest*
299160484Sobrien
299260484Sobrienfi
299360484Sobrienecho "$ac_t""$ac_cv_type_off_t" 1>&6
299460484Sobrienif test $ac_cv_type_off_t = no; then
299560484Sobrien  cat >> confdefs.h <<\EOF
299660484Sobrien#define off_t long
299760484SobrienEOF
299860484Sobrien
299960484Sobrienfi
300060484Sobrien
300160484Sobrienecho $ac_n "checking for size_t""... $ac_c" 1>&6
300291041Sobrienecho "configure:3003: checking for size_t" >&5
300360484Sobrienif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
300460484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
300560484Sobrienelse
300660484Sobrien  cat > conftest.$ac_ext <<EOF
300791041Sobrien#line 3008 "configure"
300860484Sobrien#include "confdefs.h"
300960484Sobrien#include <sys/types.h>
301060484Sobrien#if STDC_HEADERS
301160484Sobrien#include <stdlib.h>
301260484Sobrien#include <stddef.h>
301360484Sobrien#endif
301460484SobrienEOF
301560484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
301660484Sobrien  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
301760484Sobrien  rm -rf conftest*
301860484Sobrien  ac_cv_type_size_t=yes
301960484Sobrienelse
302060484Sobrien  rm -rf conftest*
302160484Sobrien  ac_cv_type_size_t=no
302260484Sobrienfi
302360484Sobrienrm -f conftest*
302460484Sobrien
302560484Sobrienfi
302660484Sobrienecho "$ac_t""$ac_cv_type_size_t" 1>&6
302760484Sobrienif test $ac_cv_type_size_t = no; then
302860484Sobrien  cat >> confdefs.h <<\EOF
302960484Sobrien#define size_t unsigned
303060484SobrienEOF
303160484Sobrien
303260484Sobrienfi
303360484Sobrien
303460484Sobrien# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
303560484Sobrien# for constant arguments.  Useless!
303660484Sobrienecho $ac_n "checking for working alloca.h""... $ac_c" 1>&6
303791041Sobrienecho "configure:3038: checking for working alloca.h" >&5
303860484Sobrienif eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
303960484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
304060484Sobrienelse
304160484Sobrien  cat > conftest.$ac_ext <<EOF
304291041Sobrien#line 3043 "configure"
304360484Sobrien#include "confdefs.h"
304460484Sobrien#include <alloca.h>
304538889Sjdpint main() {
304677298Sobrienchar *p = alloca(2 * sizeof(int));
304760484Sobrien; return 0; }
304860484SobrienEOF
304991041Sobrienif { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
305060484Sobrien  rm -rf conftest*
305160484Sobrien  ac_cv_header_alloca_h=yes
305260484Sobrienelse
305360484Sobrien  echo "configure: failed program was:" >&5
305460484Sobrien  cat conftest.$ac_ext >&5
305560484Sobrien  rm -rf conftest*
305660484Sobrien  ac_cv_header_alloca_h=no
305760484Sobrienfi
305860484Sobrienrm -f conftest*
305960484Sobrienfi
306060484Sobrien
306160484Sobrienecho "$ac_t""$ac_cv_header_alloca_h" 1>&6
306260484Sobrienif test $ac_cv_header_alloca_h = yes; then
306360484Sobrien  cat >> confdefs.h <<\EOF
306460484Sobrien#define HAVE_ALLOCA_H 1
306560484SobrienEOF
306660484Sobrien
306760484Sobrienfi
306860484Sobrien
306960484Sobrienecho $ac_n "checking for alloca""... $ac_c" 1>&6
307091041Sobrienecho "configure:3071: checking for alloca" >&5
307160484Sobrienif eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
307260484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
307360484Sobrienelse
307460484Sobrien  cat > conftest.$ac_ext <<EOF
307591041Sobrien#line 3076 "configure"
307660484Sobrien#include "confdefs.h"
307760484Sobrien
307860484Sobrien#ifdef __GNUC__
307960484Sobrien# define alloca __builtin_alloca
308060484Sobrien#else
308160484Sobrien# ifdef _MSC_VER
308260484Sobrien#  include <malloc.h>
308360484Sobrien#  define alloca _alloca
308460484Sobrien# else
308560484Sobrien#  if HAVE_ALLOCA_H
308660484Sobrien#   include <alloca.h>
308760484Sobrien#  else
308860484Sobrien#   ifdef _AIX
308960484Sobrien #pragma alloca
309060484Sobrien#   else
309160484Sobrien#    ifndef alloca /* predefined by HP cc +Olibcalls */
309260484Sobrienchar *alloca ();
309360484Sobrien#    endif
309460484Sobrien#   endif
309560484Sobrien#  endif
309660484Sobrien# endif
309760484Sobrien#endif
309860484Sobrien
309960484Sobrienint main() {
310060484Sobrienchar *p = (char *) alloca(1);
310160484Sobrien; return 0; }
310260484SobrienEOF
310391041Sobrienif { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
310460484Sobrien  rm -rf conftest*
310560484Sobrien  ac_cv_func_alloca_works=yes
310660484Sobrienelse
310760484Sobrien  echo "configure: failed program was:" >&5
310860484Sobrien  cat conftest.$ac_ext >&5
310960484Sobrien  rm -rf conftest*
311060484Sobrien  ac_cv_func_alloca_works=no
311160484Sobrienfi
311260484Sobrienrm -f conftest*
311360484Sobrienfi
311460484Sobrien
311560484Sobrienecho "$ac_t""$ac_cv_func_alloca_works" 1>&6
311660484Sobrienif test $ac_cv_func_alloca_works = yes; then
311760484Sobrien  cat >> confdefs.h <<\EOF
311860484Sobrien#define HAVE_ALLOCA 1
311960484SobrienEOF
312060484Sobrien
312160484Sobrienfi
312260484Sobrien
312360484Sobrienif test $ac_cv_func_alloca_works = no; then
312460484Sobrien  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
312560484Sobrien  # that cause trouble.  Some versions do not even contain alloca or
312660484Sobrien  # contain a buggy version.  If you still want to use their alloca,
312760484Sobrien  # use ar to extract alloca.o from them instead of compiling alloca.c.
312860484Sobrien  ALLOCA=alloca.${ac_objext}
312960484Sobrien  cat >> confdefs.h <<\EOF
313060484Sobrien#define C_ALLOCA 1
313160484SobrienEOF
313260484Sobrien
313360484Sobrien
313460484Sobrienecho $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
313591041Sobrienecho "configure:3136: checking whether alloca needs Cray hooks" >&5
313660484Sobrienif eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
313760484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
313860484Sobrienelse
313960484Sobrien  cat > conftest.$ac_ext <<EOF
314091041Sobrien#line 3141 "configure"
314160484Sobrien#include "confdefs.h"
314260484Sobrien#if defined(CRAY) && ! defined(CRAY2)
314360484Sobrienwebecray
314460484Sobrien#else
314560484Sobrienwenotbecray
314660484Sobrien#endif
314760484Sobrien
314860484SobrienEOF
314960484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
315060484Sobrien  egrep "webecray" >/dev/null 2>&1; then
315160484Sobrien  rm -rf conftest*
315260484Sobrien  ac_cv_os_cray=yes
315360484Sobrienelse
315460484Sobrien  rm -rf conftest*
315560484Sobrien  ac_cv_os_cray=no
315660484Sobrienfi
315760484Sobrienrm -f conftest*
315860484Sobrien
315960484Sobrienfi
316060484Sobrien
316160484Sobrienecho "$ac_t""$ac_cv_os_cray" 1>&6
316260484Sobrienif test $ac_cv_os_cray = yes; then
316360484Sobrienfor ac_func in _getb67 GETB67 getb67; do
316460484Sobrien  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
316591041Sobrienecho "configure:3166: checking for $ac_func" >&5
316660484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
316760484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
316860484Sobrienelse
316960484Sobrien  cat > conftest.$ac_ext <<EOF
317091041Sobrien#line 3171 "configure"
317160484Sobrien#include "confdefs.h"
317260484Sobrien/* System header to define __stub macros and hopefully few prototypes,
317360484Sobrien    which can conflict with char $ac_func(); below.  */
317460484Sobrien#include <assert.h>
317560484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
317660484Sobrien/* We use char because int might match the return type of a gcc2
317760484Sobrien    builtin and then its argument prototype would still apply.  */
317860484Sobrienchar $ac_func();
317960484Sobrien
318060484Sobrienint main() {
318160484Sobrien
318260484Sobrien/* The GNU C library defines this for functions which it implements
318360484Sobrien    to always fail with ENOSYS.  Some functions are actually named
318460484Sobrien    something starting with __ and the normal name is an alias.  */
318560484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
318660484Sobrienchoke me
318760484Sobrien#else
318860484Sobrien$ac_func();
318960484Sobrien#endif
319060484Sobrien
319160484Sobrien; return 0; }
319260484SobrienEOF
319391041Sobrienif { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
319460484Sobrien  rm -rf conftest*
319560484Sobrien  eval "ac_cv_func_$ac_func=yes"
319660484Sobrienelse
319760484Sobrien  echo "configure: failed program was:" >&5
319860484Sobrien  cat conftest.$ac_ext >&5
319960484Sobrien  rm -rf conftest*
320060484Sobrien  eval "ac_cv_func_$ac_func=no"
320160484Sobrienfi
320260484Sobrienrm -f conftest*
320360484Sobrienfi
320460484Sobrien
320560484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
320660484Sobrien  echo "$ac_t""yes" 1>&6
320760484Sobrien  cat >> confdefs.h <<EOF
320860484Sobrien#define CRAY_STACKSEG_END $ac_func
320960484SobrienEOF
321060484Sobrien
321160484Sobrien  break
321260484Sobrienelse
321360484Sobrien  echo "$ac_t""no" 1>&6
321460484Sobrienfi
321560484Sobrien
321660484Sobriendone
321760484Sobrienfi
321860484Sobrien
321960484Sobrienecho $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
322091041Sobrienecho "configure:3221: checking stack direction for C alloca" >&5
322160484Sobrienif eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
322260484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
322360484Sobrienelse
322460484Sobrien  if test "$cross_compiling" = yes; then
322560484Sobrien  ac_cv_c_stack_direction=0
322660484Sobrienelse
322760484Sobrien  cat > conftest.$ac_ext <<EOF
322891041Sobrien#line 3229 "configure"
322960484Sobrien#include "confdefs.h"
323060484Sobrienfind_stack_direction ()
323160484Sobrien{
323260484Sobrien  static char *addr = 0;
323360484Sobrien  auto char dummy;
323460484Sobrien  if (addr == 0)
323560484Sobrien    {
323660484Sobrien      addr = &dummy;
323760484Sobrien      return find_stack_direction ();
323860484Sobrien    }
323960484Sobrien  else
324060484Sobrien    return (&dummy > addr) ? 1 : -1;
324138889Sjdp}
324260484Sobrienmain ()
324360484Sobrien{
324460484Sobrien  exit (find_stack_direction() < 0);
324560484Sobrien}
324638889SjdpEOF
324791041Sobrienif { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
324860484Sobrienthen
324960484Sobrien  ac_cv_c_stack_direction=1
325060484Sobrienelse
325160484Sobrien  echo "configure: failed program was:" >&5
325260484Sobrien  cat conftest.$ac_ext >&5
325360484Sobrien  rm -fr conftest*
325460484Sobrien  ac_cv_c_stack_direction=-1
325538889Sjdpfi
325660484Sobrienrm -fr conftest*
325760484Sobrienfi
325833965Sjdp
325938889Sjdpfi
326038889Sjdp
326160484Sobrienecho "$ac_t""$ac_cv_c_stack_direction" 1>&6
326260484Sobriencat >> confdefs.h <<EOF
326360484Sobrien#define STACK_DIRECTION $ac_cv_c_stack_direction
326460484SobrienEOF
326538889Sjdp
326633965Sjdpfi
326760484Sobrien
326860484Sobrienfor ac_hdr in unistd.h
326960484Sobriendo
327060484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
327160484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
327291041Sobrienecho "configure:3273: checking for $ac_hdr" >&5
327360484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
327433965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
327533965Sjdpelse
327633965Sjdp  cat > conftest.$ac_ext <<EOF
327791041Sobrien#line 3278 "configure"
327833965Sjdp#include "confdefs.h"
327960484Sobrien#include <$ac_hdr>
328060484SobrienEOF
328160484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
328291041Sobrien{ (eval echo configure:3283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
328360484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
328460484Sobrienif test -z "$ac_err"; then
328560484Sobrien  rm -rf conftest*
328660484Sobrien  eval "ac_cv_header_$ac_safe=yes"
328760484Sobrienelse
328860484Sobrien  echo "$ac_err" >&5
328960484Sobrien  echo "configure: failed program was:" >&5
329060484Sobrien  cat conftest.$ac_ext >&5
329160484Sobrien  rm -rf conftest*
329260484Sobrien  eval "ac_cv_header_$ac_safe=no"
329360484Sobrienfi
329460484Sobrienrm -f conftest*
329560484Sobrienfi
329660484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
329760484Sobrien  echo "$ac_t""yes" 1>&6
329860484Sobrien    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
329960484Sobrien  cat >> confdefs.h <<EOF
330060484Sobrien#define $ac_tr_hdr 1
330160484SobrienEOF
330260484Sobrien 
330360484Sobrienelse
330460484Sobrien  echo "$ac_t""no" 1>&6
330560484Sobrienfi
330660484Sobriendone
330760484Sobrien
330860484Sobrienfor ac_func in getpagesize
330960484Sobriendo
331060484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
331191041Sobrienecho "configure:3312: checking for $ac_func" >&5
331260484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
331360484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
331460484Sobrienelse
331560484Sobrien  cat > conftest.$ac_ext <<EOF
331691041Sobrien#line 3317 "configure"
331760484Sobrien#include "confdefs.h"
331860484Sobrien/* System header to define __stub macros and hopefully few prototypes,
331960484Sobrien    which can conflict with char $ac_func(); below.  */
332033965Sjdp#include <assert.h>
332160484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
332260484Sobrien/* We use char because int might match the return type of a gcc2
332360484Sobrien    builtin and then its argument prototype would still apply.  */
332460484Sobrienchar $ac_func();
332560484Sobrien
332660484Sobrienint main() {
332760484Sobrien
332860484Sobrien/* The GNU C library defines this for functions which it implements
332960484Sobrien    to always fail with ENOSYS.  Some functions are actually named
333060484Sobrien    something starting with __ and the normal name is an alias.  */
333160484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
333260484Sobrienchoke me
333360484Sobrien#else
333460484Sobrien$ac_func();
333560484Sobrien#endif
333660484Sobrien
333760484Sobrien; return 0; }
333833965SjdpEOF
333991041Sobrienif { (eval echo configure:3340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
334060484Sobrien  rm -rf conftest*
334160484Sobrien  eval "ac_cv_func_$ac_func=yes"
334260484Sobrienelse
334360484Sobrien  echo "configure: failed program was:" >&5
334460484Sobrien  cat conftest.$ac_ext >&5
334560484Sobrien  rm -rf conftest*
334660484Sobrien  eval "ac_cv_func_$ac_func=no"
334760484Sobrienfi
334860484Sobrienrm -f conftest*
334960484Sobrienfi
335060484Sobrien
335160484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
335260484Sobrien  echo "$ac_t""yes" 1>&6
335360484Sobrien    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
335460484Sobrien  cat >> confdefs.h <<EOF
335560484Sobrien#define $ac_tr_func 1
335660484SobrienEOF
335760484Sobrien 
335860484Sobrienelse
335960484Sobrien  echo "$ac_t""no" 1>&6
336060484Sobrienfi
336160484Sobriendone
336260484Sobrien
336360484Sobrienecho $ac_n "checking for working mmap""... $ac_c" 1>&6
336491041Sobrienecho "configure:3365: checking for working mmap" >&5
336560484Sobrienif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
336660484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
336760484Sobrienelse
336860484Sobrien  if test "$cross_compiling" = yes; then
336960484Sobrien  ac_cv_func_mmap_fixed_mapped=no
337060484Sobrienelse
337160484Sobrien  cat > conftest.$ac_ext <<EOF
337291041Sobrien#line 3373 "configure"
337360484Sobrien#include "confdefs.h"
337460484Sobrien
337560484Sobrien/* Thanks to Mike Haertel and Jim Avera for this test.
337660484Sobrien   Here is a matrix of mmap possibilities:
337760484Sobrien	mmap private not fixed
337860484Sobrien	mmap private fixed at somewhere currently unmapped
337960484Sobrien	mmap private fixed at somewhere already mapped
338060484Sobrien	mmap shared not fixed
338160484Sobrien	mmap shared fixed at somewhere currently unmapped
338260484Sobrien	mmap shared fixed at somewhere already mapped
338360484Sobrien   For private mappings, we should verify that changes cannot be read()
338460484Sobrien   back from the file, nor mmap's back from the file at a different
338560484Sobrien   address.  (There have been systems where private was not correctly
338660484Sobrien   implemented like the infamous i386 svr4.0, and systems where the
338760484Sobrien   VM page cache was not coherent with the filesystem buffer cache
338860484Sobrien   like early versions of FreeBSD and possibly contemporary NetBSD.)
338960484Sobrien   For shared mappings, we should conversely verify that changes get
339060484Sobrien   propogated back to all the places they're supposed to be.
339160484Sobrien
339260484Sobrien   Grep wants private fixed already mapped.
339360484Sobrien   The main things grep needs to know about mmap are:
339460484Sobrien   * does it exist and is it safe to write into the mmap'd area
339560484Sobrien   * how to use it (BSD variants)  */
339660484Sobrien#include <sys/types.h>
339760484Sobrien#include <fcntl.h>
339860484Sobrien#include <sys/mman.h>
339960484Sobrien
340060484Sobrien/* This mess was copied from the GNU getpagesize.h.  */
340160484Sobrien#ifndef HAVE_GETPAGESIZE
340277298Sobrien# ifdef HAVE_UNISTD_H
340377298Sobrien#  include <unistd.h>
340477298Sobrien# endif
340560484Sobrien
340660484Sobrien/* Assume that all systems that can run configure have sys/param.h.  */
340760484Sobrien# ifndef HAVE_SYS_PARAM_H
340860484Sobrien#  define HAVE_SYS_PARAM_H 1
340960484Sobrien# endif
341060484Sobrien
341160484Sobrien# ifdef _SC_PAGESIZE
341260484Sobrien#  define getpagesize() sysconf(_SC_PAGESIZE)
341360484Sobrien# else /* no _SC_PAGESIZE */
341460484Sobrien#  ifdef HAVE_SYS_PARAM_H
341560484Sobrien#   include <sys/param.h>
341660484Sobrien#   ifdef EXEC_PAGESIZE
341760484Sobrien#    define getpagesize() EXEC_PAGESIZE
341860484Sobrien#   else /* no EXEC_PAGESIZE */
341960484Sobrien#    ifdef NBPG
342060484Sobrien#     define getpagesize() NBPG * CLSIZE
342160484Sobrien#     ifndef CLSIZE
342260484Sobrien#      define CLSIZE 1
342360484Sobrien#     endif /* no CLSIZE */
342460484Sobrien#    else /* no NBPG */
342560484Sobrien#     ifdef NBPC
342660484Sobrien#      define getpagesize() NBPC
342760484Sobrien#     else /* no NBPC */
342860484Sobrien#      ifdef PAGESIZE
342960484Sobrien#       define getpagesize() PAGESIZE
343060484Sobrien#      endif /* PAGESIZE */
343160484Sobrien#     endif /* no NBPC */
343260484Sobrien#    endif /* no NBPG */
343360484Sobrien#   endif /* no EXEC_PAGESIZE */
343460484Sobrien#  else /* no HAVE_SYS_PARAM_H */
343560484Sobrien#   define getpagesize() 8192	/* punt totally */
343660484Sobrien#  endif /* no HAVE_SYS_PARAM_H */
343760484Sobrien# endif /* no _SC_PAGESIZE */
343860484Sobrien
343960484Sobrien#endif /* no HAVE_GETPAGESIZE */
344060484Sobrien
344160484Sobrien#ifdef __cplusplus
344260484Sobrienextern "C" { void *malloc(unsigned); }
344360484Sobrien#else
344460484Sobrienchar *malloc();
344560484Sobrien#endif
344660484Sobrien
344760484Sobrienint
344860484Sobrienmain()
344960484Sobrien{
345060484Sobrien	char *data, *data2, *data3;
345160484Sobrien	int i, pagesize;
345260484Sobrien	int fd;
345360484Sobrien
345460484Sobrien	pagesize = getpagesize();
345560484Sobrien
345660484Sobrien	/*
345760484Sobrien	 * First, make a file with some known garbage in it.
345860484Sobrien	 */
345977298Sobrien	data = malloc(pagesize);
346060484Sobrien	if (!data)
346160484Sobrien		exit(1);
346260484Sobrien	for (i = 0; i < pagesize; ++i)
346360484Sobrien		*(data + i) = rand();
346460484Sobrien	umask(0);
346560484Sobrien	fd = creat("conftestmmap", 0600);
346660484Sobrien	if (fd < 0)
346760484Sobrien		exit(1);
346860484Sobrien	if (write(fd, data, pagesize) != pagesize)
346960484Sobrien		exit(1);
347060484Sobrien	close(fd);
347160484Sobrien
347260484Sobrien	/*
347360484Sobrien	 * Next, try to mmap the file at a fixed address which
347460484Sobrien	 * already has something else allocated at it.  If we can,
347560484Sobrien	 * also make sure that we see the same garbage.
347660484Sobrien	 */
347760484Sobrien	fd = open("conftestmmap", O_RDWR);
347860484Sobrien	if (fd < 0)
347960484Sobrien		exit(1);
348077298Sobrien	data2 = malloc(2 * pagesize);
348160484Sobrien	if (!data2)
348260484Sobrien		exit(1);
348360484Sobrien	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
348460484Sobrien	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
348560484Sobrien	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
348660484Sobrien		exit(1);
348760484Sobrien	for (i = 0; i < pagesize; ++i)
348860484Sobrien		if (*(data + i) != *(data2 + i))
348960484Sobrien			exit(1);
349060484Sobrien
349160484Sobrien	/*
349260484Sobrien	 * Finally, make sure that changes to the mapped area
349360484Sobrien	 * do not percolate back to the file as seen by read().
349460484Sobrien	 * (This is a bug on some variants of i386 svr4.0.)
349560484Sobrien	 */
349660484Sobrien	for (i = 0; i < pagesize; ++i)
349760484Sobrien		*(data2 + i) = *(data2 + i) + 1;
349877298Sobrien	data3 = malloc(pagesize);
349960484Sobrien	if (!data3)
350060484Sobrien		exit(1);
350160484Sobrien	if (read(fd, data3, pagesize) != pagesize)
350260484Sobrien		exit(1);
350360484Sobrien	for (i = 0; i < pagesize; ++i)
350460484Sobrien		if (*(data + i) != *(data3 + i))
350560484Sobrien			exit(1);
350660484Sobrien	close(fd);
350760484Sobrien	unlink("conftestmmap");
350860484Sobrien	exit(0);
350960484Sobrien}
351060484Sobrien
351160484SobrienEOF
351291041Sobrienif { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
351360484Sobrienthen
351460484Sobrien  ac_cv_func_mmap_fixed_mapped=yes
351560484Sobrienelse
351660484Sobrien  echo "configure: failed program was:" >&5
351760484Sobrien  cat conftest.$ac_ext >&5
351860484Sobrien  rm -fr conftest*
351960484Sobrien  ac_cv_func_mmap_fixed_mapped=no
352060484Sobrienfi
352160484Sobrienrm -fr conftest*
352260484Sobrienfi
352360484Sobrien
352460484Sobrienfi
352560484Sobrien
352660484Sobrienecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
352760484Sobrienif test $ac_cv_func_mmap_fixed_mapped = yes; then
352860484Sobrien  cat >> confdefs.h <<\EOF
352960484Sobrien#define HAVE_MMAP 1
353060484SobrienEOF
353160484Sobrien
353260484Sobrienfi
353360484Sobrien
353460484Sobrien                              
353560484Sobrien   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
353660484Sobrienunistd.h values.h sys/param.h
353760484Sobriendo
353860484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
353960484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
354091041Sobrienecho "configure:3541: checking for $ac_hdr" >&5
354160484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
354260484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
354360484Sobrienelse
354460484Sobrien  cat > conftest.$ac_ext <<EOF
354591041Sobrien#line 3546 "configure"
354660484Sobrien#include "confdefs.h"
354760484Sobrien#include <$ac_hdr>
354860484SobrienEOF
354933965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
355091041Sobrien{ (eval echo configure:3551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
355160484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
355233965Sjdpif test -z "$ac_err"; then
355360484Sobrien  rm -rf conftest*
355460484Sobrien  eval "ac_cv_header_$ac_safe=yes"
355533965Sjdpelse
355633965Sjdp  echo "$ac_err" >&5
355733965Sjdp  echo "configure: failed program was:" >&5
355833965Sjdp  cat conftest.$ac_ext >&5
355933965Sjdp  rm -rf conftest*
356060484Sobrien  eval "ac_cv_header_$ac_safe=no"
356160484Sobrienfi
356260484Sobrienrm -f conftest*
356360484Sobrienfi
356460484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
356560484Sobrien  echo "$ac_t""yes" 1>&6
356660484Sobrien    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
356760484Sobrien  cat >> confdefs.h <<EOF
356860484Sobrien#define $ac_tr_hdr 1
356960484SobrienEOF
357060484Sobrien 
357160484Sobrienelse
357260484Sobrien  echo "$ac_t""no" 1>&6
357360484Sobrienfi
357460484Sobriendone
357560484Sobrien
357660484Sobrien   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
357760484Sobrien__argz_count __argz_stringify __argz_next
357860484Sobriendo
357960484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
358091041Sobrienecho "configure:3581: checking for $ac_func" >&5
358160484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
358260484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
358360484Sobrienelse
358433965Sjdp  cat > conftest.$ac_ext <<EOF
358591041Sobrien#line 3586 "configure"
358633965Sjdp#include "confdefs.h"
358760484Sobrien/* System header to define __stub macros and hopefully few prototypes,
358860484Sobrien    which can conflict with char $ac_func(); below.  */
358933965Sjdp#include <assert.h>
359060484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
359160484Sobrien/* We use char because int might match the return type of a gcc2
359260484Sobrien    builtin and then its argument prototype would still apply.  */
359360484Sobrienchar $ac_func();
359460484Sobrien
359560484Sobrienint main() {
359660484Sobrien
359760484Sobrien/* The GNU C library defines this for functions which it implements
359860484Sobrien    to always fail with ENOSYS.  Some functions are actually named
359960484Sobrien    something starting with __ and the normal name is an alias.  */
360060484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
360160484Sobrienchoke me
360260484Sobrien#else
360360484Sobrien$ac_func();
360460484Sobrien#endif
360560484Sobrien
360660484Sobrien; return 0; }
360733965SjdpEOF
360891041Sobrienif { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
360960484Sobrien  rm -rf conftest*
361060484Sobrien  eval "ac_cv_func_$ac_func=yes"
361160484Sobrienelse
361260484Sobrien  echo "configure: failed program was:" >&5
361360484Sobrien  cat conftest.$ac_ext >&5
361460484Sobrien  rm -rf conftest*
361560484Sobrien  eval "ac_cv_func_$ac_func=no"
361660484Sobrienfi
361760484Sobrienrm -f conftest*
361860484Sobrienfi
361960484Sobrien
362060484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
362160484Sobrien  echo "$ac_t""yes" 1>&6
362260484Sobrien    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
362360484Sobrien  cat >> confdefs.h <<EOF
362460484Sobrien#define $ac_tr_func 1
362560484SobrienEOF
362660484Sobrien 
362760484Sobrienelse
362860484Sobrien  echo "$ac_t""no" 1>&6
362960484Sobrienfi
363060484Sobriendone
363160484Sobrien
363260484Sobrien
363360484Sobrien   if test "${ac_cv_func_stpcpy+set}" != "set"; then
363460484Sobrien     for ac_func in stpcpy
363560484Sobriendo
363660484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
363791041Sobrienecho "configure:3638: checking for $ac_func" >&5
363860484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
363960484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
364060484Sobrienelse
364160484Sobrien  cat > conftest.$ac_ext <<EOF
364291041Sobrien#line 3643 "configure"
364360484Sobrien#include "confdefs.h"
364460484Sobrien/* System header to define __stub macros and hopefully few prototypes,
364560484Sobrien    which can conflict with char $ac_func(); below.  */
364660484Sobrien#include <assert.h>
364760484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
364860484Sobrien/* We use char because int might match the return type of a gcc2
364960484Sobrien    builtin and then its argument prototype would still apply.  */
365060484Sobrienchar $ac_func();
365160484Sobrien
365260484Sobrienint main() {
365360484Sobrien
365460484Sobrien/* The GNU C library defines this for functions which it implements
365560484Sobrien    to always fail with ENOSYS.  Some functions are actually named
365660484Sobrien    something starting with __ and the normal name is an alias.  */
365760484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
365860484Sobrienchoke me
365960484Sobrien#else
366060484Sobrien$ac_func();
366160484Sobrien#endif
366260484Sobrien
366360484Sobrien; return 0; }
366460484SobrienEOF
366591041Sobrienif { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
366660484Sobrien  rm -rf conftest*
366760484Sobrien  eval "ac_cv_func_$ac_func=yes"
366860484Sobrienelse
366960484Sobrien  echo "configure: failed program was:" >&5
367060484Sobrien  cat conftest.$ac_ext >&5
367160484Sobrien  rm -rf conftest*
367260484Sobrien  eval "ac_cv_func_$ac_func=no"
367360484Sobrienfi
367460484Sobrienrm -f conftest*
367560484Sobrienfi
367660484Sobrien
367760484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
367860484Sobrien  echo "$ac_t""yes" 1>&6
367960484Sobrien    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
368060484Sobrien  cat >> confdefs.h <<EOF
368160484Sobrien#define $ac_tr_func 1
368260484SobrienEOF
368360484Sobrien 
368460484Sobrienelse
368560484Sobrien  echo "$ac_t""no" 1>&6
368660484Sobrienfi
368760484Sobriendone
368860484Sobrien
368960484Sobrien   fi
369060484Sobrien   if test "${ac_cv_func_stpcpy}" = "yes"; then
369160484Sobrien     cat >> confdefs.h <<\EOF
369260484Sobrien#define HAVE_STPCPY 1
369360484SobrienEOF
369460484Sobrien
369560484Sobrien   fi
369660484Sobrien
369760484Sobrien   if test $ac_cv_header_locale_h = yes; then
369860484Sobrien    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
369991041Sobrienecho "configure:3700: checking for LC_MESSAGES" >&5
370060484Sobrienif eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
370160484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
370260484Sobrienelse
370360484Sobrien  cat > conftest.$ac_ext <<EOF
370491041Sobrien#line 3705 "configure"
370560484Sobrien#include "confdefs.h"
370660484Sobrien#include <locale.h>
370760484Sobrienint main() {
370860484Sobrienreturn LC_MESSAGES
370960484Sobrien; return 0; }
371060484SobrienEOF
371191041Sobrienif { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
371260484Sobrien  rm -rf conftest*
371360484Sobrien  am_cv_val_LC_MESSAGES=yes
371460484Sobrienelse
371560484Sobrien  echo "configure: failed program was:" >&5
371660484Sobrien  cat conftest.$ac_ext >&5
371760484Sobrien  rm -rf conftest*
371860484Sobrien  am_cv_val_LC_MESSAGES=no
371960484Sobrienfi
372060484Sobrienrm -f conftest*
372160484Sobrienfi
372260484Sobrien
372360484Sobrienecho "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
372460484Sobrien    if test $am_cv_val_LC_MESSAGES = yes; then
372560484Sobrien      cat >> confdefs.h <<\EOF
372660484Sobrien#define HAVE_LC_MESSAGES 1
372760484SobrienEOF
372860484Sobrien
372960484Sobrien    fi
373060484Sobrien  fi
373160484Sobrien   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
373291041Sobrienecho "configure:3733: checking whether NLS is requested" >&5
373360484Sobrien        # Check whether --enable-nls or --disable-nls was given.
373460484Sobrienif test "${enable_nls+set}" = set; then
373560484Sobrien  enableval="$enable_nls"
373660484Sobrien  USE_NLS=$enableval
373760484Sobrienelse
373860484Sobrien  USE_NLS=yes
373960484Sobrienfi
374060484Sobrien
374160484Sobrien    echo "$ac_t""$USE_NLS" 1>&6
374260484Sobrien    
374360484Sobrien
374460484Sobrien    USE_INCLUDED_LIBINTL=no
374560484Sobrien
374660484Sobrien        if test "$USE_NLS" = "yes"; then
374760484Sobrien      cat >> confdefs.h <<\EOF
374860484Sobrien#define ENABLE_NLS 1
374960484SobrienEOF
375060484Sobrien
375160484Sobrien      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
375291041Sobrienecho "configure:3753: checking whether included gettext is requested" >&5
375360484Sobrien      # Check whether --with-included-gettext or --without-included-gettext was given.
375460484Sobrienif test "${with_included_gettext+set}" = set; then
375560484Sobrien  withval="$with_included_gettext"
375660484Sobrien  nls_cv_force_use_gnu_gettext=$withval
375760484Sobrienelse
375860484Sobrien  nls_cv_force_use_gnu_gettext=no
375960484Sobrienfi
376060484Sobrien
376160484Sobrien      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
376260484Sobrien
376360484Sobrien      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
376460484Sobrien      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
376560484Sobrien                        		nls_cv_header_intl=
376660484Sobrien	nls_cv_header_libgt=
376760484Sobrien	CATOBJEXT=NONE
376860484Sobrien
376960484Sobrien	ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
377060484Sobrienecho $ac_n "checking for libintl.h""... $ac_c" 1>&6
377191041Sobrienecho "configure:3772: checking for libintl.h" >&5
377260484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
377360484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
377460484Sobrienelse
377560484Sobrien  cat > conftest.$ac_ext <<EOF
377691041Sobrien#line 3777 "configure"
377760484Sobrien#include "confdefs.h"
377860484Sobrien#include <libintl.h>
377960484SobrienEOF
378033965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
378191041Sobrien{ (eval echo configure:3782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
378260484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
378333965Sjdpif test -z "$ac_err"; then
378460484Sobrien  rm -rf conftest*
378560484Sobrien  eval "ac_cv_header_$ac_safe=yes"
378633965Sjdpelse
378733965Sjdp  echo "$ac_err" >&5
378833965Sjdp  echo "configure: failed program was:" >&5
378933965Sjdp  cat conftest.$ac_ext >&5
379033965Sjdp  rm -rf conftest*
379160484Sobrien  eval "ac_cv_header_$ac_safe=no"
379233965Sjdpfi
379333965Sjdprm -f conftest*
379433965Sjdpfi
379560484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
379660484Sobrien  echo "$ac_t""yes" 1>&6
379760484Sobrien  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
379891041Sobrienecho "configure:3799: checking for gettext in libc" >&5
379960484Sobrienif eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
380060484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
380160484Sobrienelse
380260484Sobrien  cat > conftest.$ac_ext <<EOF
380391041Sobrien#line 3804 "configure"
380460484Sobrien#include "confdefs.h"
380560484Sobrien#include <libintl.h>
380660484Sobrienint main() {
380760484Sobrienreturn (int) gettext ("")
380860484Sobrien; return 0; }
380960484SobrienEOF
381091041Sobrienif { (eval echo configure:3811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
381160484Sobrien  rm -rf conftest*
381260484Sobrien  gt_cv_func_gettext_libc=yes
381360484Sobrienelse
381460484Sobrien  echo "configure: failed program was:" >&5
381560484Sobrien  cat conftest.$ac_ext >&5
381660484Sobrien  rm -rf conftest*
381760484Sobrien  gt_cv_func_gettext_libc=no
381860484Sobrienfi
381933965Sjdprm -f conftest*
382033965Sjdpfi
382160484Sobrien
382260484Sobrienecho "$ac_t""$gt_cv_func_gettext_libc" 1>&6
382360484Sobrien
382460484Sobrien	   if test "$gt_cv_func_gettext_libc" != "yes"; then
382560484Sobrien	     echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
382691041Sobrienecho "configure:3827: checking for bindtextdomain in -lintl" >&5
382760484Sobrienac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
382860484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
382960484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
383033965Sjdpelse
383160484Sobrien  ac_save_LIBS="$LIBS"
383260484SobrienLIBS="-lintl  $LIBS"
383360484Sobriencat > conftest.$ac_ext <<EOF
383491041Sobrien#line 3835 "configure"
383560484Sobrien#include "confdefs.h"
383660484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
383760484Sobrien/* We use char because int might match the return type of a gcc2
383860484Sobrien    builtin and then its argument prototype would still apply.  */
383960484Sobrienchar bindtextdomain();
384060484Sobrien
384160484Sobrienint main() {
384260484Sobrienbindtextdomain()
384360484Sobrien; return 0; }
384460484SobrienEOF
384591041Sobrienif { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
384660484Sobrien  rm -rf conftest*
384760484Sobrien  eval "ac_cv_lib_$ac_lib_var=yes"
384860484Sobrienelse
384960484Sobrien  echo "configure: failed program was:" >&5
385060484Sobrien  cat conftest.$ac_ext >&5
385160484Sobrien  rm -rf conftest*
385260484Sobrien  eval "ac_cv_lib_$ac_lib_var=no"
385333965Sjdpfi
385460484Sobrienrm -f conftest*
385560484SobrienLIBS="$ac_save_LIBS"
385633965Sjdp
385760484Sobrienfi
385860484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
385960484Sobrien  echo "$ac_t""yes" 1>&6
386060484Sobrien  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
386191041Sobrienecho "configure:3862: checking for gettext in libintl" >&5
386260484Sobrienif eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
386360484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
386460484Sobrienelse
386560484Sobrien  cat > conftest.$ac_ext <<EOF
386691041Sobrien#line 3867 "configure"
386760484Sobrien#include "confdefs.h"
386860484Sobrien
386960484Sobrienint main() {
387060484Sobrienreturn (int) gettext ("")
387160484Sobrien; return 0; }
387260484SobrienEOF
387391041Sobrienif { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
387460484Sobrien  rm -rf conftest*
387560484Sobrien  gt_cv_func_gettext_libintl=yes
387660484Sobrienelse
387760484Sobrien  echo "configure: failed program was:" >&5
387860484Sobrien  cat conftest.$ac_ext >&5
387960484Sobrien  rm -rf conftest*
388060484Sobrien  gt_cv_func_gettext_libintl=no
388160484Sobrienfi
388260484Sobrienrm -f conftest*
388360484Sobrienfi
388460484Sobrien
388560484Sobrienecho "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
388660484Sobrienelse
388760484Sobrien  echo "$ac_t""no" 1>&6
388860484Sobrienfi
388960484Sobrien
389060484Sobrien	   fi
389160484Sobrien
389260484Sobrien	   if test "$gt_cv_func_gettext_libc" = "yes" \
389360484Sobrien	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
389460484Sobrien	      cat >> confdefs.h <<\EOF
389560484Sobrien#define HAVE_GETTEXT 1
389660484SobrienEOF
389760484Sobrien
389860484Sobrien	      # Extract the first word of "msgfmt", so it can be a program name with args.
389960484Sobrienset dummy msgfmt; ac_word=$2
390060484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
390191041Sobrienecho "configure:3902: checking for $ac_word" >&5
390260484Sobrienif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
390360484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
390460484Sobrienelse
390560484Sobrien  case "$MSGFMT" in
390660484Sobrien  /*)
390760484Sobrien  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
390860484Sobrien  ;;
390960484Sobrien  *)
391060484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
391160484Sobrien  for ac_dir in $PATH; do
391260484Sobrien    test -z "$ac_dir" && ac_dir=.
391360484Sobrien    if test -f $ac_dir/$ac_word; then
391460484Sobrien      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
391560484Sobrien	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
391660484Sobrien	break
391760484Sobrien      fi
391860484Sobrien    fi
391960484Sobrien  done
392060484Sobrien  IFS="$ac_save_ifs"
392160484Sobrien  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
392260484Sobrien  ;;
392360484Sobrienesac
392460484Sobrienfi
392560484SobrienMSGFMT="$ac_cv_path_MSGFMT"
392660484Sobrienif test -n "$MSGFMT"; then
392760484Sobrien  echo "$ac_t""$MSGFMT" 1>&6
392860484Sobrienelse
392960484Sobrien  echo "$ac_t""no" 1>&6
393060484Sobrienfi
393160484Sobrien	      if test "$MSGFMT" != "no"; then
393260484Sobrien		for ac_func in dcgettext
393360484Sobriendo
393460484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
393591041Sobrienecho "configure:3936: checking for $ac_func" >&5
393660484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
393760484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
393860484Sobrienelse
393960484Sobrien  cat > conftest.$ac_ext <<EOF
394091041Sobrien#line 3941 "configure"
394160484Sobrien#include "confdefs.h"
394260484Sobrien/* System header to define __stub macros and hopefully few prototypes,
394360484Sobrien    which can conflict with char $ac_func(); below.  */
394460484Sobrien#include <assert.h>
394560484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
394660484Sobrien/* We use char because int might match the return type of a gcc2
394760484Sobrien    builtin and then its argument prototype would still apply.  */
394860484Sobrienchar $ac_func();
394960484Sobrien
395060484Sobrienint main() {
395160484Sobrien
395260484Sobrien/* The GNU C library defines this for functions which it implements
395360484Sobrien    to always fail with ENOSYS.  Some functions are actually named
395460484Sobrien    something starting with __ and the normal name is an alias.  */
395560484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
395660484Sobrienchoke me
395760484Sobrien#else
395860484Sobrien$ac_func();
395960484Sobrien#endif
396060484Sobrien
396160484Sobrien; return 0; }
396260484SobrienEOF
396391041Sobrienif { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
396460484Sobrien  rm -rf conftest*
396560484Sobrien  eval "ac_cv_func_$ac_func=yes"
396660484Sobrienelse
396760484Sobrien  echo "configure: failed program was:" >&5
396860484Sobrien  cat conftest.$ac_ext >&5
396960484Sobrien  rm -rf conftest*
397060484Sobrien  eval "ac_cv_func_$ac_func=no"
397160484Sobrienfi
397260484Sobrienrm -f conftest*
397360484Sobrienfi
397460484Sobrien
397560484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
397660484Sobrien  echo "$ac_t""yes" 1>&6
397760484Sobrien    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
397860484Sobrien  cat >> confdefs.h <<EOF
397960484Sobrien#define $ac_tr_func 1
398060484SobrienEOF
398160484Sobrien 
398260484Sobrienelse
398360484Sobrien  echo "$ac_t""no" 1>&6
398460484Sobrienfi
398560484Sobriendone
398660484Sobrien
398760484Sobrien		# Extract the first word of "gmsgfmt", so it can be a program name with args.
398860484Sobrienset dummy gmsgfmt; ac_word=$2
398960484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
399091041Sobrienecho "configure:3991: checking for $ac_word" >&5
399160484Sobrienif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
399260484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
399360484Sobrienelse
399460484Sobrien  case "$GMSGFMT" in
399560484Sobrien  /*)
399660484Sobrien  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
399760484Sobrien  ;;
399860484Sobrien  ?:/*)			 
399960484Sobrien  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
400060484Sobrien  ;;
400160484Sobrien  *)
400260484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
400360484Sobrien  ac_dummy="$PATH"
400460484Sobrien  for ac_dir in $ac_dummy; do 
400560484Sobrien    test -z "$ac_dir" && ac_dir=.
400660484Sobrien    if test -f $ac_dir/$ac_word; then
400760484Sobrien      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
400860484Sobrien      break
400960484Sobrien    fi
401060484Sobrien  done
401160484Sobrien  IFS="$ac_save_ifs"
401260484Sobrien  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
401360484Sobrien  ;;
401460484Sobrienesac
401560484Sobrienfi
401660484SobrienGMSGFMT="$ac_cv_path_GMSGFMT"
401760484Sobrienif test -n "$GMSGFMT"; then
401860484Sobrien  echo "$ac_t""$GMSGFMT" 1>&6
401960484Sobrienelse
402060484Sobrien  echo "$ac_t""no" 1>&6
402160484Sobrienfi
402260484Sobrien
402360484Sobrien		# Extract the first word of "xgettext", so it can be a program name with args.
402460484Sobrienset dummy xgettext; ac_word=$2
402560484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
402691041Sobrienecho "configure:4027: checking for $ac_word" >&5
402760484Sobrienif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
402860484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
402960484Sobrienelse
403060484Sobrien  case "$XGETTEXT" in
403160484Sobrien  /*)
403260484Sobrien  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
403360484Sobrien  ;;
403460484Sobrien  *)
403560484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
403660484Sobrien  for ac_dir in $PATH; do
403760484Sobrien    test -z "$ac_dir" && ac_dir=.
403860484Sobrien    if test -f $ac_dir/$ac_word; then
403960484Sobrien      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
404060484Sobrien	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
404160484Sobrien	break
404260484Sobrien      fi
404360484Sobrien    fi
404460484Sobrien  done
404560484Sobrien  IFS="$ac_save_ifs"
404660484Sobrien  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
404760484Sobrien  ;;
404860484Sobrienesac
404960484Sobrienfi
405060484SobrienXGETTEXT="$ac_cv_path_XGETTEXT"
405160484Sobrienif test -n "$XGETTEXT"; then
405260484Sobrien  echo "$ac_t""$XGETTEXT" 1>&6
405360484Sobrienelse
405460484Sobrien  echo "$ac_t""no" 1>&6
405560484Sobrienfi
405660484Sobrien
405760484Sobrien		cat > conftest.$ac_ext <<EOF
405891041Sobrien#line 4059 "configure"
405960484Sobrien#include "confdefs.h"
406060484Sobrien
406160484Sobrienint main() {
406260484Sobrienextern int _nl_msg_cat_cntr;
406360484Sobrien			       return _nl_msg_cat_cntr
406460484Sobrien; return 0; }
406560484SobrienEOF
406691041Sobrienif { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
406760484Sobrien  rm -rf conftest*
406860484Sobrien  CATOBJEXT=.gmo
406960484Sobrien		   DATADIRNAME=share
407060484Sobrienelse
407160484Sobrien  echo "configure: failed program was:" >&5
407260484Sobrien  cat conftest.$ac_ext >&5
407360484Sobrien  rm -rf conftest*
407460484Sobrien  CATOBJEXT=.mo
407560484Sobrien		   DATADIRNAME=lib
407660484Sobrienfi
407760484Sobrienrm -f conftest*
407860484Sobrien		INSTOBJEXT=.mo
407960484Sobrien	      fi
408060484Sobrien	    fi
408160484Sobrien	
408260484Sobrienelse
408360484Sobrien  echo "$ac_t""no" 1>&6
408460484Sobrienfi
408560484Sobrien
408660484Sobrien
408760484Sobrien	        
408860484Sobrien        if test "$CATOBJEXT" = "NONE"; then
408960484Sobrien	  	  	  nls_cv_use_gnu_gettext=yes
409060484Sobrien        fi
409160484Sobrien      fi
409260484Sobrien
409360484Sobrien      if test "$nls_cv_use_gnu_gettext" = "yes"; then
409460484Sobrien                INTLOBJS="\$(GETTOBJS)"
409560484Sobrien        # Extract the first word of "msgfmt", so it can be a program name with args.
409660484Sobrienset dummy msgfmt; ac_word=$2
409760484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
409891041Sobrienecho "configure:4099: checking for $ac_word" >&5
409960484Sobrienif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
410060484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
410160484Sobrienelse
410260484Sobrien  case "$MSGFMT" in
410360484Sobrien  /*)
410460484Sobrien  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
410560484Sobrien  ;;
410660484Sobrien  *)
410760484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
410860484Sobrien  for ac_dir in $PATH; do
410960484Sobrien    test -z "$ac_dir" && ac_dir=.
411060484Sobrien    if test -f $ac_dir/$ac_word; then
411160484Sobrien      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
411260484Sobrien	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
411360484Sobrien	break
411460484Sobrien      fi
411560484Sobrien    fi
411660484Sobrien  done
411760484Sobrien  IFS="$ac_save_ifs"
411860484Sobrien  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
411960484Sobrien  ;;
412060484Sobrienesac
412160484Sobrienfi
412260484SobrienMSGFMT="$ac_cv_path_MSGFMT"
412360484Sobrienif test -n "$MSGFMT"; then
412460484Sobrien  echo "$ac_t""$MSGFMT" 1>&6
412560484Sobrienelse
412660484Sobrien  echo "$ac_t""no" 1>&6
412760484Sobrienfi
412860484Sobrien
412960484Sobrien        # Extract the first word of "gmsgfmt", so it can be a program name with args.
413060484Sobrienset dummy gmsgfmt; ac_word=$2
413160484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
413291041Sobrienecho "configure:4133: checking for $ac_word" >&5
413360484Sobrienif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
413460484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
413560484Sobrienelse
413660484Sobrien  case "$GMSGFMT" in
413760484Sobrien  /*)
413860484Sobrien  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
413960484Sobrien  ;;
414060484Sobrien  ?:/*)			 
414160484Sobrien  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
414260484Sobrien  ;;
414360484Sobrien  *)
414460484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
414560484Sobrien  ac_dummy="$PATH"
414660484Sobrien  for ac_dir in $ac_dummy; do 
414760484Sobrien    test -z "$ac_dir" && ac_dir=.
414860484Sobrien    if test -f $ac_dir/$ac_word; then
414960484Sobrien      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
415060484Sobrien      break
415160484Sobrien    fi
415260484Sobrien  done
415360484Sobrien  IFS="$ac_save_ifs"
415460484Sobrien  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
415560484Sobrien  ;;
415660484Sobrienesac
415760484Sobrienfi
415860484SobrienGMSGFMT="$ac_cv_path_GMSGFMT"
415960484Sobrienif test -n "$GMSGFMT"; then
416060484Sobrien  echo "$ac_t""$GMSGFMT" 1>&6
416160484Sobrienelse
416260484Sobrien  echo "$ac_t""no" 1>&6
416360484Sobrienfi
416460484Sobrien
416560484Sobrien        # Extract the first word of "xgettext", so it can be a program name with args.
416660484Sobrienset dummy xgettext; ac_word=$2
416760484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
416891041Sobrienecho "configure:4169: checking for $ac_word" >&5
416960484Sobrienif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
417060484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
417160484Sobrienelse
417260484Sobrien  case "$XGETTEXT" in
417360484Sobrien  /*)
417460484Sobrien  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
417560484Sobrien  ;;
417660484Sobrien  *)
417760484Sobrien  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
417860484Sobrien  for ac_dir in $PATH; do
417960484Sobrien    test -z "$ac_dir" && ac_dir=.
418060484Sobrien    if test -f $ac_dir/$ac_word; then
418160484Sobrien      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
418260484Sobrien	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
418360484Sobrien	break
418460484Sobrien      fi
418560484Sobrien    fi
418660484Sobrien  done
418760484Sobrien  IFS="$ac_save_ifs"
418860484Sobrien  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
418960484Sobrien  ;;
419060484Sobrienesac
419160484Sobrienfi
419260484SobrienXGETTEXT="$ac_cv_path_XGETTEXT"
419360484Sobrienif test -n "$XGETTEXT"; then
419460484Sobrien  echo "$ac_t""$XGETTEXT" 1>&6
419560484Sobrienelse
419660484Sobrien  echo "$ac_t""no" 1>&6
419760484Sobrienfi
419860484Sobrien
419960484Sobrien        
420060484Sobrien	USE_INCLUDED_LIBINTL=yes
420160484Sobrien        CATOBJEXT=.gmo
420260484Sobrien        INSTOBJEXT=.mo
420360484Sobrien        DATADIRNAME=share
420460484Sobrien	INTLDEPS='$(top_builddir)/../intl/libintl.a'
420560484Sobrien	INTLLIBS=$INTLDEPS
420660484Sobrien	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
420760484Sobrien        nls_cv_header_intl=libintl.h
420860484Sobrien        nls_cv_header_libgt=libgettext.h
420960484Sobrien      fi
421060484Sobrien
421160484Sobrien            if test "$XGETTEXT" != ":"; then
421260484Sobrien			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
421360484Sobrien	  : ;
421460484Sobrien	else
421560484Sobrien	  echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
421660484Sobrien	  XGETTEXT=":"
421760484Sobrien	fi
421860484Sobrien      fi
421960484Sobrien
422060484Sobrien      # We need to process the po/ directory.
422160484Sobrien      POSUB=po
422260484Sobrien    else
422360484Sobrien      DATADIRNAME=share
422460484Sobrien      nls_cv_header_intl=libintl.h
422560484Sobrien      nls_cv_header_libgt=libgettext.h
422660484Sobrien    fi
422760484Sobrien
422860484Sobrien    # If this is used in GNU gettext we have to set USE_NLS to `yes'
422960484Sobrien    # because some of the sources are only built for this goal.
423060484Sobrien    if test "$PACKAGE" = gettext; then
423160484Sobrien      USE_NLS=yes
423260484Sobrien      USE_INCLUDED_LIBINTL=yes
423360484Sobrien    fi
423460484Sobrien
423560484Sobrien                for lang in $ALL_LINGUAS; do
423660484Sobrien      GMOFILES="$GMOFILES $lang.gmo"
423760484Sobrien      POFILES="$POFILES $lang.po"
423860484Sobrien    done
423960484Sobrien
424060484Sobrien        
424160484Sobrien    
424260484Sobrien    
424360484Sobrien    
424460484Sobrien    
424560484Sobrien    
424660484Sobrien    
424760484Sobrien    
424860484Sobrien    
424960484Sobrien    
425060484Sobrien    
425160484Sobrien  
425260484Sobrien
425360484Sobrien   if test "x$CATOBJEXT" != "x"; then
425460484Sobrien     if test "x$ALL_LINGUAS" = "x"; then
425560484Sobrien       LINGUAS=
425660484Sobrien     else
425760484Sobrien       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
425891041Sobrienecho "configure:4259: checking for catalogs to be installed" >&5
425960484Sobrien       NEW_LINGUAS=
426060484Sobrien       for lang in ${LINGUAS=$ALL_LINGUAS}; do
426160484Sobrien         case "$ALL_LINGUAS" in
426260484Sobrien          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
426360484Sobrien         esac
426460484Sobrien       done
426560484Sobrien       LINGUAS=$NEW_LINGUAS
426660484Sobrien       echo "$ac_t""$LINGUAS" 1>&6
426760484Sobrien     fi
426860484Sobrien
426960484Sobrien          if test -n "$LINGUAS"; then
427060484Sobrien       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
427160484Sobrien     fi
427260484Sobrien   fi
427360484Sobrien
427460484Sobrien            if test $ac_cv_header_locale_h = yes; then
427560484Sobrien     INCLUDE_LOCALE_H="#include <locale.h>"
427660484Sobrien   else
427760484Sobrien     INCLUDE_LOCALE_H="\
427860484Sobrien/* The system does not provide the header <locale.h>.  Take care yourself.  */"
427960484Sobrien   fi
428060484Sobrien   
428160484Sobrien
428260484Sobrien            if test -f $srcdir/po2tbl.sed.in; then
428360484Sobrien      if test "$CATOBJEXT" = ".cat"; then
428460484Sobrien	 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
428560484Sobrienecho $ac_n "checking for linux/version.h""... $ac_c" 1>&6
428691041Sobrienecho "configure:4287: checking for linux/version.h" >&5
428760484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
428860484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
428960484Sobrienelse
429060484Sobrien  cat > conftest.$ac_ext <<EOF
429191041Sobrien#line 4292 "configure"
429260484Sobrien#include "confdefs.h"
429360484Sobrien#include <linux/version.h>
429460484SobrienEOF
429560484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
429691041Sobrien{ (eval echo configure:4297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
429760484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
429860484Sobrienif test -z "$ac_err"; then
429960484Sobrien  rm -rf conftest*
430060484Sobrien  eval "ac_cv_header_$ac_safe=yes"
430160484Sobrienelse
430260484Sobrien  echo "$ac_err" >&5
430360484Sobrien  echo "configure: failed program was:" >&5
430460484Sobrien  cat conftest.$ac_ext >&5
430560484Sobrien  rm -rf conftest*
430660484Sobrien  eval "ac_cv_header_$ac_safe=no"
430760484Sobrienfi
430860484Sobrienrm -f conftest*
430960484Sobrienfi
431060484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
431160484Sobrien  echo "$ac_t""yes" 1>&6
431260484Sobrien  msgformat=linux
431360484Sobrienelse
431460484Sobrien  echo "$ac_t""no" 1>&6
431560484Sobrienmsgformat=xopen
431660484Sobrienfi
431760484Sobrien
431860484Sobrien
431960484Sobrien	          	 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
432060484Sobrien      fi
432160484Sobrien            sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
432260484Sobrien	 $srcdir/po2tbl.sed.in > po2tbl.sed
432360484Sobrien   fi
432460484Sobrien
432560484Sobrien            if test "$PACKAGE" = "gettext"; then
432660484Sobrien     GT_NO="#NO#"
432760484Sobrien     GT_YES=
432860484Sobrien   else
432960484Sobrien     GT_NO=
433060484Sobrien     GT_YES="#YES#"
433160484Sobrien   fi
433260484Sobrien   
433360484Sobrien   
433460484Sobrien
433560484Sobrien   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
433660484Sobrien   
433760484Sobrien
433860484Sobrien      l=
433960484Sobrien   
434060484Sobrien
434189857Sobrien            if test -f $srcdir/po/POTFILES.in; then
434260484Sobrien      test -d po || mkdir po
434360484Sobrien      if test "x$srcdir" != "x."; then
434460484Sobrien	 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
434560484Sobrien	    posrcprefix="$srcdir/"
434660484Sobrien	 else
434760484Sobrien	    posrcprefix="../$srcdir/"
434860484Sobrien	 fi
434960484Sobrien      else
435060484Sobrien	 posrcprefix="../"
435160484Sobrien      fi
435260484Sobrien      rm -f po/POTFILES
435360484Sobrien      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
435460484Sobrien	 < $srcdir/po/POTFILES.in > po/POTFILES
435560484Sobrien   fi
435660484Sobrien  
435760484Sobrien
435860484Sobrien# Permit host specific settings.
435960484Sobrien. ${srcdir}/configure.host
436060484Sobrien
436160484Sobrien
436260484Sobrien# Find a good install program.  We prefer a C program (faster),
436360484Sobrien# so one script is as good as another.  But avoid the broken or
436460484Sobrien# incompatible versions:
436560484Sobrien# SysV /etc/install, /usr/sbin/install
436660484Sobrien# SunOS /usr/etc/install
436760484Sobrien# IRIX /sbin/install
436860484Sobrien# AIX /bin/install
436960484Sobrien# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
437060484Sobrien# AFS /usr/afsws/bin/install, which mishandles nonexistent args
437160484Sobrien# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
437260484Sobrien# ./install, which can be erroneously created by make from ./install.sh.
437360484Sobrienecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
437491041Sobrienecho "configure:4375: checking for a BSD compatible install" >&5
437560484Sobrienif test -z "$INSTALL"; then
437660484Sobrienif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
437760484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
437860484Sobrienelse
437960484Sobrien    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
438060484Sobrien  for ac_dir in $PATH; do
438160484Sobrien    # Account for people who put trailing slashes in PATH elements.
438260484Sobrien    case "$ac_dir/" in
438360484Sobrien    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
438460484Sobrien    *)
438560484Sobrien      # OSF1 and SCO ODT 3.0 have their own names for install.
438660484Sobrien      # Don't use installbsd from OSF since it installs stuff as root
438760484Sobrien      # by default.
438860484Sobrien      for ac_prog in ginstall scoinst install; do
438960484Sobrien        if test -f $ac_dir/$ac_prog; then
439060484Sobrien	  if test $ac_prog = install &&
439160484Sobrien            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
439260484Sobrien	    # AIX install.  It has an incompatible calling convention.
439360484Sobrien	    :
439460484Sobrien	  else
439560484Sobrien	    ac_cv_path_install="$ac_dir/$ac_prog -c"
439660484Sobrien	    break 2
439760484Sobrien	  fi
439860484Sobrien	fi
439960484Sobrien      done
440060484Sobrien      ;;
440160484Sobrien    esac
440260484Sobrien  done
440360484Sobrien  IFS="$ac_save_IFS"
440460484Sobrien
440560484Sobrienfi
440660484Sobrien  if test "${ac_cv_path_install+set}" = set; then
440760484Sobrien    INSTALL="$ac_cv_path_install"
440860484Sobrien  else
440960484Sobrien    # As a last resort, use the slow shell script.  We don't cache a
441060484Sobrien    # path for INSTALL within a source directory, because that will
441160484Sobrien    # break other packages using the cache if that directory is
441260484Sobrien    # removed, or if the path is relative.
441360484Sobrien    INSTALL="$ac_install_sh"
441460484Sobrien  fi
441560484Sobrienfi
441660484Sobrienecho "$ac_t""$INSTALL" 1>&6
441760484Sobrien
441860484Sobrien# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
441960484Sobrien# It thinks the first close brace ends the variable substitution.
442060484Sobrientest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
442160484Sobrien
442260484Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
442360484Sobrien
442460484Sobrientest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
442560484Sobrien
442660484Sobrien
442760484SobrienBFD_HOST_64BIT_LONG=0
442860484SobrienBFD_HOST_64_BIT_DEFINED=0
442960484SobrienBFD_HOST_64_BIT=
443060484SobrienBFD_HOST_U_64_BIT=
443160484Sobrienif test "x${HOST_64BIT_TYPE}" = "xlong"; then
443260484Sobrien  BFD_HOST_64BIT_LONG=1
443360484Sobrienelif test "x${HOST_64BIT_TYPE}" != "x"; then
443460484Sobrien  BFD_HOST_64_BIT_DEFINED=1
443560484Sobrien  BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
443660484Sobrien  BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
443760484Sobrienfi
443860484Sobrien
443960484Sobrien
444060484Sobrien
444160484Sobrien
444260484Sobrien
444360484Sobrien# Put a plausible default for CC_FOR_BUILD in Makefile.
444460484Sobrienif test -z "$CC_FOR_BUILD"; then
444560484Sobrien  if test "x$cross_compiling" = "xno"; then
444660484Sobrien    CC_FOR_BUILD='$(CC)'
444760484Sobrien  else
444860484Sobrien    CC_FOR_BUILD=gcc
444960484Sobrien  fi
445060484Sobrienfi
445160484Sobrien
445260484Sobrien# Also set EXEEXT_FOR_BUILD.
445360484Sobrienif test "x$cross_compiling" = "xno"; then
445460484Sobrien  EXEEXT_FOR_BUILD='$(EXEEXT)'
445560484Sobrienelse
445660484Sobrien  echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
445791041Sobrienecho "configure:4458: checking for build system executable suffix" >&5
445860484Sobrienif eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
445960484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
446060484Sobrienelse
446160484Sobrien  rm -f conftest*
446260484Sobrien     echo 'int main () { return 0; }' > conftest.c
446360484Sobrien     bfd_cv_build_exeext=
446460484Sobrien     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
446560484Sobrien     for file in conftest.*; do
446660484Sobrien       case $file in
446760484Sobrien       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
446860484Sobrien       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
446960484Sobrien       esac
447060484Sobrien     done
447160484Sobrien     rm -f conftest*
447260484Sobrien     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
447360484Sobrienfi
447460484Sobrien
447560484Sobrienecho "$ac_t""$bfd_cv_build_exeext" 1>&6
447660484Sobrien  EXEEXT_FOR_BUILD=""
447760484Sobrien  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
447860484Sobrienfi
447960484Sobrien
448060484Sobrien
448133965Sjdpfor ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
448233965Sjdpdo
448333965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
448433965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
448591041Sobrienecho "configure:4486: checking for $ac_hdr" >&5
448633965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
448733965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
448833965Sjdpelse
448933965Sjdp  cat > conftest.$ac_ext <<EOF
449091041Sobrien#line 4491 "configure"
449133965Sjdp#include "confdefs.h"
449233965Sjdp#include <$ac_hdr>
449333965SjdpEOF
449433965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
449591041Sobrien{ (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
449660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
449733965Sjdpif test -z "$ac_err"; then
449833965Sjdp  rm -rf conftest*
449933965Sjdp  eval "ac_cv_header_$ac_safe=yes"
450033965Sjdpelse
450133965Sjdp  echo "$ac_err" >&5
450233965Sjdp  echo "configure: failed program was:" >&5
450333965Sjdp  cat conftest.$ac_ext >&5
450433965Sjdp  rm -rf conftest*
450533965Sjdp  eval "ac_cv_header_$ac_safe=no"
450633965Sjdpfi
450733965Sjdprm -f conftest*
450833965Sjdpfi
450933965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
451033965Sjdp  echo "$ac_t""yes" 1>&6
451133965Sjdp    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
451233965Sjdp  cat >> confdefs.h <<EOF
451333965Sjdp#define $ac_tr_hdr 1
451433965SjdpEOF
451533965Sjdp 
451633965Sjdpelse
451733965Sjdp  echo "$ac_t""no" 1>&6
451833965Sjdpfi
451933965Sjdpdone
452033965Sjdp
452133965Sjdpfor ac_hdr in fcntl.h sys/file.h sys/time.h
452233965Sjdpdo
452333965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
452433965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
452591041Sobrienecho "configure:4526: checking for $ac_hdr" >&5
452633965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
452733965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
452833965Sjdpelse
452933965Sjdp  cat > conftest.$ac_ext <<EOF
453091041Sobrien#line 4531 "configure"
453133965Sjdp#include "confdefs.h"
453233965Sjdp#include <$ac_hdr>
453333965SjdpEOF
453433965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
453591041Sobrien{ (eval echo configure:4536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
453660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
453733965Sjdpif test -z "$ac_err"; then
453833965Sjdp  rm -rf conftest*
453933965Sjdp  eval "ac_cv_header_$ac_safe=yes"
454033965Sjdpelse
454133965Sjdp  echo "$ac_err" >&5
454233965Sjdp  echo "configure: failed program was:" >&5
454333965Sjdp  cat conftest.$ac_ext >&5
454433965Sjdp  rm -rf conftest*
454533965Sjdp  eval "ac_cv_header_$ac_safe=no"
454633965Sjdpfi
454733965Sjdprm -f conftest*
454833965Sjdpfi
454933965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
455033965Sjdp  echo "$ac_t""yes" 1>&6
455133965Sjdp    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
455233965Sjdp  cat >> confdefs.h <<EOF
455333965Sjdp#define $ac_tr_hdr 1
455433965SjdpEOF
455533965Sjdp 
455633965Sjdpelse
455733965Sjdp  echo "$ac_t""no" 1>&6
455833965Sjdpfi
455933965Sjdpdone
456033965Sjdp
456133965Sjdpecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
456291041Sobrienecho "configure:4563: checking whether time.h and sys/time.h may both be included" >&5
456333965Sjdpif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
456433965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
456533965Sjdpelse
456633965Sjdp  cat > conftest.$ac_ext <<EOF
456791041Sobrien#line 4568 "configure"
456833965Sjdp#include "confdefs.h"
456933965Sjdp#include <sys/types.h>
457033965Sjdp#include <sys/time.h>
457133965Sjdp#include <time.h>
457233965Sjdpint main() {
457333965Sjdpstruct tm *tp;
457433965Sjdp; return 0; }
457533965SjdpEOF
457691041Sobrienif { (eval echo configure:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
457733965Sjdp  rm -rf conftest*
457833965Sjdp  ac_cv_header_time=yes
457933965Sjdpelse
458033965Sjdp  echo "configure: failed program was:" >&5
458133965Sjdp  cat conftest.$ac_ext >&5
458233965Sjdp  rm -rf conftest*
458333965Sjdp  ac_cv_header_time=no
458433965Sjdpfi
458533965Sjdprm -f conftest*
458633965Sjdpfi
458733965Sjdp
458833965Sjdpecho "$ac_t""$ac_cv_header_time" 1>&6
458933965Sjdpif test $ac_cv_header_time = yes; then
459033965Sjdp  cat >> confdefs.h <<\EOF
459133965Sjdp#define TIME_WITH_SYS_TIME 1
459233965SjdpEOF
459333965Sjdp
459433965Sjdpfi
459533965Sjdp
459660484Sobrienac_header_dirent=no
459760484Sobrienfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
459833965Sjdpdo
459960484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
460060484Sobrienecho $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
460191041Sobrienecho "configure:4602: checking for $ac_hdr that defines DIR" >&5
460260484Sobrienif eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
460360484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
460460484Sobrienelse
460560484Sobrien  cat > conftest.$ac_ext <<EOF
460691041Sobrien#line 4607 "configure"
460760484Sobrien#include "confdefs.h"
460860484Sobrien#include <sys/types.h>
460960484Sobrien#include <$ac_hdr>
461060484Sobrienint main() {
461160484SobrienDIR *dirp = 0;
461260484Sobrien; return 0; }
461360484SobrienEOF
461491041Sobrienif { (eval echo configure:4615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
461560484Sobrien  rm -rf conftest*
461660484Sobrien  eval "ac_cv_header_dirent_$ac_safe=yes"
461760484Sobrienelse
461860484Sobrien  echo "configure: failed program was:" >&5
461960484Sobrien  cat conftest.$ac_ext >&5
462060484Sobrien  rm -rf conftest*
462160484Sobrien  eval "ac_cv_header_dirent_$ac_safe=no"
462260484Sobrienfi
462360484Sobrienrm -f conftest*
462460484Sobrienfi
462560484Sobrienif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
462660484Sobrien  echo "$ac_t""yes" 1>&6
462760484Sobrien    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
462860484Sobrien  cat >> confdefs.h <<EOF
462960484Sobrien#define $ac_tr_hdr 1
463060484SobrienEOF
463160484Sobrien ac_header_dirent=$ac_hdr; break
463260484Sobrienelse
463360484Sobrien  echo "$ac_t""no" 1>&6
463460484Sobrienfi
463560484Sobriendone
463660484Sobrien# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
463760484Sobrienif test $ac_header_dirent = dirent.h; then
463860484Sobrienecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
463991041Sobrienecho "configure:4640: checking for opendir in -ldir" >&5
464060484Sobrienac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
464160484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
464260484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
464360484Sobrienelse
464460484Sobrien  ac_save_LIBS="$LIBS"
464560484SobrienLIBS="-ldir  $LIBS"
464660484Sobriencat > conftest.$ac_ext <<EOF
464791041Sobrien#line 4648 "configure"
464860484Sobrien#include "confdefs.h"
464960484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
465060484Sobrien/* We use char because int might match the return type of a gcc2
465160484Sobrien    builtin and then its argument prototype would still apply.  */
465260484Sobrienchar opendir();
465360484Sobrien
465460484Sobrienint main() {
465560484Sobrienopendir()
465660484Sobrien; return 0; }
465760484SobrienEOF
465891041Sobrienif { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
465960484Sobrien  rm -rf conftest*
466060484Sobrien  eval "ac_cv_lib_$ac_lib_var=yes"
466160484Sobrienelse
466260484Sobrien  echo "configure: failed program was:" >&5
466360484Sobrien  cat conftest.$ac_ext >&5
466460484Sobrien  rm -rf conftest*
466560484Sobrien  eval "ac_cv_lib_$ac_lib_var=no"
466660484Sobrienfi
466760484Sobrienrm -f conftest*
466860484SobrienLIBS="$ac_save_LIBS"
466960484Sobrien
467060484Sobrienfi
467160484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
467260484Sobrien  echo "$ac_t""yes" 1>&6
467360484Sobrien  LIBS="$LIBS -ldir"
467460484Sobrienelse
467560484Sobrien  echo "$ac_t""no" 1>&6
467660484Sobrienfi
467760484Sobrien
467860484Sobrienelse
467960484Sobrienecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
468091041Sobrienecho "configure:4681: checking for opendir in -lx" >&5
468160484Sobrienac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
468260484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
468360484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
468460484Sobrienelse
468560484Sobrien  ac_save_LIBS="$LIBS"
468660484SobrienLIBS="-lx  $LIBS"
468760484Sobriencat > conftest.$ac_ext <<EOF
468891041Sobrien#line 4689 "configure"
468960484Sobrien#include "confdefs.h"
469060484Sobrien/* Override any gcc2 internal prototype to avoid an error.  */
469160484Sobrien/* We use char because int might match the return type of a gcc2
469260484Sobrien    builtin and then its argument prototype would still apply.  */
469360484Sobrienchar opendir();
469460484Sobrien
469560484Sobrienint main() {
469660484Sobrienopendir()
469760484Sobrien; return 0; }
469860484SobrienEOF
469991041Sobrienif { (eval echo configure:4700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
470060484Sobrien  rm -rf conftest*
470160484Sobrien  eval "ac_cv_lib_$ac_lib_var=yes"
470260484Sobrienelse
470360484Sobrien  echo "configure: failed program was:" >&5
470460484Sobrien  cat conftest.$ac_ext >&5
470560484Sobrien  rm -rf conftest*
470660484Sobrien  eval "ac_cv_lib_$ac_lib_var=no"
470760484Sobrienfi
470860484Sobrienrm -f conftest*
470960484SobrienLIBS="$ac_save_LIBS"
471060484Sobrien
471160484Sobrienfi
471260484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
471360484Sobrien  echo "$ac_t""yes" 1>&6
471460484Sobrien  LIBS="$LIBS -lx"
471560484Sobrienelse
471660484Sobrien  echo "$ac_t""no" 1>&6
471760484Sobrienfi
471860484Sobrien
471960484Sobrienfi
472060484Sobrien
472160484Sobrienfor ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
472260484Sobriendo
472333965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
472491041Sobrienecho "configure:4725: checking for $ac_func" >&5
472533965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
472633965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
472733965Sjdpelse
472833965Sjdp  cat > conftest.$ac_ext <<EOF
472991041Sobrien#line 4730 "configure"
473033965Sjdp#include "confdefs.h"
473133965Sjdp/* System header to define __stub macros and hopefully few prototypes,
473233965Sjdp    which can conflict with char $ac_func(); below.  */
473333965Sjdp#include <assert.h>
473433965Sjdp/* Override any gcc2 internal prototype to avoid an error.  */
473533965Sjdp/* We use char because int might match the return type of a gcc2
473633965Sjdp    builtin and then its argument prototype would still apply.  */
473733965Sjdpchar $ac_func();
473833965Sjdp
473933965Sjdpint main() {
474033965Sjdp
474133965Sjdp/* The GNU C library defines this for functions which it implements
474233965Sjdp    to always fail with ENOSYS.  Some functions are actually named
474333965Sjdp    something starting with __ and the normal name is an alias.  */
474433965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
474533965Sjdpchoke me
474633965Sjdp#else
474733965Sjdp$ac_func();
474833965Sjdp#endif
474933965Sjdp
475033965Sjdp; return 0; }
475133965SjdpEOF
475291041Sobrienif { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
475333965Sjdp  rm -rf conftest*
475433965Sjdp  eval "ac_cv_func_$ac_func=yes"
475533965Sjdpelse
475633965Sjdp  echo "configure: failed program was:" >&5
475733965Sjdp  cat conftest.$ac_ext >&5
475833965Sjdp  rm -rf conftest*
475933965Sjdp  eval "ac_cv_func_$ac_func=no"
476033965Sjdpfi
476133965Sjdprm -f conftest*
476233965Sjdpfi
476333965Sjdp
476433965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
476533965Sjdp  echo "$ac_t""yes" 1>&6
476633965Sjdp    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
476733965Sjdp  cat >> confdefs.h <<EOF
476833965Sjdp#define $ac_tr_func 1
476933965SjdpEOF
477033965Sjdp 
477133965Sjdpelse
477233965Sjdp  echo "$ac_t""no" 1>&6
477333965Sjdpfi
477433965Sjdpdone
477533965Sjdp
477633965Sjdp
477733965Sjdp
477833965Sjdpcase "${host}" in
477960484Sobrien*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
478033965Sjdp  cat >> confdefs.h <<\EOF
478133965Sjdp#define USE_BINARY_FOPEN 1
478233965SjdpEOF
478333965Sjdp ;;
478433965Sjdpesac
478533965Sjdp
478633965Sjdpecho $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
478791041Sobrienecho "configure:4788: checking whether strstr must be declared" >&5
478833965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
478933965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
479033965Sjdpelse
479133965Sjdp  cat > conftest.$ac_ext <<EOF
479291041Sobrien#line 4793 "configure"
479333965Sjdp#include "confdefs.h"
479433965Sjdp
479533965Sjdp#include <stdio.h>
479633965Sjdp#ifdef HAVE_STRING_H
479733965Sjdp#include <string.h>
479833965Sjdp#else
479933965Sjdp#ifdef HAVE_STRINGS_H
480033965Sjdp#include <strings.h>
480133965Sjdp#endif
480233965Sjdp#endif
480333965Sjdp#ifdef HAVE_STDLIB_H
480433965Sjdp#include <stdlib.h>
480533965Sjdp#endif
480633965Sjdp#ifdef HAVE_UNISTD_H
480733965Sjdp#include <unistd.h>
480833965Sjdp#endif
480933965Sjdpint main() {
481033965Sjdpchar *(*pfn) = (char *(*)) strstr
481133965Sjdp; return 0; }
481233965SjdpEOF
481391041Sobrienif { (eval echo configure:4814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
481433965Sjdp  rm -rf conftest*
481533965Sjdp  bfd_cv_decl_needed_strstr=no
481633965Sjdpelse
481733965Sjdp  echo "configure: failed program was:" >&5
481833965Sjdp  cat conftest.$ac_ext >&5
481933965Sjdp  rm -rf conftest*
482033965Sjdp  bfd_cv_decl_needed_strstr=yes
482133965Sjdpfi
482233965Sjdprm -f conftest*
482333965Sjdpfi
482433965Sjdp
482533965Sjdpecho "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
482633965Sjdpif test $bfd_cv_decl_needed_strstr = yes; then
482760484Sobrien  cat >> confdefs.h <<\EOF
482860484Sobrien#define NEED_DECLARATION_STRSTR 1
482933965SjdpEOF
483033965Sjdp
483133965Sjdpfi
483233965Sjdp
483333965Sjdpecho $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
483491041Sobrienecho "configure:4835: checking whether malloc must be declared" >&5
483533965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
483633965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
483733965Sjdpelse
483833965Sjdp  cat > conftest.$ac_ext <<EOF
483991041Sobrien#line 4840 "configure"
484033965Sjdp#include "confdefs.h"
484133965Sjdp
484233965Sjdp#include <stdio.h>
484333965Sjdp#ifdef HAVE_STRING_H
484433965Sjdp#include <string.h>
484533965Sjdp#else
484633965Sjdp#ifdef HAVE_STRINGS_H
484733965Sjdp#include <strings.h>
484833965Sjdp#endif
484933965Sjdp#endif
485033965Sjdp#ifdef HAVE_STDLIB_H
485133965Sjdp#include <stdlib.h>
485233965Sjdp#endif
485333965Sjdp#ifdef HAVE_UNISTD_H
485433965Sjdp#include <unistd.h>
485533965Sjdp#endif
485633965Sjdpint main() {
485733965Sjdpchar *(*pfn) = (char *(*)) malloc
485833965Sjdp; return 0; }
485933965SjdpEOF
486091041Sobrienif { (eval echo configure:4861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
486133965Sjdp  rm -rf conftest*
486233965Sjdp  bfd_cv_decl_needed_malloc=no
486333965Sjdpelse
486433965Sjdp  echo "configure: failed program was:" >&5
486533965Sjdp  cat conftest.$ac_ext >&5
486633965Sjdp  rm -rf conftest*
486733965Sjdp  bfd_cv_decl_needed_malloc=yes
486833965Sjdpfi
486933965Sjdprm -f conftest*
487033965Sjdpfi
487133965Sjdp
487233965Sjdpecho "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
487333965Sjdpif test $bfd_cv_decl_needed_malloc = yes; then
487460484Sobrien  cat >> confdefs.h <<\EOF
487560484Sobrien#define NEED_DECLARATION_MALLOC 1
487633965SjdpEOF
487733965Sjdp
487833965Sjdpfi
487933965Sjdp
488033965Sjdpecho $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
488191041Sobrienecho "configure:4882: checking whether realloc must be declared" >&5
488233965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
488333965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
488433965Sjdpelse
488533965Sjdp  cat > conftest.$ac_ext <<EOF
488691041Sobrien#line 4887 "configure"
488733965Sjdp#include "confdefs.h"
488833965Sjdp
488933965Sjdp#include <stdio.h>
489033965Sjdp#ifdef HAVE_STRING_H
489133965Sjdp#include <string.h>
489233965Sjdp#else
489333965Sjdp#ifdef HAVE_STRINGS_H
489433965Sjdp#include <strings.h>
489533965Sjdp#endif
489633965Sjdp#endif
489733965Sjdp#ifdef HAVE_STDLIB_H
489833965Sjdp#include <stdlib.h>
489933965Sjdp#endif
490033965Sjdp#ifdef HAVE_UNISTD_H
490133965Sjdp#include <unistd.h>
490233965Sjdp#endif
490333965Sjdpint main() {
490433965Sjdpchar *(*pfn) = (char *(*)) realloc
490533965Sjdp; return 0; }
490633965SjdpEOF
490791041Sobrienif { (eval echo configure:4908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
490833965Sjdp  rm -rf conftest*
490933965Sjdp  bfd_cv_decl_needed_realloc=no
491033965Sjdpelse
491133965Sjdp  echo "configure: failed program was:" >&5
491233965Sjdp  cat conftest.$ac_ext >&5
491333965Sjdp  rm -rf conftest*
491433965Sjdp  bfd_cv_decl_needed_realloc=yes
491533965Sjdpfi
491633965Sjdprm -f conftest*
491733965Sjdpfi
491833965Sjdp
491933965Sjdpecho "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
492033965Sjdpif test $bfd_cv_decl_needed_realloc = yes; then
492160484Sobrien  cat >> confdefs.h <<\EOF
492260484Sobrien#define NEED_DECLARATION_REALLOC 1
492333965SjdpEOF
492433965Sjdp
492533965Sjdpfi
492633965Sjdp
492733965Sjdpecho $ac_n "checking whether free must be declared""... $ac_c" 1>&6
492891041Sobrienecho "configure:4929: checking whether free must be declared" >&5
492933965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
493033965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
493133965Sjdpelse
493233965Sjdp  cat > conftest.$ac_ext <<EOF
493391041Sobrien#line 4934 "configure"
493433965Sjdp#include "confdefs.h"
493533965Sjdp
493633965Sjdp#include <stdio.h>
493733965Sjdp#ifdef HAVE_STRING_H
493833965Sjdp#include <string.h>
493933965Sjdp#else
494033965Sjdp#ifdef HAVE_STRINGS_H
494133965Sjdp#include <strings.h>
494233965Sjdp#endif
494333965Sjdp#endif
494433965Sjdp#ifdef HAVE_STDLIB_H
494533965Sjdp#include <stdlib.h>
494633965Sjdp#endif
494733965Sjdp#ifdef HAVE_UNISTD_H
494833965Sjdp#include <unistd.h>
494933965Sjdp#endif
495033965Sjdpint main() {
495133965Sjdpchar *(*pfn) = (char *(*)) free
495233965Sjdp; return 0; }
495333965SjdpEOF
495491041Sobrienif { (eval echo configure:4955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
495533965Sjdp  rm -rf conftest*
495633965Sjdp  bfd_cv_decl_needed_free=no
495733965Sjdpelse
495833965Sjdp  echo "configure: failed program was:" >&5
495933965Sjdp  cat conftest.$ac_ext >&5
496033965Sjdp  rm -rf conftest*
496133965Sjdp  bfd_cv_decl_needed_free=yes
496233965Sjdpfi
496333965Sjdprm -f conftest*
496433965Sjdpfi
496533965Sjdp
496633965Sjdpecho "$ac_t""$bfd_cv_decl_needed_free" 1>&6
496733965Sjdpif test $bfd_cv_decl_needed_free = yes; then
496860484Sobrien  cat >> confdefs.h <<\EOF
496960484Sobrien#define NEED_DECLARATION_FREE 1
497033965SjdpEOF
497133965Sjdp
497233965Sjdpfi
497333965Sjdp
497433965Sjdpecho $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
497591041Sobrienecho "configure:4976: checking whether getenv must be declared" >&5
497633965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
497733965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
497833965Sjdpelse
497933965Sjdp  cat > conftest.$ac_ext <<EOF
498091041Sobrien#line 4981 "configure"
498133965Sjdp#include "confdefs.h"
498233965Sjdp
498333965Sjdp#include <stdio.h>
498433965Sjdp#ifdef HAVE_STRING_H
498533965Sjdp#include <string.h>
498633965Sjdp#else
498733965Sjdp#ifdef HAVE_STRINGS_H
498833965Sjdp#include <strings.h>
498933965Sjdp#endif
499033965Sjdp#endif
499133965Sjdp#ifdef HAVE_STDLIB_H
499233965Sjdp#include <stdlib.h>
499333965Sjdp#endif
499433965Sjdp#ifdef HAVE_UNISTD_H
499533965Sjdp#include <unistd.h>
499633965Sjdp#endif
499733965Sjdpint main() {
499833965Sjdpchar *(*pfn) = (char *(*)) getenv
499933965Sjdp; return 0; }
500033965SjdpEOF
500191041Sobrienif { (eval echo configure:5002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
500233965Sjdp  rm -rf conftest*
500333965Sjdp  bfd_cv_decl_needed_getenv=no
500433965Sjdpelse
500533965Sjdp  echo "configure: failed program was:" >&5
500633965Sjdp  cat conftest.$ac_ext >&5
500733965Sjdp  rm -rf conftest*
500833965Sjdp  bfd_cv_decl_needed_getenv=yes
500933965Sjdpfi
501033965Sjdprm -f conftest*
501133965Sjdpfi
501233965Sjdp
501333965Sjdpecho "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
501433965Sjdpif test $bfd_cv_decl_needed_getenv = yes; then
501560484Sobrien  cat >> confdefs.h <<\EOF
501660484Sobrien#define NEED_DECLARATION_GETENV 1
501733965SjdpEOF
501833965Sjdp
501933965Sjdpfi
502033965Sjdp
502133965Sjdp
502233965Sjdp# If we are configured native, pick a core file support file.
502333965SjdpCOREFILE=
502433965SjdpCOREFLAG=
502560484SobrienTRAD_HEADER=
502633965Sjdpif test "${target}" = "${host}"; then
502733965Sjdp  case "${host}" in
502877298Sobrien  alpha*-*-freebsd*)
502977298Sobrien	COREFILE=''
503077298Sobrien	;;
503138889Sjdp  alpha*-*-linux-gnu*)
503238889Sjdp	COREFILE=trad-core.lo
503360484Sobrien	TRAD_HEADER='"hosts/alphalinux.h"'
503433965Sjdp	;;
503538889Sjdp  alpha*-*-netbsd*)	COREFILE=netbsd-core.lo ;;
503638889Sjdp  alpha*-*-*)		COREFILE=osf-core.lo ;;
503777298Sobrien  arm-*-freebsd*)	COREFILE='' ;;
503889857Sobrien  arm-*-netbsd*)	COREFILE=netbsd-core.lo ;;
503938889Sjdp  arm-*-riscix)		COREFILE=trad-core.lo ;;
504038889Sjdp  hppa*-*-hpux*)	COREFILE=hpux-core.lo ;;
504138889Sjdp  hppa*-*-hiux*)	COREFILE=hpux-core.lo ;;
504260484Sobrien  hppa*-*-mpeix*)	COREFILE=hpux-core.lo ;;
504338889Sjdp  hppa*-*-bsd*)		COREFILE="hpux-core.lo hppabsd-core.lo"
504433965Sjdp			COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
504589857Sobrien  i370-*-*)
504660484Sobrien	COREFILE=trad-core.lo
504760484Sobrien	TRAD_HEADER='"hosts/i370linux.h"'
504860484Sobrien	;;
504960484Sobrien
505033965Sjdp  i[3456]86-sequent-bsd*)
505160484Sobrien	COREFILE=trad-core.lo
505260484Sobrien	TRAD_HEADER='"hosts/symmetry.h"'
505333965Sjdp	;;
505433965Sjdp  i[3456]86-sequent-sysv4*) ;;
505533965Sjdp  i[3456]86-sequent-sysv*)
505638889Sjdp	COREFILE=trad-core.lo
505760484Sobrien	TRAD_HEADER='"hosts/symmetry.h"'
505833965Sjdp	;;
505989857Sobrien  i[3456]86-*-bsdi)
506089857Sobrien	COREFILE=
506189857Sobrien	;;
506291041Sobrien  i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
506338889Sjdp	COREFILE=trad-core.lo
506460484Sobrien	TRAD_HEADER='"hosts/i386bsd.h"'
506533965Sjdp	;;
506677298Sobrien  i[3456]86-*-freebsd*)
506777298Sobrien	COREFILE=''
506877298Sobrien	TRAD_HEADER='"hosts/i386bsd.h"'
506977298Sobrien	;;
507033965Sjdp  i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
507138889Sjdp	COREFILE=netbsd-core.lo
507233965Sjdp	;;
507333965Sjdp  i[3456]86-esix-sysv3*)
507438889Sjdp	COREFILE=trad-core.lo
507560484Sobrien	TRAD_HEADER='"hosts/esix.h"'
507633965Sjdp	;;
507760484Sobrien  i[3456]86-*-sco3.2v5*)
507860484Sobrien	COREFILE=sco5-core.lo
507960484Sobrien	;;
508033965Sjdp  i[3456]86-*-sco* | i[3456]86-*-isc*)
508138889Sjdp	COREFILE=trad-core.lo
508260484Sobrien	TRAD_HEADER='"hosts/i386sco.h"'
508333965Sjdp	;;
508433965Sjdp  i[3456]86-*-mach3*)
508538889Sjdp	COREFILE=trad-core.lo
508660484Sobrien	TRAD_HEADER='"hosts/i386mach3.h"'
508733965Sjdp	;;
508838889Sjdp  i[3456]86-*-linux-gnu*)
508938889Sjdp	COREFILE=trad-core.lo
509060484Sobrien	TRAD_HEADER='"hosts/i386linux.h"'
509133965Sjdp	;;
509238889Sjdp  i[3456]86-*-isc*)	COREFILE=trad-core.lo ;;
509338889Sjdp  i[3456]86-*-aix*)	COREFILE=aix386-core.lo ;;
509433965Sjdp  i860-*-mach3* | i860-*-osf1*)
509538889Sjdp	COREFILE=trad-core.lo
509660484Sobrien	TRAD_HEADER='"hosts/i860mach3.h"'
509733965Sjdp	;;
509833965Sjdp  mips-dec-bsd*)
509938889Sjdp	COREFILE=trad-core.lo
510060484Sobrien	TRAD_HEADER='"hosts/mipsbsd.h"'
510133965Sjdp	;;
510233965Sjdp  mips-dec-mach3*)
510338889Sjdp	COREFILE=trad-core.lo
510460484Sobrien	TRAD_HEADER='"hosts/mipsmach3.h"'
510533965Sjdp	;;
510633965Sjdp  mips-*-netbsd* | mips*-*-openbsd*)
510738889Sjdp	COREFILE=netbsd-core.lo
510833965Sjdp	;;
510933965Sjdp  mips-dec-*)
511038889Sjdp	COREFILE=trad-core.lo
511160484Sobrien	TRAD_HEADER='"hosts/decstation.h"'
511233965Sjdp	;;
511338889Sjdp  mips-sgi-irix4*)	COREFILE=irix-core.lo ;;
511438889Sjdp  mips-sgi-irix5*)	COREFILE=irix-core.lo ;;
511538889Sjdp  mips-sgi-irix6*)	COREFILE=irix-core.lo ;;
511633965Sjdp  mips-*-mach3*)
511738889Sjdp	COREFILE=trad-core.lo
511860484Sobrien	TRAD_HEADER='"hosts/mipsmach3.h"'
511933965Sjdp	;;
512033965Sjdp  mips-*-sysv4*)	;;
512133965Sjdp  mips-*-sysv* | mips-*-riscos*)
512238889Sjdp	COREFILE=trad-core.lo
512360484Sobrien	TRAD_HEADER='"hosts/riscos.h"'
512433965Sjdp	;;
512533965Sjdp  mips-sony-bsd*)
512638889Sjdp	COREFILE=trad-core.lo
512760484Sobrien	TRAD_HEADER='"hosts/news-mips.h"'
512833965Sjdp	;;
512933965Sjdp  m68*-bull*-sysv*)
513038889Sjdp	COREFILE=trad-core.lo
513160484Sobrien	TRAD_HEADER='"hosts/dpx2.h"'
513233965Sjdp	;;
513338889Sjdp  m68*-hp-hpux*)	COREFILE=hpux-core.lo ;;
513433965Sjdp  m68*-hp-bsd*)
513538889Sjdp	COREFILE=trad-core.lo
513660484Sobrien	TRAD_HEADER='"hosts/hp300bsd.h"'
513733965Sjdp	;;
513838889Sjdp  m68*-*-linux-gnu*)
513938889Sjdp	COREFILE=trad-core.lo
514060484Sobrien	TRAD_HEADER='"hosts/m68klinux.h"'
514133965Sjdp	;;
514233965Sjdp  m68*-motorola-sysv*)
514338889Sjdp	COREFILE=trad-core.lo
514460484Sobrien	TRAD_HEADER='"hosts/delta68.h"'
514533965Sjdp	;;
514633965Sjdp  m68*-sony-*)
514738889Sjdp	COREFILE=trad-core.lo
514860484Sobrien	TRAD_HEADER='"hosts/news.h"'
514933965Sjdp	;;
515033965Sjdp  m68*-*-netbsd* | m68*-*-openbsd*)
515138889Sjdp	COREFILE=netbsd-core.lo
515233965Sjdp	;;
515333965Sjdp  m68*-apple-aux*)
515438889Sjdp	COREFILE=trad-core.lo
515560484Sobrien	TRAD_HEADER='"hosts/m68kaux.h"'
515633965Sjdp	;;
515733965Sjdp  m88*-*-sysv4*)	;;
515838889Sjdp  m88*-motorola-sysv*)	COREFILE=ptrace-core.lo ;;
515933965Sjdp  m88*-*-mach3*)
516038889Sjdp	COREFILE=trad-core.lo
516160484Sobrien	TRAD_HEADER='"hosts/m88kmach3.h"'
516233965Sjdp	;;
516333965Sjdp  ns32k-pc532-mach)
516438889Sjdp	COREFILE=trad-core.lo
516560484Sobrien	TRAD_HEADER='"hosts/pc532mach.h"'
516633965Sjdp	;;
516733965Sjdp  ns32k-*-netbsd* | ns32k-*-openbsd*)
516838889Sjdp	COREFILE=netbsd-core.lo
516933965Sjdp	;;
517038889Sjdp  rs6000-*-lynx*)	COREFILE=lynx-core.lo ;;
517177298Sobrien  rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
517277298Sobrien        COREFILE=rs6000-core.lo
517377298Sobrien	COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
517477298Sobrien	;;
517538889Sjdp  rs6000-*-aix4*)	COREFILE=rs6000-core.lo ;;
517638889Sjdp  rs6000-*-*)		COREFILE=rs6000-core.lo ;;
517738889Sjdp  powerpc-*-aix4*)	COREFILE=rs6000-core.lo ;;
517838889Sjdp  powerpc-*-aix*)	COREFILE=rs6000-core.lo ;;
517933965Sjdp  powerpc-*-beos*)	;;
518077298Sobrien  powerpc-*-freebsd*)	COREFILE='' ;;
518138889Sjdp  powerpc-*-netbsd*)	COREFILE=netbsd-core.lo ;;
518278828Sobrien  powerpc-*-*bsd*)	COREFILE=netbsd-core.lo ;;
518389857Sobrien  s390*-*-*)            COREFILE=trad-core.lo ;;
518489857Sobrien  sh*-*-netbsd*)	COREFILE=netbsd-core.lo ;;
518533965Sjdp  sparc-*-netbsd* | sparc-*-openbsd*)
518638889Sjdp	COREFILE=netbsd-core.lo
518733965Sjdp	;;
518833965Sjdp  tahoe-*-*)
518938889Sjdp	COREFILE=trad-core.lo
519060484Sobrien	TRAD_HEADER='"hosts/tahoe.h"'
519133965Sjdp	;;
519233965Sjdp  vax-*-ultrix2*)
519338889Sjdp	COREFILE=trad-core.lo
519460484Sobrien	TRAD_HEADER='"hosts/vaxult2.h"'
519533965Sjdp	;;
519633965Sjdp  vax-*-ultrix*)
519738889Sjdp	COREFILE=trad-core.lo
519860484Sobrien	TRAD_HEADER='"hosts/vaxult2.h"'
519933965Sjdp	;;
520033965Sjdp  vax-*-*)
520138889Sjdp	COREFILE=trad-core.lo
520260484Sobrien	TRAD_HEADER='"hosts/vaxbsd.h"'
520333965Sjdp	;;
520489857Sobrien  x86_64-*-netbsd*)	COREFILE=netbsd-core.lo ;;
520533965Sjdp  esac
520633965Sjdp
520733965Sjdp  case "$COREFILE" in
520838889Sjdp  aix386-core.lo)	COREFLAG=-DAIX386_CORE ;;
520938889Sjdp  hppabsd-core.lo)	COREFLAG=-DHPPABSD_CORE ;;
521038889Sjdp  hpux-core.lo)		COREFLAG=-DHPUX_CORE ;;
521138889Sjdp  irix-core.lo)		COREFLAG=-DIRIX_CORE ;;
521238889Sjdp  lynx-core.lo)		COREFLAG=-DLYNX_CORE ;;
521338889Sjdp  netbsd-core.lo)	COREFLAG=-DNETBSD_CORE ;;
521438889Sjdp  osf-core.lo)		COREFLAG=-DOSF_CORE ;;
521538889Sjdp  ptrace-core.lo)	COREFLAG=-DPTRACE_CORE ;;
521638889Sjdp  rs6000-core.lo)	COREFLAG="$COREFLAG -DAIX_CORE" ;;
521760484Sobrien  sco5-core.lo)		COREFLAG="$COREFLAG -DSCO5_CORE" ;;
521838889Sjdp  trad-core.lo)		COREFLAG="$COREFLAG -DTRAD_CORE" ;;
521933965Sjdp  esac
522033965Sjdp
522160484Sobrien  # ELF corefile support has several flavors, but all of
522260484Sobrien  # them use something called <sys/procfs.h>
522360484Sobrien  for ac_hdr in sys/procfs.h
522460484Sobriendo
522560484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
522660484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
522791041Sobrienecho "configure:5228: checking for $ac_hdr" >&5
522860484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
522933965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
523033965Sjdpelse
523133965Sjdp  cat > conftest.$ac_ext <<EOF
523291041Sobrien#line 5233 "configure"
523333965Sjdp#include "confdefs.h"
523460484Sobrien#include <$ac_hdr>
523560484SobrienEOF
523660484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
523791041Sobrien{ (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
523860484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
523960484Sobrienif test -z "$ac_err"; then
524060484Sobrien  rm -rf conftest*
524160484Sobrien  eval "ac_cv_header_$ac_safe=yes"
524260484Sobrienelse
524360484Sobrien  echo "$ac_err" >&5
524460484Sobrien  echo "configure: failed program was:" >&5
524560484Sobrien  cat conftest.$ac_ext >&5
524660484Sobrien  rm -rf conftest*
524760484Sobrien  eval "ac_cv_header_$ac_safe=no"
524860484Sobrienfi
524960484Sobrienrm -f conftest*
525060484Sobrienfi
525160484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
525260484Sobrien  echo "$ac_t""yes" 1>&6
525360484Sobrien    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
525460484Sobrien  cat >> confdefs.h <<EOF
525560484Sobrien#define $ac_tr_hdr 1
525660484SobrienEOF
525760484Sobrien 
525860484Sobrienelse
525960484Sobrien  echo "$ac_t""no" 1>&6
526060484Sobrienfi
526160484Sobriendone
526260484Sobrien
526360484Sobrien  if test "$ac_cv_header_sys_procfs_h" = yes; then
526460484Sobrien    echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
526591041Sobrienecho "configure:5266: checking for prstatus_t in sys/procfs.h" >&5
526660484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
526760484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
526860484Sobrienelse
526960484Sobrien  cat > conftest.$ac_ext <<EOF
527091041Sobrien#line 5271 "configure"
527160484Sobrien#include "confdefs.h"
527277298Sobrien
527377298Sobrien#define _SYSCALL32
527433965Sjdp#include <sys/procfs.h>
527533965Sjdpint main() {
527660484Sobrienprstatus_t avar
527733965Sjdp; return 0; }
527833965SjdpEOF
527991041Sobrienif { (eval echo configure:5280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
528033965Sjdp  rm -rf conftest*
528160484Sobrien  bfd_cv_have_sys_procfs_type_prstatus_t=yes
528233965Sjdpelse
528333965Sjdp  echo "configure: failed program was:" >&5
528433965Sjdp  cat conftest.$ac_ext >&5
528533965Sjdp  rm -rf conftest*
528660484Sobrien  bfd_cv_have_sys_procfs_type_prstatus_t=no
528760484Sobrien   
528833965Sjdpfi
528933965Sjdprm -f conftest*
529033965Sjdpfi
529133965Sjdp
529260484Sobrien if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
529360484Sobrien   cat >> confdefs.h <<\EOF
529460484Sobrien#define HAVE_PRSTATUS_T 1
529533965SjdpEOF
529633965Sjdp
529760484Sobrien fi
529860484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
529933965Sjdp
530077298Sobrien    echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
530191041Sobrienecho "configure:5302: checking for prstatus32_t in sys/procfs.h" >&5
530277298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
530377298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
530477298Sobrienelse
530577298Sobrien  cat > conftest.$ac_ext <<EOF
530691041Sobrien#line 5307 "configure"
530777298Sobrien#include "confdefs.h"
530877298Sobrien
530977298Sobrien#define _SYSCALL32
531077298Sobrien#include <sys/procfs.h>
531177298Sobrienint main() {
531277298Sobrienprstatus32_t avar
531377298Sobrien; return 0; }
531477298SobrienEOF
531591041Sobrienif { (eval echo configure:5316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
531677298Sobrien  rm -rf conftest*
531777298Sobrien  bfd_cv_have_sys_procfs_type_prstatus32_t=yes
531877298Sobrienelse
531977298Sobrien  echo "configure: failed program was:" >&5
532077298Sobrien  cat conftest.$ac_ext >&5
532177298Sobrien  rm -rf conftest*
532277298Sobrien  bfd_cv_have_sys_procfs_type_prstatus32_t=no
532377298Sobrien   
532477298Sobrienfi
532577298Sobrienrm -f conftest*
532677298Sobrienfi
532777298Sobrien
532877298Sobrien if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
532977298Sobrien   cat >> confdefs.h <<\EOF
533077298Sobrien#define HAVE_PRSTATUS32_T 1
533177298SobrienEOF
533277298Sobrien
533377298Sobrien fi
533477298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
533577298Sobrien
533660484Sobrien    echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
533791041Sobrienecho "configure:5338: checking for prstatus_t.pr_who in sys/procfs.h" >&5
533860484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
533960484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
534060484Sobrienelse
534160484Sobrien  cat > conftest.$ac_ext <<EOF
534291041Sobrien#line 5343 "configure"
534360484Sobrien#include "confdefs.h"
534477298Sobrien
534577298Sobrien#define _SYSCALL32
534660484Sobrien#include <sys/procfs.h>
534760484Sobrienint main() {
534860484Sobrienprstatus_t avar; void* aref = (void*) &avar.pr_who
534960484Sobrien; return 0; }
535060484SobrienEOF
535191041Sobrienif { (eval echo configure:5352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
535260484Sobrien  rm -rf conftest*
535360484Sobrien  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
535460484Sobrienelse
535560484Sobrien  echo "configure: failed program was:" >&5
535660484Sobrien  cat conftest.$ac_ext >&5
535760484Sobrien  rm -rf conftest*
535860484Sobrien  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
535960484Sobrien   
536033965Sjdpfi
536160484Sobrienrm -f conftest*
536260484Sobrienfi
536333965Sjdp
536460484Sobrien if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
536560484Sobrien   cat >> confdefs.h <<\EOF
536660484Sobrien#define HAVE_PRSTATUS_T_PR_WHO 1
536760484SobrienEOF
536833965Sjdp
536960484Sobrien fi
537060484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
537133965Sjdp
537277298Sobrien    echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
537391041Sobrienecho "configure:5374: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
537477298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
537577298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
537677298Sobrienelse
537777298Sobrien  cat > conftest.$ac_ext <<EOF
537891041Sobrien#line 5379 "configure"
537977298Sobrien#include "confdefs.h"
538077298Sobrien
538177298Sobrien#define _SYSCALL32
538277298Sobrien#include <sys/procfs.h>
538377298Sobrienint main() {
538477298Sobrienprstatus32_t avar; void* aref = (void*) &avar.pr_who
538577298Sobrien; return 0; }
538677298SobrienEOF
538791041Sobrienif { (eval echo configure:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
538877298Sobrien  rm -rf conftest*
538977298Sobrien  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
539077298Sobrienelse
539177298Sobrien  echo "configure: failed program was:" >&5
539277298Sobrien  cat conftest.$ac_ext >&5
539377298Sobrien  rm -rf conftest*
539477298Sobrien  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
539577298Sobrien   
539677298Sobrienfi
539777298Sobrienrm -f conftest*
539877298Sobrienfi
539977298Sobrien
540077298Sobrien if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
540177298Sobrien   cat >> confdefs.h <<\EOF
540277298Sobrien#define HAVE_PRSTATUS32_T_PR_WHO 1
540377298SobrienEOF
540477298Sobrien
540577298Sobrien fi
540677298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
540777298Sobrien
540860484Sobrien    echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
540991041Sobrienecho "configure:5410: checking for pstatus_t in sys/procfs.h" >&5
541060484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
541160484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
541260484Sobrienelse
541360484Sobrien  cat > conftest.$ac_ext <<EOF
541491041Sobrien#line 5415 "configure"
541560484Sobrien#include "confdefs.h"
541677298Sobrien
541777298Sobrien#define _SYSCALL32
541860484Sobrien#include <sys/procfs.h>
541960484Sobrienint main() {
542060484Sobrienpstatus_t avar
542160484Sobrien; return 0; }
542260484SobrienEOF
542391041Sobrienif { (eval echo configure:5424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
542460484Sobrien  rm -rf conftest*
542560484Sobrien  bfd_cv_have_sys_procfs_type_pstatus_t=yes
542660484Sobrienelse
542760484Sobrien  echo "configure: failed program was:" >&5
542860484Sobrien  cat conftest.$ac_ext >&5
542960484Sobrien  rm -rf conftest*
543060484Sobrien  bfd_cv_have_sys_procfs_type_pstatus_t=no
543160484Sobrien   
543260484Sobrienfi
543360484Sobrienrm -f conftest*
543460484Sobrienfi
543560484Sobrien
543660484Sobrien if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
543760484Sobrien   cat >> confdefs.h <<\EOF
543860484Sobrien#define HAVE_PSTATUS_T 1
543960484SobrienEOF
544060484Sobrien
544160484Sobrien fi
544260484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
544360484Sobrien
544477298Sobrien    echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
544591041Sobrienecho "configure:5446: checking for pxstatus_t in sys/procfs.h" >&5
544677298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
544777298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
544877298Sobrienelse
544977298Sobrien  cat > conftest.$ac_ext <<EOF
545091041Sobrien#line 5451 "configure"
545177298Sobrien#include "confdefs.h"
545277298Sobrien
545377298Sobrien#define _SYSCALL32
545477298Sobrien#include <sys/procfs.h>
545577298Sobrienint main() {
545677298Sobrienpxstatus_t avar
545777298Sobrien; return 0; }
545877298SobrienEOF
545991041Sobrienif { (eval echo configure:5460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
546077298Sobrien  rm -rf conftest*
546177298Sobrien  bfd_cv_have_sys_procfs_type_pxstatus_t=yes
546277298Sobrienelse
546377298Sobrien  echo "configure: failed program was:" >&5
546477298Sobrien  cat conftest.$ac_ext >&5
546577298Sobrien  rm -rf conftest*
546677298Sobrien  bfd_cv_have_sys_procfs_type_pxstatus_t=no
546777298Sobrien   
546877298Sobrienfi
546977298Sobrienrm -f conftest*
547077298Sobrienfi
547177298Sobrien
547277298Sobrien if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
547377298Sobrien   cat >> confdefs.h <<\EOF
547477298Sobrien#define HAVE_PXSTATUS_T 1
547577298SobrienEOF
547677298Sobrien
547777298Sobrien fi
547877298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
547977298Sobrien
548077298Sobrien    echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
548191041Sobrienecho "configure:5482: checking for pstatus32_t in sys/procfs.h" >&5
548277298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
548377298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
548477298Sobrienelse
548577298Sobrien  cat > conftest.$ac_ext <<EOF
548691041Sobrien#line 5487 "configure"
548777298Sobrien#include "confdefs.h"
548877298Sobrien
548977298Sobrien#define _SYSCALL32
549077298Sobrien#include <sys/procfs.h>
549177298Sobrienint main() {
549277298Sobrienpstatus32_t avar
549377298Sobrien; return 0; }
549477298SobrienEOF
549591041Sobrienif { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
549677298Sobrien  rm -rf conftest*
549777298Sobrien  bfd_cv_have_sys_procfs_type_pstatus32_t=yes
549877298Sobrienelse
549977298Sobrien  echo "configure: failed program was:" >&5
550077298Sobrien  cat conftest.$ac_ext >&5
550177298Sobrien  rm -rf conftest*
550277298Sobrien  bfd_cv_have_sys_procfs_type_pstatus32_t=no
550377298Sobrien   
550477298Sobrienfi
550577298Sobrienrm -f conftest*
550677298Sobrienfi
550777298Sobrien
550877298Sobrien if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
550977298Sobrien   cat >> confdefs.h <<\EOF
551077298Sobrien#define HAVE_PSTATUS32_T 1
551177298SobrienEOF
551277298Sobrien
551377298Sobrien fi
551477298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
551577298Sobrien
551660484Sobrien    echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
551791041Sobrienecho "configure:5518: checking for prpsinfo_t in sys/procfs.h" >&5
551860484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
551960484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
552060484Sobrienelse
552160484Sobrien  cat > conftest.$ac_ext <<EOF
552291041Sobrien#line 5523 "configure"
552360484Sobrien#include "confdefs.h"
552477298Sobrien
552577298Sobrien#define _SYSCALL32
552660484Sobrien#include <sys/procfs.h>
552760484Sobrienint main() {
552860484Sobrienprpsinfo_t avar
552960484Sobrien; return 0; }
553060484SobrienEOF
553191041Sobrienif { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
553260484Sobrien  rm -rf conftest*
553360484Sobrien  bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
553460484Sobrienelse
553560484Sobrien  echo "configure: failed program was:" >&5
553660484Sobrien  cat conftest.$ac_ext >&5
553760484Sobrien  rm -rf conftest*
553860484Sobrien  bfd_cv_have_sys_procfs_type_prpsinfo_t=no
553960484Sobrien   
554060484Sobrienfi
554160484Sobrienrm -f conftest*
554260484Sobrienfi
554360484Sobrien
554460484Sobrien if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
554560484Sobrien   cat >> confdefs.h <<\EOF
554660484Sobrien#define HAVE_PRPSINFO_T 1
554760484SobrienEOF
554860484Sobrien
554960484Sobrien fi
555060484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
555160484Sobrien
555277298Sobrien    echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
555391041Sobrienecho "configure:5554: checking for prpsinfo32_t in sys/procfs.h" >&5
555477298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
555577298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
555677298Sobrienelse
555777298Sobrien  cat > conftest.$ac_ext <<EOF
555891041Sobrien#line 5559 "configure"
555977298Sobrien#include "confdefs.h"
556077298Sobrien
556177298Sobrien#define _SYSCALL32
556277298Sobrien#include <sys/procfs.h>
556377298Sobrienint main() {
556477298Sobrienprpsinfo32_t avar
556577298Sobrien; return 0; }
556677298SobrienEOF
556791041Sobrienif { (eval echo configure:5568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
556877298Sobrien  rm -rf conftest*
556977298Sobrien  bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
557077298Sobrienelse
557177298Sobrien  echo "configure: failed program was:" >&5
557277298Sobrien  cat conftest.$ac_ext >&5
557377298Sobrien  rm -rf conftest*
557477298Sobrien  bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
557577298Sobrien   
557677298Sobrienfi
557777298Sobrienrm -f conftest*
557877298Sobrienfi
557977298Sobrien
558077298Sobrien if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
558177298Sobrien   cat >> confdefs.h <<\EOF
558277298Sobrien#define HAVE_PRPSINFO32_T 1
558377298SobrienEOF
558477298Sobrien
558577298Sobrien fi
558677298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
558777298Sobrien
558860484Sobrien    echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
558991041Sobrienecho "configure:5590: checking for psinfo_t in sys/procfs.h" >&5
559060484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
559160484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
559260484Sobrienelse
559360484Sobrien  cat > conftest.$ac_ext <<EOF
559491041Sobrien#line 5595 "configure"
559560484Sobrien#include "confdefs.h"
559677298Sobrien
559777298Sobrien#define _SYSCALL32
559860484Sobrien#include <sys/procfs.h>
559960484Sobrienint main() {
560060484Sobrienpsinfo_t avar
560160484Sobrien; return 0; }
560260484SobrienEOF
560391041Sobrienif { (eval echo configure:5604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
560460484Sobrien  rm -rf conftest*
560560484Sobrien  bfd_cv_have_sys_procfs_type_psinfo_t=yes
560660484Sobrienelse
560760484Sobrien  echo "configure: failed program was:" >&5
560860484Sobrien  cat conftest.$ac_ext >&5
560960484Sobrien  rm -rf conftest*
561060484Sobrien  bfd_cv_have_sys_procfs_type_psinfo_t=no
561160484Sobrien   
561260484Sobrienfi
561360484Sobrienrm -f conftest*
561460484Sobrienfi
561560484Sobrien
561660484Sobrien if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
561760484Sobrien   cat >> confdefs.h <<\EOF
561860484Sobrien#define HAVE_PSINFO_T 1
561960484SobrienEOF
562060484Sobrien
562160484Sobrien fi
562260484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
562360484Sobrien
562477298Sobrien    echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
562591041Sobrienecho "configure:5626: checking for psinfo32_t in sys/procfs.h" >&5
562677298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
562777298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
562877298Sobrienelse
562977298Sobrien  cat > conftest.$ac_ext <<EOF
563091041Sobrien#line 5631 "configure"
563177298Sobrien#include "confdefs.h"
563277298Sobrien
563377298Sobrien#define _SYSCALL32
563477298Sobrien#include <sys/procfs.h>
563577298Sobrienint main() {
563677298Sobrienpsinfo32_t avar
563777298Sobrien; return 0; }
563877298SobrienEOF
563991041Sobrienif { (eval echo configure:5640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
564077298Sobrien  rm -rf conftest*
564177298Sobrien  bfd_cv_have_sys_procfs_type_psinfo32_t=yes
564277298Sobrienelse
564377298Sobrien  echo "configure: failed program was:" >&5
564477298Sobrien  cat conftest.$ac_ext >&5
564577298Sobrien  rm -rf conftest*
564677298Sobrien  bfd_cv_have_sys_procfs_type_psinfo32_t=no
564777298Sobrien   
564877298Sobrienfi
564977298Sobrienrm -f conftest*
565077298Sobrienfi
565177298Sobrien
565277298Sobrien if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
565377298Sobrien   cat >> confdefs.h <<\EOF
565477298Sobrien#define HAVE_PSINFO32_T 1
565577298SobrienEOF
565677298Sobrien
565777298Sobrien fi
565877298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
565977298Sobrien
566060484Sobrien    echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
566191041Sobrienecho "configure:5662: checking for lwpstatus_t in sys/procfs.h" >&5
566260484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
566360484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
566460484Sobrienelse
566560484Sobrien  cat > conftest.$ac_ext <<EOF
566691041Sobrien#line 5667 "configure"
566760484Sobrien#include "confdefs.h"
566877298Sobrien
566977298Sobrien#define _SYSCALL32
567060484Sobrien#include <sys/procfs.h>
567160484Sobrienint main() {
567260484Sobrienlwpstatus_t avar
567360484Sobrien; return 0; }
567460484SobrienEOF
567591041Sobrienif { (eval echo configure:5676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
567660484Sobrien  rm -rf conftest*
567760484Sobrien  bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
567860484Sobrienelse
567960484Sobrien  echo "configure: failed program was:" >&5
568060484Sobrien  cat conftest.$ac_ext >&5
568160484Sobrien  rm -rf conftest*
568260484Sobrien  bfd_cv_have_sys_procfs_type_lwpstatus_t=no
568360484Sobrien   
568460484Sobrienfi
568560484Sobrienrm -f conftest*
568660484Sobrienfi
568760484Sobrien
568860484Sobrien if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
568960484Sobrien   cat >> confdefs.h <<\EOF
569060484Sobrien#define HAVE_LWPSTATUS_T 1
569160484SobrienEOF
569260484Sobrien
569360484Sobrien fi
569460484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
569560484Sobrien
569677298Sobrien    echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
569791041Sobrienecho "configure:5698: checking for lwpxstatus_t in sys/procfs.h" >&5
569877298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
569977298Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
570077298Sobrienelse
570177298Sobrien  cat > conftest.$ac_ext <<EOF
570291041Sobrien#line 5703 "configure"
570377298Sobrien#include "confdefs.h"
570477298Sobrien
570577298Sobrien#define _SYSCALL32
570677298Sobrien#include <sys/procfs.h>
570777298Sobrienint main() {
570877298Sobrienlwpxstatus_t avar
570977298Sobrien; return 0; }
571077298SobrienEOF
571191041Sobrienif { (eval echo configure:5712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
571277298Sobrien  rm -rf conftest*
571377298Sobrien  bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
571477298Sobrienelse
571577298Sobrien  echo "configure: failed program was:" >&5
571677298Sobrien  cat conftest.$ac_ext >&5
571777298Sobrien  rm -rf conftest*
571877298Sobrien  bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
571977298Sobrien   
572077298Sobrienfi
572177298Sobrienrm -f conftest*
572277298Sobrienfi
572377298Sobrien
572477298Sobrien if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
572577298Sobrien   cat >> confdefs.h <<\EOF
572677298Sobrien#define HAVE_LWPXSTATUS_T 1
572777298SobrienEOF
572877298Sobrien
572977298Sobrien fi
573077298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
573177298Sobrien
573260484Sobrien    echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
573391041Sobrienecho "configure:5734: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
573460484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
573560484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
573660484Sobrienelse
573760484Sobrien  cat > conftest.$ac_ext <<EOF
573891041Sobrien#line 5739 "configure"
573960484Sobrien#include "confdefs.h"
574077298Sobrien
574177298Sobrien#define _SYSCALL32
574260484Sobrien#include <sys/procfs.h>
574360484Sobrienint main() {
574460484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_context
574560484Sobrien; return 0; }
574660484SobrienEOF
574791041Sobrienif { (eval echo configure:5748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
574860484Sobrien  rm -rf conftest*
574960484Sobrien  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
575060484Sobrienelse
575160484Sobrien  echo "configure: failed program was:" >&5
575260484Sobrien  cat conftest.$ac_ext >&5
575360484Sobrien  rm -rf conftest*
575460484Sobrien  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
575560484Sobrien   
575660484Sobrienfi
575760484Sobrienrm -f conftest*
575860484Sobrienfi
575960484Sobrien
576060484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
576160484Sobrien   cat >> confdefs.h <<\EOF
576260484Sobrien#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
576360484SobrienEOF
576460484Sobrien
576560484Sobrien fi
576660484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
576760484Sobrien
576860484Sobrien    echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
576991041Sobrienecho "configure:5770: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
577060484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
577160484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
577260484Sobrienelse
577360484Sobrien  cat > conftest.$ac_ext <<EOF
577491041Sobrien#line 5775 "configure"
577560484Sobrien#include "confdefs.h"
577677298Sobrien
577777298Sobrien#define _SYSCALL32
577860484Sobrien#include <sys/procfs.h>
577960484Sobrienint main() {
578060484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_reg
578160484Sobrien; return 0; }
578260484SobrienEOF
578391041Sobrienif { (eval echo configure:5784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
578460484Sobrien  rm -rf conftest*
578560484Sobrien  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
578660484Sobrienelse
578760484Sobrien  echo "configure: failed program was:" >&5
578860484Sobrien  cat conftest.$ac_ext >&5
578960484Sobrien  rm -rf conftest*
579060484Sobrien  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
579160484Sobrien   
579260484Sobrienfi
579360484Sobrienrm -f conftest*
579460484Sobrienfi
579560484Sobrien
579660484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
579760484Sobrien   cat >> confdefs.h <<\EOF
579860484Sobrien#define HAVE_LWPSTATUS_T_PR_REG 1
579960484SobrienEOF
580060484Sobrien
580160484Sobrien fi
580260484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
580360484Sobrien
580460484Sobrien    echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
580591041Sobrienecho "configure:5806: checking for win32_pstatus_t in sys/procfs.h" >&5
580660484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
580760484Sobrien  echo $ac_n "(cached) $ac_c" 1>&6
580860484Sobrienelse
580960484Sobrien  cat > conftest.$ac_ext <<EOF
581091041Sobrien#line 5811 "configure"
581160484Sobrien#include "confdefs.h"
581277298Sobrien
581377298Sobrien#define _SYSCALL32
581460484Sobrien#include <sys/procfs.h>
581560484Sobrienint main() {
581660484Sobrienwin32_pstatus_t avar
581760484Sobrien; return 0; }
581860484SobrienEOF
581991041Sobrienif { (eval echo configure:5820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
582060484Sobrien  rm -rf conftest*
582160484Sobrien  bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
582260484Sobrienelse
582360484Sobrien  echo "configure: failed program was:" >&5
582460484Sobrien  cat conftest.$ac_ext >&5
582560484Sobrien  rm -rf conftest*
582660484Sobrien  bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
582760484Sobrien   
582860484Sobrienfi
582960484Sobrienrm -f conftest*
583060484Sobrienfi
583160484Sobrien
583260484Sobrien if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
583360484Sobrien   cat >> confdefs.h <<\EOF
583460484Sobrien#define HAVE_WIN32_PSTATUS_T 1
583560484SobrienEOF
583660484Sobrien
583760484Sobrien fi
583860484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
583960484Sobrien
584060484Sobrien  fi
584160484Sobrienfi
584260484Sobrien
584360484Sobrien
584477298Sobrienif test -n "$TRAD_HEADER"; then
584577298Sobrien  cat >> confdefs.h <<EOF
584660484Sobrien#define TRAD_HEADER $TRAD_HEADER
584760484SobrienEOF
584860484Sobrien
584977298Sobrienfi
585060484Sobrien
585160484Sobrien# Horrible hacks to build DLLs on Windows.
585260484SobrienWIN32LDFLAGS=
585360484SobrienWIN32LIBADD=
585460484Sobriencase "${host}" in
585560484Sobrien*-*-cygwin*)
585660484Sobrien  if test "$enable_shared" = "yes"; then
585760484Sobrien    WIN32LDFLAGS="-no-undefined"
585860484Sobrien    WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
585960484Sobrien  fi
586060484Sobrien  ;;
586189857Sobrien*-*-linux*)
586289857Sobrien  # We borrow WIN32LIBADD so that the shared libbfd won't depend on
586389857Sobrien  # libiberty.a.
586489857Sobrien  case "${host}" in
586589857Sobrien  mips*-*-linux*)
586689857Sobrien    # Linux/MIPS uses PIC by default.
586789857Sobrien    if test "$enable_shared" = "yes"; then
586889857Sobrien      WIN32LIBADD="-L../libiberty -liberty"
586989857Sobrien    fi
587089857Sobrien    ;;
587189857Sobrien  *)
587289857Sobrien    PICFLAG=
587389857Sobrien        eval `grep "^[ 	]*PICFLAG[ 	]*=" ../libiberty/Makefile | sed -e "s/[ 	]*//g"`
587489857Sobrien        if test -n "$PICFLAG"; then
587589857Sobrien      WIN32LIBADD="-L../libiberty/pic -liberty"
587689857Sobrien    fi
587789857Sobrien  ;;
587889857Sobrien  esac
587989857Sobrien  ;;
588060484Sobrienesac
588160484Sobrien
588260484Sobrien
588360484Sobrien
588433965Sjdp# target stuff:
588533965Sjdp
588633965Sjdp# Canonicalize the secondary target names.
588733965Sjdpif test -n "$enable_targets" ; then
588833965Sjdp    for targ in `echo $enable_targets | sed 's/,/ /g'`
588933965Sjdp    do
589060484Sobrien	result=`$ac_config_sub $targ 2>/dev/null`
589133965Sjdp	if test -n "$result" ; then
589233965Sjdp	    canon_targets="$canon_targets $result"
589333965Sjdp	else
589433965Sjdp	    # Allow targets that config.sub doesn't recognize, like "all".
589533965Sjdp	    canon_targets="$canon_targets $targ"
589633965Sjdp	fi
589733965Sjdp    done
589833965Sjdpfi
589933965Sjdp
590033965Sjdpall_targets=false
590133965Sjdpdefvec=
590233965Sjdpselvecs=
590333965Sjdpselarchs=
590433965SjdpTDEFINES=
590533965Sjdpfor targ in $target $canon_targets
590633965Sjdpdo
590733965Sjdp    if test "x$targ" = "xall"; then
590833965Sjdp        all_targets=true
590933965Sjdp    else
591033965Sjdp	. $srcdir/config.bfd
591133965Sjdp	if test "x$targ" = "x$target"; then
591233965Sjdp	    defvec=$targ_defvec
591333965Sjdp	fi
591433965Sjdp	selvecs="$selvecs $targ_defvec $targ_selvecs"
591533965Sjdp	selarchs="$selarchs $targ_archs"
591633965Sjdp	TDEFINES="$TDEFINES $targ_cflags"
591733965Sjdp    fi
591833965Sjdpdone
591933965Sjdp
592033965Sjdp
592133965Sjdp# This processing still needs to be done if we're to decide properly whether
592233965Sjdp# 64-bit support needs to be compiled in.  Currently, it will be included if
592333965Sjdp# the default or any other explicitly requested target requires it; it
592433965Sjdp# will not be included on a 32-bit host if no 64-bit target is requested, and
592560484Sobrien# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
592633965Sjdp# used.
592733965Sjdp
592833965Sjdp# uniq the default and selected vectors in all the configured targets.
592933965Sjdpf=""
593033965Sjdpfor i in $selvecs ; do
593133965Sjdp    case " $f " in
593233965Sjdp    *" $i "*) ;;
593333965Sjdp    *) f="$f $i" ;;
593433965Sjdp    esac
593533965Sjdpdone
593633965Sjdpselvecs="$f"
593733965Sjdp
593838889Sjdp
593933965Sjdp# uniq the architectures in all the configured targets.
594033965Sjdpf=""
594133965Sjdpfor i in $selarchs ; do
594233965Sjdp    case " $f " in
594333965Sjdp    *" $i "*) ;;
594433965Sjdp    *) f="$f $i" ;;
594533965Sjdp    esac
594633965Sjdpdone
594733965Sjdpselarchs="$f"
594833965Sjdp
594933965Sjdp# Target backend .o files.
595033965Sjdptb=
595133965Sjdp
595289857Sobrienelf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
595333965Sjdp
595433965Sjdpfor vec in $selvecs
595533965Sjdpdo
595689857Sobrien    target_size=32
595733965Sjdp    case "$vec" in
595833965Sjdp    # This list is alphabetized to make it easy to compare
595989857Sobrien    # with the two vector lists in targets.c.  For the same reason,
596089857Sobrien    # use one entry per line, even though this leads to long lines.
596191041Sobrien    # FIXME: We include cofflink.lo not because it's needed for
596291041Sobrien    # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
596391041Sobrien    # which needs it but does not list it.  Should be fixed in right place.
596491041Sobrien    bfd_elf32_sh64_vec)		tb="$tb elf32-sh64.lo elf32.lo $elf cofflink.lo"
596591041Sobrien				target_size=64 ;;
596691041Sobrien    bfd_elf32_sh64l_vec)	tb="$tb elf32-sh64.lo elf32.lo $elf cofflink.lo"
596791041Sobrien				target_size=64 ;;
596891041Sobrien    bfd_elf64_sh64_vec)		tb="$tb elf64-sh64.lo elf64.lo $elf"
596991041Sobrien				target_size=64 ;;
597091041Sobrien    bfd_elf64_sh64l_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf"
597191041Sobrien				target_size=64 ;;
597238889Sjdp    a29kcoff_big_vec)		tb="$tb coff-a29k.lo cofflink.lo" ;;
597338889Sjdp    a_out_adobe_vec)		tb="$tb aout-adobe.lo aout32.lo" ;;
597438889Sjdp    aout0_big_vec)		tb="$tb aout0.lo aout32.lo" ;;
597538889Sjdp    aout_arm_big_vec)		tb="$tb aout-arm.lo aout32.lo" ;;
597638889Sjdp    aout_arm_little_vec)	tb="$tb aout-arm.lo aout32.lo" ;;
597738889Sjdp    aout_mips_big_vec)		tb="$tb mipsbsd.lo aout32.lo" ;;
597838889Sjdp    aout_mips_little_vec)	tb="$tb mipsbsd.lo aout32.lo" ;;
597938889Sjdp    apollocoff_vec)		tb="$tb coff-apollo.lo" ;;
598089857Sobrien    arm_epoc_pe_big_vec)	tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
598189857Sobrien    arm_epoc_pe_little_vec)	tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
598289857Sobrien    arm_epoc_pei_big_vec)	tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
598389857Sobrien    arm_epoc_pei_little_vec)	tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
598489857Sobrien    armcoff_big_vec)		tb="$tb coff-arm.lo cofflink.lo " ;;
598589857Sobrien    armcoff_little_vec)		tb="$tb coff-arm.lo cofflink.lo " ;;
598689857Sobrien    armnetbsd_vec)		tb="$tb armnetbsd.lo aout32.lo" ;;
598789857Sobrien    armpe_big_vec)		tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
598889857Sobrien    armpe_little_vec)		tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
598989857Sobrien    armpei_big_vec)		tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
599089857Sobrien    armpei_little_vec)		tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
599138889Sjdp    b_out_vec_big_host)		tb="$tb bout.lo aout32.lo" ;;
599238889Sjdp    b_out_vec_little_host)	tb="$tb bout.lo aout32.lo" ;;
599377298Sobrien    bfd_efi_app_ia32_vec)	tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
599489857Sobrien    bfd_efi_app_ia64_vec)	tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
599560484Sobrien    bfd_elf32_avr_vec)		tb="$tb elf32-avr.lo elf32.lo $elf" ;;
599689857Sobrien    bfd_elf32_big_generic_vec) 	tb="$tb elf32-gen.lo elf32.lo $elf" ;;
599738889Sjdp    bfd_elf32_bigarc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
599889857Sobrien    bfd_elf32_bigarm_oabi_vec)	tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
599960484Sobrien    bfd_elf32_bigarm_vec)	tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
600038889Sjdp    bfd_elf32_bigmips_vec) 	tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
600177298Sobrien    bfd_elf32_cris_vec)		tb="$tb elf32-cris.lo elf32.lo $elf" ;;
600238889Sjdp    bfd_elf32_d10v_vec)		tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
600360484Sobrien    bfd_elf32_d30v_vec)		tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
600460484Sobrien    bfd_elf32_fr30_vec)		tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
600589857Sobrien    bfd_elf32_h8300_vec)	tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
600689857Sobrien    bfd_elf32_hppa_linux_vec)	tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
600789857Sobrien    bfd_elf32_hppa_vec)		tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
600860484Sobrien    bfd_elf32_i370_vec)		tb="$tb elf32-i370.lo elf32.lo $elf" ;;
600938889Sjdp    bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf32.lo $elf" ;;
601089857Sobrien    bfd_elf32_i860_little_vec)	tb="$tb elf32-i860.lo elf32.lo $elf" ;;
601138889Sjdp    bfd_elf32_i860_vec)		tb="$tb elf32-i860.lo elf32.lo $elf" ;;
601260484Sobrien    bfd_elf32_i960_vec)		tb="$tb elf32-i960.lo elf32.lo $elf" ;;
601389857Sobrien    bfd_elf32_ia64_big_vec)	tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
601489857Sobrien    bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
601538889Sjdp    bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
601689857Sobrien    bfd_elf32_littlearc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
601789857Sobrien    bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
601889857Sobrien    bfd_elf32_littlearm_vec)	tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
601938889Sjdp    bfd_elf32_littlemips_vec) 	tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
602038889Sjdp    bfd_elf32_m32r_vec)		tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
602177298Sobrien    bfd_elf32_m68hc11_vec)	tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
602277298Sobrien    bfd_elf32_m68hc12_vec)	tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
602338889Sjdp    bfd_elf32_m68k_vec)		tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
602438889Sjdp    bfd_elf32_m88k_vec)		tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
602560484Sobrien    bfd_elf32_mcore_big_vec)	tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
602660484Sobrien    bfd_elf32_mcore_little_vec)	tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
602738889Sjdp    bfd_elf32_mn10200_vec)	tb="$tb elf-m10200.lo elf32.lo $elf" ;;
602838889Sjdp    bfd_elf32_mn10300_vec)	tb="$tb elf-m10300.lo elf32.lo $elf" ;;
602989857Sobrien    bfd_elf32_openrisc_vec)	tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
603091041Sobrien    bfd_elf32_or32_big_vec)	tb="$tb elf32-or32.lo elf32.lo $elf" ;;
603160484Sobrien    bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
603260484Sobrien    bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
603338889Sjdp    bfd_elf32_powerpc_vec)	tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
603438889Sjdp    bfd_elf32_powerpcle_vec)	tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
603589857Sobrien    bfd_elf32_s390_vec)		tb="$tb elf32-s390.lo elf32.lo $elf" ;;
603638889Sjdp    bfd_elf32_sh_vec)		tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
603789857Sobrien    bfd_elf32_shblin_vec)	tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
603838889Sjdp    bfd_elf32_shl_vec)		tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
603977298Sobrien    bfd_elf32_shlin_vec)	tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
604089857Sobrien    bfd_elf32_shlnbsd_vec)	tb="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
604189857Sobrien    bfd_elf32_shnbsd_vec)	tb="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
604238889Sjdp    bfd_elf32_sparc_vec)	tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
604377298Sobrien    bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
604477298Sobrien    bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
604589857Sobrien    bfd_elf32_us_cris_vec)	tb="$tb elf32-cris.lo elf32.lo $elf" ;;
604638889Sjdp    bfd_elf32_v850_vec)		tb="$tb elf32-v850.lo elf32.lo $elf" ;;
604789857Sobrien    bfd_elf32_xstormy16_vec)	tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
604889857Sobrien    bfd_elf64_alpha_vec)	tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
604989857Sobrien    bfd_elf64_big_generic_vec) 	tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
605089857Sobrien    bfd_elf64_bigmips_vec) 	tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
605189857Sobrien    bfd_elf64_hppa_linux_vec)	tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
605289857Sobrien    bfd_elf64_hppa_vec)		tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
605389857Sobrien    bfd_elf64_ia64_aix_big_vec)	tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
605489857Sobrien    bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
605589857Sobrien    bfd_elf64_ia64_big_vec)	tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
605689857Sobrien    bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
605789857Sobrien    bfd_elf64_ia64_little_vec)	tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
605889857Sobrien    bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
605989857Sobrien    bfd_elf64_littlemips_vec) 	tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
606089857Sobrien    bfd_elf64_mmix_vec) 	tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
606189857Sobrien    bfd_elf64_powerpc_vec)	tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
606289857Sobrien    bfd_elf64_powerpcle_vec)	tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
606389857Sobrien    bfd_elf64_s390_vec)		tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
606489857Sobrien    bfd_elf64_sparc_vec)	tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
606589857Sobrien    bfd_elf64_tradbigmips_vec)	tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size=64 ;;
606689857Sobrien    bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size=64 ;;
606789857Sobrien    bfd_elf64_x86_64_vec)	tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
606889857Sobrien    bfd_mmo_vec)		tb="$tb mmo.lo" target_size=64 ;;
606989857Sobrien    bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
607089857Sobrien    bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
607189857Sobrien    bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
607289857Sobrien    bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
607360484Sobrien    cisco_core_big_vec)		tb="$tb cisco-core.lo" ;;
607460484Sobrien    cisco_core_little_vec)	tb="$tb cisco-core.lo" ;;
607577298Sobrien    cris_aout_vec)		tb="$tb aout-cris.lo" ;;
607689857Sobrien    demo_64_vec)		tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
607738889Sjdp    ecoff_big_vec)		tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
607889857Sobrien    ecoff_biglittle_vec)	tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
607938889Sjdp    ecoff_little_vec)		tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
608089857Sobrien    ecoffalpha_little_vec)	tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
608138889Sjdp    go32coff_vec)		tb="$tb coff-go32.lo cofflink.lo" ;;
608238889Sjdp    go32stubbedcoff_vec)	tb="$tb coff-stgo32.lo cofflink.lo" ;;
608338889Sjdp    h8300coff_vec)		tb="$tb coff-h8300.lo reloc16.lo" ;;
608438889Sjdp    h8500coff_vec)		tb="$tb coff-h8500.lo reloc16.lo" ;;
608538889Sjdp    host_aout_vec)		tb="$tb host-aout.lo aout32.lo" ;;
608638889Sjdp    hp300bsd_vec)		tb="$tb hp300bsd.lo aout32.lo" ;;
608738889Sjdp    hp300hpux_vec)		tb="$tb hp300hpux.lo aout32.lo" ;;
608838889Sjdp    i386aout_vec)		tb="$tb i386aout.lo aout32.lo" ;;
608938889Sjdp    i386bsd_vec)		tb="$tb i386bsd.lo aout32.lo" ;;
609038889Sjdp    i386coff_vec)		tb="$tb coff-i386.lo cofflink.lo" ;;
609138889Sjdp    i386dynix_vec)		tb="$tb i386dynix.lo aout32.lo" ;;
609238889Sjdp    i386freebsd_vec)		tb="$tb i386freebsd.lo aout32.lo" ;;
609338889Sjdp    i386linux_vec)		tb="$tb i386linux.lo aout32.lo" ;;
609438889Sjdp    i386lynx_aout_vec)		tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
609538889Sjdp    i386lynx_coff_vec)		tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
609638889Sjdp    i386mach3_vec)		tb="$tb i386mach3.lo aout32.lo" ;;
609789857Sobrien    i386msdos_vec)		tb="$tb i386msdos.lo" ;;
609838889Sjdp    i386netbsd_vec)		tb="$tb i386netbsd.lo aout32.lo" ;;
609938889Sjdp    i386os9k_vec)		tb="$tb i386os9k.lo aout32.lo" ;;
610089857Sobrien    i386pe_vec)			tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
610189857Sobrien    i386pei_vec)		tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
610238889Sjdp    i860coff_vec)		tb="$tb coff-i860.lo cofflink.lo" ;;
610338889Sjdp    icoff_big_vec)		tb="$tb coff-i960.lo cofflink.lo" ;;
610438889Sjdp    icoff_little_vec)		tb="$tb coff-i960.lo cofflink.lo" ;;
610538889Sjdp    ieee_vec)			tb="$tb ieee.lo" ;;
610689857Sobrien    m68k4knetbsd_vec)		tb="$tb m68k4knetbsd.lo aout32.lo" ;;
610789857Sobrien    m68kaux_coff_vec)		tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
610838889Sjdp    m68kcoff_vec)		tb="$tb coff-m68k.lo cofflink.lo" ;;
610938889Sjdp    m68kcoffun_vec)		tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
611038889Sjdp    m68klinux_vec)		tb="$tb m68klinux.lo aout32.lo" ;;
611138889Sjdp    m68klynx_aout_vec)		tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
611238889Sjdp    m68klynx_coff_vec)		tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
611338889Sjdp    m68knetbsd_vec)		tb="$tb m68knetbsd.lo aout32.lo" ;;
611438889Sjdp    m68ksysvcoff_vec)		tb="$tb coff-svm68k.lo cofflink.lo" ;;
611538889Sjdp    m88kbcs_vec)		tb="$tb coff-m88k.lo" ;;
611660484Sobrien    mcore_pe_big_vec)		tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
611760484Sobrien    mcore_pe_little_vec)	tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
611860484Sobrien    mcore_pei_big_vec)		tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
611960484Sobrien    mcore_pei_little_vec)	tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
612089857Sobrien    mipslpe_vec)		tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
612189857Sobrien    mipslpei_vec)		tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
612238889Sjdp    newsos3_vec)		tb="$tb newsos3.lo aout32.lo" ;;
612389857Sobrien    nlm32_alpha_vec)		tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
612438889Sjdp    nlm32_i386_vec)		tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
612589857Sobrien    nlm32_powerpc_vec)		tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
612638889Sjdp    nlm32_sparc_vec)		tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
612791041Sobrien    or32coff_big_vec)		tb="$tb coff-or32.lo cofflink.lo" ;;
612889857Sobrien    pc532machaout_vec)		tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
612989857Sobrien    pc532netbsd_vec)		tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
613089857Sobrien    pdp11_aout_vec)		tb="$tb pdp11.lo" ;;
613189857Sobrien    pmac_xcoff_vec)		tb="$tb coff-rs6000.lo xcofflink.lo" ;;
613289857Sobrien    ppcboot_vec)		tb="$tb ppcboot.lo" ;;
613338889Sjdp    riscix_vec)			tb="$tb aout32.lo riscix.lo" ;;
613489857Sobrien    rs6000coff64_vec)		tb="$tb coff64-rs6000.lo xcofflink.lo"; target_size=64 ;;
613538889Sjdp    rs6000coff_vec)		tb="$tb coff-rs6000.lo xcofflink.lo" ;;
613689857Sobrien    shcoff_small_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
613738889Sjdp    shcoff_vec)			tb="$tb coff-sh.lo cofflink.lo" ;;
613889857Sobrien    shlcoff_small_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
613938889Sjdp    shlcoff_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
614077298Sobrien    shlpe_vec)			tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
614177298Sobrien    shlpei_vec)			tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
614238889Sjdp    som_vec)			tb="$tb som.lo" ;;
614389857Sobrien    sparccoff_vec)		tb="$tb coff-sparc.lo" ;;
614438889Sjdp    sparcle_aout_vec)		tb="$tb aout-sparcle.lo aout32.lo" ;;
614538889Sjdp    sparclinux_vec)		tb="$tb sparclinux.lo aout32.lo" ;;
614638889Sjdp    sparclynx_aout_vec)		tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
614738889Sjdp    sparclynx_coff_vec)		tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
614838889Sjdp    sparcnetbsd_vec)		tb="$tb sparcnetbsd.lo aout32.lo" ;;
614938889Sjdp    srec_vec)			tb="$tb srec.lo" ;;
615038889Sjdp    sunos_big_vec)		tb="$tb sunos.lo aout32.lo" ;;
615138889Sjdp    symbolsrec_vec)		tb="$tb srec.lo" ;;
615238889Sjdp    tekhex_vec)			tb="$tb tekhex.lo" ;;
615338889Sjdp    tic30_aout_vec)		tb="$tb aout-tic30.lo" ;;
615438889Sjdp    tic30_coff_vec)		tb="$tb coff-tic30.lo" ;;
615589857Sobrien    tic54x_coff0_beh_vec)	tb="$tb coff-tic54x.lo" ;;
615677298Sobrien    tic54x_coff0_vec)		tb="$tb coff-tic54x.lo" ;;
615789857Sobrien    tic54x_coff1_beh_vec)	tb="$tb coff-tic54x.lo" ;;
615877298Sobrien    tic54x_coff1_vec)		tb="$tb coff-tic54x.lo" ;;
615989857Sobrien    tic54x_coff2_beh_vec)	tb="$tb coff-tic54x.lo" ;;
616077298Sobrien    tic54x_coff2_vec)		tb="$tb coff-tic54x.lo" ;;
616160484Sobrien    tic80coff_vec)		tb="$tb coff-tic80.lo cofflink.lo" ;;
616260484Sobrien    versados_vec)		tb="$tb versados.lo" ;;
616389857Sobrien    vms_alpha_vec)		tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
616460484Sobrien    vms_vax_vec)		tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
616560484Sobrien    w65_vec)			tb="$tb coff-w65.lo reloc16.lo" ;;
616638889Sjdp    we32kcoff_vec)		tb="$tb coff-we32k.lo" ;;
616738889Sjdp    z8kcoff_vec)		tb="$tb coff-z8k.lo reloc16.lo" ;;
616833965Sjdp
616933965Sjdp    "")			;;
617033965Sjdp    *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
617133965Sjdp    esac
617289857Sobrien
617389857Sobrien    if test ${target_size} = 64; then
617489857Sobrien	target64=true
617589857Sobrien    fi
617689857Sobrien    if test x"${vec}" = x"${defvec}"; then
617789857Sobrien	bfd_default_target_size=${target_size}
617889857Sobrien    fi
617933965Sjdpdone
618033965Sjdp
618133965Sjdp# Target architecture .o files.
618233965Sjdp# A couple of CPUs use shorter file names to avoid problems on DOS
618333965Sjdp# filesystems.
618438889Sjdpta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
618533965Sjdp
618633965Sjdp# Weed out duplicate .o files.
618733965Sjdpf=""
618833965Sjdpfor i in $tb ; do
618933965Sjdp    case " $f " in
619033965Sjdp    *" $i "*) ;;
619133965Sjdp    *) f="$f $i" ;;
619233965Sjdp    esac
619333965Sjdpdone
619433965Sjdptb="$f"
619533965Sjdp
619633965Sjdpf=""
619733965Sjdpfor i in $ta ; do
619833965Sjdp    case " $f " in
619933965Sjdp    *" $i "*) ;;
620033965Sjdp    *) f="$f $i" ;;
620133965Sjdp    esac
620233965Sjdpdone
620333965Sjdpta="$f"
620433965Sjdp
620533965Sjdpbfd_backends="$tb"
620633965Sjdpbfd_machines="$ta"
620733965Sjdp
620833965Sjdpif test x${all_targets} = xtrue ; then
620933965Sjdp  bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
621033965Sjdp  bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
621133965Sjdp  selvecs=
621233965Sjdp  havevecs=
621333965Sjdp  selarchs=
621433965Sjdpelse	# all_targets is true
621533965Sjdp  # Only set these if they will be nonempty, for the clever echo.
621633965Sjdp  havevecs=
621733965Sjdp  test -n "$selvecs" &&
621833965Sjdp    havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
621933965Sjdp  test -n "$selvecs" &&
622033965Sjdp    selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
622133965Sjdp  test -n "$selarchs" &&
622233965Sjdp    selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
622333965Sjdpfi	# all_targets is true
622433965Sjdp
622533965Sjdpcase ${host64}-${target64}-${want64} in
622633965Sjdp  *true*)
622733965Sjdp    wordsize=64
622889857Sobrien    bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
622933965Sjdp    all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
623033965Sjdp    if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
623133965Sjdp      echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
623233965Sjdp      echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
623333965Sjdp    fi
623489857Sobrien    if test -n "$GCC" ; then
623589857Sobrien       bad_64bit_gcc=no;
623689857Sobrien       echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
623791041Sobrienecho "configure:6238: checking for gcc version with buggy 64-bit support" >&5
623889857Sobrien       # Add more tests for gcc versions with non-working 64-bit support here.
623989857Sobrien       cat > conftest.$ac_ext <<EOF
624091041Sobrien#line 6241 "configure"
624189857Sobrien#include "confdefs.h"
624289857Sobrien:__GNUC__:__GNUC_MINOR__:__i386__:
624389857SobrienEOF
624489857Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
624589857Sobrien  egrep ": 2 : 91 : 1 :" >/dev/null 2>&1; then
624689857Sobrien  rm -rf conftest*
624789857Sobrien  bad_64bit_gcc=yes;
624889857Sobrien		    echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
624989857Sobrienelse
625089857Sobrien  rm -rf conftest*
625189857Sobrien  echo "$ac_t""no" 1>&6
625289857Sobrienfi
625389857Sobrienrm -f conftest*
625489857Sobrien
625589857Sobrien       if test $bad_64bit_gcc = yes ; then
625689857Sobrien	 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
625789857Sobrien       fi
625889857Sobrien    fi
625933965Sjdp    ;;
626033965Sjdp  false-false-false)
626133965Sjdp    wordsize=32
626289857Sobrien    bfd_libs='$(BFD32_LIBS)'
626333965Sjdp    all_backends='$(BFD32_BACKENDS)'
626433965Sjdp    ;;
626533965Sjdpesac
626633965Sjdp
626733965Sjdp
626833965Sjdp
626933965Sjdp
627033965Sjdp
627133965Sjdp
627289857Sobrien
627389857Sobrien
627433965Sjdptdefaults=""
627533965Sjdptest -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
627633965Sjdptest -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
627733965Sjdptest -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
627833965Sjdptest -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
627933965Sjdp
628033965Sjdp
628133965Sjdpfor ac_hdr in unistd.h
628233965Sjdpdo
628333965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
628433965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
628591041Sobrienecho "configure:6286: checking for $ac_hdr" >&5
628633965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
628733965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
628833965Sjdpelse
628933965Sjdp  cat > conftest.$ac_ext <<EOF
629091041Sobrien#line 6291 "configure"
629133965Sjdp#include "confdefs.h"
629233965Sjdp#include <$ac_hdr>
629333965SjdpEOF
629433965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
629591041Sobrien{ (eval echo configure:6296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
629660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
629733965Sjdpif test -z "$ac_err"; then
629833965Sjdp  rm -rf conftest*
629933965Sjdp  eval "ac_cv_header_$ac_safe=yes"
630033965Sjdpelse
630133965Sjdp  echo "$ac_err" >&5
630233965Sjdp  echo "configure: failed program was:" >&5
630333965Sjdp  cat conftest.$ac_ext >&5
630433965Sjdp  rm -rf conftest*
630533965Sjdp  eval "ac_cv_header_$ac_safe=no"
630633965Sjdpfi
630733965Sjdprm -f conftest*
630833965Sjdpfi
630933965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
631033965Sjdp  echo "$ac_t""yes" 1>&6
631133965Sjdp    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
631233965Sjdp  cat >> confdefs.h <<EOF
631333965Sjdp#define $ac_tr_hdr 1
631433965SjdpEOF
631533965Sjdp 
631633965Sjdpelse
631733965Sjdp  echo "$ac_t""no" 1>&6
631833965Sjdpfi
631933965Sjdpdone
632033965Sjdp
632133965Sjdpfor ac_func in getpagesize
632233965Sjdpdo
632333965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
632491041Sobrienecho "configure:6325: checking for $ac_func" >&5
632533965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
632633965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
632733965Sjdpelse
632833965Sjdp  cat > conftest.$ac_ext <<EOF
632991041Sobrien#line 6330 "configure"
633033965Sjdp#include "confdefs.h"
633133965Sjdp/* System header to define __stub macros and hopefully few prototypes,
633233965Sjdp    which can conflict with char $ac_func(); below.  */
633333965Sjdp#include <assert.h>
633433965Sjdp/* Override any gcc2 internal prototype to avoid an error.  */
633533965Sjdp/* We use char because int might match the return type of a gcc2
633633965Sjdp    builtin and then its argument prototype would still apply.  */
633733965Sjdpchar $ac_func();
633833965Sjdp
633933965Sjdpint main() {
634033965Sjdp
634133965Sjdp/* The GNU C library defines this for functions which it implements
634233965Sjdp    to always fail with ENOSYS.  Some functions are actually named
634333965Sjdp    something starting with __ and the normal name is an alias.  */
634433965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
634533965Sjdpchoke me
634633965Sjdp#else
634733965Sjdp$ac_func();
634833965Sjdp#endif
634933965Sjdp
635033965Sjdp; return 0; }
635133965SjdpEOF
635291041Sobrienif { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
635333965Sjdp  rm -rf conftest*
635433965Sjdp  eval "ac_cv_func_$ac_func=yes"
635533965Sjdpelse
635633965Sjdp  echo "configure: failed program was:" >&5
635733965Sjdp  cat conftest.$ac_ext >&5
635833965Sjdp  rm -rf conftest*
635933965Sjdp  eval "ac_cv_func_$ac_func=no"
636033965Sjdpfi
636133965Sjdprm -f conftest*
636233965Sjdpfi
636333965Sjdp
636433965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
636533965Sjdp  echo "$ac_t""yes" 1>&6
636633965Sjdp    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
636733965Sjdp  cat >> confdefs.h <<EOF
636833965Sjdp#define $ac_tr_func 1
636933965SjdpEOF
637033965Sjdp 
637133965Sjdpelse
637233965Sjdp  echo "$ac_t""no" 1>&6
637333965Sjdpfi
637433965Sjdpdone
637533965Sjdp
637633965Sjdpecho $ac_n "checking for working mmap""... $ac_c" 1>&6
637791041Sobrienecho "configure:6378: checking for working mmap" >&5
637833965Sjdpif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
637933965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
638033965Sjdpelse
638133965Sjdp  if test "$cross_compiling" = yes; then
638233965Sjdp  ac_cv_func_mmap_fixed_mapped=no
638333965Sjdpelse
638433965Sjdp  cat > conftest.$ac_ext <<EOF
638591041Sobrien#line 6386 "configure"
638633965Sjdp#include "confdefs.h"
638733965Sjdp
638833965Sjdp/* Thanks to Mike Haertel and Jim Avera for this test.
638933965Sjdp   Here is a matrix of mmap possibilities:
639033965Sjdp	mmap private not fixed
639133965Sjdp	mmap private fixed at somewhere currently unmapped
639233965Sjdp	mmap private fixed at somewhere already mapped
639333965Sjdp	mmap shared not fixed
639433965Sjdp	mmap shared fixed at somewhere currently unmapped
639533965Sjdp	mmap shared fixed at somewhere already mapped
639633965Sjdp   For private mappings, we should verify that changes cannot be read()
639733965Sjdp   back from the file, nor mmap's back from the file at a different
639833965Sjdp   address.  (There have been systems where private was not correctly
639933965Sjdp   implemented like the infamous i386 svr4.0, and systems where the
640033965Sjdp   VM page cache was not coherent with the filesystem buffer cache
640133965Sjdp   like early versions of FreeBSD and possibly contemporary NetBSD.)
640233965Sjdp   For shared mappings, we should conversely verify that changes get
640333965Sjdp   propogated back to all the places they're supposed to be.
640433965Sjdp
640533965Sjdp   Grep wants private fixed already mapped.
640633965Sjdp   The main things grep needs to know about mmap are:
640733965Sjdp   * does it exist and is it safe to write into the mmap'd area
640833965Sjdp   * how to use it (BSD variants)  */
640933965Sjdp#include <sys/types.h>
641033965Sjdp#include <fcntl.h>
641133965Sjdp#include <sys/mman.h>
641233965Sjdp
641333965Sjdp/* This mess was copied from the GNU getpagesize.h.  */
641433965Sjdp#ifndef HAVE_GETPAGESIZE
641577298Sobrien# ifdef HAVE_UNISTD_H
641677298Sobrien#  include <unistd.h>
641777298Sobrien# endif
641833965Sjdp
641933965Sjdp/* Assume that all systems that can run configure have sys/param.h.  */
642033965Sjdp# ifndef HAVE_SYS_PARAM_H
642133965Sjdp#  define HAVE_SYS_PARAM_H 1
642233965Sjdp# endif
642333965Sjdp
642433965Sjdp# ifdef _SC_PAGESIZE
642533965Sjdp#  define getpagesize() sysconf(_SC_PAGESIZE)
642633965Sjdp# else /* no _SC_PAGESIZE */
642733965Sjdp#  ifdef HAVE_SYS_PARAM_H
642833965Sjdp#   include <sys/param.h>
642933965Sjdp#   ifdef EXEC_PAGESIZE
643033965Sjdp#    define getpagesize() EXEC_PAGESIZE
643133965Sjdp#   else /* no EXEC_PAGESIZE */
643233965Sjdp#    ifdef NBPG
643333965Sjdp#     define getpagesize() NBPG * CLSIZE
643433965Sjdp#     ifndef CLSIZE
643533965Sjdp#      define CLSIZE 1
643633965Sjdp#     endif /* no CLSIZE */
643733965Sjdp#    else /* no NBPG */
643833965Sjdp#     ifdef NBPC
643933965Sjdp#      define getpagesize() NBPC
644033965Sjdp#     else /* no NBPC */
644133965Sjdp#      ifdef PAGESIZE
644233965Sjdp#       define getpagesize() PAGESIZE
644333965Sjdp#      endif /* PAGESIZE */
644433965Sjdp#     endif /* no NBPC */
644533965Sjdp#    endif /* no NBPG */
644633965Sjdp#   endif /* no EXEC_PAGESIZE */
644733965Sjdp#  else /* no HAVE_SYS_PARAM_H */
644833965Sjdp#   define getpagesize() 8192	/* punt totally */
644933965Sjdp#  endif /* no HAVE_SYS_PARAM_H */
645033965Sjdp# endif /* no _SC_PAGESIZE */
645133965Sjdp
645233965Sjdp#endif /* no HAVE_GETPAGESIZE */
645333965Sjdp
645433965Sjdp#ifdef __cplusplus
645533965Sjdpextern "C" { void *malloc(unsigned); }
645633965Sjdp#else
645733965Sjdpchar *malloc();
645833965Sjdp#endif
645933965Sjdp
646033965Sjdpint
646133965Sjdpmain()
646233965Sjdp{
646333965Sjdp	char *data, *data2, *data3;
646433965Sjdp	int i, pagesize;
646533965Sjdp	int fd;
646633965Sjdp
646733965Sjdp	pagesize = getpagesize();
646833965Sjdp
646933965Sjdp	/*
647033965Sjdp	 * First, make a file with some known garbage in it.
647133965Sjdp	 */
647277298Sobrien	data = malloc(pagesize);
647333965Sjdp	if (!data)
647433965Sjdp		exit(1);
647533965Sjdp	for (i = 0; i < pagesize; ++i)
647633965Sjdp		*(data + i) = rand();
647733965Sjdp	umask(0);
647833965Sjdp	fd = creat("conftestmmap", 0600);
647933965Sjdp	if (fd < 0)
648033965Sjdp		exit(1);
648133965Sjdp	if (write(fd, data, pagesize) != pagesize)
648233965Sjdp		exit(1);
648333965Sjdp	close(fd);
648433965Sjdp
648533965Sjdp	/*
648633965Sjdp	 * Next, try to mmap the file at a fixed address which
648733965Sjdp	 * already has something else allocated at it.  If we can,
648833965Sjdp	 * also make sure that we see the same garbage.
648933965Sjdp	 */
649033965Sjdp	fd = open("conftestmmap", O_RDWR);
649133965Sjdp	if (fd < 0)
649233965Sjdp		exit(1);
649377298Sobrien	data2 = malloc(2 * pagesize);
649433965Sjdp	if (!data2)
649533965Sjdp		exit(1);
649633965Sjdp	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
649733965Sjdp	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
649833965Sjdp	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
649933965Sjdp		exit(1);
650033965Sjdp	for (i = 0; i < pagesize; ++i)
650133965Sjdp		if (*(data + i) != *(data2 + i))
650233965Sjdp			exit(1);
650333965Sjdp
650433965Sjdp	/*
650533965Sjdp	 * Finally, make sure that changes to the mapped area
650633965Sjdp	 * do not percolate back to the file as seen by read().
650733965Sjdp	 * (This is a bug on some variants of i386 svr4.0.)
650833965Sjdp	 */
650933965Sjdp	for (i = 0; i < pagesize; ++i)
651033965Sjdp		*(data2 + i) = *(data2 + i) + 1;
651177298Sobrien	data3 = malloc(pagesize);
651233965Sjdp	if (!data3)
651333965Sjdp		exit(1);
651433965Sjdp	if (read(fd, data3, pagesize) != pagesize)
651533965Sjdp		exit(1);
651633965Sjdp	for (i = 0; i < pagesize; ++i)
651733965Sjdp		if (*(data + i) != *(data3 + i))
651833965Sjdp			exit(1);
651933965Sjdp	close(fd);
652033965Sjdp	unlink("conftestmmap");
652133965Sjdp	exit(0);
652233965Sjdp}
652333965Sjdp
652433965SjdpEOF
652591041Sobrienif { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
652633965Sjdpthen
652733965Sjdp  ac_cv_func_mmap_fixed_mapped=yes
652833965Sjdpelse
652933965Sjdp  echo "configure: failed program was:" >&5
653033965Sjdp  cat conftest.$ac_ext >&5
653133965Sjdp  rm -fr conftest*
653233965Sjdp  ac_cv_func_mmap_fixed_mapped=no
653333965Sjdpfi
653433965Sjdprm -fr conftest*
653533965Sjdpfi
653633965Sjdp
653733965Sjdpfi
653833965Sjdp
653933965Sjdpecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
654033965Sjdpif test $ac_cv_func_mmap_fixed_mapped = yes; then
654133965Sjdp  cat >> confdefs.h <<\EOF
654233965Sjdp#define HAVE_MMAP 1
654333965SjdpEOF
654433965Sjdp
654533965Sjdpfi
654633965Sjdp
654733965Sjdpfor ac_func in madvise mprotect
654833965Sjdpdo
654933965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
655091041Sobrienecho "configure:6551: checking for $ac_func" >&5
655133965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
655233965Sjdp  echo $ac_n "(cached) $ac_c" 1>&6
655333965Sjdpelse
655433965Sjdp  cat > conftest.$ac_ext <<EOF
655591041Sobrien#line 6556 "configure"
655633965Sjdp#include "confdefs.h"
655733965Sjdp/* System header to define __stub macros and hopefully few prototypes,
655833965Sjdp    which can conflict with char $ac_func(); below.  */
655933965Sjdp#include <assert.h>
656033965Sjdp/* Override any gcc2 internal prototype to avoid an error.  */
656133965Sjdp/* We use char because int might match the return type of a gcc2
656233965Sjdp    builtin and then its argument prototype would still apply.  */
656333965Sjdpchar $ac_func();
656433965Sjdp
656533965Sjdpint main() {
656633965Sjdp
656733965Sjdp/* The GNU C library defines this for functions which it implements
656833965Sjdp    to always fail with ENOSYS.  Some functions are actually named
656933965Sjdp    something starting with __ and the normal name is an alias.  */
657033965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
657133965Sjdpchoke me
657233965Sjdp#else
657333965Sjdp$ac_func();
657433965Sjdp#endif
657533965Sjdp
657633965Sjdp; return 0; }
657733965SjdpEOF
657891041Sobrienif { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
657933965Sjdp  rm -rf conftest*
658033965Sjdp  eval "ac_cv_func_$ac_func=yes"
658133965Sjdpelse
658233965Sjdp  echo "configure: failed program was:" >&5
658333965Sjdp  cat conftest.$ac_ext >&5
658433965Sjdp  rm -rf conftest*
658533965Sjdp  eval "ac_cv_func_$ac_func=no"
658633965Sjdpfi
658733965Sjdprm -f conftest*
658833965Sjdpfi
658933965Sjdp
659033965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
659133965Sjdp  echo "$ac_t""yes" 1>&6
659233965Sjdp    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
659333965Sjdp  cat >> confdefs.h <<EOF
659433965Sjdp#define $ac_tr_func 1
659533965SjdpEOF
659633965Sjdp 
659733965Sjdpelse
659833965Sjdp  echo "$ac_t""no" 1>&6
659933965Sjdpfi
660033965Sjdpdone
660133965Sjdp
660233965Sjdpcase ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
660333965Sjdp  true+yes )  cat >> confdefs.h <<\EOF
660433965Sjdp#define USE_MMAP 1
660533965SjdpEOF
660633965Sjdp ;;
660733965Sjdpesac
660833965Sjdp
660933965Sjdprm -f doc/config.status
661033965Sjdptrap '' 1 2 15
661133965Sjdpcat > confcache <<\EOF
661233965Sjdp# This file is a shell script that caches the results of configure
661333965Sjdp# tests run on this system so they can be shared between configure
661433965Sjdp# scripts and configure runs.  It is not useful on other systems.
661533965Sjdp# If it contains results you don't want to keep, you may remove or edit it.
661633965Sjdp#
661733965Sjdp# By default, configure uses ./config.cache as the cache file,
661833965Sjdp# creating it if it does not exist already.  You can give configure
661933965Sjdp# the --cache-file=FILE option to use a different cache file; that is
662033965Sjdp# what configure does when it calls configure scripts in
662133965Sjdp# subdirectories, so they share the cache.
662233965Sjdp# Giving --cache-file=/dev/null disables caching, for debugging configure.
662333965Sjdp# config.status only pays attention to the cache file if you give it the
662433965Sjdp# --recheck option to rerun configure.
662533965Sjdp#
662633965SjdpEOF
662733965Sjdp# The following way of writing the cache mishandles newlines in values,
662833965Sjdp# but we know of no workaround that is simple, portable, and efficient.
662933965Sjdp# So, don't put newlines in cache variables' values.
663033965Sjdp# Ultrix sh set writes to stderr and can't be redirected directly,
663133965Sjdp# and sets the high bit in the cache file unless we assign to the vars.
663233965Sjdp(set) 2>&1 |
663360484Sobrien  case `(ac_space=' '; set | grep ac_space) 2>&1` in
663433965Sjdp  *ac_space=\ *)
663533965Sjdp    # `set' does not quote correctly, so add quotes (double-quote substitution
663633965Sjdp    # turns \\\\ into \\, and sed turns \\ into \).
663733965Sjdp    sed -n \
663833965Sjdp      -e "s/'/'\\\\''/g" \
663933965Sjdp      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
664033965Sjdp    ;;
664133965Sjdp  *)
664233965Sjdp    # `set' quotes correctly as required by POSIX, so do not add quotes.
664333965Sjdp    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
664433965Sjdp    ;;
664533965Sjdp  esac >> confcache
664633965Sjdpif cmp -s $cache_file confcache; then
664733965Sjdp  :
664833965Sjdpelse
664933965Sjdp  if test -w $cache_file; then
665033965Sjdp    echo "updating cache $cache_file"
665133965Sjdp    cat confcache > $cache_file
665233965Sjdp  else
665333965Sjdp    echo "not updating unwritable cache $cache_file"
665433965Sjdp  fi
665533965Sjdpfi
665633965Sjdprm -f confcache
665733965Sjdp
665833965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
665933965Sjdp
666033965Sjdptest "x$prefix" = xNONE && prefix=$ac_default_prefix
666133965Sjdp# Let make expand exec_prefix.
666233965Sjdptest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
666333965Sjdp
666433965Sjdp# Any assignment to VPATH causes Sun make to only execute
666533965Sjdp# the first set of double-colon rules, so remove it if not needed.
666633965Sjdp# If there is a colon in the path, we need to keep it.
666733965Sjdpif test "x$srcdir" = x.; then
666833965Sjdp  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
666933965Sjdpfi
667033965Sjdp
667133965Sjdptrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
667233965Sjdp
667333965SjdpDEFS=-DHAVE_CONFIG_H
667433965Sjdp
667533965Sjdp# Without the "./", some shells look in PATH for config.status.
667633965Sjdp: ${CONFIG_STATUS=./config.status}
667733965Sjdp
667833965Sjdpecho creating $CONFIG_STATUS
667933965Sjdprm -f $CONFIG_STATUS
668033965Sjdpcat > $CONFIG_STATUS <<EOF
668133965Sjdp#! /bin/sh
668233965Sjdp# Generated automatically by configure.
668333965Sjdp# Run this file to recreate the current configuration.
668433965Sjdp# This directory was configured as follows,
668533965Sjdp# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
668633965Sjdp#
668733965Sjdp# $0 $ac_configure_args
668833965Sjdp#
668933965Sjdp# Compiler output produced by configure, useful for debugging
669033965Sjdp# configure, is in ./config.log if it exists.
669133965Sjdp
669233965Sjdpac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
669333965Sjdpfor ac_option
669433965Sjdpdo
669533965Sjdp  case "\$ac_option" in
669633965Sjdp  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
669733965Sjdp    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
669833965Sjdp    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
669933965Sjdp  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
670060484Sobrien    echo "$CONFIG_STATUS generated by autoconf version 2.13"
670133965Sjdp    exit 0 ;;
670233965Sjdp  -help | --help | --hel | --he | --h)
670333965Sjdp    echo "\$ac_cs_usage"; exit 0 ;;
670433965Sjdp  *) echo "\$ac_cs_usage"; exit 1 ;;
670533965Sjdp  esac
670633965Sjdpdone
670733965Sjdp
670833965Sjdpac_given_srcdir=$srcdir
670933965Sjdpac_given_INSTALL="$INSTALL"
671033965Sjdp
671160484Sobrientrap '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
671233965SjdpEOF
671333965Sjdpcat >> $CONFIG_STATUS <<EOF
671433965Sjdp
671533965Sjdp# Protect against being on the right side of a sed subst in config.status.
671633965Sjdpsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
671733965Sjdp s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
671833965Sjdp$ac_vpsub
671933965Sjdp$extrasub
672038889Sjdps%@SHELL@%$SHELL%g
672133965Sjdps%@CFLAGS@%$CFLAGS%g
672233965Sjdps%@CPPFLAGS@%$CPPFLAGS%g
672333965Sjdps%@CXXFLAGS@%$CXXFLAGS%g
672460484Sobriens%@FFLAGS@%$FFLAGS%g
672533965Sjdps%@DEFS@%$DEFS%g
672633965Sjdps%@LDFLAGS@%$LDFLAGS%g
672733965Sjdps%@LIBS@%$LIBS%g
672833965Sjdps%@exec_prefix@%$exec_prefix%g
672933965Sjdps%@prefix@%$prefix%g
673033965Sjdps%@program_transform_name@%$program_transform_name%g
673133965Sjdps%@bindir@%$bindir%g
673233965Sjdps%@sbindir@%$sbindir%g
673333965Sjdps%@libexecdir@%$libexecdir%g
673433965Sjdps%@datadir@%$datadir%g
673533965Sjdps%@sysconfdir@%$sysconfdir%g
673633965Sjdps%@sharedstatedir@%$sharedstatedir%g
673733965Sjdps%@localstatedir@%$localstatedir%g
673833965Sjdps%@libdir@%$libdir%g
673933965Sjdps%@includedir@%$includedir%g
674033965Sjdps%@oldincludedir@%$oldincludedir%g
674133965Sjdps%@infodir@%$infodir%g
674233965Sjdps%@mandir@%$mandir%g
674333965Sjdps%@host@%$host%g
674433965Sjdps%@host_alias@%$host_alias%g
674533965Sjdps%@host_cpu@%$host_cpu%g
674633965Sjdps%@host_vendor@%$host_vendor%g
674733965Sjdps%@host_os@%$host_os%g
674833965Sjdps%@target@%$target%g
674933965Sjdps%@target_alias@%$target_alias%g
675033965Sjdps%@target_cpu@%$target_cpu%g
675133965Sjdps%@target_vendor@%$target_vendor%g
675233965Sjdps%@target_os@%$target_os%g
675333965Sjdps%@build@%$build%g
675433965Sjdps%@build_alias@%$build_alias%g
675533965Sjdps%@build_cpu@%$build_cpu%g
675633965Sjdps%@build_vendor@%$build_vendor%g
675733965Sjdps%@build_os@%$build_os%g
675878828Sobriens%@CC@%$CC%g
675933965Sjdps%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
676060484Sobriens%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
676133965Sjdps%@INSTALL_DATA@%$INSTALL_DATA%g
676238889Sjdps%@PACKAGE@%$PACKAGE%g
676333965Sjdps%@VERSION@%$VERSION%g
676438889Sjdps%@ACLOCAL@%$ACLOCAL%g
676538889Sjdps%@AUTOCONF@%$AUTOCONF%g
676638889Sjdps%@AUTOMAKE@%$AUTOMAKE%g
676738889Sjdps%@AUTOHEADER@%$AUTOHEADER%g
676838889Sjdps%@MAKEINFO@%$MAKEINFO%g
676938889Sjdps%@SET_MAKE@%$SET_MAKE%g
677089857Sobriens%@bfd_version@%$bfd_version%g
677189857Sobriens%@bfd_version_date@%$bfd_version_date%g
677289857Sobriens%@bfd_version_string@%$bfd_version_string%g
677338889Sjdps%@AR@%$AR%g
677438889Sjdps%@RANLIB@%$RANLIB%g
677538889Sjdps%@LN_S@%$LN_S%g
677677298Sobriens%@OBJEXT@%$OBJEXT%g
677777298Sobriens%@EXEEXT@%$EXEEXT%g
677877298Sobriens%@STRIP@%$STRIP%g
677938889Sjdps%@LIBTOOL@%$LIBTOOL%g
678077298Sobriens%@WARN_CFLAGS@%$WARN_CFLAGS%g
678160484Sobriens%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
678260484Sobriens%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
678338889Sjdps%@MAINT@%$MAINT%g
678460484Sobriens%@CPP@%$CPP%g
678560484Sobriens%@ALLOCA@%$ALLOCA%g
678660484Sobriens%@USE_NLS@%$USE_NLS%g
678760484Sobriens%@MSGFMT@%$MSGFMT%g
678860484Sobriens%@GMSGFMT@%$GMSGFMT%g
678960484Sobriens%@XGETTEXT@%$XGETTEXT%g
679060484Sobriens%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
679160484Sobriens%@CATALOGS@%$CATALOGS%g
679260484Sobriens%@CATOBJEXT@%$CATOBJEXT%g
679360484Sobriens%@DATADIRNAME@%$DATADIRNAME%g
679460484Sobriens%@GMOFILES@%$GMOFILES%g
679560484Sobriens%@INSTOBJEXT@%$INSTOBJEXT%g
679660484Sobriens%@INTLDEPS@%$INTLDEPS%g
679760484Sobriens%@INTLLIBS@%$INTLLIBS%g
679860484Sobriens%@INTLOBJS@%$INTLOBJS%g
679960484Sobriens%@POFILES@%$POFILES%g
680060484Sobriens%@POSUB@%$POSUB%g
680160484Sobriens%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
680260484Sobriens%@GT_NO@%$GT_NO%g
680360484Sobriens%@GT_YES@%$GT_YES%g
680460484Sobriens%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
680560484Sobriens%@l@%$l%g
680638889Sjdps%@HDEFINES@%$HDEFINES%g
680733965Sjdps%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
680833965Sjdps%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
680933965Sjdps%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
681033965Sjdps%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
681133965Sjdps%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
681238889Sjdps%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
681333965Sjdps%@COREFILE@%$COREFILE%g
681433965Sjdps%@COREFLAG@%$COREFLAG%g
681560484Sobriens%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
681660484Sobriens%@WIN32LIBADD@%$WIN32LIBADD%g
681733965Sjdps%@TDEFINES@%$TDEFINES%g
681833965Sjdps%@wordsize@%$wordsize%g
681989857Sobriens%@bfd_libs@%$bfd_libs%g
682033965Sjdps%@all_backends@%$all_backends%g
682133965Sjdps%@bfd_backends@%$bfd_backends%g
682233965Sjdps%@bfd_machines@%$bfd_machines%g
682389857Sobriens%@bfd_default_target_size@%$bfd_default_target_size%g
682433965Sjdps%@tdefaults@%$tdefaults%g
682533965Sjdp
682633965SjdpCEOF
682733965SjdpEOF
682833965Sjdp
682933965Sjdpcat >> $CONFIG_STATUS <<\EOF
683033965Sjdp
683133965Sjdp# Split the substitutions into bite-sized pieces for seds with
683233965Sjdp# small command number limits, like on Digital OSF/1 and HP-UX.
683333965Sjdpac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
683433965Sjdpac_file=1 # Number of current file.
683533965Sjdpac_beg=1 # First line for current file.
683633965Sjdpac_end=$ac_max_sed_cmds # Line after last line for current file.
683733965Sjdpac_more_lines=:
683833965Sjdpac_sed_cmds=""
683933965Sjdpwhile $ac_more_lines; do
684033965Sjdp  if test $ac_beg -gt 1; then
684133965Sjdp    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
684233965Sjdp  else
684333965Sjdp    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
684433965Sjdp  fi
684533965Sjdp  if test ! -s conftest.s$ac_file; then
684633965Sjdp    ac_more_lines=false
684733965Sjdp    rm -f conftest.s$ac_file
684833965Sjdp  else
684933965Sjdp    if test -z "$ac_sed_cmds"; then
685033965Sjdp      ac_sed_cmds="sed -f conftest.s$ac_file"
685133965Sjdp    else
685233965Sjdp      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
685333965Sjdp    fi
685433965Sjdp    ac_file=`expr $ac_file + 1`
685533965Sjdp    ac_beg=$ac_end
685633965Sjdp    ac_end=`expr $ac_end + $ac_max_sed_cmds`
685733965Sjdp  fi
685833965Sjdpdone
685933965Sjdpif test -z "$ac_sed_cmds"; then
686033965Sjdp  ac_sed_cmds=cat
686133965Sjdpfi
686233965SjdpEOF
686333965Sjdp
686433965Sjdpcat >> $CONFIG_STATUS <<EOF
686533965Sjdp
686660484SobrienCONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
686733965SjdpEOF
686833965Sjdpcat >> $CONFIG_STATUS <<\EOF
686933965Sjdpfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
687033965Sjdp  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
687133965Sjdp  case "$ac_file" in
687233965Sjdp  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
687333965Sjdp       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
687433965Sjdp  *) ac_file_in="${ac_file}.in" ;;
687533965Sjdp  esac
687633965Sjdp
687733965Sjdp  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
687833965Sjdp
687933965Sjdp  # Remove last slash and all that follows it.  Not all systems have dirname.
688033965Sjdp  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
688133965Sjdp  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
688233965Sjdp    # The file is in a subdirectory.
688333965Sjdp    test ! -d "$ac_dir" && mkdir "$ac_dir"
688433965Sjdp    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
688533965Sjdp    # A "../" for each directory in $ac_dir_suffix.
688633965Sjdp    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
688733965Sjdp  else
688833965Sjdp    ac_dir_suffix= ac_dots=
688933965Sjdp  fi
689033965Sjdp
689133965Sjdp  case "$ac_given_srcdir" in
689233965Sjdp  .)  srcdir=.
689333965Sjdp      if test -z "$ac_dots"; then top_srcdir=.
689433965Sjdp      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
689533965Sjdp  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
689633965Sjdp  *) # Relative path.
689733965Sjdp    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
689833965Sjdp    top_srcdir="$ac_dots$ac_given_srcdir" ;;
689933965Sjdp  esac
690033965Sjdp
690133965Sjdp  case "$ac_given_INSTALL" in
690233965Sjdp  [/$]*) INSTALL="$ac_given_INSTALL" ;;
690333965Sjdp  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
690433965Sjdp  esac
690533965Sjdp
690633965Sjdp  echo creating "$ac_file"
690733965Sjdp  rm -f "$ac_file"
690833965Sjdp  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
690933965Sjdp  case "$ac_file" in
691033965Sjdp  *Makefile*) ac_comsub="1i\\
691133965Sjdp# $configure_input" ;;
691233965Sjdp  *) ac_comsub= ;;
691333965Sjdp  esac
691433965Sjdp
691533965Sjdp  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
691633965Sjdp  sed -e "$ac_comsub
691733965Sjdps%@configure_input@%$configure_input%g
691833965Sjdps%@srcdir@%$srcdir%g
691933965Sjdps%@top_srcdir@%$top_srcdir%g
692033965Sjdps%@INSTALL@%$INSTALL%g
692133965Sjdp" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
692233965Sjdpfi; done
692333965Sjdprm -f conftest.s*
692433965Sjdp
692533965Sjdp# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
692633965Sjdp# NAME is the cpp macro being defined and VALUE is the value it is being given.
692733965Sjdp#
692833965Sjdp# ac_d sets the value in "#define NAME VALUE" lines.
692933965Sjdpac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
693033965Sjdpac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
693133965Sjdpac_dC='\3'
693233965Sjdpac_dD='%g'
693333965Sjdp# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
693433965Sjdpac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
693533965Sjdpac_uB='\([ 	]\)%\1#\2define\3'
693633965Sjdpac_uC=' '
693733965Sjdpac_uD='\4%g'
693833965Sjdp# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
693933965Sjdpac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
694033965Sjdpac_eB='$%\1#\2define\3'
694133965Sjdpac_eC=' '
694233965Sjdpac_eD='%g'
694333965Sjdp
694433965Sjdpif test "${CONFIG_HEADERS+set}" != set; then
694533965SjdpEOF
694633965Sjdpcat >> $CONFIG_STATUS <<EOF
694733965Sjdp  CONFIG_HEADERS="config.h:config.in"
694833965SjdpEOF
694933965Sjdpcat >> $CONFIG_STATUS <<\EOF
695033965Sjdpfi
695133965Sjdpfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
695233965Sjdp  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
695333965Sjdp  case "$ac_file" in
695433965Sjdp  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
695533965Sjdp       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
695633965Sjdp  *) ac_file_in="${ac_file}.in" ;;
695733965Sjdp  esac
695833965Sjdp
695933965Sjdp  echo creating $ac_file
696033965Sjdp
696133965Sjdp  rm -f conftest.frag conftest.in conftest.out
696233965Sjdp  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
696333965Sjdp  cat $ac_file_inputs > conftest.in
696433965Sjdp
696533965SjdpEOF
696633965Sjdp
696733965Sjdp# Transform confdefs.h into a sed script conftest.vals that substitutes
696833965Sjdp# the proper values into config.h.in to produce config.h.  And first:
696933965Sjdp# Protect against being on the right side of a sed subst in config.status.
697033965Sjdp# Protect against being in an unquoted here document in config.status.
697133965Sjdprm -f conftest.vals
697233965Sjdpcat > conftest.hdr <<\EOF
697333965Sjdps/[\\&%]/\\&/g
697433965Sjdps%[\\$`]%\\&%g
697533965Sjdps%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
697633965Sjdps%ac_d%ac_u%gp
697733965Sjdps%ac_u%ac_e%gp
697833965SjdpEOF
697933965Sjdpsed -n -f conftest.hdr confdefs.h > conftest.vals
698033965Sjdprm -f conftest.hdr
698133965Sjdp
698233965Sjdp# This sed command replaces #undef with comments.  This is necessary, for
698333965Sjdp# example, in the case of _POSIX_SOURCE, which is predefined and required
698433965Sjdp# on some systems where configure will not decide to define it.
698533965Sjdpcat >> conftest.vals <<\EOF
698633965Sjdps%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
698733965SjdpEOF
698833965Sjdp
698933965Sjdp# Break up conftest.vals because some shells have a limit on
699033965Sjdp# the size of here documents, and old seds have small limits too.
699133965Sjdp
699233965Sjdprm -f conftest.tail
699333965Sjdpwhile :
699433965Sjdpdo
699533965Sjdp  ac_lines=`grep -c . conftest.vals`
699633965Sjdp  # grep -c gives empty output for an empty file on some AIX systems.
699733965Sjdp  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
699833965Sjdp  # Write a limited-size here document to conftest.frag.
699933965Sjdp  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
700033965Sjdp  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
700133965Sjdp  echo 'CEOF
700233965Sjdp  sed -f conftest.frag conftest.in > conftest.out
700333965Sjdp  rm -f conftest.in
700433965Sjdp  mv conftest.out conftest.in
700533965Sjdp' >> $CONFIG_STATUS
700633965Sjdp  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
700733965Sjdp  rm -f conftest.vals
700833965Sjdp  mv conftest.tail conftest.vals
700933965Sjdpdone
701033965Sjdprm -f conftest.vals
701133965Sjdp
701233965Sjdpcat >> $CONFIG_STATUS <<\EOF
701333965Sjdp  rm -f conftest.frag conftest.h
701433965Sjdp  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
701533965Sjdp  cat conftest.in >> conftest.h
701633965Sjdp  rm -f conftest.in
701733965Sjdp  if cmp -s $ac_file conftest.h 2>/dev/null; then
701833965Sjdp    echo "$ac_file is unchanged"
701933965Sjdp    rm -f conftest.h
702033965Sjdp  else
702133965Sjdp    # Remove last slash and all that follows it.  Not all systems have dirname.
702233965Sjdp      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
702333965Sjdp      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
702433965Sjdp      # The file is in a subdirectory.
702533965Sjdp      test ! -d "$ac_dir" && mkdir "$ac_dir"
702633965Sjdp    fi
702733965Sjdp    rm -f $ac_file
702833965Sjdp    mv conftest.h $ac_file
702933965Sjdp  fi
703033965Sjdpfi; done
703133965Sjdp
703233965SjdpEOF
703333965Sjdpcat >> $CONFIG_STATUS <<EOF
703433965Sjdp
703538889Sjdp
703633965SjdpEOF
703733965Sjdpcat >> $CONFIG_STATUS <<\EOF
703838889Sjdptest -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
703978828Sobriensed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
704033965Sjdpexit 0
704133965SjdpEOF
704233965Sjdpchmod +x $CONFIG_STATUS
704333965Sjdprm -fr confdefs* $ac_clean_files
704433965Sjdptest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
704533965Sjdp
704678828Sobrien
7047