OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [configure] - Diff between revs 105 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 105 Rev 1765
#! /bin/sh
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
# Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
# gives unlimited permission to copy, distribute and modify it.
# Defaults:
# Defaults:
ac_help=
ac_help=
ac_default_prefix=/usr/local
ac_default_prefix=/usr/local
# Any additions from configure.in:
# Any additions from configure.in:
ac_help="$ac_help
ac_help="$ac_help
  --enable-maintainer-mode enable make rules and dependencies not useful
  --enable-maintainer-mode enable make rules and dependencies not useful
                          (and sometimes confusing) to the casual installer"
                          (and sometimes confusing) to the casual installer"
ac_help="$ac_help
ac_help="$ac_help
  --disable-nls           do not use Native Language Support"
  --disable-nls           do not use Native Language Support"
ac_help="$ac_help
ac_help="$ac_help
  --with-included-gettext use the GNU gettext library included here"
  --with-included-gettext use the GNU gettext library included here"
ac_help="$ac_help
ac_help="$ac_help
  --enable-multi-ice            Build the multi-ice-gdb-server"
  --enable-multi-ice            Build the multi-ice-gdb-server"
ac_help="$ac_help
ac_help="$ac_help
  --enable-gdbmi            Enable GDB-MI interface"
  --enable-gdbmi            Enable GDB-MI interface"
ac_help="$ac_help
ac_help="$ac_help
  --enable-tui            Enable full-screen terminal user interface"
  --enable-tui            Enable full-screen terminal user interface"
ac_help="$ac_help
ac_help="$ac_help
  --enable-netrom         Enable NetROM support"
  --enable-netrom         Enable NetROM support"
ac_help="$ac_help
ac_help="$ac_help
  --enable-build-warnings Enable build-time compiler warnings if gcc is used"
  --enable-build-warnings Enable build-time compiler warnings if gcc is used"
ac_help="$ac_help
ac_help="$ac_help
  --with-mmalloc          Use memory mapped malloc package"
  --with-mmalloc          Use memory mapped malloc package"
ac_help="$ac_help
ac_help="$ac_help
  --with-included-regex          Use included regex"
  --with-included-regex          Use included regex"
ac_help="$ac_help
ac_help="$ac_help
  --with-cpu=CPU          Set the default CPU variant to debug"
  --with-cpu=CPU          Set the default CPU variant to debug"
ac_help="$ac_help
ac_help="$ac_help
  --enable-gdbtk          Enable GDBTK GUI front end"
  --enable-gdbtk          Enable GDBTK GUI front end"
ac_help="$ac_help
ac_help="$ac_help
  --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)"
  --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)"
ac_help="$ac_help
ac_help="$ac_help
  --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)"
  --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)"
ac_help="$ac_help
ac_help="$ac_help
  --with-tclinclude=DIR   Directory where tcl private headers are"
  --with-tclinclude=DIR   Directory where tcl private headers are"
ac_help="$ac_help
ac_help="$ac_help
  --with-tkinclude=DIR    Directory where tk private headers are"
  --with-tkinclude=DIR    Directory where tk private headers are"
ac_help="$ac_help
ac_help="$ac_help
  --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)"
  --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)"
ac_help="$ac_help
ac_help="$ac_help
  --with-itkconfig        Directory containing itk configuration (itkConfig.sh)"
  --with-itkconfig        Directory containing itk configuration (itkConfig.sh)"
ac_help="$ac_help
ac_help="$ac_help
  --with-tixconfig        Directory containing tix configuration (tixConfig.sh)"
  --with-tixconfig        Directory containing tix configuration (tixConfig.sh)"
ac_help="$ac_help
ac_help="$ac_help
  --with-x                use the X Window System"
  --with-x                use the X Window System"
ac_help="$ac_help
ac_help="$ac_help
  --enable-sim            Link gdb with simulator"
  --enable-sim            Link gdb with simulator"
ac_help="$ac_help
ac_help="$ac_help
  --enable-shared         Use shared libraries"
  --enable-shared         Use shared libraries"
# Initialize some variables set by options.
# Initialize some variables set by options.
# The variables have the same names as the options, with
# The variables have the same names as the options, with
# dashes changed to underlines.
# dashes changed to underlines.
build=NONE
build=NONE
cache_file=./config.cache
cache_file=./config.cache
exec_prefix=NONE
exec_prefix=NONE
host=NONE
host=NONE
no_create=
no_create=
nonopt=NONE
nonopt=NONE
no_recursion=
no_recursion=
prefix=NONE
prefix=NONE
program_prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
program_transform_name=s,x,x,
silent=
silent=
site=
site=
srcdir=
srcdir=
target=NONE
target=NONE
verbose=
verbose=
x_includes=NONE
x_includes=NONE
x_libraries=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
includedir='${prefix}/include'
oldincludedir='/usr/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
infodir='${prefix}/info'
mandir='${prefix}/man'
mandir='${prefix}/man'
# Initialize some other variables.
# Initialize some other variables.
subdirs=
subdirs=
MFLAGS= MAKEFLAGS=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
ac_max_here_lines=12
ac_prev=
ac_prev=
for ac_option
for ac_option
do
do
  # If the previous option needs an argument, assign it.
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    eval "$ac_prev=\$ac_option"
    ac_prev=
    ac_prev=
    continue
    continue
  fi
  fi
  case "$ac_option" in
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  *) ac_optarg= ;;
  esac
  esac
  # Accept the important Cygnus configure options, so we can diagnose typos.
  # Accept the important Cygnus configure options, so we can diagnose typos.
  case "$ac_option" in
  case "$ac_option" in
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir="$ac_optarg" ;;
    bindir="$ac_optarg" ;;
  -build | --build | --buil | --bui | --bu)
  -build | --build | --buil | --bui | --bu)
    ac_prev=build ;;
    ac_prev=build ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build="$ac_optarg" ;;
    build="$ac_optarg" ;;
  -cache-file | --cache-file | --cache-fil | --cache-fi \
  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file="$ac_optarg" ;;
    cache_file="$ac_optarg" ;;
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
  | --da=*)
    datadir="$ac_optarg" ;;
    datadir="$ac_optarg" ;;
  -disable-* | --disable-*)
  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    # Reject names that are not valid shell variable names.
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;
    eval "enable_${ac_feature}=no" ;;
  -enable-* | --enable-*)
  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
    case "$ac_option" in
      *=*) ;;
      *=*) ;;
      *) ac_optarg=yes ;;
      *) ac_optarg=yes ;;
    esac
    esac
    eval "enable_${ac_feature}='$ac_optarg'" ;;
    eval "enable_${ac_feature}='$ac_optarg'" ;;
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;
    exec_prefix="$ac_optarg" ;;
  -gas | --gas | --ga | --g)
  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    # Obsolete; use --with-gas.
    with_gas=yes ;;
    with_gas=yes ;;
  -help | --help | --hel | --he)
  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
    cat << EOF
Usage: configure [options] [host]
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Options: [defaults in brackets after descriptions]
Configuration:
Configuration:
  --cache-file=FILE       cache test results in FILE
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --help                  print this message
  --no-create             do not create output files
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
  --version               print the version of autoconf that created configure
Directory and file names:
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
                          run sed PROGRAM on installed program names
EOF
EOF
    cat << EOF
    cat << EOF
Host type:
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
EOF
    if test -n "$ac_help"; then
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
      echo "--enable and --with options recognized:$ac_help"
    fi
    fi
    exit 0 ;;
    exit 0 ;;
  -host | --host | --hos | --ho)
  -host | --host | --hos | --ho)
    ac_prev=host ;;
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
  -host=* | --host=* | --hos=* | --ho=*)
    host="$ac_optarg" ;;
    host="$ac_optarg" ;;
  -includedir | --includedir | --includedi | --included | --include \
  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir="$ac_optarg" ;;
    includedir="$ac_optarg" ;;
  -infodir | --infodir | --infodi | --infod | --info | --inf)
  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir="$ac_optarg" ;;
    infodir="$ac_optarg" ;;
  -libdir | --libdir | --libdi | --libd)
  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir="$ac_optarg" ;;
    libdir="$ac_optarg" ;;
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
  | --libexe=* | --libex=* | --libe=*)
    libexecdir="$ac_optarg" ;;
    libexecdir="$ac_optarg" ;;
  -localstatedir | --localstatedir | --localstatedi | --localstated \
  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;
    localstatedir="$ac_optarg" ;;
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir="$ac_optarg" ;;
    mandir="$ac_optarg" ;;
  -nfp | --nfp | --nf)
  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    # Obsolete; use --without-fp.
    with_fp=no ;;
    with_fp=no ;;
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
  | --no-cr | --no-c)
    no_create=yes ;;
    no_create=yes ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;
    no_recursion=yes ;;
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir="$ac_optarg" ;;
    oldincludedir="$ac_optarg" ;;
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;
    prefix="$ac_optarg" ;;
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix="$ac_optarg" ;;
    program_prefix="$ac_optarg" ;;
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix="$ac_optarg" ;;
    program_suffix="$ac_optarg" ;;
  -program-transform-name | --program-transform-name \
  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name="$ac_optarg" ;;
    program_transform_name="$ac_optarg" ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;
    silent=yes ;;
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
  | --sbi=* | --sb=*)
    sbindir="$ac_optarg" ;;
    sbindir="$ac_optarg" ;;
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
  | --sha=* | --sh=*)
    sharedstatedir="$ac_optarg" ;;
    sharedstatedir="$ac_optarg" ;;
  -site | --site | --sit)
  -site | --site | --sit)
    ac_prev=site ;;
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
  -site=* | --site=* | --sit=*)
    site="$ac_optarg" ;;
    site="$ac_optarg" ;;
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir="$ac_optarg" ;;
    srcdir="$ac_optarg" ;;
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir="$ac_optarg" ;;
    sysconfdir="$ac_optarg" ;;
  -target | --target | --targe | --targ | --tar | --ta | --t)
  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target ;;
    ac_prev=target ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;
    target="$ac_optarg" ;;
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;
    verbose=yes ;;
  -version | --version | --versio | --versi | --vers)
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
    exit 0 ;;
  -with-* | --with-*)
  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
    case "$ac_option" in
      *=*) ;;
      *=*) ;;
      *) ac_optarg=yes ;;
      *) ac_optarg=yes ;;
    esac
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;
    eval "with_${ac_package}='$ac_optarg'" ;;
  -without-* | --without-*)
  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    # Reject names that are not valid shell variable names.
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;
    eval "with_${ac_package}=no" ;;
  --x)
  --x)
    # Obsolete; use --with-x.
    # Obsolete; use --with-x.
    with_x=yes ;;
    with_x=yes ;;
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes="$ac_optarg" ;;
    x_includes="$ac_optarg" ;;
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries="$ac_optarg" ;;
    x_libraries="$ac_optarg" ;;
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    ;;
    ;;
  *)
  *)
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    fi
    if test "x$nonopt" != xNONE; then
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    fi
    nonopt="$ac_option"
    nonopt="$ac_option"
    ;;
    ;;
  esac
  esac
done
done
if test -n "$ac_prev"; then
if test -n "$ac_prev"; then
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi
fi
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
# File descriptor usage:
# File descriptor usage:
# 0 standard input
# 0 standard input
# 1 file creation
# 1 file creation
# 2 errors and warnings
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
if test "$silent" = yes; then
  exec 6>/dev/null
  exec 6>/dev/null
else
else
  exec 6>&1
  exec 6>&1
fi
fi
exec 5>./config.log
exec 5>./config.log
echo "\
echo "\
This file contains any messages produced by compilers while
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
running configure, to aid debugging if configure makes a mistake.
" 1>&5
" 1>&5
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
# Also quote any args containing shell metacharacters.
ac_configure_args=
ac_configure_args=
for ac_arg
for ac_arg
do
do
  case "$ac_arg" in
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  esac
  esac
done
done
# NLS nuisances.
# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
# confdefs.h avoids OS command line length limits that DEFS can exceed.
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
echo > confdefs.h
# A filename unique to this package, relative to the directory that
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=main.c
ac_unique_file=main.c
# Find the source files, if location was not specified.
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
    srcdir=..
  fi
  fi
else
else
  ac_srcdir_defaulted=no
  ac_srcdir_defaulted=no
fi
fi
if test ! -r $srcdir/$ac_unique_file; then
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
  fi
fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
# Prefer explicitly selected file to automatically selected ones.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
  fi
fi
fi
for ac_site_file in $CONFIG_SITE; do
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
    . "$ac_site_file"
  fi
  fi
done
done
if test -r "$cache_file"; then
if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  echo "loading cache $cache_file"
  . $cache_file
  . $cache_file
else
else
  echo "creating cache $cache_file"
  echo "creating cache $cache_file"
  > $cache_file
  > $cache_file
fi
fi
ac_ext=c
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
cross_compiling=$ac_cv_prog_cc_cross
ac_exeext=
ac_exeext=
ac_objext=o
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
    ac_n= ac_c='
' ac_t='        '
' ac_t='        '
  else
  else
    ac_n=-n ac_c= ac_t=
    ac_n=-n ac_c= ac_t=
  fi
  fi
else
else
  ac_n= ac_c='\c' ac_t=
  ac_n= ac_c='\c' ac_t=
fi
fi
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
echo "configure:572: checking whether to enable maintainer-specific portions of Makefiles" >&5
echo "configure:572: checking whether to enable maintainer-specific portions of Makefiles" >&5
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
if test "${enable_maintainer_mode+set}" = set; then
  enableval="$enable_maintainer_mode"
  enableval="$enable_maintainer_mode"
  USE_MAINTAINER_MODE=$enableval
  USE_MAINTAINER_MODE=$enableval
else
else
  USE_MAINTAINER_MODE=no
  USE_MAINTAINER_MODE=no
fi
fi
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
if test $USE_MAINTAINER_MODE = yes; then
if test $USE_MAINTAINER_MODE = yes; then
  MAINTAINER_MODE_TRUE=
  MAINTAINER_MODE_TRUE=
  MAINTAINER_MODE_FALSE='#'
  MAINTAINER_MODE_FALSE='#'
else
else
  MAINTAINER_MODE_TRUE='#'
  MAINTAINER_MODE_TRUE='#'
  MAINTAINER_MODE_FALSE=
  MAINTAINER_MODE_FALSE=
fi
fi
  MAINT=$MAINTAINER_MODE_TRUE
  MAINT=$MAINTAINER_MODE_TRUE
# Extract the first word of "gcc", so it can be a program name with args.
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:598: checking for $ac_word" >&5
echo "configure:598: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$CC"; then
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      ac_cv_prog_CC="gcc"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
fi
fi
fi
fi
CC="$ac_cv_prog_CC"
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
  echo "$ac_t""$CC" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
if test -z "$CC"; then
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:628: checking for $ac_word" >&5
echo "configure:628: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$CC"; then
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_prog_rejected=no
  ac_prog_rejected=no
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
        ac_prog_rejected=yes
        continue
        continue
      fi
      fi
      ac_cv_prog_CC="cc"
      ac_cv_prog_CC="cc"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  set dummy $ac_cv_prog_CC
  shift
  shift
  if test $# -gt 0; then
  if test $# -gt 0; then
    # We chose a different compiler from the bogus one.
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    # first if we set CC to just the basename; use the full file name.
    shift
    shift
    set dummy "$ac_dir/$ac_word" "$@"
    set dummy "$ac_dir/$ac_word" "$@"
    shift
    shift
    ac_cv_prog_CC="$@"
    ac_cv_prog_CC="$@"
  fi
  fi
fi
fi
fi
fi
fi
fi
CC="$ac_cv_prog_CC"
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
  echo "$ac_t""$CC" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
  if test -z "$CC"; then
  if test -z "$CC"; then
    case "`uname -s`" in
    case "`uname -s`" in
    *win32* | *WIN32*)
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:679: checking for $ac_word" >&5
echo "configure:679: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$CC"; then
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      ac_cv_prog_CC="cl"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
fi
fi
fi
fi
CC="$ac_cv_prog_CC"
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
  echo "$ac_t""$CC" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
 ;;
 ;;
    esac
    esac
  fi
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
echo "configure:711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext << EOF
cat > conftest.$ac_ext << EOF
#line 722 "configure"
#line 722 "configure"
#include "confdefs.h"
#include "confdefs.h"
main(){return(0);}
main(){return(0);}
EOF
EOF
if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
    ac_cv_prog_cc_cross=no
  else
  else
    ac_cv_prog_cc_cross=yes
    ac_cv_prog_cc_cross=yes
  fi
  fi
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
  ac_cv_prog_cc_works=no
fi
fi
rm -fr conftest*
rm -fr conftest*
ac_ext=c
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
cross_compiling=$ac_cv_prog_cc_cross
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:758: checking whether we are using GNU C" >&5
echo "configure:758: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.c <
  cat > conftest.c <
#ifdef __GNUC__
#ifdef __GNUC__
  yes;
  yes;
#endif
#endif
EOF
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
  ac_cv_prog_gcc=yes
else
else
  ac_cv_prog_gcc=no
  ac_cv_prog_gcc=no
fi
fi
fi
fi
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
  GCC=yes
else
else
  GCC=
  GCC=
fi
fi
ac_test_CFLAGS="${CFLAGS+set}"
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:786: checking whether ${CC-cc} accepts -g" >&5
echo "configure:786: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  echo 'void f(){}' > conftest.c
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_cc_g=yes
  ac_cv_prog_cc_g=yes
else
else
  ac_cv_prog_cc_g=no
  ac_cv_prog_cc_g=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
if test "$ac_test_CFLAGS" = set; then
  CFLAGS="$ac_save_CFLAGS"
  CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
    CFLAGS="-g -O2"
  else
  else
    CFLAGS="-g"
    CFLAGS="-g"
  fi
  fi
else
else
  if test "$GCC" = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-O2"
    CFLAGS="-O2"
  else
  else
    CFLAGS=
    CFLAGS=
  fi
  fi
fi
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:818: checking how to run the C preprocessor" >&5
echo "configure:818: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
  CPP=
fi
fi
if test -z "$CPP"; then
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
    # This must be in double quotes, not single quotes, because CPP may get
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
  CPP="${CC-cc} -E"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  # not just through cpp.
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 833 "configure"
#line 833 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
Syntax Error
Syntax Error
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  :
  :
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 850 "configure"
#line 850 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
Syntax Error
Syntax Error
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  :
  :
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 867 "configure"
#line 867 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
Syntax Error
Syntax Error
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  :
  :
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  CPP=/lib/cpp
  CPP=/lib/cpp
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
rm -f conftest*
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
  ac_cv_prog_CPP="$CPP"
fi
fi
  CPP="$ac_cv_prog_CPP"
  CPP="$ac_cv_prog_CPP"
else
else
  ac_cv_prog_CPP="$CPP"
  ac_cv_prog_CPP="$CPP"
fi
fi
echo "$ac_t""$CPP" 1>&6
echo "$ac_t""$CPP" 1>&6
echo $ac_n "checking for AIX""... $ac_c" 1>&6
echo $ac_n "checking for AIX""... $ac_c" 1>&6
echo "configure:898: checking for AIX" >&5
echo "configure:898: checking for AIX" >&5
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 900 "configure"
#line 900 "configure"
#include "confdefs.h"
#include "confdefs.h"
#ifdef _AIX
#ifdef _AIX
  yes
  yes
#endif
#endif
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
#define _ALL_SOURCE 1
#define _ALL_SOURCE 1
EOF
EOF
else
else
  rm -rf conftest*
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
rm -f conftest*
rm -f conftest*
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
echo "configure:922: checking for POSIXized ISC" >&5
echo "configure:922: checking for POSIXized ISC" >&5
if test -d /etc/conf/kconfig.d &&
if test -d /etc/conf/kconfig.d &&
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  ISC=yes # If later tests want to check for ISC.
  ISC=yes # If later tests want to check for ISC.
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
#define _POSIX_SOURCE 1
EOF
EOF
  if test "$GCC" = yes; then
  if test "$GCC" = yes; then
    CC="$CC -posix"
    CC="$CC -posix"
  else
  else
    CC="$CC -Xp"
    CC="$CC -Xp"
  fi
  fi
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
  ISC=
  ISC=
fi
fi
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
echo "configure:946: checking for ${CC-cc} option to accept ANSI C" >&5
echo "configure:946: checking for ${CC-cc} option to accept ANSI C" >&5
if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  am_cv_prog_cc_stdc=no
  am_cv_prog_cc_stdc=no
ac_save_CC="$CC"
ac_save_CC="$CC"
# Don't try gcc -ansi; that turns off useful extensions and
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# breaks some systems' header files.
# AIX                   -qlanglvl=ansi
# AIX                   -qlanglvl=ansi
# Ultrix and OSF/1      -std1
# Ultrix and OSF/1      -std1
# HP-UX                 -Aa -D_HPUX_SOURCE
# HP-UX                 -Aa -D_HPUX_SOURCE
# SVR4                  -Xc -D__EXTENSIONS__
# SVR4                  -Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
do
  CC="$ac_save_CC $ac_arg"
  CC="$ac_save_CC $ac_arg"
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 962 "configure"
#line 962 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
static char *e (p, i)
     char **p;
     char **p;
     int i;
     int i;
{
{
  return p[i];
  return p[i];
}
}
static char *f (char * (*g) (char **, int), char **p, ...)
static char *f (char * (*g) (char **, int), char **p, ...)
{
{
  char *s;
  char *s;
  va_list v;
  va_list v;
  va_start (v,p);
  va_start (v,p);
  s = g (p, va_arg (v,int));
  s = g (p, va_arg (v,int));
  va_end (v);
  va_end (v);
  return s;
  return s;
}
}
int test (int i, double x);
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
int argc;
char **argv;
char **argv;
int main() {
int main() {
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  am_cv_prog_cc_stdc="$ac_arg"; break
  am_cv_prog_cc_stdc="$ac_arg"; break
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
fi
fi
rm -f conftest*
rm -f conftest*
done
done
CC="$ac_save_CC"
CC="$ac_save_CC"
fi
fi
if test -z "$am_cv_prog_cc_stdc"; then
if test -z "$am_cv_prog_cc_stdc"; then
  echo "$ac_t""none needed" 1>&6
  echo "$ac_t""none needed" 1>&6
else
else
  echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
fi
fi
case "x$am_cv_prog_cc_stdc" in
case "x$am_cv_prog_cc_stdc" in
  x|xno) ;;
  x|xno) ;;
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
esac
esac
ac_aux_dir=
ac_aux_dir=
for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
  if test -f $ac_dir/install-sh; then
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
    break
  elif test -f $ac_dir/install.sh; then
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
    break
  fi
  fi
done
done
if test -z "$ac_aux_dir"; then
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
  { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
fi
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
# Do some error checking and defaulting for the host and target type.
# Do some error checking and defaulting for the host and target type.
# The inputs are:
# The inputs are:
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
#
# The rules are:
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
# 1. You are not allowed to specify --host, --target, and nonopt at the
#    same time.
#    same time.
# 2. Host defaults to nonopt.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
# 3. If nonopt is not specified, then host defaults to the current host,
#    as determined by config.guess.
#    as determined by config.guess.
# 4. Target and build default to nonopt.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.
# 5. If nonopt is not specified, then target and build default to host.
# The aliases save the names the user supplied, while $host etc.
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
# will get canonicalized.
case $host---$target---$nonopt in
case $host---$target---$nonopt in
NONE---*---* | *---NONE---* | *---*---NONE) ;;
NONE---*---* | *---NONE---* | *---*---NONE) ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac
esac
# Make sure we can run config.sub.
# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:1070: checking host system type" >&5
echo "configure:1070: checking host system type" >&5
host_alias=$host
host_alias=$host
case "$host_alias" in
case "$host_alias" in
NONE)
NONE)
  case $nonopt in
  case $nonopt in
  NONE)
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
    fi ;;
  *) host_alias=$nonopt ;;
  *) host_alias=$nonopt ;;
  esac ;;
  esac ;;
esac
esac
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6
echo "$ac_t""$host" 1>&6
echo $ac_n "checking target system type""... $ac_c" 1>&6
echo $ac_n "checking target system type""... $ac_c" 1>&6
echo "configure:1091: checking target system type" >&5
echo "configure:1091: checking target system type" >&5
target_alias=$target
target_alias=$target
case "$target_alias" in
case "$target_alias" in
NONE)
NONE)
  case $nonopt in
  case $nonopt in
  NONE) target_alias=$host_alias ;;
  NONE) target_alias=$host_alias ;;
  *) target_alias=$nonopt ;;
  *) target_alias=$nonopt ;;
  esac ;;
  esac ;;
esac
esac
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6
echo "$ac_t""$target" 1>&6
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:1109: checking build system type" >&5
echo "configure:1109: checking build system type" >&5
build_alias=$build
build_alias=$build
case "$build_alias" in
case "$build_alias" in
NONE)
NONE)
  case $nonopt in
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  *) build_alias=$nonopt ;;
  esac ;;
  esac ;;
esac
esac
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6
echo "$ac_t""$build" 1>&6
test "$host_alias" != "$target_alias" &&
test "$host_alias" != "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-
  program_prefix=${target_alias}-
ALL_LINGUAS=
ALL_LINGUAS=
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:1134: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo "configure:1134: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftestmake <<\EOF
  cat > conftestmake <<\EOF
all:
all:
        @echo 'ac_maketemp="${MAKE}"'
        @echo 'ac_maketemp="${MAKE}"'
EOF
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
  eval ac_cv_prog_make_${ac_make}_set=yes
else
else
  eval ac_cv_prog_make_${ac_make}_set=no
  eval ac_cv_prog_make_${ac_make}_set=no
fi
fi
rm -f conftestmake
rm -f conftestmake
fi
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  SET_MAKE=
  SET_MAKE=
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
  SET_MAKE="MAKE=${MAKE-make}"
  SET_MAKE="MAKE=${MAKE-make}"
fi
fi
# Extract the first word of "ranlib", so it can be a program name with args.
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1163: checking for $ac_word" >&5
echo "configure:1163: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$RANLIB"; then
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      ac_cv_prog_RANLIB="ranlib"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
  echo "$ac_t""$RANLIB" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:1191: checking for ANSI C header files" >&5
echo "configure:1191: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1196 "configure"
#line 1196 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stdc=yes
  ac_cv_header_stdc=yes
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stdc=no
  ac_cv_header_stdc=no
fi
fi
rm -f conftest*
rm -f conftest*
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 1221 "configure"
#line 1221 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  egrep "memchr" >/dev/null 2>&1; then
  :
  :
else
else
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stdc=no
  ac_cv_header_stdc=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 1239 "configure"
#line 1239 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  egrep "free" >/dev/null 2>&1; then
  :
  :
else
else
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stdc=no
  ac_cv_header_stdc=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
if test "$cross_compiling" = yes; then
  :
  :
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1260 "configure"
#line 1260 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
exit (0); }
EOF
EOF
if { (eval echo configure:1271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:1271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  :
  :
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  ac_cv_header_stdc=no
  ac_cv_header_stdc=no
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
#define STDC_HEADERS 1
EOF
EOF
fi
fi
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1295: checking for working const" >&5
echo "configure:1295: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1300 "configure"
#line 1300 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
/* Ultrix mips cc rejects this.  */
/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char const *const *ccp;
char **p;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
struct point {int x, y;};
static struct point const zero = {0,0};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
const char *g = "string";
ccp = &g + (g ? g-g : 0);
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
/* HPUX 7.0 cc rejects these. */
++ccp;
++ccp;
p = (char**) ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;
  char const *s = 0 ? (char *) 0 : (char const *) 0;
  *t++ = 0;
  *t++ = 0;
}
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  int x[] = {25, 17};
  const int *foo = &x[0];
  const int *foo = &x[0];
  ++foo;
  ++foo;
}
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  typedef const int *iptr;
  iptr p = 0;
  iptr p = 0;
  ++p;
  ++p;
}
}
{ /* AIX XL C 1.02.0.0 rejects this saying
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
  struct s *b; b->j = 5;
}
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
  const int foo = 10;
}
}
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_c_const=yes
  ac_cv_c_const=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_c_const=no
  ac_cv_c_const=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_c_const" 1>&6
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define const
#define const
EOF
EOF
fi
fi
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:1370: checking for inline" >&5
echo "configure:1370: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_cv_c_inline=no
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
for ac_kw in inline __inline__ __inline; do
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1377 "configure"
#line 1377 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
} $ac_kw foo() {
} $ac_kw foo() {
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_c_inline=$ac_kw; break
  ac_cv_c_inline=$ac_kw; break
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
fi
fi
rm -f conftest*
rm -f conftest*
done
done
fi
fi
echo "$ac_t""$ac_cv_c_inline" 1>&6
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
case "$ac_cv_c_inline" in
  inline | yes) ;;
  inline | yes) ;;
  no) cat >> confdefs.h <<\EOF
  no) cat >> confdefs.h <<\EOF
#define inline
#define inline
EOF
EOF
 ;;
 ;;
  *)  cat >> confdefs.h <
  *)  cat >> confdefs.h <
#define inline $ac_cv_c_inline
#define inline $ac_cv_c_inline
EOF
EOF
 ;;
 ;;
esac
esac
echo $ac_n "checking for off_t""... $ac_c" 1>&6
echo $ac_n "checking for off_t""... $ac_c" 1>&6
echo "configure:1410: checking for off_t" >&5
echo "configure:1410: checking for off_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1415 "configure"
#line 1415 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#if STDC_HEADERS
#if STDC_HEADERS
#include 
#include 
#include 
#include 
#endif
#endif
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_type_off_t=yes
  ac_cv_type_off_t=yes
else
else
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_type_off_t=no
  ac_cv_type_off_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_type_off_t" 1>&6
echo "$ac_t""$ac_cv_type_off_t" 1>&6
if test $ac_cv_type_off_t = no; then
if test $ac_cv_type_off_t = no; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define off_t long
#define off_t long
EOF
EOF
fi
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:1443: checking for size_t" >&5
echo "configure:1443: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1448 "configure"
#line 1448 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#if STDC_HEADERS
#if STDC_HEADERS
#include 
#include 
#include 
#include 
#endif
#endif
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_type_size_t=yes
  ac_cv_type_size_t=yes
else
else
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_type_size_t=no
  ac_cv_type_size_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define size_t unsigned
#define size_t unsigned
EOF
EOF
fi
fi
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo "configure:1478: checking for working alloca.h" >&5
echo "configure:1478: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1483 "configure"
#line 1483 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
char *p = alloca(2 * sizeof(int));
char *p = alloca(2 * sizeof(int));
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_alloca_h=yes
  ac_cv_header_alloca_h=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_alloca_h=no
  ac_cv_header_alloca_h=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
if test $ac_cv_header_alloca_h = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
#define HAVE_ALLOCA_H 1
EOF
EOF
fi
fi
echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo "configure:1511: checking for alloca" >&5
echo "configure:1511: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1516 "configure"
#line 1516 "configure"
#include "confdefs.h"
#include "confdefs.h"
#ifdef __GNUC__
#ifdef __GNUC__
# define alloca __builtin_alloca
# define alloca __builtin_alloca
#else
#else
# ifdef _MSC_VER
# ifdef _MSC_VER
#  include 
#  include 
#  define alloca _alloca
#  define alloca _alloca
# else
# else
#  if HAVE_ALLOCA_H
#  if HAVE_ALLOCA_H
#   include 
#   include 
#  else
#  else
#   ifdef _AIX
#   ifdef _AIX
 #pragma alloca
 #pragma alloca
#   else
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
#    ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
char *alloca ();
#    endif
#    endif
#   endif
#   endif
#  endif
#  endif
# endif
# endif
#endif
#endif
int main() {
int main() {
char *p = (char *) alloca(1);
char *p = (char *) alloca(1);
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_func_alloca_works=yes
  ac_cv_func_alloca_works=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_func_alloca_works=no
  ac_cv_func_alloca_works=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
if test $ac_cv_func_alloca_works = yes; then
if test $ac_cv_func_alloca_works = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA 1
#define HAVE_ALLOCA 1
EOF
EOF
fi
fi
if test $ac_cv_func_alloca_works = no; then
if test $ac_cv_func_alloca_works = no; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # that cause trouble.  Some versions do not even contain alloca or
  # contain a buggy version.  If you still want to use their alloca,
  # contain a buggy version.  If you still want to use their alloca,
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  ALLOCA=alloca.${ac_objext}
  ALLOCA=alloca.${ac_objext}
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define C_ALLOCA 1
#define C_ALLOCA 1
EOF
EOF
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo "configure:1576: checking whether alloca needs Cray hooks" >&5
echo "configure:1576: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1581 "configure"
#line 1581 "configure"
#include "confdefs.h"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
#if defined(CRAY) && ! defined(CRAY2)
webecray
webecray
#else
#else
wenotbecray
wenotbecray
#endif
#endif
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "webecray" >/dev/null 2>&1; then
  egrep "webecray" >/dev/null 2>&1; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_os_cray=yes
  ac_cv_os_cray=yes
else
else
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_os_cray=no
  ac_cv_os_cray=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_os_cray" 1>&6
echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1606: checking for $ac_func" >&5
echo "configure:1606: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1611 "configure"
#line 1611 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
#include 
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char $ac_func();
char $ac_func();
int main() {
int main() {
/* The GNU C library defines this for functions which it implements
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
choke me
#else
#else
$ac_func();
$ac_func();
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
  eval "ac_cv_func_$ac_func=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <
  cat >> confdefs.h <
#define CRAY_STACKSEG_END $ac_func
#define CRAY_STACKSEG_END $ac_func
EOF
EOF
  break
  break
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
fi
fi
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo "configure:1661: checking stack direction for C alloca" >&5
echo "configure:1661: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test "$cross_compiling" = yes; then
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
  ac_cv_c_stack_direction=0
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1669 "configure"
#line 1669 "configure"
#include "confdefs.h"
#include "confdefs.h"
find_stack_direction ()
find_stack_direction ()
{
{
  static char *addr = 0;
  static char *addr = 0;
  auto char dummy;
  auto char dummy;
  if (addr == 0)
  if (addr == 0)
    {
    {
      addr = &dummy;
      addr = &dummy;
      return find_stack_direction ();
      return find_stack_direction ();
    }
    }
  else
  else
    return (&dummy > addr) ? 1 : -1;
    return (&dummy > addr) ? 1 : -1;
}
}
main ()
main ()
{
{
  exit (find_stack_direction() < 0);
  exit (find_stack_direction() < 0);
}
}
EOF
EOF
if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  ac_cv_c_stack_direction=1
  ac_cv_c_stack_direction=1
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  ac_cv_c_stack_direction=-1
  ac_cv_c_stack_direction=-1
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
cat >> confdefs.h <
cat >> confdefs.h <
#define STACK_DIRECTION $ac_cv_c_stack_direction
#define STACK_DIRECTION $ac_cv_c_stack_direction
EOF
EOF
fi
fi
for ac_hdr in unistd.h
for ac_hdr in unistd.h
do
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1713: checking for $ac_hdr" >&5
echo "configure:1713: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1718 "configure"
#line 1718 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <$ac_hdr>
#include <$ac_hdr>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
  eval "ac_cv_header_$ac_safe=yes"
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
  eval "ac_cv_header_$ac_safe=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_hdr 1
#define $ac_tr_hdr 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
for ac_func in getpagesize
for ac_func in getpagesize
do
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1752: checking for $ac_func" >&5
echo "configure:1752: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1757 "configure"
#line 1757 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
#include 
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char $ac_func();
char $ac_func();
int main() {
int main() {
/* The GNU C library defines this for functions which it implements
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
choke me
#else
#else
$ac_func();
$ac_func();
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
  eval "ac_cv_func_$ac_func=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_func 1
#define $ac_tr_func 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
echo "configure:1805: checking for working mmap" >&5
echo "configure:1805: checking for working mmap" >&5
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test "$cross_compiling" = yes; then
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
  ac_cv_func_mmap_fixed_mapped=no
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1813 "configure"
#line 1813 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Thanks to Mike Haertel and Jim Avera for this test.
/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
   Here is a matrix of mmap possibilities:
        mmap private not fixed
        mmap private not fixed
        mmap private fixed at somewhere currently unmapped
        mmap private fixed at somewhere currently unmapped
        mmap private fixed at somewhere already mapped
        mmap private fixed at somewhere already mapped
        mmap shared not fixed
        mmap shared not fixed
        mmap shared fixed at somewhere currently unmapped
        mmap shared fixed at somewhere currently unmapped
        mmap shared fixed at somewhere already mapped
        mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the filesystem buffer cache
   VM page cache was not coherent with the filesystem buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   For shared mappings, we should conversely verify that changes get
   propogated back to all the places they're supposed to be.
   propogated back to all the places they're supposed to be.
   Grep wants private fixed already mapped.
   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */
   * how to use it (BSD variants)  */
#include 
#include 
#include 
#include 
#include 
#include 
/* This mess was copied from the GNU getpagesize.h.  */
/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
#ifndef HAVE_GETPAGESIZE
# ifdef HAVE_UNISTD_H
# ifdef HAVE_UNISTD_H
#  include 
#  include 
# endif
# endif
/* Assume that all systems that can run configure have sys/param.h.  */
/* Assume that all systems that can run configure have sys/param.h.  */
# ifndef HAVE_SYS_PARAM_H
# ifndef HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
#  define HAVE_SYS_PARAM_H 1
# endif
# endif
# ifdef _SC_PAGESIZE
# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#  ifdef HAVE_SYS_PARAM_H
#   include 
#   include 
#   ifdef EXEC_PAGESIZE
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#      define CLSIZE 1
#     endif /* no CLSIZE */
#     endif /* no CLSIZE */
#    else /* no NBPG */
#    else /* no NBPG */
#     ifdef NBPC
#     ifdef NBPC
#      define getpagesize() NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#     else /* no NBPC */
#      ifdef PAGESIZE
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#     endif /* no NBPC */
#    endif /* no NBPG */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192   /* punt totally */
#   define getpagesize() 8192   /* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */
# endif /* no _SC_PAGESIZE */
#endif /* no HAVE_GETPAGESIZE */
#endif /* no HAVE_GETPAGESIZE */
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
extern "C" { void *malloc(unsigned); }
#else
#else
char *malloc();
char *malloc();
#endif
#endif
int
int
main()
main()
{
{
        char *data, *data2, *data3;
        char *data, *data2, *data3;
        int i, pagesize;
        int i, pagesize;
        int fd;
        int fd;
        pagesize = getpagesize();
        pagesize = getpagesize();
        /*
        /*
         * First, make a file with some known garbage in it.
         * First, make a file with some known garbage in it.
         */
         */
        data = malloc(pagesize);
        data = malloc(pagesize);
        if (!data)
        if (!data)
                exit(1);
                exit(1);
        for (i = 0; i < pagesize; ++i)
        for (i = 0; i < pagesize; ++i)
                *(data + i) = rand();
                *(data + i) = rand();
        umask(0);
        umask(0);
        fd = creat("conftestmmap", 0600);
        fd = creat("conftestmmap", 0600);
        if (fd < 0)
        if (fd < 0)
                exit(1);
                exit(1);
        if (write(fd, data, pagesize) != pagesize)
        if (write(fd, data, pagesize) != pagesize)
                exit(1);
                exit(1);
        close(fd);
        close(fd);
        /*
        /*
         * Next, try to mmap the file at a fixed address which
         * Next, try to mmap the file at a fixed address which
         * already has something else allocated at it.  If we can,
         * already has something else allocated at it.  If we can,
         * also make sure that we see the same garbage.
         * also make sure that we see the same garbage.
         */
         */
        fd = open("conftestmmap", O_RDWR);
        fd = open("conftestmmap", O_RDWR);
        if (fd < 0)
        if (fd < 0)
                exit(1);
                exit(1);
        data2 = malloc(2 * pagesize);
        data2 = malloc(2 * pagesize);
        if (!data2)
        if (!data2)
                exit(1);
                exit(1);
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
                exit(1);
                exit(1);
        for (i = 0; i < pagesize; ++i)
        for (i = 0; i < pagesize; ++i)
                if (*(data + i) != *(data2 + i))
                if (*(data + i) != *(data2 + i))
                        exit(1);
                        exit(1);
        /*
        /*
         * Finally, make sure that changes to the mapped area
         * Finally, make sure that changes to the mapped area
         * do not percolate back to the file as seen by read().
         * do not percolate back to the file as seen by read().
         * (This is a bug on some variants of i386 svr4.0.)
         * (This is a bug on some variants of i386 svr4.0.)
         */
         */
        for (i = 0; i < pagesize; ++i)
        for (i = 0; i < pagesize; ++i)
                *(data2 + i) = *(data2 + i) + 1;
                *(data2 + i) = *(data2 + i) + 1;
        data3 = malloc(pagesize);
        data3 = malloc(pagesize);
        if (!data3)
        if (!data3)
                exit(1);
                exit(1);
        if (read(fd, data3, pagesize) != pagesize)
        if (read(fd, data3, pagesize) != pagesize)
                exit(1);
                exit(1);
        for (i = 0; i < pagesize; ++i)
        for (i = 0; i < pagesize; ++i)
                if (*(data + i) != *(data3 + i))
                if (*(data + i) != *(data3 + i))
                        exit(1);
                        exit(1);
        close(fd);
        close(fd);
        unlink("conftestmmap");
        unlink("conftestmmap");
        exit(0);
        exit(0);
}
}
EOF
EOF
if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  ac_cv_func_mmap_fixed_mapped=yes
  ac_cv_func_mmap_fixed_mapped=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  ac_cv_func_mmap_fixed_mapped=no
  ac_cv_func_mmap_fixed_mapped=no
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
if test $ac_cv_func_mmap_fixed_mapped = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_MMAP 1
#define HAVE_MMAP 1
EOF
EOF
fi
fi
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
unistd.h values.h sys/param.h
unistd.h values.h sys/param.h
do
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1981: checking for $ac_hdr" >&5
echo "configure:1981: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 1986 "configure"
#line 1986 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <$ac_hdr>
#include <$ac_hdr>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
  eval "ac_cv_header_$ac_safe=yes"
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
  eval "ac_cv_header_$ac_safe=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_hdr 1
#define $ac_tr_hdr 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
__argz_count __argz_stringify __argz_next
__argz_count __argz_stringify __argz_next
do
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2021: checking for $ac_func" >&5
echo "configure:2021: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 2026 "configure"
#line 2026 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
#include 
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char $ac_func();
char $ac_func();
int main() {
int main() {
/* The GNU C library defines this for functions which it implements
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
choke me
#else
#else
$ac_func();
$ac_func();
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
  eval "ac_cv_func_$ac_func=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_func 1
#define $ac_tr_func 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
   if test "${ac_cv_func_stpcpy+set}" != "set"; then
   if test "${ac_cv_func_stpcpy+set}" != "set"; then
     for ac_func in stpcpy
     for ac_func in stpcpy
do
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2078: checking for $ac_func" >&5
echo "configure:2078: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 2083 "configure"
#line 2083 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
#include 
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char $ac_func();
char $ac_func();
int main() {
int main() {
/* The GNU C library defines this for functions which it implements
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
choke me
#else
#else
$ac_func();
$ac_func();
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
  eval "ac_cv_func_$ac_func=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_func 1
#define $ac_tr_func 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
   fi
   fi
   if test "${ac_cv_func_stpcpy}" = "yes"; then
   if test "${ac_cv_func_stpcpy}" = "yes"; then
     cat >> confdefs.h <<\EOF
     cat >> confdefs.h <<\EOF
#define HAVE_STPCPY 1
#define HAVE_STPCPY 1
EOF
EOF
   fi
   fi
   if test $ac_cv_header_locale_h = yes; then
   if test $ac_cv_header_locale_h = yes; then
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
echo "configure:2140: checking for LC_MESSAGES" >&5
echo "configure:2140: checking for LC_MESSAGES" >&5
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 2145 "configure"
#line 2145 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
return LC_MESSAGES
return LC_MESSAGES
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  am_cv_val_LC_MESSAGES=yes
  am_cv_val_LC_MESSAGES=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  am_cv_val_LC_MESSAGES=no
  am_cv_val_LC_MESSAGES=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
    if test $am_cv_val_LC_MESSAGES = yes; then
    if test $am_cv_val_LC_MESSAGES = yes; then
      cat >> confdefs.h <<\EOF
      cat >> confdefs.h <<\EOF
#define HAVE_LC_MESSAGES 1
#define HAVE_LC_MESSAGES 1
EOF
EOF
    fi
    fi
  fi
  fi
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
echo "configure:2173: checking whether NLS is requested" >&5
echo "configure:2173: checking whether NLS is requested" >&5
        # Check whether --enable-nls or --disable-nls was given.
        # Check whether --enable-nls or --disable-nls was given.
if test "${enable_nls+set}" = set; then
if test "${enable_nls+set}" = set; then
  enableval="$enable_nls"
  enableval="$enable_nls"
  USE_NLS=$enableval
  USE_NLS=$enableval
else
else
  USE_NLS=yes
  USE_NLS=yes
fi
fi
    echo "$ac_t""$USE_NLS" 1>&6
    echo "$ac_t""$USE_NLS" 1>&6
    USE_INCLUDED_LIBINTL=no
    USE_INCLUDED_LIBINTL=no
        if test "$USE_NLS" = "yes"; then
        if test "$USE_NLS" = "yes"; then
      cat >> confdefs.h <<\EOF
      cat >> confdefs.h <<\EOF
#define ENABLE_NLS 1
#define ENABLE_NLS 1
EOF
EOF
      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
echo "configure:2193: checking whether included gettext is requested" >&5
echo "configure:2193: checking whether included gettext is requested" >&5
      # Check whether --with-included-gettext or --without-included-gettext was given.
      # Check whether --with-included-gettext or --without-included-gettext was given.
if test "${with_included_gettext+set}" = set; then
if test "${with_included_gettext+set}" = set; then
  withval="$with_included_gettext"
  withval="$with_included_gettext"
  nls_cv_force_use_gnu_gettext=$withval
  nls_cv_force_use_gnu_gettext=$withval
else
else
  nls_cv_force_use_gnu_gettext=no
  nls_cv_force_use_gnu_gettext=no
fi
fi
      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
                                        nls_cv_header_intl=
                                        nls_cv_header_intl=
        nls_cv_header_libgt=
        nls_cv_header_libgt=
        CATOBJEXT=NONE
        CATOBJEXT=NONE
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
echo "configure:2212: checking for libintl.h" >&5
echo "configure:2212: checking for libintl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 2217 "configure"
#line 2217 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:2222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
  eval "ac_cv_header_$ac_safe=yes"
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
  eval "ac_cv_header_$ac_safe=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
echo "configure:2239: checking for gettext in libc" >&5
echo "configure:2239: checking for gettext in libc" >&5
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 2244 "configure"
#line 2244 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
return (int) gettext ("")
return (int) gettext ("")
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  gt_cv_func_gettext_libc=yes
  gt_cv_func_gettext_libc=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  gt_cv_func_gettext_libc=no
  gt_cv_func_gettext_libc=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
           if test "$gt_cv_func_gettext_libc" != "yes"; then
           if test "$gt_cv_func_gettext_libc" != "yes"; then
             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
echo "configure:2267: checking for bindtextdomain in -lintl" >&5
echo "configure:2267: checking for bindtextdomain in -lintl" >&5
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lintl  $LIBS"
LIBS="-lintl  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 2275 "configure"
#line 2275 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char bindtextdomain();
char bindtextdomain();
int main() {
int main() {
bindtextdomain()
bindtextdomain()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
echo "configure:2302: checking for gettext in libintl" >&5
echo "configure:2302: checking for gettext in libintl" >&5
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 2307 "configure"
#line 2307 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
return (int) gettext ("")
return (int) gettext ("")
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  gt_cv_func_gettext_libintl=yes
  gt_cv_func_gettext_libintl=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  gt_cv_func_gettext_libintl=no
  gt_cv_func_gettext_libintl=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
           fi
           fi
           if test "$gt_cv_func_gettext_libc" = "yes" \
           if test "$gt_cv_func_gettext_libc" = "yes" \
              || test "$gt_cv_func_gettext_libintl" = "yes"; then
              || test "$gt_cv_func_gettext_libintl" = "yes"; then
              cat >> confdefs.h <<\EOF
              cat >> confdefs.h <<\EOF
#define HAVE_GETTEXT 1
#define HAVE_GETTEXT 1
EOF
EOF
              # Extract the first word of "msgfmt", so it can be a program name with args.
              # Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
set dummy msgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2342: checking for $ac_word" >&5
echo "configure:2342: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  case "$MSGFMT" in
  case "$MSGFMT" in
  /*)
  /*)
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  ;;
  ;;
  *)
  *)
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
        break
        break
      fi
      fi
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  ;;
  ;;
esac
esac
fi
fi
MSGFMT="$ac_cv_path_MSGFMT"
MSGFMT="$ac_cv_path_MSGFMT"
if test -n "$MSGFMT"; then
if test -n "$MSGFMT"; then
  echo "$ac_t""$MSGFMT" 1>&6
  echo "$ac_t""$MSGFMT" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
              if test "$MSGFMT" != "no"; then
              if test "$MSGFMT" != "no"; then
                for ac_func in dcgettext
                for ac_func in dcgettext
do
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2376: checking for $ac_func" >&5
echo "configure:2376: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 2381 "configure"
#line 2381 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
#include 
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char $ac_func();
char $ac_func();
int main() {
int main() {
/* The GNU C library defines this for functions which it implements
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
choke me
#else
#else
$ac_func();
$ac_func();
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
  eval "ac_cv_func_$ac_func=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_func 1
#define $ac_tr_func 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
                # Extract the first word of "gmsgfmt", so it can be a program name with args.
                # Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
set dummy gmsgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2431: checking for $ac_word" >&5
echo "configure:2431: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  case "$GMSGFMT" in
  case "$GMSGFMT" in
  /*)
  /*)
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  ;;
  ;;
  ?:/*)
  ?:/*)
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  ;;
  ;;
  *)
  *)
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  ;;
  ;;
esac
esac
fi
fi
GMSGFMT="$ac_cv_path_GMSGFMT"
GMSGFMT="$ac_cv_path_GMSGFMT"
if test -n "$GMSGFMT"; then
if test -n "$GMSGFMT"; then
  echo "$ac_t""$GMSGFMT" 1>&6
  echo "$ac_t""$GMSGFMT" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
                # Extract the first word of "xgettext", so it can be a program name with args.
                # Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
set dummy xgettext; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2467: checking for $ac_word" >&5
echo "configure:2467: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  case "$XGETTEXT" in
  case "$XGETTEXT" in
  /*)
  /*)
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  ;;
  ;;
  *)
  *)
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
        break
        break
      fi
      fi
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  ;;
  ;;
esac
esac
fi
fi
XGETTEXT="$ac_cv_path_XGETTEXT"
XGETTEXT="$ac_cv_path_XGETTEXT"
if test -n "$XGETTEXT"; then
if test -n "$XGETTEXT"; then
  echo "$ac_t""$XGETTEXT" 1>&6
  echo "$ac_t""$XGETTEXT" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
                cat > conftest.$ac_ext <
                cat > conftest.$ac_ext <
#line 2499 "configure"
#line 2499 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
extern int _nl_msg_cat_cntr;
extern int _nl_msg_cat_cntr;
                               return _nl_msg_cat_cntr
                               return _nl_msg_cat_cntr
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  CATOBJEXT=.gmo
  CATOBJEXT=.gmo
                   DATADIRNAME=share
                   DATADIRNAME=share
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  CATOBJEXT=.mo
  CATOBJEXT=.mo
                   DATADIRNAME=lib
                   DATADIRNAME=lib
fi
fi
rm -f conftest*
rm -f conftest*
                INSTOBJEXT=.mo
                INSTOBJEXT=.mo
              fi
              fi
            fi
            fi
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
        if test "$CATOBJEXT" = "NONE"; then
        if test "$CATOBJEXT" = "NONE"; then
                          nls_cv_use_gnu_gettext=yes
                          nls_cv_use_gnu_gettext=yes
        fi
        fi
      fi
      fi
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
                INTLOBJS="\$(GETTOBJS)"
                INTLOBJS="\$(GETTOBJS)"
        # Extract the first word of "msgfmt", so it can be a program name with args.
        # Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
set dummy msgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2539: checking for $ac_word" >&5
echo "configure:2539: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  case "$MSGFMT" in
  case "$MSGFMT" in
  /*)
  /*)
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  ;;
  ;;
  *)
  *)
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
        break
        break
      fi
      fi
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  ;;
  ;;
esac
esac
fi
fi
MSGFMT="$ac_cv_path_MSGFMT"
MSGFMT="$ac_cv_path_MSGFMT"
if test -n "$MSGFMT"; then
if test -n "$MSGFMT"; then
  echo "$ac_t""$MSGFMT" 1>&6
  echo "$ac_t""$MSGFMT" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
set dummy gmsgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2573: checking for $ac_word" >&5
echo "configure:2573: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  case "$GMSGFMT" in
  case "$GMSGFMT" in
  /*)
  /*)
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  ;;
  ;;
  ?:/*)
  ?:/*)
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  ;;
  ;;
  *)
  *)
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  ;;
  ;;
esac
esac
fi
fi
GMSGFMT="$ac_cv_path_GMSGFMT"
GMSGFMT="$ac_cv_path_GMSGFMT"
if test -n "$GMSGFMT"; then
if test -n "$GMSGFMT"; then
  echo "$ac_t""$GMSGFMT" 1>&6
  echo "$ac_t""$GMSGFMT" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
        # Extract the first word of "xgettext", so it can be a program name with args.
        # Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
set dummy xgettext; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2609: checking for $ac_word" >&5
echo "configure:2609: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  case "$XGETTEXT" in
  case "$XGETTEXT" in
  /*)
  /*)
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  ;;
  ;;
  *)
  *)
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
        break
        break
      fi
      fi
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  ;;
  ;;
esac
esac
fi
fi
XGETTEXT="$ac_cv_path_XGETTEXT"
XGETTEXT="$ac_cv_path_XGETTEXT"
if test -n "$XGETTEXT"; then
if test -n "$XGETTEXT"; then
  echo "$ac_t""$XGETTEXT" 1>&6
  echo "$ac_t""$XGETTEXT" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
        USE_INCLUDED_LIBINTL=yes
        USE_INCLUDED_LIBINTL=yes
        CATOBJEXT=.gmo
        CATOBJEXT=.gmo
        INSTOBJEXT=.mo
        INSTOBJEXT=.mo
        DATADIRNAME=share
        DATADIRNAME=share
        INTLDEPS='$(top_builddir)/../intl/libintl.a'
        INTLDEPS='$(top_builddir)/../intl/libintl.a'
        INTLLIBS=$INTLDEPS
        INTLLIBS=$INTLDEPS
        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
        nls_cv_header_intl=libintl.h
        nls_cv_header_intl=libintl.h
        nls_cv_header_libgt=libgettext.h
        nls_cv_header_libgt=libgettext.h
      fi
      fi
            if test "$XGETTEXT" != ":"; then
            if test "$XGETTEXT" != ":"; then
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
          : ;
          : ;
        else
        else
          echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
          echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
          XGETTEXT=":"
          XGETTEXT=":"
        fi
        fi
      fi
      fi
      # We need to process the po/ directory.
      # We need to process the po/ directory.
      POSUB=po
      POSUB=po
    else
    else
      DATADIRNAME=share
      DATADIRNAME=share
      nls_cv_header_intl=libintl.h
      nls_cv_header_intl=libintl.h
      nls_cv_header_libgt=libgettext.h
      nls_cv_header_libgt=libgettext.h
    fi
    fi
    # If this is used in GNU gettext we have to set USE_NLS to `yes'
    # If this is used in GNU gettext we have to set USE_NLS to `yes'
    # because some of the sources are only built for this goal.
    # because some of the sources are only built for this goal.
    if test "$PACKAGE" = gettext; then
    if test "$PACKAGE" = gettext; then
      USE_NLS=yes
      USE_NLS=yes
      USE_INCLUDED_LIBINTL=yes
      USE_INCLUDED_LIBINTL=yes
    fi
    fi
                for lang in $ALL_LINGUAS; do
                for lang in $ALL_LINGUAS; do
      GMOFILES="$GMOFILES $lang.gmo"
      GMOFILES="$GMOFILES $lang.gmo"
      POFILES="$POFILES $lang.po"
      POFILES="$POFILES $lang.po"
    done
    done
   if test "x$CATOBJEXT" != "x"; then
   if test "x$CATOBJEXT" != "x"; then
     if test "x$ALL_LINGUAS" = "x"; then
     if test "x$ALL_LINGUAS" = "x"; then
       LINGUAS=
       LINGUAS=
     else
     else
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
echo "configure:2699: checking for catalogs to be installed" >&5
echo "configure:2699: checking for catalogs to be installed" >&5
       NEW_LINGUAS=
       NEW_LINGUAS=
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
         case "$ALL_LINGUAS" in
         case "$ALL_LINGUAS" in
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
         esac
         esac
       done
       done
       LINGUAS=$NEW_LINGUAS
       LINGUAS=$NEW_LINGUAS
       echo "$ac_t""$LINGUAS" 1>&6
       echo "$ac_t""$LINGUAS" 1>&6
     fi
     fi
          if test -n "$LINGUAS"; then
          if test -n "$LINGUAS"; then
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
     fi
     fi
   fi
   fi
            if test $ac_cv_header_locale_h = yes; then
            if test $ac_cv_header_locale_h = yes; then
     INCLUDE_LOCALE_H="#include "
     INCLUDE_LOCALE_H="#include "
   else
   else
     INCLUDE_LOCALE_H="\
     INCLUDE_LOCALE_H="\
/* The system does not provide the header .  Take care yourself.  */"
/* The system does not provide the header .  Take care yourself.  */"
   fi
   fi
            if test -f $srcdir/po2tbl.sed.in; then
            if test -f $srcdir/po2tbl.sed.in; then
      if test "$CATOBJEXT" = ".cat"; then
      if test "$CATOBJEXT" = ".cat"; then
         ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
         ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
echo "configure:2727: checking for linux/version.h" >&5
echo "configure:2727: checking for linux/version.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 2732 "configure"
#line 2732 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:2737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
  eval "ac_cv_header_$ac_safe=yes"
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
  eval "ac_cv_header_$ac_safe=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  msgformat=linux
  msgformat=linux
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
msgformat=xopen
msgformat=xopen
fi
fi
                         sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
                         sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
      fi
      fi
            sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
            sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
         $srcdir/po2tbl.sed.in > po2tbl.sed
         $srcdir/po2tbl.sed.in > po2tbl.sed
   fi
   fi
            if test "$PACKAGE" = "gettext"; then
            if test "$PACKAGE" = "gettext"; then
     GT_NO="#NO#"
     GT_NO="#NO#"
     GT_YES=
     GT_YES=
   else
   else
     GT_NO=
     GT_NO=
     GT_YES="#YES#"
     GT_YES="#YES#"
   fi
   fi
   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
      l=
      l=
            if test -d $srcdir/po; then
            if test -d $srcdir/po; then
      test -d po || mkdir po
      test -d po || mkdir po
      if test "x$srcdir" != "x."; then
      if test "x$srcdir" != "x."; then
         if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
         if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
            posrcprefix="$srcdir/"
            posrcprefix="$srcdir/"
         else
         else
            posrcprefix="../$srcdir/"
            posrcprefix="../$srcdir/"
         fi
         fi
      else
      else
         posrcprefix="../"
         posrcprefix="../"
      fi
      fi
      rm -f po/POTFILES
      rm -f po/POTFILES
      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
         < $srcdir/po/POTFILES.in > po/POTFILES
         < $srcdir/po/POTFILES.in > po/POTFILES
   fi
   fi
CONFIG_OBS=
CONFIG_OBS=
CONFIG_DEPS=
CONFIG_DEPS=
CONFIG_SRCS=
CONFIG_SRCS=
CONFIG_INITS=
CONFIG_INITS=
ENABLE_CFLAGS=
ENABLE_CFLAGS=
CONFIG_ALL=
CONFIG_ALL=
CONFIG_CLEAN=
CONFIG_CLEAN=
CONFIG_INSTALL=
CONFIG_INSTALL=
CONFIG_UNINSTALL=
CONFIG_UNINSTALL=
configdirs="doc testsuite"
configdirs="doc testsuite"
# Check whether --enable-multi-ice or --disable-multi-ice was given.
# Check whether --enable-multi-ice or --disable-multi-ice was given.
if test "${enable_multi_ice+set}" = set; then
if test "${enable_multi_ice+set}" = set; then
  enableval="$enable_multi_ice"
  enableval="$enable_multi_ice"
  case "${enableval}" in
  case "${enableval}" in
    yes ) enable_multi_ice="yes" ;;
    yes ) enable_multi_ice="yes" ;;
    no)  enable_multi_ice="no" ;;
    no)  enable_multi_ice="no" ;;
    *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
    *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
  esac
  esac
fi
fi
if test "${enable_multi_ice}" = "yes"; then
if test "${enable_multi_ice}" = "yes"; then
  configdirs="${configdirs} multi-ice"
  configdirs="${configdirs} multi-ice"
fi
fi
. ${srcdir}/configure.host
. ${srcdir}/configure.host
. ${srcdir}/configure.tgt
. ${srcdir}/configure.tgt
for ac_prog in gawk mawk nawk awk
for ac_prog in gawk mawk nawk awk
do
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2839: checking for $ac_word" >&5
echo "configure:2839: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$AWK"; then
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AWK="$ac_prog"
      ac_cv_prog_AWK="$ac_prog"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
fi
fi
fi
fi
AWK="$ac_cv_prog_AWK"
AWK="$ac_cv_prog_AWK"
if test -n "$AWK"; then
if test -n "$AWK"; then
  echo "$ac_t""$AWK" 1>&6
  echo "$ac_t""$AWK" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
test -n "$AWK" && break
test -n "$AWK" && break
done
done
# Find a good install program.  We prefer a C program (faster),
# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# IRIX /sbin/install
# AIX /bin/install
# AIX /bin/install
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:2880: checking for a BSD compatible install" >&5
echo "configure:2880: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
  for ac_dir in $PATH; do
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    # Account for people who put trailing slashes in PATH elements.
    case "$ac_dir/" in
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    *)
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      # by default.
      for ac_prog in ginstall scoinst install; do
      for ac_prog in ginstall scoinst install; do
        if test -f $ac_dir/$ac_prog; then
        if test -f $ac_dir/$ac_prog; then
          if test $ac_prog = install &&
          if test $ac_prog = install &&
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
            # AIX install.  It has an incompatible calling convention.
            :
            :
          else
          else
            ac_cv_path_install="$ac_dir/$ac_prog -c"
            ac_cv_path_install="$ac_dir/$ac_prog -c"
            break 2
            break 2
          fi
          fi
        fi
        fi
      done
      done
      ;;
      ;;
    esac
    esac
  done
  done
  IFS="$ac_save_IFS"
  IFS="$ac_save_IFS"
fi
fi
  if test "${ac_cv_path_install+set}" = set; then
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL="$ac_cv_path_install"
    INSTALL="$ac_cv_path_install"
  else
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    # removed, or if the path is relative.
    INSTALL="$ac_install_sh"
    INSTALL="$ac_install_sh"
  fi
  fi
fi
fi
echo "$ac_t""$INSTALL" 1>&6
echo "$ac_t""$INSTALL" 1>&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
if test $host != $build; then
if test $host != $build; then
  ac_tool_prefix=${host_alias}-
  ac_tool_prefix=${host_alias}-
else
else
  ac_tool_prefix=
  ac_tool_prefix=
fi
fi
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2941: checking for $ac_word" >&5
echo "configure:2941: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$AR"; then
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AR="${ac_tool_prefix}ar"
      ac_cv_prog_AR="${ac_tool_prefix}ar"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
fi
fi
fi
fi
AR="$ac_cv_prog_AR"
AR="$ac_cv_prog_AR"
if test -n "$AR"; then
if test -n "$AR"; then
  echo "$ac_t""$AR" 1>&6
  echo "$ac_t""$AR" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2973: checking for $ac_word" >&5
echo "configure:2973: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$RANLIB"; then
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
fi
fi
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
  echo "$ac_t""$RANLIB" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
if test -z "$ac_cv_prog_RANLIB"; then
if test -z "$ac_cv_prog_RANLIB"; then
if test -n "$ac_tool_prefix"; then
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "ranlib", so it can be a program name with args.
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3005: checking for $ac_word" >&5
echo "configure:3005: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$RANLIB"; then
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      ac_cv_prog_RANLIB="ranlib"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
  echo "$ac_t""$RANLIB" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
else
else
  RANLIB=":"
  RANLIB=":"
fi
fi
fi
fi
for ac_prog in 'bison -y' byacc
for ac_prog in 'bison -y' byacc
do
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3042: checking for $ac_word" >&5
echo "configure:3042: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$YACC"; then
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_YACC="$ac_prog"
      ac_cv_prog_YACC="$ac_prog"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
fi
fi
fi
fi
YACC="$ac_cv_prog_YACC"
YACC="$ac_cv_prog_YACC"
if test -n "$YACC"; then
if test -n "$YACC"; then
  echo "$ac_t""$YACC" 1>&6
  echo "$ac_t""$YACC" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
test -n "$YACC" && break
test -n "$YACC" && break
done
done
test -n "$YACC" || YACC="yacc"
test -n "$YACC" || YACC="yacc"
# Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
# Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
set dummy ${ac_tool_prefix}mig; ac_word=$2
set dummy ${ac_tool_prefix}mig; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3076: checking for $ac_word" >&5
echo "configure:3076: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test -n "$MIG"; then
  if test -n "$MIG"; then
  ac_cv_prog_MIG="$MIG" # Let the user override the test.
  ac_cv_prog_MIG="$MIG" # Let the user override the test.
else
else
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_MIG="${ac_tool_prefix}mig"
      ac_cv_prog_MIG="${ac_tool_prefix}mig"
      break
      break
    fi
    fi
  done
  done
  IFS="$ac_save_ifs"
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
  test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
fi
fi
fi
fi
MIG="$ac_cv_prog_MIG"
MIG="$ac_cv_prog_MIG"
if test -n "$MIG"; then
if test -n "$MIG"; then
  echo "$ac_t""$MIG" 1>&6
  echo "$ac_t""$MIG" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
if test "$program_transform_name" = s,x,x,; then
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
  program_transform_name=
else
else
  # Double any \ or $.  echo might interpret backslashes.
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF_SED > conftestsed
  cat <<\EOF_SED > conftestsed
s,\\,\\\\,g; s,\$,$$,g
s,\\,\\\\,g; s,\$,$$,g
EOF_SED
EOF_SED
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  rm -f conftestsed
  rm -f conftestsed
fi
fi
test "$program_prefix" != NONE &&
test "$program_prefix" != NONE &&
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
# Use a double $ so make ignores it.
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
test "$program_suffix" != NONE &&
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
# sed with no file args requires a program.
# sed with no file args requires a program.
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:3127: checking return type of signal handlers" >&5
echo "configure:3127: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3132 "configure"
#line 3132 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#include 
#include 
#ifdef signal
#ifdef signal
#undef signal
#undef signal
#endif
#endif
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
extern "C" void (*signal (int, void (*)(int)))(int);
#else
#else
void (*signal ()) ();
void (*signal ()) ();
#endif
#endif
int main() {
int main() {
int i;
int i;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_type_signal=void
  ac_cv_type_signal=void
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_type_signal=int
  ac_cv_type_signal=int
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_type_signal" 1>&6
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <
cat >> confdefs.h <
#define RETSIGTYPE $ac_cv_type_signal
#define RETSIGTYPE $ac_cv_type_signal
EOF
EOF
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:3169: checking for ANSI C header files" >&5
echo "configure:3169: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3174 "configure"
#line 3174 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:3182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stdc=yes
  ac_cv_header_stdc=yes
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stdc=no
  ac_cv_header_stdc=no
fi
fi
rm -f conftest*
rm -f conftest*
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 3199 "configure"
#line 3199 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  egrep "memchr" >/dev/null 2>&1; then
  :
  :
else
else
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stdc=no
  ac_cv_header_stdc=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 3217 "configure"
#line 3217 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  egrep "free" >/dev/null 2>&1; then
  :
  :
else
else
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stdc=no
  ac_cv_header_stdc=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
if test "$cross_compiling" = yes; then
  :
  :
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3238 "configure"
#line 3238 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
exit (0); }
EOF
EOF
if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  :
  :
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  ac_cv_header_stdc=no
  ac_cv_header_stdc=no
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
#define STDC_HEADERS 1
EOF
EOF
fi
fi
case $host_os in solaris2.7) case "$GCC" in yes)
case $host_os in solaris2.7) case "$GCC" in yes)
    cat >> confdefs.h <<\EOF
    cat >> confdefs.h <<\EOF
#define _MSE_INT_H 1
#define _MSE_INT_H 1
EOF
EOF
esac; esac
esac; esac
for ac_hdr in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
for ac_hdr in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
        memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
        memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
        string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
        string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
        term.h termio.h termios.h unistd.h wait.h sys/wait.h \
        term.h termio.h termios.h unistd.h wait.h sys/wait.h \
        wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
        wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
        time.h sys/ioctl.h sys/user.h
        time.h sys/ioctl.h sys/user.h
do
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3290: checking for $ac_hdr" >&5
echo "configure:3290: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3295 "configure"
#line 3295 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <$ac_hdr>
#include <$ac_hdr>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:3300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
  eval "ac_cv_header_$ac_safe=yes"
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
  eval "ac_cv_header_$ac_safe=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_hdr 1
#define $ac_tr_hdr 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
echo "configure:3327: checking whether stat file-mode macros are broken" >&5
echo "configure:3327: checking whether stat file-mode macros are broken" >&5
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3332 "configure"
#line 3332 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#include 
#include 
#if defined(S_ISBLK) && defined(S_IFDIR)
#if defined(S_ISBLK) && defined(S_IFDIR)
# if S_ISBLK (S_IFDIR)
# if S_ISBLK (S_IFDIR)
You lose.
You lose.
# endif
# endif
#endif
#endif
#if defined(S_ISBLK) && defined(S_IFCHR)
#if defined(S_ISBLK) && defined(S_IFCHR)
# if S_ISBLK (S_IFCHR)
# if S_ISBLK (S_IFCHR)
You lose.
You lose.
# endif
# endif
#endif
#endif
#if defined(S_ISLNK) && defined(S_IFREG)
#if defined(S_ISLNK) && defined(S_IFREG)
# if S_ISLNK (S_IFREG)
# if S_ISLNK (S_IFREG)
You lose.
You lose.
# endif
# endif
#endif
#endif
#if defined(S_ISSOCK) && defined(S_IFREG)
#if defined(S_ISSOCK) && defined(S_IFREG)
# if S_ISSOCK (S_IFREG)
# if S_ISSOCK (S_IFREG)
You lose.
You lose.
# endif
# endif
#endif
#endif
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "You lose" >/dev/null 2>&1; then
  egrep "You lose" >/dev/null 2>&1; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stat_broken=yes
  ac_cv_header_stat_broken=yes
else
else
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_stat_broken=no
  ac_cv_header_stat_broken=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
if test $ac_cv_header_stat_broken = yes; then
if test $ac_cv_header_stat_broken = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define STAT_MACROS_BROKEN 1
#define STAT_MACROS_BROKEN 1
EOF
EOF
fi
fi
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:3384: checking for working const" >&5
echo "configure:3384: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3389 "configure"
#line 3389 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
/* Ultrix mips cc rejects this.  */
/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char const *const *ccp;
char **p;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
struct point {int x, y;};
static struct point const zero = {0,0};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
const char *g = "string";
ccp = &g + (g ? g-g : 0);
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
/* HPUX 7.0 cc rejects these. */
++ccp;
++ccp;
p = (char**) ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;
  char const *s = 0 ? (char *) 0 : (char const *) 0;
  *t++ = 0;
  *t++ = 0;
}
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  int x[] = {25, 17};
  const int *foo = &x[0];
  const int *foo = &x[0];
  ++foo;
  ++foo;
}
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  typedef const int *iptr;
  iptr p = 0;
  iptr p = 0;
  ++p;
  ++p;
}
}
{ /* AIX XL C 1.02.0.0 rejects this saying
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
  struct s *b; b->j = 5;
}
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
  const int foo = 10;
}
}
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_c_const=yes
  ac_cv_c_const=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_c_const=no
  ac_cv_c_const=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_c_const" 1>&6
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define const
#define const
EOF
EOF
fi
fi
for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
do
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3462: checking for $ac_func" >&5
echo "configure:3462: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3467 "configure"
#line 3467 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
#include 
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char $ac_func();
char $ac_func();
int main() {
int main() {
/* The GNU C library defines this for functions which it implements
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
choke me
#else
#else
$ac_func();
$ac_func();
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
  eval "ac_cv_func_$ac_func=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_func 1
#define $ac_tr_func 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo "configure:3517: checking for working alloca.h" >&5
echo "configure:3517: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3522 "configure"
#line 3522 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
char *p = alloca(2 * sizeof(int));
char *p = alloca(2 * sizeof(int));
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_alloca_h=yes
  ac_cv_header_alloca_h=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_alloca_h=no
  ac_cv_header_alloca_h=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
if test $ac_cv_header_alloca_h = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
#define HAVE_ALLOCA_H 1
EOF
EOF
fi
fi
echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo "configure:3550: checking for alloca" >&5
echo "configure:3550: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3555 "configure"
#line 3555 "configure"
#include "confdefs.h"
#include "confdefs.h"
#ifdef __GNUC__
#ifdef __GNUC__
# define alloca __builtin_alloca
# define alloca __builtin_alloca
#else
#else
# ifdef _MSC_VER
# ifdef _MSC_VER
#  include 
#  include 
#  define alloca _alloca
#  define alloca _alloca
# else
# else
#  if HAVE_ALLOCA_H
#  if HAVE_ALLOCA_H
#   include 
#   include 
#  else
#  else
#   ifdef _AIX
#   ifdef _AIX
 #pragma alloca
 #pragma alloca
#   else
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
#    ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
char *alloca ();
#    endif
#    endif
#   endif
#   endif
#  endif
#  endif
# endif
# endif
#endif
#endif
int main() {
int main() {
char *p = (char *) alloca(1);
char *p = (char *) alloca(1);
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_func_alloca_works=yes
  ac_cv_func_alloca_works=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_func_alloca_works=no
  ac_cv_func_alloca_works=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
if test $ac_cv_func_alloca_works = yes; then
if test $ac_cv_func_alloca_works = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA 1
#define HAVE_ALLOCA 1
EOF
EOF
fi
fi
if test $ac_cv_func_alloca_works = no; then
if test $ac_cv_func_alloca_works = no; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # that cause trouble.  Some versions do not even contain alloca or
  # contain a buggy version.  If you still want to use their alloca,
  # contain a buggy version.  If you still want to use their alloca,
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  ALLOCA=alloca.${ac_objext}
  ALLOCA=alloca.${ac_objext}
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define C_ALLOCA 1
#define C_ALLOCA 1
EOF
EOF
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo "configure:3615: checking whether alloca needs Cray hooks" >&5
echo "configure:3615: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3620 "configure"
#line 3620 "configure"
#include "confdefs.h"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
#if defined(CRAY) && ! defined(CRAY2)
webecray
webecray
#else
#else
wenotbecray
wenotbecray
#endif
#endif
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "webecray" >/dev/null 2>&1; then
  egrep "webecray" >/dev/null 2>&1; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_os_cray=yes
  ac_cv_os_cray=yes
else
else
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_os_cray=no
  ac_cv_os_cray=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_os_cray" 1>&6
echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3645: checking for $ac_func" >&5
echo "configure:3645: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3650 "configure"
#line 3650 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
#include 
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char $ac_func();
char $ac_func();
int main() {
int main() {
/* The GNU C library defines this for functions which it implements
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
choke me
#else
#else
$ac_func();
$ac_func();
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
  eval "ac_cv_func_$ac_func=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <
  cat >> confdefs.h <
#define CRAY_STACKSEG_END $ac_func
#define CRAY_STACKSEG_END $ac_func
EOF
EOF
  break
  break
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
fi
fi
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo "configure:3700: checking stack direction for C alloca" >&5
echo "configure:3700: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test "$cross_compiling" = yes; then
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
  ac_cv_c_stack_direction=0
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3708 "configure"
#line 3708 "configure"
#include "confdefs.h"
#include "confdefs.h"
find_stack_direction ()
find_stack_direction ()
{
{
  static char *addr = 0;
  static char *addr = 0;
  auto char dummy;
  auto char dummy;
  if (addr == 0)
  if (addr == 0)
    {
    {
      addr = &dummy;
      addr = &dummy;
      return find_stack_direction ();
      return find_stack_direction ();
    }
    }
  else
  else
    return (&dummy > addr) ? 1 : -1;
    return (&dummy > addr) ? 1 : -1;
}
}
main ()
main ()
{
{
  exit (find_stack_direction() < 0);
  exit (find_stack_direction() < 0);
}
}
EOF
EOF
if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  ac_cv_c_stack_direction=1
  ac_cv_c_stack_direction=1
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  ac_cv_c_stack_direction=-1
  ac_cv_c_stack_direction=-1
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
cat >> confdefs.h <
cat >> confdefs.h <
#define STACK_DIRECTION $ac_cv_c_stack_direction
#define STACK_DIRECTION $ac_cv_c_stack_direction
EOF
EOF
fi
fi
echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
echo "configure:3750: checking for PTRACE_GETREGS" >&5
echo "configure:3750: checking for PTRACE_GETREGS" >&5
if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3755 "configure"
#line 3755 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
PTRACE_GETREGS;
PTRACE_GETREGS;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_have_ptrace_getregs=yes
  gdb_cv_have_ptrace_getregs=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_have_ptrace_getregs=no
  gdb_cv_have_ptrace_getregs=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
if test $gdb_cv_have_ptrace_getregs = yes; then
if test $gdb_cv_have_ptrace_getregs = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_PTRACE_GETREGS 1
#define HAVE_PTRACE_GETREGS 1
EOF
EOF
fi
fi
echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
echo "configure:3783: checking for PTRACE_GETXFPREGS" >&5
echo "configure:3783: checking for PTRACE_GETXFPREGS" >&5
if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3788 "configure"
#line 3788 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
PTRACE_GETXFPREGS;
PTRACE_GETXFPREGS;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_have_ptrace_getxfpregs=yes
  gdb_cv_have_ptrace_getxfpregs=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_have_ptrace_getxfpregs=no
  gdb_cv_have_ptrace_getxfpregs=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
if test $gdb_cv_have_ptrace_getxfpregs = yes; then
if test $gdb_cv_have_ptrace_getxfpregs = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_PTRACE_GETXFPREGS 1
#define HAVE_PTRACE_GETXFPREGS 1
EOF
EOF
fi
fi
echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
echo "configure:3816: checking for socketpair in -lsocket" >&5
echo "configure:3816: checking for socketpair in -lsocket" >&5
ac_lib_var=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
ac_lib_var=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lsocket  $LIBS"
LIBS="-lsocket  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 3824 "configure"
#line 3824 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char socketpair();
char socketpair();
int main() {
int main() {
socketpair()
socketpair()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_lib 1
#define $ac_tr_lib 1
EOF
EOF
  LIBS="-lsocket $LIBS"
  LIBS="-lsocket $LIBS"
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
for ac_func in socketpair
for ac_func in socketpair
do
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3865: checking for $ac_func" >&5
echo "configure:3865: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3870 "configure"
#line 3870 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
#include 
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char $ac_func();
char $ac_func();
int main() {
int main() {
/* The GNU C library defines this for functions which it implements
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
choke me
#else
#else
$ac_func();
$ac_func();
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
  eval "ac_cv_func_$ac_func=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_func 1
#define $ac_tr_func 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
echo "configure:3920: checking whether malloc must be declared" >&5
echo "configure:3920: checking whether malloc must be declared" >&5
if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3925 "configure"
#line 3925 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#ifdef HAVE_STRING_H
#ifdef HAVE_STRING_H
#include 
#include 
#else
#else
#ifdef HAVE_STRINGS_H
#ifdef HAVE_STRINGS_H
#include 
#include 
#endif
#endif
#endif
#endif
#ifdef HAVE_STDLIB_H
#ifdef HAVE_STDLIB_H
#include 
#include 
#endif
#endif
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
#include 
#include 
#endif
#endif
int main() {
int main() {
char *(*pfn) = (char *(*)) malloc
char *(*pfn) = (char *(*)) malloc
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_malloc=no
  bfd_cv_decl_needed_malloc=no
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_malloc=yes
  bfd_cv_decl_needed_malloc=yes
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
if test $bfd_cv_decl_needed_malloc = yes; then
if test $bfd_cv_decl_needed_malloc = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define NEED_DECLARATION_MALLOC 1
#define NEED_DECLARATION_MALLOC 1
EOF
EOF
fi
fi
echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
echo "configure:3967: checking whether realloc must be declared" >&5
echo "configure:3967: checking whether realloc must be declared" >&5
if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 3972 "configure"
#line 3972 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#ifdef HAVE_STRING_H
#ifdef HAVE_STRING_H
#include 
#include 
#else
#else
#ifdef HAVE_STRINGS_H
#ifdef HAVE_STRINGS_H
#include 
#include 
#endif
#endif
#endif
#endif
#ifdef HAVE_STDLIB_H
#ifdef HAVE_STDLIB_H
#include 
#include 
#endif
#endif
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
#include 
#include 
#endif
#endif
int main() {
int main() {
char *(*pfn) = (char *(*)) realloc
char *(*pfn) = (char *(*)) realloc
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_realloc=no
  bfd_cv_decl_needed_realloc=no
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_realloc=yes
  bfd_cv_decl_needed_realloc=yes
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
if test $bfd_cv_decl_needed_realloc = yes; then
if test $bfd_cv_decl_needed_realloc = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define NEED_DECLARATION_REALLOC 1
#define NEED_DECLARATION_REALLOC 1
EOF
EOF
fi
fi
echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
echo "configure:4014: checking whether free must be declared" >&5
echo "configure:4014: checking whether free must be declared" >&5
if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4019 "configure"
#line 4019 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#ifdef HAVE_STRING_H
#ifdef HAVE_STRING_H
#include 
#include 
#else
#else
#ifdef HAVE_STRINGS_H
#ifdef HAVE_STRINGS_H
#include 
#include 
#endif
#endif
#endif
#endif
#ifdef HAVE_STDLIB_H
#ifdef HAVE_STDLIB_H
#include 
#include 
#endif
#endif
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
#include 
#include 
#endif
#endif
int main() {
int main() {
char *(*pfn) = (char *(*)) free
char *(*pfn) = (char *(*)) free
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_free=no
  bfd_cv_decl_needed_free=no
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_free=yes
  bfd_cv_decl_needed_free=yes
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
if test $bfd_cv_decl_needed_free = yes; then
if test $bfd_cv_decl_needed_free = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define NEED_DECLARATION_FREE 1
#define NEED_DECLARATION_FREE 1
EOF
EOF
fi
fi
echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
echo "configure:4061: checking whether strerror must be declared" >&5
echo "configure:4061: checking whether strerror must be declared" >&5
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4066 "configure"
#line 4066 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#ifdef HAVE_STRING_H
#ifdef HAVE_STRING_H
#include 
#include 
#else
#else
#ifdef HAVE_STRINGS_H
#ifdef HAVE_STRINGS_H
#include 
#include 
#endif
#endif
#endif
#endif
#ifdef HAVE_STDLIB_H
#ifdef HAVE_STDLIB_H
#include 
#include 
#endif
#endif
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
#include 
#include 
#endif
#endif
int main() {
int main() {
char *(*pfn) = (char *(*)) strerror
char *(*pfn) = (char *(*)) strerror
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_strerror=no
  bfd_cv_decl_needed_strerror=no
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_strerror=yes
  bfd_cv_decl_needed_strerror=yes
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
if test $bfd_cv_decl_needed_strerror = yes; then
if test $bfd_cv_decl_needed_strerror = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define NEED_DECLARATION_STRERROR 1
#define NEED_DECLARATION_STRERROR 1
EOF
EOF
fi
fi
echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
echo "configure:4108: checking whether strdup must be declared" >&5
echo "configure:4108: checking whether strdup must be declared" >&5
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4113 "configure"
#line 4113 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#ifdef HAVE_STRING_H
#ifdef HAVE_STRING_H
#include 
#include 
#else
#else
#ifdef HAVE_STRINGS_H
#ifdef HAVE_STRINGS_H
#include 
#include 
#endif
#endif
#endif
#endif
#ifdef HAVE_STDLIB_H
#ifdef HAVE_STDLIB_H
#include 
#include 
#endif
#endif
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
#include 
#include 
#endif
#endif
int main() {
int main() {
char *(*pfn) = (char *(*)) strdup
char *(*pfn) = (char *(*)) strdup
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_strdup=no
  bfd_cv_decl_needed_strdup=no
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_strdup=yes
  bfd_cv_decl_needed_strdup=yes
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
if test $bfd_cv_decl_needed_strdup = yes; then
if test $bfd_cv_decl_needed_strdup = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define NEED_DECLARATION_STRDUP 1
#define NEED_DECLARATION_STRDUP 1
EOF
EOF
fi
fi
echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
echo "configure:4155: checking whether strstr must be declared" >&5
echo "configure:4155: checking whether strstr must be declared" >&5
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4160 "configure"
#line 4160 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#ifdef HAVE_STRING_H
#ifdef HAVE_STRING_H
#include 
#include 
#else
#else
#ifdef HAVE_STRINGS_H
#ifdef HAVE_STRINGS_H
#include 
#include 
#endif
#endif
#endif
#endif
#ifdef HAVE_STDLIB_H
#ifdef HAVE_STDLIB_H
#include 
#include 
#endif
#endif
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
#include 
#include 
#endif
#endif
int main() {
int main() {
char *(*pfn) = (char *(*)) strstr
char *(*pfn) = (char *(*)) strstr
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_strstr=no
  bfd_cv_decl_needed_strstr=no
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_decl_needed_strstr=yes
  bfd_cv_decl_needed_strstr=yes
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
if test $bfd_cv_decl_needed_strstr = yes; then
if test $bfd_cv_decl_needed_strstr = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define NEED_DECLARATION_STRSTR 1
#define NEED_DECLARATION_STRSTR 1
EOF
EOF
fi
fi
# The following save_state_t checkery is only necessary for HPUX
# The following save_state_t checkery is only necessary for HPUX
# versions earlier than 10.20.  When those fade from memory, this
# versions earlier than 10.20.  When those fade from memory, this
# could be expunged. --jsm 1999-03-22
# could be expunged. --jsm 1999-03-22
echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
echo "configure:4208: checking for HPUX save_state structure" >&5
echo "configure:4208: checking for HPUX save_state structure" >&5
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 4210 "configure"
#line 4210 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "save_state_t" >/dev/null 2>&1; then
  egrep "save_state_t" >/dev/null 2>&1; then
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_hpux_savestate=yes
  gdb_cv_hpux_savestate=yes
else
else
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_hpux_savestate=no
  gdb_cv_hpux_savestate=no
fi
fi
rm -f conftest*
rm -f conftest*
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 4225 "configure"
#line 4225 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ss_wide" >/dev/null 2>&1; then
  egrep "ss_wide" >/dev/null 2>&1; then
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_hpux_sswide=yes
  gdb_cv_hpux_sswide=yes
else
else
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_hpux_sswide=no
  gdb_cv_hpux_sswide=no
fi
fi
rm -f conftest*
rm -f conftest*
if test $gdb_cv_hpux_savestate = yes
if test $gdb_cv_hpux_savestate = yes
then
then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_SAVE_STATE_T 1
#define HAVE_STRUCT_SAVE_STATE_T 1
EOF
EOF
fi
fi
if test $gdb_cv_hpux_sswide = yes
if test $gdb_cv_hpux_sswide = yes
then
then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_MEMBER_SS_WIDE 1
#define HAVE_STRUCT_MEMBER_SS_WIDE 1
EOF
EOF
fi
fi
echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
# If we are configured native on GNU/Linux, work around problems with
# If we are configured native on GNU/Linux, work around problems with
# sys/procfs.h
# sys/procfs.h
# Also detect which type of /proc is in use, such as for Unixware or Solaris.
# Also detect which type of /proc is in use, such as for Unixware or Solaris.
if test "${target}" = "${host}"; then
if test "${target}" = "${host}"; then
  case "${host}" in
  case "${host}" in
  i[3456]86-*-linux*)
  i[3456]86-*-linux*)
        cat >> confdefs.h <<\EOF
        cat >> confdefs.h <<\EOF
#define START_INFERIOR_TRAPS_EXPECTED 2
#define START_INFERIOR_TRAPS_EXPECTED 2
EOF
EOF
        cat >> confdefs.h <<\EOF
        cat >> confdefs.h <<\EOF
#define sys_quotactl 1
#define sys_quotactl 1
EOF
EOF
        ;;
        ;;
  *-*-unixware* | *-*-sysv4.2* | *-*-sysv5*)
  *-*-unixware* | *-*-sysv4.2* | *-*-sysv5*)
      cat >> confdefs.h <<\EOF
      cat >> confdefs.h <<\EOF
#define NEW_PROC_API 1
#define NEW_PROC_API 1
EOF
EOF
      ;;
      ;;
  *-*-solaris2.[678])
  *-*-solaris2.[678])
      cat >> confdefs.h <<\EOF
      cat >> confdefs.h <<\EOF
#define NEW_PROC_API 1
#define NEW_PROC_API 1
EOF
EOF
      ;;
      ;;
  esac
  esac
fi
fi
if test "$ac_cv_header_sys_procfs_h" = yes; then
if test "$ac_cv_header_sys_procfs_h" = yes; then
  echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
  echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
echo "configure:4289: checking for pstatus_t in sys/procfs.h" >&5
echo "configure:4289: checking for pstatus_t in sys/procfs.h" >&5
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4294 "configure"
#line 4294 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
pstatus_t avar
pstatus_t avar
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_pstatus_t=yes
  bfd_cv_have_sys_procfs_type_pstatus_t=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_pstatus_t=no
  bfd_cv_have_sys_procfs_type_pstatus_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define HAVE_PSTATUS_T 1
#define HAVE_PSTATUS_T 1
EOF
EOF
 fi
 fi
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
  echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
  echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
echo "configure:4323: checking for prrun_t in sys/procfs.h" >&5
echo "configure:4323: checking for prrun_t in sys/procfs.h" >&5
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4328 "configure"
#line 4328 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
prrun_t avar
prrun_t avar
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_prrun_t=yes
  bfd_cv_have_sys_procfs_type_prrun_t=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_prrun_t=no
  bfd_cv_have_sys_procfs_type_prrun_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define HAVE_PRRUN_T 1
#define HAVE_PRRUN_T 1
EOF
EOF
 fi
 fi
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
  echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
  echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
echo "configure:4357: checking for gregset_t in sys/procfs.h" >&5
echo "configure:4357: checking for gregset_t in sys/procfs.h" >&5
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4362 "configure"
#line 4362 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
gregset_t avar
gregset_t avar
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_gregset_t=yes
  bfd_cv_have_sys_procfs_type_gregset_t=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_gregset_t=no
  bfd_cv_have_sys_procfs_type_gregset_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define HAVE_GREGSET_T 1
#define HAVE_GREGSET_T 1
EOF
EOF
 fi
 fi
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
  echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
  echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
echo "configure:4391: checking for fpregset_t in sys/procfs.h" >&5
echo "configure:4391: checking for fpregset_t in sys/procfs.h" >&5
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4396 "configure"
#line 4396 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
fpregset_t avar
fpregset_t avar
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_fpregset_t=yes
  bfd_cv_have_sys_procfs_type_fpregset_t=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_fpregset_t=no
  bfd_cv_have_sys_procfs_type_fpregset_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define HAVE_FPREGSET_T 1
#define HAVE_FPREGSET_T 1
EOF
EOF
 fi
 fi
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
  echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
  echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
echo "configure:4425: checking for prgregset_t in sys/procfs.h" >&5
echo "configure:4425: checking for prgregset_t in sys/procfs.h" >&5
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4430 "configure"
#line 4430 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
prgregset_t avar
prgregset_t avar
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_prgregset_t=yes
  bfd_cv_have_sys_procfs_type_prgregset_t=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_prgregset_t=no
  bfd_cv_have_sys_procfs_type_prgregset_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define HAVE_PRGREGSET_T 1
#define HAVE_PRGREGSET_T 1
EOF
EOF
 fi
 fi
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
  echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
  echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
echo "configure:4459: checking for prfpregset_t in sys/procfs.h" >&5
echo "configure:4459: checking for prfpregset_t in sys/procfs.h" >&5
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4464 "configure"
#line 4464 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
prfpregset_t avar
prfpregset_t avar
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_prfpregset_t=yes
  bfd_cv_have_sys_procfs_type_prfpregset_t=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_prfpregset_t=no
  bfd_cv_have_sys_procfs_type_prfpregset_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define HAVE_PRFPREGSET_T 1
#define HAVE_PRFPREGSET_T 1
EOF
EOF
 fi
 fi
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
  echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
  echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
echo "configure:4493: checking for lwpid_t in sys/procfs.h" >&5
echo "configure:4493: checking for lwpid_t in sys/procfs.h" >&5
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4498 "configure"
#line 4498 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
lwpid_t avar
lwpid_t avar
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_lwpid_t=yes
  bfd_cv_have_sys_procfs_type_lwpid_t=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_lwpid_t=no
  bfd_cv_have_sys_procfs_type_lwpid_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define HAVE_LWPID_T 1
#define HAVE_LWPID_T 1
EOF
EOF
 fi
 fi
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
  echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
  echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
echo "configure:4527: checking for psaddr_t in sys/procfs.h" >&5
echo "configure:4527: checking for psaddr_t in sys/procfs.h" >&5
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4532 "configure"
#line 4532 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
int main() {
int main() {
psaddr_t avar
psaddr_t avar
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_psaddr_t=yes
  bfd_cv_have_sys_procfs_type_psaddr_t=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  bfd_cv_have_sys_procfs_type_psaddr_t=no
  bfd_cv_have_sys_procfs_type_psaddr_t=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define HAVE_PSADDR_T 1
#define HAVE_PSADDR_T 1
EOF
EOF
 fi
 fi
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
    echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
    echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
echo "configure:4565: checking whether prfpregset_t type is broken" >&5
echo "configure:4565: checking whether prfpregset_t type is broken" >&5
    if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
    if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test "$cross_compiling" = yes; then
  if test "$cross_compiling" = yes; then
  gdb_cv_prfpregset_t_broken=yes
  gdb_cv_prfpregset_t_broken=yes
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4573 "configure"
#line 4573 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
       int main ()
       int main ()
       {
       {
         if (sizeof (prfpregset_t) == sizeof (void *))
         if (sizeof (prfpregset_t) == sizeof (void *))
           return 1;
           return 1;
         return 0;
         return 0;
       }
       }
EOF
EOF
if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  gdb_cv_prfpregset_t_broken=no
  gdb_cv_prfpregset_t_broken=no
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  gdb_cv_prfpregset_t_broken=yes
  gdb_cv_prfpregset_t_broken=yes
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
    echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
    echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
    if test $gdb_cv_prfpregset_t_broken = yes; then
    if test $gdb_cv_prfpregset_t_broken = yes; then
      cat >> confdefs.h <<\EOF
      cat >> confdefs.h <<\EOF
#define PRFPREGSET_T_BROKEN 1
#define PRFPREGSET_T_BROKEN 1
EOF
EOF
    fi
    fi
  fi
  fi
  echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
  echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
echo "configure:4608: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
echo "configure:4608: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
  if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
  if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4613 "configure"
#line 4613 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#include 
#include 
#include 
#include 
int main() {
int main() {
    int dummy;;
    int dummy;;
    dummy = ioctl(0, PIOCSET, &dummy);
    dummy = ioctl(0, PIOCSET, &dummy);
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_have_procfs_piocset=yes
  gdb_cv_have_procfs_piocset=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_have_procfs_piocset=no
  gdb_cv_have_procfs_piocset=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
  echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
  echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
  if test $gdb_cv_have_procfs_piocset = yes; then
  if test $gdb_cv_have_procfs_piocset = yes; then
    cat >> confdefs.h <<\EOF
    cat >> confdefs.h <<\EOF
#define HAVE_PROCFS_PIOCSET 1
#define HAVE_PROCFS_PIOCSET 1
EOF
EOF
  fi
  fi
fi
fi
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
echo "configure:4648: checking for main in -lm" >&5
echo "configure:4648: checking for main in -lm" >&5
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lm  $LIBS"
LIBS="-lm  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 4656 "configure"
#line 4656 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
main()
main()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_lib 1
#define $ac_tr_lib 1
EOF
EOF
  LIBS="-lm $LIBS"
  LIBS="-lm $LIBS"
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
echo "configure:4692: checking for wctype in -lc" >&5
echo "configure:4692: checking for wctype in -lc" >&5
ac_lib_var=`echo c'_'wctype | sed 'y%./+-%__p_%'`
ac_lib_var=`echo c'_'wctype | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lc  $LIBS"
LIBS="-lc  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 4700 "configure"
#line 4700 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char wctype();
char wctype();
int main() {
int main() {
wctype()
wctype()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  :
  :
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
echo "configure:4730: checking for wctype in -lw" >&5
echo "configure:4730: checking for wctype in -lw" >&5
ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lw  $LIBS"
LIBS="-lw  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 4738 "configure"
#line 4738 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char wctype();
char wctype();
int main() {
int main() {
wctype()
wctype()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
    ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_lib 1
#define $ac_tr_lib 1
EOF
EOF
  LIBS="-lw $LIBS"
  LIBS="-lw $LIBS"
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
fi
fi
echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
echo "configure:4781: checking for long long support in compiler" >&5
echo "configure:4781: checking for long long support in compiler" >&5
if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4786 "configure"
#line 4786 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
  extern long long foo;
  extern long long foo;
  switch (foo & 2) { case 0: return 1; }
  switch (foo & 2) { case 0: return 1; }
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_c_long_long=yes
  gdb_cv_c_long_long=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_c_long_long=no
  gdb_cv_c_long_long=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$gdb_cv_c_long_long" 1>&6
echo "$ac_t""$gdb_cv_c_long_long" 1>&6
if test $gdb_cv_c_long_long = yes; then
if test $gdb_cv_c_long_long = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define CC_HAS_LONG_LONG 1
#define CC_HAS_LONG_LONG 1
EOF
EOF
fi
fi
echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
echo "configure:4818: checking for long long support in printf" >&5
echo "configure:4818: checking for long long support in printf" >&5
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test "$cross_compiling" = yes; then
  if test "$cross_compiling" = yes; then
  gdb_cv_printf_has_long_long=no
  gdb_cv_printf_has_long_long=no
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4826 "configure"
#line 4826 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main () {
int main () {
  char buf[32];
  char buf[32];
  long long l = 0;
  long long l = 0;
  l = (l << 16) + 0x0123;
  l = (l << 16) + 0x0123;
  l = (l << 16) + 0x4567;
  l = (l << 16) + 0x4567;
  l = (l << 16) + 0x89ab;
  l = (l << 16) + 0x89ab;
  l = (l << 16) + 0xcdef;
  l = (l << 16) + 0xcdef;
  sprintf (buf, "0x%016llx", l);
  sprintf (buf, "0x%016llx", l);
  return (strcmp ("0x0123456789abcdef", buf));
  return (strcmp ("0x0123456789abcdef", buf));
}
}
EOF
EOF
if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  gdb_cv_printf_has_long_long=yes
  gdb_cv_printf_has_long_long=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  gdb_cv_printf_has_long_long=no
  gdb_cv_printf_has_long_long=no
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
if test $gdb_cv_printf_has_long_long = yes; then
if test $gdb_cv_printf_has_long_long = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define PRINTF_HAS_LONG_LONG 1
#define PRINTF_HAS_LONG_LONG 1
EOF
EOF
fi
fi
echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
echo "configure:4864: checking for long double support in compiler" >&5
echo "configure:4864: checking for long double support in compiler" >&5
if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4869 "configure"
#line 4869 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
long double foo;
long double foo;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_c_long_double=yes
  ac_cv_c_long_double=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_c_long_double=no
  ac_cv_c_long_double=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_c_long_double" 1>&6
echo "$ac_t""$ac_cv_c_long_double" 1>&6
if test $ac_cv_c_long_double = yes; then
if test $ac_cv_c_long_double = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_LONG_DOUBLE 1
#define HAVE_LONG_DOUBLE 1
EOF
EOF
fi
fi
echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
echo "configure:4898: checking for long double support in printf" >&5
echo "configure:4898: checking for long double support in printf" >&5
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test "$cross_compiling" = yes; then
  if test "$cross_compiling" = yes; then
  gdb_cv_printf_has_long_double=no
  gdb_cv_printf_has_long_double=no
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4906 "configure"
#line 4906 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main () {
int main () {
  char buf[16];
  char buf[16];
  long double f = 3.141592653;
  long double f = 3.141592653;
  sprintf (buf, "%Lg", f);
  sprintf (buf, "%Lg", f);
  return (strncmp ("3.14159", buf, 7));
  return (strncmp ("3.14159", buf, 7));
}
}
EOF
EOF
if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  gdb_cv_printf_has_long_double=yes
  gdb_cv_printf_has_long_double=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  gdb_cv_printf_has_long_double=no
  gdb_cv_printf_has_long_double=no
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
if test $gdb_cv_printf_has_long_double = yes; then
if test $gdb_cv_printf_has_long_double = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define PRINTF_HAS_LONG_DOUBLE 1
#define PRINTF_HAS_LONG_DOUBLE 1
EOF
EOF
fi
fi
echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
echo "configure:4940: checking for long double support in scanf" >&5
echo "configure:4940: checking for long double support in scanf" >&5
if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test "$cross_compiling" = yes; then
  if test "$cross_compiling" = yes; then
  gdb_cv_scanf_has_long_double=no
  gdb_cv_scanf_has_long_double=no
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4948 "configure"
#line 4948 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main () {
int main () {
  char *buf = "3.141592653";
  char *buf = "3.141592653";
  long double f = 0;
  long double f = 0;
  sscanf (buf, "%Lg", &f);
  sscanf (buf, "%Lg", &f);
  return !(f > 3.14159 && f < 3.14160);
  return !(f > 3.14159 && f < 3.14160);
}
}
EOF
EOF
if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  gdb_cv_scanf_has_long_double=yes
  gdb_cv_scanf_has_long_double=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  gdb_cv_scanf_has_long_double=no
  gdb_cv_scanf_has_long_double=no
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
if test $gdb_cv_scanf_has_long_double = yes; then
if test $gdb_cv_scanf_has_long_double = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define SCANF_HAS_LONG_DOUBLE 1
#define SCANF_HAS_LONG_DOUBLE 1
EOF
EOF
fi
fi
echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
for ac_hdr in unistd.h
for ac_hdr in unistd.h
do
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4984: checking for $ac_hdr" >&5
echo "configure:4984: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 4989 "configure"
#line 4989 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <$ac_hdr>
#include <$ac_hdr>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:4994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
  eval "ac_cv_header_$ac_safe=yes"
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
  eval "ac_cv_header_$ac_safe=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_hdr 1
#define $ac_tr_hdr 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
for ac_func in getpagesize
for ac_func in getpagesize
do
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5023: checking for $ac_func" >&5
echo "configure:5023: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 5028 "configure"
#line 5028 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
#include 
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char $ac_func();
char $ac_func();
int main() {
int main() {
/* The GNU C library defines this for functions which it implements
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
choke me
#else
#else
$ac_func();
$ac_func();
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
  eval "ac_cv_func_$ac_func=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_func 1
#define $ac_tr_func 1
EOF
EOF
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
done
done
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
echo "configure:5076: checking for working mmap" >&5
echo "configure:5076: checking for working mmap" >&5
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test "$cross_compiling" = yes; then
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
  ac_cv_func_mmap_fixed_mapped=no
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 5084 "configure"
#line 5084 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Thanks to Mike Haertel and Jim Avera for this test.
/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
   Here is a matrix of mmap possibilities:
        mmap private not fixed
        mmap private not fixed
        mmap private fixed at somewhere currently unmapped
        mmap private fixed at somewhere currently unmapped
        mmap private fixed at somewhere already mapped
        mmap private fixed at somewhere already mapped
        mmap shared not fixed
        mmap shared not fixed
        mmap shared fixed at somewhere currently unmapped
        mmap shared fixed at somewhere currently unmapped
        mmap shared fixed at somewhere already mapped
        mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the filesystem buffer cache
   VM page cache was not coherent with the filesystem buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   For shared mappings, we should conversely verify that changes get
   propogated back to all the places they're supposed to be.
   propogated back to all the places they're supposed to be.
   Grep wants private fixed already mapped.
   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */
   * how to use it (BSD variants)  */
#include 
#include 
#include 
#include 
#include 
#include 
/* This mess was copied from the GNU getpagesize.h.  */
/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
#ifndef HAVE_GETPAGESIZE
# ifdef HAVE_UNISTD_H
# ifdef HAVE_UNISTD_H
#  include 
#  include 
# endif
# endif
/* Assume that all systems that can run configure have sys/param.h.  */
/* Assume that all systems that can run configure have sys/param.h.  */
# ifndef HAVE_SYS_PARAM_H
# ifndef HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
#  define HAVE_SYS_PARAM_H 1
# endif
# endif
# ifdef _SC_PAGESIZE
# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#  ifdef HAVE_SYS_PARAM_H
#   include 
#   include 
#   ifdef EXEC_PAGESIZE
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#      define CLSIZE 1
#     endif /* no CLSIZE */
#     endif /* no CLSIZE */
#    else /* no NBPG */
#    else /* no NBPG */
#     ifdef NBPC
#     ifdef NBPC
#      define getpagesize() NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#     else /* no NBPC */
#      ifdef PAGESIZE
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#     endif /* no NBPC */
#    endif /* no NBPG */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192   /* punt totally */
#   define getpagesize() 8192   /* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */
# endif /* no _SC_PAGESIZE */
#endif /* no HAVE_GETPAGESIZE */
#endif /* no HAVE_GETPAGESIZE */
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
extern "C" { void *malloc(unsigned); }
#else
#else
char *malloc();
char *malloc();
#endif
#endif
int
int
main()
main()
{
{
        char *data, *data2, *data3;
        char *data, *data2, *data3;
        int i, pagesize;
        int i, pagesize;
        int fd;
        int fd;
        pagesize = getpagesize();
        pagesize = getpagesize();
        /*
        /*
         * First, make a file with some known garbage in it.
         * First, make a file with some known garbage in it.
         */
         */
        data = malloc(pagesize);
        data = malloc(pagesize);
        if (!data)
        if (!data)
                exit(1);
                exit(1);
        for (i = 0; i < pagesize; ++i)
        for (i = 0; i < pagesize; ++i)
                *(data + i) = rand();
                *(data + i) = rand();
        umask(0);
        umask(0);
        fd = creat("conftestmmap", 0600);
        fd = creat("conftestmmap", 0600);
        if (fd < 0)
        if (fd < 0)
                exit(1);
                exit(1);
        if (write(fd, data, pagesize) != pagesize)
        if (write(fd, data, pagesize) != pagesize)
                exit(1);
                exit(1);
        close(fd);
        close(fd);
        /*
        /*
         * Next, try to mmap the file at a fixed address which
         * Next, try to mmap the file at a fixed address which
         * already has something else allocated at it.  If we can,
         * already has something else allocated at it.  If we can,
         * also make sure that we see the same garbage.
         * also make sure that we see the same garbage.
         */
         */
        fd = open("conftestmmap", O_RDWR);
        fd = open("conftestmmap", O_RDWR);
        if (fd < 0)
        if (fd < 0)
                exit(1);
                exit(1);
        data2 = malloc(2 * pagesize);
        data2 = malloc(2 * pagesize);
        if (!data2)
        if (!data2)
                exit(1);
                exit(1);
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
                exit(1);
                exit(1);
        for (i = 0; i < pagesize; ++i)
        for (i = 0; i < pagesize; ++i)
                if (*(data + i) != *(data2 + i))
                if (*(data + i) != *(data2 + i))
                        exit(1);
                        exit(1);
        /*
        /*
         * Finally, make sure that changes to the mapped area
         * Finally, make sure that changes to the mapped area
         * do not percolate back to the file as seen by read().
         * do not percolate back to the file as seen by read().
         * (This is a bug on some variants of i386 svr4.0.)
         * (This is a bug on some variants of i386 svr4.0.)
         */
         */
        for (i = 0; i < pagesize; ++i)
        for (i = 0; i < pagesize; ++i)
                *(data2 + i) = *(data2 + i) + 1;
                *(data2 + i) = *(data2 + i) + 1;
        data3 = malloc(pagesize);
        data3 = malloc(pagesize);
        if (!data3)
        if (!data3)
                exit(1);
                exit(1);
        if (read(fd, data3, pagesize) != pagesize)
        if (read(fd, data3, pagesize) != pagesize)
                exit(1);
                exit(1);
        for (i = 0; i < pagesize; ++i)
        for (i = 0; i < pagesize; ++i)
                if (*(data + i) != *(data3 + i))
                if (*(data + i) != *(data3 + i))
                        exit(1);
                        exit(1);
        close(fd);
        close(fd);
        unlink("conftestmmap");
        unlink("conftestmmap");
        exit(0);
        exit(0);
}
}
EOF
EOF
if { (eval echo configure:5224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:5224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  ac_cv_func_mmap_fixed_mapped=yes
  ac_cv_func_mmap_fixed_mapped=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  rm -fr conftest*
  ac_cv_func_mmap_fixed_mapped=no
  ac_cv_func_mmap_fixed_mapped=no
fi
fi
rm -fr conftest*
rm -fr conftest*
fi
fi
fi
fi
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
if test $ac_cv_func_mmap_fixed_mapped = yes; then
  cat >> confdefs.h <<\EOF
  cat >> confdefs.h <<\EOF
#define HAVE_MMAP 1
#define HAVE_MMAP 1
EOF
EOF
fi
fi
if test ${build} = ${host} -a ${host} = ${target} ; then
if test ${build} = ${host} -a ${host} = ${target} ; then
   case ${host_os} in
   case ${host_os} in
   hpux*)
   hpux*)
      echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
      echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
echo "configure:5253: checking for HPUX/OSF thread support" >&5
echo "configure:5253: checking for HPUX/OSF thread support" >&5
      if test -f /usr/include/dce/cma_config.h ; then
      if test -f /usr/include/dce/cma_config.h ; then
         if test "$GCC" = "yes" ; then
         if test "$GCC" = "yes" ; then
            echo "$ac_t""yes" 1>&6
            echo "$ac_t""yes" 1>&6
            cat >> confdefs.h <<\EOF
            cat >> confdefs.h <<\EOF
#define HAVE_HPUX_THREAD_SUPPORT 1
#define HAVE_HPUX_THREAD_SUPPORT 1
EOF
EOF
            CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
            CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
            CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
            CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
         else
         else
            echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
            echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
         fi
         fi
      else
      else
         echo "$ac_t""no" 1>&6
         echo "$ac_t""no" 1>&6
      fi
      fi
      ;;
      ;;
   solaris*)
   solaris*)
      echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
      echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
echo "configure:5272: checking for Solaris thread debugging library" >&5
echo "configure:5272: checking for Solaris thread debugging library" >&5
      if test -f /usr/lib/libthread_db.so.1 ; then
      if test -f /usr/lib/libthread_db.so.1 ; then
         echo "$ac_t""yes" 1>&6
         echo "$ac_t""yes" 1>&6
         cat >> confdefs.h <<\EOF
         cat >> confdefs.h <<\EOF
#define HAVE_THREAD_DB_LIB 1
#define HAVE_THREAD_DB_LIB 1
EOF
EOF
         CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
         CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
         CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
         CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
         echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
         echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
echo "configure:5282: checking for dlopen in -ldl" >&5
echo "configure:5282: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-ldl  $LIBS"
LIBS="-ldl  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 5290 "configure"
#line 5290 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char dlopen();
char dlopen();
int main() {
int main() {
dlopen()
dlopen()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <
  cat >> confdefs.h <
#define $ac_tr_lib 1
#define $ac_tr_lib 1
EOF
EOF
  LIBS="-ldl $LIBS"
  LIBS="-ldl $LIBS"
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
         if test "$GCC" = "yes" ; then
         if test "$GCC" = "yes" ; then
            # The GNU linker requires the -export-dynamic option to make
            # The GNU linker requires the -export-dynamic option to make
            # all symbols visible in the dynamic symbol table.
            # all symbols visible in the dynamic symbol table.
            hold_ldflags=$LDFLAGS
            hold_ldflags=$LDFLAGS
            echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
            echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
echo "configure:5333: checking for the ld -export-dynamic flag" >&5
echo "configure:5333: checking for the ld -export-dynamic flag" >&5
            LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
            LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
            cat > conftest.$ac_ext <
            cat > conftest.$ac_ext <
#line 5336 "configure"
#line 5336 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
int i;
int i;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  found=yes
  found=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  found=no
  found=no
fi
fi
rm -f conftest*
rm -f conftest*
            LDFLAGS=$hold_ldflags
            LDFLAGS=$hold_ldflags
            echo "$ac_t""$found" 1>&6
            echo "$ac_t""$found" 1>&6
            if test $found = yes; then
            if test $found = yes; then
               CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
               CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
            fi
            fi
         fi
         fi
         # Sun randomly tweaked the prototypes in 
         # Sun randomly tweaked the prototypes in 
         # at one point.
         # at one point.
         echo $ac_n "checking if  is old""... $ac_c" 1>&6
         echo $ac_n "checking if  is old""... $ac_c" 1>&6
echo "configure:5362: checking if  is old" >&5
echo "configure:5362: checking if  is old" >&5
         if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
         if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
            cat > conftest.$ac_ext <
            cat > conftest.$ac_ext <
#line 5368 "configure"
#line 5368 "configure"
#include "confdefs.h"
#include "confdefs.h"
                #include 
                #include 
                ps_err_e ps_pdwrite
                ps_err_e ps_pdwrite
                    (struct ps_prochandle*, psaddr_t, const void*, size_t);
                    (struct ps_prochandle*, psaddr_t, const void*, size_t);
int main() {
int main() {
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_proc_service_is_old=no
  gdb_cv_proc_service_is_old=no
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_proc_service_is_old=yes
  gdb_cv_proc_service_is_old=yes
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
         echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
         echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
         if test $gdb_cv_proc_service_is_old = yes; then
         if test $gdb_cv_proc_service_is_old = yes; then
            cat >> confdefs.h <<\EOF
            cat >> confdefs.h <<\EOF
#define PROC_SERVICE_IS_OLD 1
#define PROC_SERVICE_IS_OLD 1
EOF
EOF
         fi
         fi
      else
      else
         echo "$ac_t""no" 1>&6
         echo "$ac_t""no" 1>&6
      fi
      fi
      ;;
      ;;
   esac
   esac
fi
fi
# Check whether --enable-gdbmi or --disable-gdbmi was given.
# Check whether --enable-gdbmi or --disable-gdbmi was given.
if test "${enable_gdbmi+set}" = set; then
if test "${enable_gdbmi+set}" = set; then
  enableval="$enable_gdbmi"
  enableval="$enable_gdbmi"
  case "${enable_gdbmi}" in
  case "${enable_gdbmi}" in
    yes | no) ;;
    yes | no) ;;
    "")  enable_gdbmi=yes ;;
    "")  enable_gdbmi=yes ;;
    *)
    *)
      { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
      { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
    ;;
    ;;
  esac
  esac
fi
fi
case ${enable_gdbmi} in
case ${enable_gdbmi} in
  "yes" )
  "yes" )
    if test -d "${srcdir}/mi" ; then
    if test -d "${srcdir}/mi" ; then
      CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
      CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
      CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
      CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
      CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
      CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
      CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
      CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
      ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
      ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
      CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
      CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
      CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
      CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
      CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
      CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
      CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
      CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
    fi
    fi
    ;;
    ;;
esac
esac
# Check whether --enable-tui or --disable-tui was given.
# Check whether --enable-tui or --disable-tui was given.
if test "${enable_tui+set}" = set; then
if test "${enable_tui+set}" = set; then
  enableval="$enable_tui"
  enableval="$enable_tui"
  case "${enable_tui}" in
  case "${enable_tui}" in
    yes | no) ;;
    yes | no) ;;
    "")  enable_tui=yes ;;
    "")  enable_tui=yes ;;
    *)
    *)
      { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
      { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
    ;;
    ;;
  esac
  esac
fi
fi
case ${enable_tui} in
case ${enable_tui} in
  "yes" )
  "yes" )
    cat >> confdefs.h <<\EOF
    cat >> confdefs.h <<\EOF
#define TUI 1
#define TUI 1
EOF
EOF
    BUILD_TUI=all-tui
    BUILD_TUI=all-tui
    TUI_LIBRARY=tui/libtui.a
    TUI_LIBRARY=tui/libtui.a
  ;;
  ;;
  * )
  * )
    BUILD_TUI=
    BUILD_TUI=
    TUI_LIBRARY=
    TUI_LIBRARY=
  ;;
  ;;
esac
esac
# Check whether --enable-netrom or --disable-netrom was given.
# Check whether --enable-netrom or --disable-netrom was given.
if test "${enable_netrom+set}" = set; then
if test "${enable_netrom+set}" = set; then
  enableval="$enable_netrom"
  enableval="$enable_netrom"
  case "${enableval}" in
  case "${enableval}" in
yes)    enable_netrom=yes ;;
yes)    enable_netrom=yes ;;
no)     enable_netrom=no ;;
no)     enable_netrom=no ;;
*)      { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
*)      { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
esac
esac
fi
fi
if test "${enable_netrom}" = "yes"; then
if test "${enable_netrom}" = "yes"; then
        CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
        CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
        CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
        CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
fi
fi
default_build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
default_build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
-Wformat -Wparentheses -Wpointer-arith"
-Wformat -Wparentheses -Wpointer-arith"
build_warnings=""
build_warnings=""
# Not yet: -Wall -Wpointer-arith -Wstrict-prototypes
# Not yet: -Wall -Wpointer-arith -Wstrict-prototypes
# -Wmissing-prototypes -Wmissing-declarations
# -Wmissing-prototypes -Wmissing-declarations
# Check whether --enable-build-warnings or --disable-build-warnings was given.
# Check whether --enable-build-warnings or --disable-build-warnings was given.
if test "${enable_build_warnings+set}" = set; then
if test "${enable_build_warnings+set}" = set; then
  enableval="$enable_build_warnings"
  enableval="$enable_build_warnings"
  case "${enableval}" in
  case "${enableval}" in
  yes)  ;;
  yes)  ;;
  no)   build_warnings="-w";;
  no)   build_warnings="-w";;
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
        build_warnings="${default_build_warnings} ${t}";;
        build_warnings="${default_build_warnings} ${t}";;
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
        build_warnings="${t} ${default_build_warnings}";;
        build_warnings="${t} ${default_build_warnings}";;
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
esac
esac
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  echo "Setting warning flags = $build_warnings" 6>&1
  echo "Setting warning flags = $build_warnings" 6>&1
fi
fi
fi
fi
WARN_CFLAGS=""
WARN_CFLAGS=""
WERROR_CFLAGS=""
WERROR_CFLAGS=""
if test "x${build_warnings}" != x -a "x$GCC" = xyes
if test "x${build_warnings}" != x -a "x$GCC" = xyes
then
then
  # Separate out the -Werror flag as some files just cannot be
  # Separate out the -Werror flag as some files just cannot be
  # compiled with it enabled.
  # compiled with it enabled.
  for w in ${build_warnings}; do
  for w in ${build_warnings}; do
    case $w in
    case $w in
    -Werr*) WERROR_CFLAGS=-Werror ;;
    -Werr*) WERROR_CFLAGS=-Werror ;;
    *) WARN_CFLAGS="${WARN_CFLAGS} $w"
    *) WARN_CFLAGS="${WARN_CFLAGS} $w"
    esac
    esac
  done
  done
fi
fi
MMALLOC_CFLAGS=
MMALLOC_CFLAGS=
MMALLOC=
MMALLOC=
# Check whether --with-mmalloc or --without-mmalloc was given.
# Check whether --with-mmalloc or --without-mmalloc was given.
if test "${with_mmalloc+set}" = set; then
if test "${with_mmalloc+set}" = set; then
  withval="$with_mmalloc"
  withval="$with_mmalloc"
  case "${withval}" in
  case "${withval}" in
  yes)  want_mmalloc=true ;;
  yes)  want_mmalloc=true ;;
  no)   want_mmalloc=false;;
  no)   want_mmalloc=false;;
  *)    { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
  *)    { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
esac
esac
else
else
  want_mmalloc=false
  want_mmalloc=false
fi
fi
if test x$want_mmalloc = xtrue; then
if test x$want_mmalloc = xtrue; then
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define USE_MMALLOC 1
#define USE_MMALLOC 1
EOF
EOF
   cat >> confdefs.h <<\EOF
   cat >> confdefs.h <<\EOF
#define MMCHECK_FORCE 1
#define MMCHECK_FORCE 1
EOF
EOF
   MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
   MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
   MMALLOC='../mmalloc/libmmalloc.a'
   MMALLOC='../mmalloc/libmmalloc.a'
fi
fi
# Check whether --with-included-regex or --without-included-regex was given.
# Check whether --with-included-regex or --without-included-regex was given.
if test "${with_included_regex+set}" = set; then
if test "${with_included_regex+set}" = set; then
  withval="$with_included_regex"
  withval="$with_included_regex"
  case "${withval}" in
  case "${withval}" in
  yes)  want_included_regex=true ;;
  yes)  want_included_regex=true ;;
  no)   want_included_regex=false;;
  no)   want_included_regex=false;;
  *)    { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
  *)    { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
esac
esac
else
else
  want_included_regex=true
  want_included_regex=true
fi
fi
REGEX="gnu-regex.o"
REGEX="gnu-regex.o"
REGEX_CFLAGS="-DUSE_INCLUDED_REGEX"
REGEX_CFLAGS="-DUSE_INCLUDED_REGEX"
if test $want_included_regex = false; then
if test $want_included_regex = false; then
  echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
  echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
echo "configure:5569: checking for GNU regex" >&5
echo "configure:5569: checking for GNU regex" >&5
  if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
  if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 5574 "configure"
#line 5574 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
#include 
#include 
#include 
#include 
int main() {
int main() {
#if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
#if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
#error No valid GNU regex.
#error No valid GNU regex.
#endif
#endif
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_have_gnu_regex=yes
  gdb_cv_have_gnu_regex=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_have_gnu_regex=no
  gdb_cv_have_gnu_regex=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
  echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
  echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
  if test $gdb_cv_have_gnu_regex = yes; then
  if test $gdb_cv_have_gnu_regex = yes; then
    REGEX=
    REGEX=
    REGEX_CFLAGS=
    REGEX_CFLAGS=
  fi
  fi
fi
fi
# In the Cygwin environment, we need some additional flags.
# In the Cygwin environment, we need some additional flags.
echo $ac_n "checking for cygwin""... $ac_c" 1>&6
echo $ac_n "checking for cygwin""... $ac_c" 1>&6
echo "configure:5609: checking for cygwin" >&5
echo "configure:5609: checking for cygwin" >&5
if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 5614 "configure"
#line 5614 "configure"
#include "confdefs.h"
#include "confdefs.h"
#if defined (__CYGWIN__) || defined (__CYGWIN32__)
#if defined (__CYGWIN__) || defined (__CYGWIN32__)
lose
lose
#endif
#endif
EOF
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "lose" >/dev/null 2>&1; then
  egrep "lose" >/dev/null 2>&1; then
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_os_cygwin=yes
  gdb_cv_os_cygwin=yes
else
else
  rm -rf conftest*
  rm -rf conftest*
  gdb_cv_os_cygwin=no
  gdb_cv_os_cygwin=no
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
DLLTOOL=${DLLTOOL-dlltool}
DLLTOOL=${DLLTOOL-dlltool}
WINDRES=${WINDRES-windres}
WINDRES=${WINDRES-windres}
if test x$gdb_host = xgo32; then
if test x$gdb_host = xgo32; then
  TERM_LIB=
  TERM_LIB=
else
else
if test x$gdb_cv_os_cygwin = xyes; then
if test x$gdb_cv_os_cygwin = xyes; then
  TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
  TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
else
else
  TERM_LIB=
  TERM_LIB=
  echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
  echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
echo "configure:5648: checking for tgetent in -lncurses" >&5
echo "configure:5648: checking for tgetent in -lncurses" >&5
ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lncurses  $LIBS"
LIBS="-lncurses  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 5656 "configure"
#line 5656 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char tgetent();
char tgetent();
int main() {
int main() {
tgetent()
tgetent()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  TERM_LIB=-lncurses
  TERM_LIB=-lncurses
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
echo "configure:5686: checking for tgetent in -lHcurses" >&5
echo "configure:5686: checking for tgetent in -lHcurses" >&5
ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lHcurses  $LIBS"
LIBS="-lHcurses  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 5694 "configure"
#line 5694 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char tgetent();
char tgetent();
int main() {
int main() {
tgetent()
tgetent()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  TERM_LIB=-lHcurses
  TERM_LIB=-lHcurses
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
echo "configure:5724: checking for tgetent in -ltermlib" >&5
echo "configure:5724: checking for tgetent in -ltermlib" >&5
ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-ltermlib  $LIBS"
LIBS="-ltermlib  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 5732 "configure"
#line 5732 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char tgetent();
char tgetent();
int main() {
int main() {
tgetent()
tgetent()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  TERM_LIB=-ltermlib
  TERM_LIB=-ltermlib
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
echo "configure:5762: checking for tgetent in -ltermcap" >&5
echo "configure:5762: checking for tgetent in -ltermcap" >&5
ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-ltermcap  $LIBS"
LIBS="-ltermcap  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 5770 "configure"
#line 5770 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char tgetent();
char tgetent();
int main() {
int main() {
tgetent()
tgetent()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  TERM_LIB=-ltermcap
  TERM_LIB=-ltermcap
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
echo "configure:5800: checking for tgetent in -lcurses" >&5
echo "configure:5800: checking for tgetent in -lcurses" >&5
ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lcurses  $LIBS"
LIBS="-lcurses  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 5808 "configure"
#line 5808 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char tgetent();
char tgetent();
int main() {
int main() {
tgetent()
tgetent()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  TERM_LIB=-lcurses
  TERM_LIB=-lcurses
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
echo "configure:5838: checking for tgetent in -lterminfo" >&5
echo "configure:5838: checking for tgetent in -lterminfo" >&5
ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lterminfo  $LIBS"
LIBS="-lterminfo  $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 5846 "configure"
#line 5846 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    builtin and then its argument prototype would still apply.  */
char tgetent();
char tgetent();
int main() {
int main() {
tgetent()
tgetent()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
  eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
rm -f conftest*
rm -f conftest*
LIBS="$ac_save_LIBS"
LIBS="$ac_save_LIBS"
fi
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  TERM_LIB=-lterminfo
  TERM_LIB=-lterminfo
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
  if test "x$TERM_LIB" = x
  if test "x$TERM_LIB" = x
  then
  then
    { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
    { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
  fi
  fi
fi
fi
fi
fi
# libreadline needs libuser32.a in a cygwin environment
# libreadline needs libuser32.a in a cygwin environment
WIN32LIBS=
WIN32LIBS=
if test x$gdb_cv_os_cygwin = xyes; then
if test x$gdb_cv_os_cygwin = xyes; then
    WIN32LIBS="-luser32"
    WIN32LIBS="-luser32"
    case "${target}" in
    case "${target}" in
        *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
        *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
        ;;
        ;;
    esac
    esac
fi
fi
LIBGUI="../libgui/src/libgui.a"
LIBGUI="../libgui/src/libgui.a"
GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
# Check whether --with-cpu or --without-cpu was given.
# Check whether --with-cpu or --without-cpu was given.
if test "${with_cpu+set}" = set; then
if test "${with_cpu+set}" = set; then
  withval="$with_cpu"
  withval="$with_cpu"
  case "${target}" in
  case "${target}" in
  powerpc-* | powerpcle-* )
  powerpc-* | powerpcle-* )
    ## It would be nice to keep this table in sync with the one in
    ## It would be nice to keep this table in sync with the one in
    ## gcc/configure.
    ## gcc/configure.
    case "${with_cpu}" in
    case "${with_cpu}" in
      ppc-uisa | rs6000 | 403 | 403GC | 505 | 860 | 601 | 602 | 603 \
      ppc-uisa | rs6000 | 403 | 403GC | 505 | 860 | 601 | 602 | 603 \
      | 604 | 750 )
      | 604 | 750 )
        ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
        ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
      ;;
      ;;
      common | power | power2 | rios | rios1 | rios2 | rsc | rsc1 )
      common | power | power2 | rios | rios1 | rios2 | rsc | rsc1 )
        ## These are all RS6000 variants, as far as GDB is concerned.
        ## These are all RS6000 variants, as far as GDB is concerned.
        with_cpu=rs6000
        with_cpu=rs6000
      ;;
      ;;
      603e | ec603e )
      603e | ec603e )
        with_cpu=603
        with_cpu=603
      ;;
      ;;
      604e )
      604e )
        with_cpu=604
        with_cpu=604
      ;;
      ;;
      * )
      * )
        echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
        echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
        with_cpu=ppc-uisa
        with_cpu=ppc-uisa
      ;;
      ;;
    esac
    esac
  ;;
  ;;
  * )
  * )
    echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
    echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
  ;;
  ;;
esac
esac
cat >> confdefs.h <
cat >> confdefs.h <
#define TARGET_CPU_DEFAULT "${with_cpu}"
#define TARGET_CPU_DEFAULT "${with_cpu}"
EOF
EOF
fi
fi
# Check whether --enable-gdbtk or --disable-gdbtk was given.
# Check whether --enable-gdbtk or --disable-gdbtk was given.
if test "${enable_gdbtk+set}" = set; then
if test "${enable_gdbtk+set}" = set; then
  enableval="$enable_gdbtk"
  enableval="$enable_gdbtk"
  case "${enableval}" in
  case "${enableval}" in
    yes)
    yes)
        case "$host" in
        case "$host" in
        *go32*)
        *go32*)
            echo "configure: warning: GDB does not support GDBtk on host ${host}.  GDBtk will be disabled." 1>&2
            echo "configure: warning: GDB does not support GDBtk on host ${host}.  GDBtk will be disabled." 1>&2
            enable_gdbtk=no ;;
            enable_gdbtk=no ;;
        *windows*)
        *windows*)
            echo "configure: warning: GDB does not support GDBtk on host ${host}.  GDBtk will be disabled." 1>&2
            echo "configure: warning: GDB does not support GDBtk on host ${host}.  GDBtk will be disabled." 1>&2
            enable_gdbtk=no ;;
            enable_gdbtk=no ;;
        *)
        *)
            enable_gdbtk=yes ;;
            enable_gdbtk=yes ;;
        esac ;;
        esac ;;
    no)
    no)
        enable_gdbtk=no  ;;
        enable_gdbtk=no  ;;
    *)
    *)
        { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
        { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
esac
esac
else
else
# Default is on for everything but go32 and Cygwin
# Default is on for everything but go32 and Cygwin
case "$host" in
case "$host" in
    *go32* | *windows*)
    *go32* | *windows*)
        ;;
        ;;
    *)
    *)
        if test -d "${srcdir}/gdbtk" ; then
        if test -d "${srcdir}/gdbtk" ; then
            enable_gdbtk=yes
            enable_gdbtk=yes
        fi
        fi
        ;;
        ;;
esac
esac
fi
fi
WIN32LDAPP=
WIN32LDAPP=
configdir="unix"
configdir="unix"
GDBTKLIBS=
GDBTKLIBS=
if test "${enable_gdbtk}" = "yes"; then
if test "${enable_gdbtk}" = "yes"; then
#
#
# Ok, lets find the tcl configuration
# Ok, lets find the tcl configuration
# First, look for one uninstalled.
# First, look for one uninstalled.
# the alternative search directory is invoked by --with-tclconfig
# the alternative search directory is invoked by --with-tclconfig
#
#
if test x"${no_tcl}" = x ; then
if test x"${no_tcl}" = x ; then
  # we reset no_tcl in case something fails here
  # we reset no_tcl in case something fails here
  no_tcl=true
  no_tcl=true
  # Check whether --with-tclconfig or --without-tclconfig was given.
  # Check whether --with-tclconfig or --without-tclconfig was given.
if test "${with_tclconfig+set}" = set; then
if test "${with_tclconfig+set}" = set; then
  withval="$with_tclconfig"
  withval="$with_tclconfig"
  with_tclconfig=${withval}
  with_tclconfig=${withval}
fi
fi
  echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
  echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
echo "configure:6015: checking for Tcl configuration" >&5
echo "configure:6015: checking for Tcl configuration" >&5
  if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
  if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  # First check to see if --with-tclconfig was specified.
  # First check to see if --with-tclconfig was specified.
  if test x"${with_tclconfig}" != x ; then
  if test x"${with_tclconfig}" != x ; then
    if test -f "${with_tclconfig}/tclConfig.sh" ; then
    if test -f "${with_tclconfig}/tclConfig.sh" ; then
      ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
      ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
    else
    else
      { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
      { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
    fi
    fi
  fi
  fi
  # then check for a private Tcl installation
  # then check for a private Tcl installation
  if test x"${ac_cv_c_tclconfig}" = x ; then
  if test x"${ac_cv_c_tclconfig}" = x ; then
    for i in \
    for i in \
                ../tcl \
                ../tcl \
                `ls -dr ../tcl[7-9]* 2>/dev/null` \
                `ls -dr ../tcl[7-9]* 2>/dev/null` \
                ../../tcl \
                ../../tcl \
                `ls -dr ../../tcl[7-9]* 2>/dev/null` \
                `ls -dr ../../tcl[7-9]* 2>/dev/null` \
                ../../../tcl \
                ../../../tcl \
                `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
                `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
      if test -f "$i/${configdir}/tclConfig.sh" ; then
      if test -f "$i/${configdir}/tclConfig.sh" ; then
        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few common install locations
  # check in a few common install locations
  if test x"${ac_cv_c_tclconfig}" = x ; then
  if test x"${ac_cv_c_tclconfig}" = x ; then
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
      if test -f "$i/tclConfig.sh" ; then
      if test -f "$i/tclConfig.sh" ; then
        ac_cv_c_tclconfig=`(cd $i; pwd)`
        ac_cv_c_tclconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few other private locations
  # check in a few other private locations
  if test x"${ac_cv_c_tclconfig}" = x ; then
  if test x"${ac_cv_c_tclconfig}" = x ; then
    for i in \
    for i in \
                ${srcdir}/../tcl \
                ${srcdir}/../tcl \
                `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
                `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
      if test -f "$i/${configdir}/tclConfig.sh" ; then
      if test -f "$i/${configdir}/tclConfig.sh" ; then
        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
fi
fi
  if test x"${ac_cv_c_tclconfig}" = x ; then
  if test x"${ac_cv_c_tclconfig}" = x ; then
    TCLCONFIG="# no Tcl configs found"
    TCLCONFIG="# no Tcl configs found"
    echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
    echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
  else
  else
    no_tcl=
    no_tcl=
    TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
    TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
    echo "$ac_t""found $TCLCONFIG" 1>&6
    echo "$ac_t""found $TCLCONFIG" 1>&6
  fi
  fi
fi
fi
    if test -z "${no_tcl}"; then
    if test -z "${no_tcl}"; then
    . $TCLCONFIG
    . $TCLCONFIG
#
#
# Ok, lets find the tk configuration
# Ok, lets find the tk configuration
# First, look for one uninstalled.
# First, look for one uninstalled.
# the alternative search directory is invoked by --with-tkconfig
# the alternative search directory is invoked by --with-tkconfig
#
#
if test x"${no_tk}" = x ; then
if test x"${no_tk}" = x ; then
  # we reset no_tk in case something fails here
  # we reset no_tk in case something fails here
  no_tk=true
  no_tk=true
  # Check whether --with-tkconfig or --without-tkconfig was given.
  # Check whether --with-tkconfig or --without-tkconfig was given.
if test "${with_tkconfig+set}" = set; then
if test "${with_tkconfig+set}" = set; then
  withval="$with_tkconfig"
  withval="$with_tkconfig"
  with_tkconfig=${withval}
  with_tkconfig=${withval}
fi
fi
  echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
  echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
echo "configure:6123: checking for Tk configuration" >&5
echo "configure:6123: checking for Tk configuration" >&5
  if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
  if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  # First check to see if --with-tkconfig was specified.
  # First check to see if --with-tkconfig was specified.
  if test x"${with_tkconfig}" != x ; then
  if test x"${with_tkconfig}" != x ; then
    if test -f "${with_tkconfig}/tkConfig.sh" ; then
    if test -f "${with_tkconfig}/tkConfig.sh" ; then
      ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
      ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
    else
    else
      { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
      { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
    fi
    fi
  fi
  fi
  # then check for a private Tk library
  # then check for a private Tk library
  if test x"${ac_cv_c_tkconfig}" = x ; then
  if test x"${ac_cv_c_tkconfig}" = x ; then
    for i in \
    for i in \
                ../tk \
                ../tk \
                `ls -dr ../tk[4-9]* 2>/dev/null` \
                `ls -dr ../tk[4-9]* 2>/dev/null` \
                ../../tk \
                ../../tk \
                `ls -dr ../../tk[4-9]* 2>/dev/null` \
                `ls -dr ../../tk[4-9]* 2>/dev/null` \
                ../../../tk \
                ../../../tk \
                `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
                `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
      if test -f "$i/${configdir}/tkConfig.sh" ; then
      if test -f "$i/${configdir}/tkConfig.sh" ; then
        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few common install locations
  # check in a few common install locations
  if test x"${ac_cv_c_tkconfig}" = x ; then
  if test x"${ac_cv_c_tkconfig}" = x ; then
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
      if test -f "$i/tkConfig.sh" ; then
      if test -f "$i/tkConfig.sh" ; then
        ac_cv_c_tkconfig=`(cd $i; pwd)`
        ac_cv_c_tkconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few other private locations
  # check in a few other private locations
  if test x"${ac_cv_c_tkconfig}" = x ; then
  if test x"${ac_cv_c_tkconfig}" = x ; then
    for i in \
    for i in \
                ${srcdir}/../tk \
                ${srcdir}/../tk \
                `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
                `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
      if test -f "$i/${configdir}/tkConfig.sh" ; then
      if test -f "$i/${configdir}/tkConfig.sh" ; then
        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
fi
fi
  if test x"${ac_cv_c_tkconfig}" = x ; then
  if test x"${ac_cv_c_tkconfig}" = x ; then
    TKCONFIG="# no Tk configs found"
    TKCONFIG="# no Tk configs found"
    echo "configure: warning: Can't find Tk configuration definitions" 1>&2
    echo "configure: warning: Can't find Tk configuration definitions" 1>&2
  else
  else
    no_tk=
    no_tk=
    TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
    TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
    echo "$ac_t""found $TKCONFIG" 1>&6
    echo "$ac_t""found $TKCONFIG" 1>&6
  fi
  fi
fi
fi
        # If $no_tk is nonempty, then we can't do Tk, and there is no
        # If $no_tk is nonempty, then we can't do Tk, and there is no
        # point to doing Tcl.
        # point to doing Tcl.
        if test -z "${no_tk}"; then
        if test -z "${no_tk}"; then
    if test -f "$TKCONFIG" ; then
    if test -f "$TKCONFIG" ; then
      . $TKCONFIG
      . $TKCONFIG
    fi
    fi
#
#
# Ok, lets find the tcl source trees so we can use the headers
# Ok, lets find the tcl source trees so we can use the headers
# Warning: transition of version 9 to 10 will break this algorithm
# Warning: transition of version 9 to 10 will break this algorithm
# because 10 sorts before 9. We also look for just tcl. We have to
# because 10 sorts before 9. We also look for just tcl. We have to
# be careful that we don't match stuff like tclX by accident.
# be careful that we don't match stuff like tclX by accident.
# the alternative search directory is involked by --with-tclinclude
# the alternative search directory is involked by --with-tclinclude
#
#
no_tcl=true
no_tcl=true
echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
echo "configure:6219: checking for Tcl private headers. dir=${configdir}" >&5
echo "configure:6219: checking for Tcl private headers. dir=${configdir}" >&5
# Check whether --with-tclinclude or --without-tclinclude was given.
# Check whether --with-tclinclude or --without-tclinclude was given.
if test "${with_tclinclude+set}" = set; then
if test "${with_tclinclude+set}" = set; then
  withval="$with_tclinclude"
  withval="$with_tclinclude"
  with_tclinclude=${withval}
  with_tclinclude=${withval}
fi
fi
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
# first check to see if --with-tclinclude was specified
# first check to see if --with-tclinclude was specified
if test x"${with_tclinclude}" != x ; then
if test x"${with_tclinclude}" != x ; then
  if test -f ${with_tclinclude}/tclInt.h ; then
  if test -f ${with_tclinclude}/tclInt.h ; then
    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
  elif test -f ${with_tclinclude}/generic/tclInt.h ; then
  elif test -f ${with_tclinclude}/generic/tclInt.h ; then
    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
  else
  else
    { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
    { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
  fi
  fi
fi
fi
# next check if it came with Tcl configuration file
# next check if it came with Tcl configuration file
if test x"${ac_cv_c_tclconfig}" = x ; then
if test x"${ac_cv_c_tclconfig}" = x ; then
  if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
  if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
    ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
    ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
  fi
  fi
fi
fi
# next check in private source directory
# next check in private source directory
#
#
# since ls returns lowest version numbers first, reverse its output
# since ls returns lowest version numbers first, reverse its output
if test x"${ac_cv_c_tclh}" = x ; then
if test x"${ac_cv_c_tclh}" = x ; then
  for i in \
  for i in \
                ${srcdir}/../tcl \
                ${srcdir}/../tcl \
                `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
                `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
                ${srcdir}/../../tcl \
                ${srcdir}/../../tcl \
                `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
                `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
                ${srcdir}/../../../tcl \
                ${srcdir}/../../../tcl \
                `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
                `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
    if test -f $i/generic/tclInt.h ; then
    if test -f $i/generic/tclInt.h ; then
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
      break
      break
    fi
    fi
  done
  done
fi
fi
# finally check in a few common install locations
# finally check in a few common install locations
#
#
# since ls returns lowest version numbers first, reverse its output
# since ls returns lowest version numbers first, reverse its output
if test x"${ac_cv_c_tclh}" = x ; then
if test x"${ac_cv_c_tclh}" = x ; then
  for i in \
  for i in \
                `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
                `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
                `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
                `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
                /usr/local/src/tcl \
                /usr/local/src/tcl \
                /usr/local/lib/tcl \
                /usr/local/lib/tcl \
                ${prefix}/include ; do
                ${prefix}/include ; do
    if test -f $i/generic/tclInt.h ; then
    if test -f $i/generic/tclInt.h ; then
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
      ac_cv_c_tclh=`(cd $i/generic; pwd)`
      break
      break
    fi
    fi
  done
  done
fi
fi
# see if one is installed
# see if one is installed
if test x"${ac_cv_c_tclh}" = x ; then
if test x"${ac_cv_c_tclh}" = x ; then
   ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
   ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
echo "configure:6285: checking for tclInt.h" >&5
echo "configure:6285: checking for tclInt.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 6290 "configure"
#line 6290 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
  eval "ac_cv_header_$ac_safe=yes"
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
  eval "ac_cv_header_$ac_safe=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  ac_cv_c_tclh=installed
  ac_cv_c_tclh=installed
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
ac_cv_c_tclh=""
ac_cv_c_tclh=""
fi
fi
fi
fi
fi
fi
if test x"${ac_cv_c_tclh}" = x ; then
if test x"${ac_cv_c_tclh}" = x ; then
  TCLHDIR="# no Tcl private headers found"
  TCLHDIR="# no Tcl private headers found"
  { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
  { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
fi
fi
if test x"${ac_cv_c_tclh}" != x ; then
if test x"${ac_cv_c_tclh}" != x ; then
  no_tcl=""
  no_tcl=""
  if test x"${ac_cv_c_tclh}" = x"installed" ; then
  if test x"${ac_cv_c_tclh}" = x"installed" ; then
    echo "$ac_t""is installed" 1>&6
    echo "$ac_t""is installed" 1>&6
    TCLHDIR=""
    TCLHDIR=""
  else
  else
    echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
    echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
    # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
    # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
    TCLHDIR="-I${ac_cv_c_tclh}"
    TCLHDIR="-I${ac_cv_c_tclh}"
  fi
  fi
fi
fi
#
#
# Ok, lets find the tk source trees so we can use the headers
# Ok, lets find the tk source trees so we can use the headers
# If the directory (presumably symlink) named "tk" exists, use that one
# If the directory (presumably symlink) named "tk" exists, use that one
# in preference to any others.  Same logic is used when choosing library
# in preference to any others.  Same logic is used when choosing library
# and again with Tcl. The search order is the best place to look first, then in
# and again with Tcl. The search order is the best place to look first, then in
# decreasing significance. The loop breaks if the trigger file is found.
# decreasing significance. The loop breaks if the trigger file is found.
# Note the gross little conversion here of srcdir by cd'ing to the found
# Note the gross little conversion here of srcdir by cd'ing to the found
# directory. This converts the path from a relative to an absolute, so
# directory. This converts the path from a relative to an absolute, so
# recursive cache variables for the path will work right. We check all
# recursive cache variables for the path will work right. We check all
# the possible paths in one loop rather than many seperate loops to speed
# the possible paths in one loop rather than many seperate loops to speed
# things up.
# things up.
# the alternative search directory is involked by --with-tkinclude
# the alternative search directory is involked by --with-tkinclude
#
#
no_tk=true
no_tk=true
echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
echo "configure:6355: checking for Tk private headers" >&5
echo "configure:6355: checking for Tk private headers" >&5
# Check whether --with-tkinclude or --without-tkinclude was given.
# Check whether --with-tkinclude or --without-tkinclude was given.
if test "${with_tkinclude+set}" = set; then
if test "${with_tkinclude+set}" = set; then
  withval="$with_tkinclude"
  withval="$with_tkinclude"
  with_tkinclude=${withval}
  with_tkinclude=${withval}
fi
fi
if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
# first check to see if --with-tkinclude was specified
# first check to see if --with-tkinclude was specified
if test x"${with_tkinclude}" != x ; then
if test x"${with_tkinclude}" != x ; then
  if test -f ${with_tkinclude}/tk.h ; then
  if test -f ${with_tkinclude}/tk.h ; then
    ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
    ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
  elif test -f ${with_tkinclude}/generic/tk.h ; then
  elif test -f ${with_tkinclude}/generic/tk.h ; then
    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
  else
  else
    { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
    { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
  fi
  fi
fi
fi
# next check if it came with Tk configuration file
# next check if it came with Tk configuration file
if test x"${ac_cv_c_tkconfig}" = x ; then
if test x"${ac_cv_c_tkconfig}" = x ; then
  if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
  if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
    ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
    ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
  fi
  fi
fi
fi
# next check in private source directory
# next check in private source directory
#
#
# since ls returns lowest version numbers first, reverse its output
# since ls returns lowest version numbers first, reverse its output
if test x"${ac_cv_c_tkh}" = x ; then
if test x"${ac_cv_c_tkh}" = x ; then
  for i in \
  for i in \
                ${srcdir}/../tk \
                ${srcdir}/../tk \
                `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
                `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
                ${srcdir}/../../tk \
                ${srcdir}/../../tk \
                `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
                `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
                ${srcdir}/../../../tk \
                ${srcdir}/../../../tk \
                `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
                `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
    if test -f $i/generic/tk.h ; then
    if test -f $i/generic/tk.h ; then
      ac_cv_c_tkh=`(cd $i/generic; pwd)`
      ac_cv_c_tkh=`(cd $i/generic; pwd)`
      break
      break
    fi
    fi
  done
  done
fi
fi
# finally check in a few common install locations
# finally check in a few common install locations
#
#
# since ls returns lowest version numbers first, reverse its output
# since ls returns lowest version numbers first, reverse its output
if test x"${ac_cv_c_tkh}" = x ; then
if test x"${ac_cv_c_tkh}" = x ; then
  for i in \
  for i in \
                `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
                `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
                `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
                `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
                /usr/local/src/tk \
                /usr/local/src/tk \
                /usr/local/lib/tk \
                /usr/local/lib/tk \
                ${prefix}/include ; do
                ${prefix}/include ; do
    if test -f $i/generic/tk.h ; then
    if test -f $i/generic/tk.h ; then
      ac_cv_c_tkh=`(cd $i/generic; pwd)`
      ac_cv_c_tkh=`(cd $i/generic; pwd)`
      break
      break
    fi
    fi
  done
  done
fi
fi
# see if one is installed
# see if one is installed
if test x"${ac_cv_c_tkh}" = x ; then
if test x"${ac_cv_c_tkh}" = x ; then
   ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
   ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
echo "configure:6421: checking for tk.h" >&5
echo "configure:6421: checking for tk.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 6426 "configure"
#line 6426 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include 
#include 
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:6431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
  eval "ac_cv_header_$ac_safe=yes"
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
  eval "ac_cv_header_$ac_safe=no"
fi
fi
rm -f conftest*
rm -f conftest*
fi
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
  ac_cv_c_tkh=installed
  ac_cv_c_tkh=installed
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
ac_cv_c_tkh=""
ac_cv_c_tkh=""
fi
fi
fi
fi
fi
fi
if test x"${ac_cv_c_tkh}" != x ; then
if test x"${ac_cv_c_tkh}" != x ; then
  no_tk=""
  no_tk=""
  if test x"${ac_cv_c_tkh}" = x"installed" ; then
  if test x"${ac_cv_c_tkh}" = x"installed" ; then
    echo "$ac_t""is installed" 1>&6
    echo "$ac_t""is installed" 1>&6
    TKHDIR=""
    TKHDIR=""
  else
  else
    echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
    echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
    # this hack is cause the TKHDIR won't print if there is a "-I" in it.
    # this hack is cause the TKHDIR won't print if there is a "-I" in it.
    TKHDIR="-I${ac_cv_c_tkh}"
    TKHDIR="-I${ac_cv_c_tkh}"
  fi
  fi
else
else
  TKHDIR="# no Tk directory found"
  TKHDIR="# no Tk directory found"
  echo "configure: warning: Can't find Tk private headers" 1>&2
  echo "configure: warning: Can't find Tk private headers" 1>&2
  no_tk=true
  no_tk=true
fi
fi
echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
echo "configure:6477: checking for Itcl private headers. srcdir=${srcdir}" >&5
echo "configure:6477: checking for Itcl private headers. srcdir=${srcdir}" >&5
if test x"${ac_cv_c_itclh}" = x ; then
if test x"${ac_cv_c_itclh}" = x ; then
  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
    if test -f $i/generic/itcl.h ; then
    if test -f $i/generic/itcl.h ; then
      ac_cv_c_itclh=`(cd $i/generic; pwd)`
      ac_cv_c_itclh=`(cd $i/generic; pwd)`
      break
      break
    fi
    fi
  done
  done
fi
fi
if test x"${ac_cv_c_itclh}" = x ; then
if test x"${ac_cv_c_itclh}" = x ; then
  ITCLHDIR="# no Itcl private headers found"
  ITCLHDIR="# no Itcl private headers found"
  { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
  { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
fi
fi
if test x"${ac_cv_c_itclh}" != x ; then
if test x"${ac_cv_c_itclh}" != x ; then
     ITCLHDIR="-I${ac_cv_c_itclh}"
     ITCLHDIR="-I${ac_cv_c_itclh}"
fi
fi
# should always be here
# should always be here
#     ITCLLIB="../itcl/itcl/unix/libitcl.a"
#     ITCLLIB="../itcl/itcl/unix/libitcl.a"
#AC_SUBST(ITCLLIB)
#AC_SUBST(ITCLLIB)
echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
echo "configure:6500: checking for Itk private headers. srcdir=${srcdir}" >&5
echo "configure:6500: checking for Itk private headers. srcdir=${srcdir}" >&5
if test x"${ac_cv_c_itkh}" = x ; then
if test x"${ac_cv_c_itkh}" = x ; then
  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
    if test -f $i/generic/itk.h ; then
    if test -f $i/generic/itk.h ; then
      ac_cv_c_itkh=`(cd $i/generic; pwd)`
      ac_cv_c_itkh=`(cd $i/generic; pwd)`
      break
      break
    fi
    fi
  done
  done
fi
fi
if test x"${ac_cv_c_itkh}" = x ; then
if test x"${ac_cv_c_itkh}" = x ; then
  ITKHDIR="# no Itk private headers found"
  ITKHDIR="# no Itk private headers found"
  { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
  { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
fi
fi
if test x"${ac_cv_c_itkh}" != x ; then
if test x"${ac_cv_c_itkh}" != x ; then
     ITKHDIR="-I${ac_cv_c_itkh}"
     ITKHDIR="-I${ac_cv_c_itkh}"
fi
fi
# should always be here
# should always be here
#     ITKLIB="../itcl/itk/unix/libitk.a"
#     ITKLIB="../itcl/itk/unix/libitk.a"
#AC_SUBST(ITKLIB)
#AC_SUBST(ITKLIB)
echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
echo "configure:6523: checking for Tix private headers. srcdir=${srcdir}" >&5
echo "configure:6523: checking for Tix private headers. srcdir=${srcdir}" >&5
if test x"${ac_cv_c_tixh}" = x ; then
if test x"${ac_cv_c_tixh}" = x ; then
  for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
  for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
    if test -f $i/generic/tix.h ; then
    if test -f $i/generic/tix.h ; then
      ac_cv_c_tixh=`(cd $i/generic; pwd)`
      ac_cv_c_tixh=`(cd $i/generic; pwd)`
      break
      break
    fi
    fi
  done
  done
fi
fi
if test x"${ac_cv_c_tixh}" = x ; then
if test x"${ac_cv_c_tixh}" = x ; then
  TIXHDIR="# no Tix private headers found"
  TIXHDIR="# no Tix private headers found"
  { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
  { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
fi
fi
if test x"${ac_cv_c_tixh}" != x ; then
if test x"${ac_cv_c_tixh}" != x ; then
     TIXHDIR="-I${ac_cv_c_tixh}"
     TIXHDIR="-I${ac_cv_c_tixh}"
fi
fi
           # now look for Itcl library stuff
           # now look for Itcl library stuff
#
#
# Ok, lets find the itcl configuration
# Ok, lets find the itcl configuration
# First, look for one uninstalled.
# First, look for one uninstalled.
# the alternative search directory is invoked by --with-itclconfig
# the alternative search directory is invoked by --with-itclconfig
#
#
if test x"${no_itcl}" = x ; then
if test x"${no_itcl}" = x ; then
  # we reset no_itcl in case something fails here
  # we reset no_itcl in case something fails here
  no_itcl=true
  no_itcl=true
  # Check whether --with-itclconfig or --without-itclconfig was given.
  # Check whether --with-itclconfig or --without-itclconfig was given.
if test "${with_itclconfig+set}" = set; then
if test "${with_itclconfig+set}" = set; then
  withval="$with_itclconfig"
  withval="$with_itclconfig"
  with_itclconfig=${withval}
  with_itclconfig=${withval}
fi
fi
  echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
  echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
echo "configure:6561: checking for Itcl configuration" >&5
echo "configure:6561: checking for Itcl configuration" >&5
  if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
  if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  # First check to see if --with-itclconfig was specified.
  # First check to see if --with-itclconfig was specified.
  if test x"${with_itclconfig}" != x ; then
  if test x"${with_itclconfig}" != x ; then
    if test -f "${with_itclconfig}/itclConfig.sh" ; then
    if test -f "${with_itclconfig}/itclConfig.sh" ; then
      ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
      ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
    else
    else
      { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
      { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
    fi
    fi
  fi
  fi
  # then check for a private Itcl library
  # then check for a private Itcl library
  if test x"${ac_cv_c_itclconfig}" = x ; then
  if test x"${ac_cv_c_itclconfig}" = x ; then
    for i in \
    for i in \
                ../itcl/itcl \
                ../itcl/itcl \
                `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
                `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
                ../../itcl \
                ../../itcl \
                `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
                `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
                ../../../itcl \
                ../../../itcl \
                `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
                `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
      if test -f "$i/itclConfig.sh" ; then
      if test -f "$i/itclConfig.sh" ; then
        ac_cv_c_itclconfig=`(cd $i; pwd)`
        ac_cv_c_itclconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few common install locations
  # check in a few common install locations
  if test x"${ac_cv_c_itclconfig}" = x ; then
  if test x"${ac_cv_c_itclconfig}" = x ; then
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
      if test -f "$i/itclConfig.sh" ; then
      if test -f "$i/itclConfig.sh" ; then
        ac_cv_c_itclconfig=`(cd $i; pwd)`
        ac_cv_c_itclconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few other private locations
  # check in a few other private locations
  if test x"${ac_cv_c_itclconfig}" = x ; then
  if test x"${ac_cv_c_itclconfig}" = x ; then
    for i in \
    for i in \
                ${srcdir}/../itcl/itcl \
                ${srcdir}/../itcl/itcl \
                `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
                `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
      if test -f "$i/itclConfig.sh" ; then
      if test -f "$i/itclConfig.sh" ; then
        ac_cv_c_itclconfig=`(cd $i; pwd)`
        ac_cv_c_itclconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
fi
fi
  if test x"${ac_cv_c_itclconfig}" = x ; then
  if test x"${ac_cv_c_itclconfig}" = x ; then
    ITCLCONFIG="# no Itcl configs found"
    ITCLCONFIG="# no Itcl configs found"
    echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
    echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
  else
  else
    no_itcl=
    no_itcl=
    ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
    ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
    echo "$ac_t""found $ITCLCONFIG" 1>&6
    echo "$ac_t""found $ITCLCONFIG" 1>&6
  fi
  fi
fi
fi
           if test -z "${no_itcl}"; then
           if test -z "${no_itcl}"; then
    if test -f "$ITCLCONFIG" ; then
    if test -f "$ITCLCONFIG" ; then
      . $ITCLCONFIG
      . $ITCLCONFIG
    fi
    fi
             case "${host}" in
             case "${host}" in
             *-*-cygwin*)
             *-*-cygwin*)
                itcldir=../itcl/itcl/win/
                itcldir=../itcl/itcl/win/
                ;;
                ;;
             *)
             *)
                itcldir=../itcl/itcl/unix/
                itcldir=../itcl/itcl/unix/
                ;;
                ;;
             esac
             esac
             ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
             ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
             ITCL_DEPS="${itcldir}${ITCL_LIB_FILE}"
             ITCL_DEPS="${itcldir}${ITCL_LIB_FILE}"
           fi
           fi
           # now look for Itk library stuff
           # now look for Itk library stuff
#
#
# Ok, lets find the itk configuration
# Ok, lets find the itk configuration
# First, look for one uninstalled.
# First, look for one uninstalled.
# the alternative search directory is invoked by --with-itkconfig
# the alternative search directory is invoked by --with-itkconfig
#
#
if test x"${no_itk}" = x ; then
if test x"${no_itk}" = x ; then
  # we reset no_itk in case something fails here
  # we reset no_itk in case something fails here
  no_itk=true
  no_itk=true
  # Check whether --with-itkconfig or --without-itkconfig was given.
  # Check whether --with-itkconfig or --without-itkconfig was given.
if test "${with_itkconfig+set}" = set; then
if test "${with_itkconfig+set}" = set; then
  withval="$with_itkconfig"
  withval="$with_itkconfig"
  with_itkconfig=${withval}
  with_itkconfig=${withval}
fi
fi
  echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
  echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
echo "configure:6673: checking for Itk configuration" >&5
echo "configure:6673: checking for Itk configuration" >&5
  if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
  if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  # First check to see if --with-itkconfig was specified.
  # First check to see if --with-itkconfig was specified.
  if test x"${with_itkconfig}" != x ; then
  if test x"${with_itkconfig}" != x ; then
    if test -f "${with_itkconfig}/itkConfig.sh" ; then
    if test -f "${with_itkconfig}/itkConfig.sh" ; then
      ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
      ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
    else
    else
      { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
      { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
    fi
    fi
  fi
  fi
  # then check for a private Itk library
  # then check for a private Itk library
  if test x"${ac_cv_c_itkconfig}" = x ; then
  if test x"${ac_cv_c_itkconfig}" = x ; then
    for i in \
    for i in \
                ../itcl/itk \
                ../itcl/itk \
                `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
                `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
                ../../itk \
                ../../itk \
                `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
                `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
                ../../../itk \
                ../../../itk \
                `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
                `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
      if test -f "$i/itkConfig.sh" ; then
      if test -f "$i/itkConfig.sh" ; then
        ac_cv_c_itkconfig=`(cd $i; pwd)`
        ac_cv_c_itkconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few common install locations
  # check in a few common install locations
  if test x"${ac_cv_c_itkconfig}" = x ; then
  if test x"${ac_cv_c_itkconfig}" = x ; then
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
      if test -f "$i/itkConfig.sh" ; then
      if test -f "$i/itkConfig.sh" ; then
        ac_cv_c_itkconfig=`(cd $i; pwd)`
        ac_cv_c_itkconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few other private locations
  # check in a few other private locations
  if test x"${ac_cv_c_itkconfig}" = x ; then
  if test x"${ac_cv_c_itkconfig}" = x ; then
    for i in \
    for i in \
                ${srcdir}/../itcl/itk \
                ${srcdir}/../itcl/itk \
                `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
                `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
      if test -f "$i/itkConfig.sh" ; then
      if test -f "$i/itkConfig.sh" ; then
        ac_cv_c_itkconfig=`(cd $i; pwd)`
        ac_cv_c_itkconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
fi
fi
  if test x"${ac_cv_c_itkconfig}" = x ; then
  if test x"${ac_cv_c_itkconfig}" = x ; then
    ITKCONFIG="# no Itk configs found"
    ITKCONFIG="# no Itk configs found"
    echo "configure: warning: Can't find Itk configuration definitions" 1>&2
    echo "configure: warning: Can't find Itk configuration definitions" 1>&2
  else
  else
    no_itk=
    no_itk=
    ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
    ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
    echo "$ac_t""found $ITKCONFIG" 1>&6
    echo "$ac_t""found $ITKCONFIG" 1>&6
  fi
  fi
fi
fi
           if test -z "${no_itcl}"; then
           if test -z "${no_itcl}"; then
    if test -f "$ITKCONFIG" ; then
    if test -f "$ITKCONFIG" ; then
      . $ITKCONFIG
      . $ITKCONFIG
    fi
    fi
             case "${host}" in
             case "${host}" in
               *-*-cygwin*)
               *-*-cygwin*)
                 itkdir=../itcl/itk/win/
                 itkdir=../itcl/itk/win/
                 ;;
                 ;;
               *)
               *)
                 itkdir=../itcl/itk/unix/
                 itkdir=../itcl/itk/unix/
                 ;;
                 ;;
               esac
               esac
             ITKLIB="${ITK_BUILD_LIB_SPEC}"
             ITKLIB="${ITK_BUILD_LIB_SPEC}"
             ITK_DEPS="${itkdir}${ITK_LIB_FILE}"
             ITK_DEPS="${itkdir}${ITK_LIB_FILE}"
           fi
           fi
           # now look for Tix library stuff
           # now look for Tix library stuff
#
#
# Ok, lets find the tix configuration
# Ok, lets find the tix configuration
# First, look for one uninstalled.
# First, look for one uninstalled.
# the alternative search directory is invoked by --with-itkconfig
# the alternative search directory is invoked by --with-itkconfig
#
#
if test x"${no_tix}" = x ; then
if test x"${no_tix}" = x ; then
  # we reset no_tix in case something fails here
  # we reset no_tix in case something fails here
  no_tix=true
  no_tix=true
  # Check whether --with-tixconfig or --without-tixconfig was given.
  # Check whether --with-tixconfig or --without-tixconfig was given.
if test "${with_tixconfig+set}" = set; then
if test "${with_tixconfig+set}" = set; then
  withval="$with_tixconfig"
  withval="$with_tixconfig"
  with_tixconfig=${withval}
  with_tixconfig=${withval}
fi
fi
  echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
  echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
echo "configure:6785: checking for Tix configuration" >&5
echo "configure:6785: checking for Tix configuration" >&5
  if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
  if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  # First check to see if --with-tixconfig was specified.
  # First check to see if --with-tixconfig was specified.
  if test x"${with_tixconfig}" != x ; then
  if test x"${with_tixconfig}" != x ; then
    if test -f "${with_tixconfig}/tixConfig.sh" ; then
    if test -f "${with_tixconfig}/tixConfig.sh" ; then
      ac_cv_c_tixconfig=`(cd ${with_tixconfig}; pwd)`
      ac_cv_c_tixconfig=`(cd ${with_tixconfig}; pwd)`
    else
    else
      { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
      { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
    fi
    fi
  fi
  fi
  # then check for a private Tix library
  # then check for a private Tix library
  if test x"${ac_cv_c_tixconfig}" = x ; then
  if test x"${ac_cv_c_tixconfig}" = x ; then
    for i in \
    for i in \
                ../tix \
                ../tix \
                `ls -dr ../tix 2>/dev/null` \
                `ls -dr ../tix 2>/dev/null` \
                ../../tix \
                ../../tix \
                `ls -dr ../../tix 2>/dev/null` \
                `ls -dr ../../tix 2>/dev/null` \
                ../../../tix \
                ../../../tix \
                `ls -dr ../../../tix 2>/dev/null` ; do
                `ls -dr ../../../tix 2>/dev/null` ; do
      echo "**** Looking at $i - with ${configdir}"
      echo "**** Looking at $i - with ${configdir}"
      if test -f "$i/tixConfig.sh" ; then
      if test -f "$i/tixConfig.sh" ; then
        ac_cv_c_tixconfig=`(cd $i; pwd)`
        ac_cv_c_tixconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few common install locations
  # check in a few common install locations
  if test x"${ac_cv_c_tixconfig}" = x ; then
  if test x"${ac_cv_c_tixconfig}" = x ; then
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
      echo "**** Looking at $i"
      echo "**** Looking at $i"
      if test -f "$i/tixConfig.sh" ; then
      if test -f "$i/tixConfig.sh" ; then
        ac_cv_c_tixconfig=`(cd $i; pwd)`
        ac_cv_c_tixconfig=`(cd $i; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
  # check in a few other private locations
  # check in a few other private locations
  echo "**** Other private locations"
  echo "**** Other private locations"
  if test x"${ac_cv_c_tixconfig}" = x ; then
  if test x"${ac_cv_c_tixconfig}" = x ; then
    for i in \
    for i in \
                ${srcdir}/../tix \
                ${srcdir}/../tix \
                `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
                `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
      echo "**** Looking at $i - with ${configdir}"
      echo "**** Looking at $i - with ${configdir}"
      if test -f "$i/${configdir}/tixConfig.sh" ; then
      if test -f "$i/${configdir}/tixConfig.sh" ; then
        ac_cv_c_tixconfig=`(cd $i/${configdir}; pwd)`
        ac_cv_c_tixconfig=`(cd $i/${configdir}; pwd)`
        break
        break
      fi
      fi
    done
    done
  fi
  fi
fi
fi
  if test x"${ac_cv_c_tixconfig}" = x ; then
  if test x"${ac_cv_c_tixconfig}" = x ; then
    TIXCONFIG="# no Tix configs found"
    TIXCONFIG="# no Tix configs found"
    echo "configure: warning: Can't find Tix configuration definitions" 1>&2
    echo "configure: warning: Can't find Tix configuration definitions" 1>&2
  else
  else
    no_tix=
    no_tix=
    TIXCONFIG=${ac_cv_c_tixconfig}/tixConfig.sh
    TIXCONFIG=${ac_cv_c_tixconfig}/tixConfig.sh
    echo "$ac_t""found $TIXCONFIG" 1>&6
    echo "$ac_t""found $TIXCONFIG" 1>&6
  fi
  fi
fi
fi
           if test -z "${no_tix}"; then
           if test -z "${no_tix}"; then
    if test -f "$TIXCONFIG" ; then
    if test -f "$TIXCONFIG" ; then
      . $TIXCONFIG
      . $TIXCONFIG
    fi
    fi
             TIXLIB="${TIX_BUILD_LIB_SPEC}"
             TIXLIB="${TIX_BUILD_LIB_SPEC}"
             TIX_DEPS="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
             TIX_DEPS="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
           fi
           fi
           ENABLE_CFLAGS="$ENABLE_CFLAGS -DGDBTK"
           ENABLE_CFLAGS="$ENABLE_CFLAGS -DGDBTK"
           # Tcl/Tk 8.1 require -fwritable strings.  I don't
           # Tcl/Tk 8.1 require -fwritable strings.  I don't
           # know whether 8.2 will or not, but I bet it will.
           # know whether 8.2 will or not, but I bet it will.
           # I don't have to worry about 7.x since we don't support it.
           # I don't have to worry about 7.x since we don't support it.
           GDBTK_CFLAGS=""
           GDBTK_CFLAGS=""
           if test "$GCC" = "yes"; then
           if test "$GCC" = "yes"; then
               if test "$TCL_VERSION" != "8.0" ; then
               if test "$TCL_VERSION" != "8.0" ; then
                   GDBTK_CFLAGS="-fwritable-strings"
                   GDBTK_CFLAGS="-fwritable-strings"
               fi
               fi
           fi
           fi
           # Include some libraries that Tcl and Tk want.
           # Include some libraries that Tcl and Tk want.
           TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
           TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
           CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
           CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
           # Yes, the ordering seems wrong here.  But it isn't.
           # Yes, the ordering seems wrong here.  But it isn't.
           # TK_LIBS is the list of libraries that need to be linked
           # TK_LIBS is the list of libraries that need to be linked
           # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
           # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
           # were in LIBS then any link tests after this point would
           # were in LIBS then any link tests after this point would
           # try to include things like `$(LIBGUI)', which wouldn't work.
           # try to include things like `$(LIBGUI)', which wouldn't work.
           GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
           GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
           CONFIG_SRCS="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
           CONFIG_SRCS="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
           CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
           CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
           CONFIG_INITS="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
           CONFIG_INITS="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
           CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
           CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
           CONFIG_CLEAN="${CONFIG_ALL} \$(SUBDIR_GDBTK_CLEAN)"
           CONFIG_CLEAN="${CONFIG_ALL} \$(SUBDIR_GDBTK_CLEAN)"
           CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
           CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
           CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
           CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
           if test x$gdb_cv_os_cygwin = xyes; then
           if test x$gdb_cv_os_cygwin = xyes; then
              WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
              WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
              WIN32LDAPP="-Wl,--subsystem,console"
              WIN32LDAPP="-Wl,--subsystem,console"
              CONFIG_OBS="${CONFIG_OBS} gdbres.o"
              CONFIG_OBS="${CONFIG_OBS} gdbres.o"
           fi
           fi
        fi
        fi
    fi
    fi
fi
fi
# If we find X, set shell vars x_includes and x_libraries to the
# If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6
echo $ac_n "checking for X""... $ac_c" 1>&6
echo "configure:6924: checking for X" >&5
echo "configure:6924: checking for X" >&5
# Check whether --with-x or --without-x was given.
# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
if test "${with_x+set}" = set; then
  withval="$with_x"
  withval="$with_x"
  :
  :
fi
fi
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  # The user explicitly disabled X.
  have_x=disabled
  have_x=disabled
else
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    # Both variables are already set.
    have_x=yes
    have_x=yes
  else
  else
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  # One or both of the vars are not set, and there is no cached value.
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=NO ac_x_libraries=NO
ac_x_includes=NO ac_x_libraries=NO
rm -fr conftestdir
rm -fr conftestdir
if mkdir conftestdir; then
if mkdir conftestdir; then
  cd conftestdir
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
  cat > Imakefile <<'EOF'
acfindx:
acfindx:
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
        test -f $ac_im_libdir/libX11.$ac_extension; then
        test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
      fi
    done
    done
    # Screen out bogus values from the imake configuration.  They are
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    # using them would break gcc on systems where it needs fixed includes.
    case "$ac_im_incroot" in
    case "$ac_im_incroot" in
        /usr/include) ;;
        /usr/include) ;;
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
    esac
    esac
    case "$ac_im_usrlibdir" in
    case "$ac_im_usrlibdir" in
        /usr/lib | /lib) ;;
        /usr/lib | /lib) ;;
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
    esac
    esac
  fi
  fi
  cd ..
  cd ..
  rm -fr conftestdir
  rm -fr conftestdir
fi
fi
if test "$ac_x_includes" = NO; then
if test "$ac_x_includes" = NO; then
  # Guess where to find include files, by looking for this one X11 .h file.
  # Guess where to find include files, by looking for this one X11 .h file.
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  # First, try using that file with no special directory specified.
  # First, try using that file with no special directory specified.
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 6986 "configure"
#line 6986 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <$x_direct_test_include>
#include <$x_direct_test_include>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:6991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
  # We can compile using X headers with no special include directory.
  # We can compile using X headers with no special include directory.
ac_x_includes=
ac_x_includes=
else
else
  echo "$ac_err" >&5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  # Look for the header file in a standard set of common directories.
  # Look for the header file in a standard set of common directories.
# Check X11 before X11Rn because it is often a symlink to the current release.
# Check X11 before X11Rn because it is often a symlink to the current release.
  for ac_dir in               \
  for ac_dir in               \
    /usr/X11/include          \
    /usr/X11/include          \
    /usr/X11R6/include        \
    /usr/X11R6/include        \
    /usr/X11R5/include        \
    /usr/X11R5/include        \
    /usr/X11R4/include        \
    /usr/X11R4/include        \
                              \
                              \
    /usr/include/X11          \
    /usr/include/X11          \
    /usr/include/X11R6        \
    /usr/include/X11R6        \
    /usr/include/X11R5        \
    /usr/include/X11R5        \
    /usr/include/X11R4        \
    /usr/include/X11R4        \
                              \
                              \
    /usr/local/X11/include    \
    /usr/local/X11/include    \
    /usr/local/X11R6/include  \
    /usr/local/X11R6/include  \
    /usr/local/X11R5/include  \
    /usr/local/X11R5/include  \
    /usr/local/X11R4/include  \
    /usr/local/X11R4/include  \
                              \
                              \
    /usr/local/include/X11    \
    /usr/local/include/X11    \
    /usr/local/include/X11R6  \
    /usr/local/include/X11R6  \
    /usr/local/include/X11R5  \
    /usr/local/include/X11R5  \
    /usr/local/include/X11R4  \
    /usr/local/include/X11R4  \
                              \
                              \
    /usr/X386/include         \
    /usr/X386/include         \
    /usr/x386/include         \
    /usr/x386/include         \
    /usr/XFree86/include/X11  \
    /usr/XFree86/include/X11  \
                              \
                              \
    /usr/include              \
    /usr/include              \
    /usr/local/include        \
    /usr/local/include        \
    /usr/unsupported/include  \
    /usr/unsupported/include  \
    /usr/athena/include       \
    /usr/athena/include       \
    /usr/local/x11r5/include  \
    /usr/local/x11r5/include  \
    /usr/lpp/Xamples/include  \
    /usr/lpp/Xamples/include  \
                              \
                              \
    /usr/openwin/include      \
    /usr/openwin/include      \
    /usr/openwin/share/include \
    /usr/openwin/share/include \
    ; \
    ; \
  do
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
    if test -r "$ac_dir/$x_direct_test_include"; then
      ac_x_includes=$ac_dir
      ac_x_includes=$ac_dir
      break
      break
    fi
    fi
  done
  done
fi
fi
rm -f conftest*
rm -f conftest*
fi # $ac_x_includes = NO
fi # $ac_x_includes = NO
if test "$ac_x_libraries" = NO; then
if test "$ac_x_libraries" = NO; then
  # Check for the libraries.
  # Check for the libraries.
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  # See if we find them without any special options.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  # Don't add to $LIBS permanently.
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
  LIBS="-l$x_direct_test_library $LIBS"
  LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <
cat > conftest.$ac_ext <
#line 7060 "configure"
#line 7060 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
${x_direct_test_function}()
${x_direct_test_function}()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
  LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
# We can link X programs with no special library path.
ac_x_libraries=
ac_x_libraries=
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
# First see if replacing the include by lib works.
# Check X11 before X11Rn because it is often a symlink to the current release.
# Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11/lib          \
    /usr/X11/lib          \
    /usr/X11R6/lib        \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
    /usr/X11R4/lib        \
                          \
                          \
    /usr/lib/X11          \
    /usr/lib/X11          \
    /usr/lib/X11R6        \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
    /usr/lib/X11R4        \
                          \
                          \
    /usr/local/X11/lib    \
    /usr/local/X11/lib    \
    /usr/local/X11R6/lib  \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
    /usr/local/X11R4/lib  \
                          \
                          \
    /usr/local/lib/X11    \
    /usr/local/lib/X11    \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
    /usr/local/lib/X11R4  \
                          \
                          \
    /usr/X386/lib         \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
    /usr/XFree86/lib/X11  \
                          \
                          \
    /usr/lib              \
    /usr/lib              \
    /usr/local/lib        \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
    /usr/lpp/Xamples/lib  \
    /lib/usr/lib/X11      \
    /lib/usr/lib/X11      \
                          \
                          \
    /usr/openwin/lib      \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    /usr/openwin/share/lib \
    ; \
    ; \
do
do
  for ac_extension in a so sl; do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      ac_x_libraries=$ac_dir
      ac_x_libraries=$ac_dir
      break 2
      break 2
    fi
    fi
  done
  done
done
done
fi
fi
rm -f conftest*
rm -f conftest*
fi # $ac_x_libraries = NO
fi # $ac_x_libraries = NO
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  # Didn't find X anywhere.  Cache the known absence of X.
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
  ac_cv_have_x="have_x=no"
else
else
  # Record where we found X for the cache.
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
  ac_cv_have_x="have_x=yes \
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
fi
fi
fi
  fi
  fi
  eval "$ac_cv_have_x"
  eval "$ac_cv_have_x"
fi # $with_x != no
fi # $with_x != no
if test "$have_x" != yes; then
if test "$have_x" != yes; then
  echo "$ac_t""$have_x" 1>&6
  echo "$ac_t""$have_x" 1>&6
  no_x=yes
  no_x=yes
else
else
  # If each of the values was on the command line, it overrides each guess.
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
  ac_cv_have_x="have_x=yes \
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi
fi
# Unlike the sim directory, whether a simulator is linked is controlled by
# Unlike the sim directory, whether a simulator is linked is controlled by
# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
# This code just checks for a few cases where we'd like to ignore those
# This code just checks for a few cases where we'd like to ignore those
# definitions, even when they're present in the '.mt' file.  These cases
# definitions, even when they're present in the '.mt' file.  These cases
# are when --disable-sim is specified, or if the simulator directory is
# are when --disable-sim is specified, or if the simulator directory is
# not part of the soruce tree.
# not part of the soruce tree.
#
#
# Check whether --enable-sim or --disable-sim was given.
# Check whether --enable-sim or --disable-sim was given.
if test "${enable_sim+set}" = set; then
if test "${enable_sim+set}" = set; then
  enableval="$enable_sim"
  enableval="$enable_sim"
  echo "enable_sim = $enable_sim";
  echo "enable_sim = $enable_sim";
 echo "enableval = ${enableval}";
 echo "enableval = ${enableval}";
 case "${enableval}" in
 case "${enableval}" in
  yes) ignore_sim=false ;;
  yes) ignore_sim=false ;;
  no)  ignore_sim=true ;;
  no)  ignore_sim=true ;;
  *)   ignore_sim=false ;;
  *)   ignore_sim=false ;;
 esac
 esac
else
else
  ignore_sim=false
  ignore_sim=false
fi
fi
if test ! -d "${srcdir}/../sim"; then
if test ! -d "${srcdir}/../sim"; then
  ignore_sim=true
  ignore_sim=true
fi
fi
if test "${ignore_sim}" = "true"; then
if test "${ignore_sim}" = "true"; then
    IGNORE_SIM="SIM="
    IGNORE_SIM="SIM="
    IGNORE_SIM_OBS="SIM_OBS="
    IGNORE_SIM_OBS="SIM_OBS="
else
else
    IGNORE_SIM=""
    IGNORE_SIM=""
    IGNORE_SIM_OBS=""
    IGNORE_SIM_OBS=""
    cat >> confdefs.h <<\EOF
    cat >> confdefs.h <<\EOF
#define WITH_SIM 1
#define WITH_SIM 1
EOF
EOF
fi
fi
# Begin stuff to support --enable-shared
# Begin stuff to support --enable-shared
# Check whether --enable-shared or --disable-shared was given.
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  enableval="$enable_shared"
  case "${enableval}" in
  case "${enableval}" in
  yes) shared=true ;;
  yes) shared=true ;;
  no)  shared=false ;;
  no)  shared=false ;;
  *) shared=true ;;
  *) shared=true ;;
esac
esac
fi
fi
HLDFLAGS=
HLDFLAGS=
HLDENV=
HLDENV=
# If we have shared libraries, try to set rpath reasonably.
# If we have shared libraries, try to set rpath reasonably.
if test "${shared}" = "true"; then
if test "${shared}" = "true"; then
  case "${host}" in
  case "${host}" in
  *-*-hpux*)
  *-*-hpux*)
    HLDFLAGS='-Wl,+s,+b,$(libdir)'
    HLDFLAGS='-Wl,+s,+b,$(libdir)'
    ;;
    ;;
  *-*-irix5* | *-*-irix6*)
  *-*-irix5* | *-*-irix6*)
    HLDFLAGS='-Wl,-rpath,$(libdir)'
    HLDFLAGS='-Wl,-rpath,$(libdir)'
    ;;
    ;;
  *-*-linux*aout*)
  *-*-linux*aout*)
    ;;
    ;;
  *-*-linux* | *-pc-linux-gnu*)
  *-*-linux* | *-pc-linux-gnu*)
    HLDFLAGS='-Wl,-rpath,$(libdir)'
    HLDFLAGS='-Wl,-rpath,$(libdir)'
    ;;
    ;;
  *-*-solaris*)
  *-*-solaris*)
    HLDFLAGS='-R $(libdir)'
    HLDFLAGS='-R $(libdir)'
    ;;
    ;;
  *-*-sysv4*)
  *-*-sysv4*)
    HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
    HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
    ;;
    ;;
  esac
  esac
fi
fi
# On SunOS, if the linker supports the -rpath option, use it to
# On SunOS, if the linker supports the -rpath option, use it to
# prevent ../bfd and ../opcodes from being included in the run time
# prevent ../bfd and ../opcodes from being included in the run time
# search path.
# search path.
case "${host}" in
case "${host}" in
  *-*-sunos*)
  *-*-sunos*)
    echo 'main () { }' > conftest.c
    echo 'main () { }' > conftest.c
    ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
    ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
    if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
    if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
      :
      :
    elif grep 'No such file' conftest.t >/dev/null 2>&1; then
    elif grep 'No such file' conftest.t >/dev/null 2>&1; then
      :
      :
    elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
    elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
      :
      :
    elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
    elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
      :
      :
    elif test "${shared}" = "true"; then
    elif test "${shared}" = "true"; then
      HLDFLAGS='-Wl,-rpath=$(libdir)'
      HLDFLAGS='-Wl,-rpath=$(libdir)'
    else
    else
      HLDFLAGS='-Wl,-rpath='
      HLDFLAGS='-Wl,-rpath='
    fi
    fi
    rm -f conftest.t conftest.c conftest
    rm -f conftest.t conftest.c conftest
    ;;
    ;;
esac
esac
# End stuff to support --enable-shared
# End stuff to support --enable-shared
# target_subdir is used by the testsuite to find the target libraries.
# target_subdir is used by the testsuite to find the target libraries.
target_subdir=
target_subdir=
if test "${host}" != "${target}"; then
if test "${host}" != "${target}"; then
    target_subdir="${target_alias}/"
    target_subdir="${target_alias}/"
fi
fi
frags=
frags=
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
if test ! -f ${host_makefile_frag}; then
if test ! -f ${host_makefile_frag}; then
{ echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
{ echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
fi
fi
frags="$frags $host_makefile_frag"
frags="$frags $host_makefile_frag"
target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
if test ! -f ${target_makefile_frag}; then
if test ! -f ${target_makefile_frag}; then
{ echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
{ echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
fi
fi
frags="$frags $target_makefile_frag"
frags="$frags $target_makefile_frag"
hostfile=`sed -n '
hostfile=`sed -n '
s/XM_FILE[      ]*=[    ]*\([^  ]*\)/\1/p
s/XM_FILE[      ]*=[    ]*\([^  ]*\)/\1/p
' ${host_makefile_frag}`
' ${host_makefile_frag}`
targetfile=`sed -n '
targetfile=`sed -n '
s/TM_FILE[      ]*=[    ]*\([^  ]*\)/\1/p
s/TM_FILE[      ]*=[    ]*\([^  ]*\)/\1/p
' ${target_makefile_frag}`
' ${target_makefile_frag}`
# these really aren't orthogonal true/false values of the same condition,
# these really aren't orthogonal true/false values of the same condition,
# but shells are slow enough that I like to reuse the test conditions
# but shells are slow enough that I like to reuse the test conditions
# whenever possible
# whenever possible
if test "${target}" = "${host}"; then
if test "${target}" = "${host}"; then
nativefile=`sed -n '
nativefile=`sed -n '
s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
' ${host_makefile_frag}`
' ${host_makefile_frag}`
# else
# else
# GDBserver is only useful in a "native" enviroment
# GDBserver is only useful in a "native" enviroment
# configdirs=`echo $configdirs | sed 's/gdbserver//'`
# configdirs=`echo $configdirs | sed 's/gdbserver//'`
fi
fi
SUBDIRS="doc testsuite nlm"
SUBDIRS="doc testsuite nlm"
if test "${enable_multi_ice}" = "yes"; then
if test "${enable_multi_ice}" = "yes"; then
  SUBDIRS="${SUBDIRS} multi-ice"
  SUBDIRS="${SUBDIRS} multi-ice"
fi
fi
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
# corresponding links.  But we have to remove the xm.h files and tm.h
# corresponding links.  But we have to remove the xm.h files and tm.h
# files anyway, e.g. when switching from "configure host" to
# files anyway, e.g. when switching from "configure host" to
# "configure none".
# "configure none".
files=
files=
links=
links=
rm -f xm.h
rm -f xm.h
if test "${hostfile}" != ""; then
if test "${hostfile}" != ""; then
files="${files} config/${gdb_host_cpu}/${hostfile}"
files="${files} config/${gdb_host_cpu}/${hostfile}"
links="${links} xm.h"
links="${links} xm.h"
fi
fi
rm -f tm.h
rm -f tm.h
if test "${targetfile}" != ""; then
if test "${targetfile}" != ""; then
files="${files} config/${gdb_target_cpu}/${targetfile}"
files="${files} config/${gdb_target_cpu}/${targetfile}"
links="${links} tm.h"
links="${links} tm.h"
fi
fi
rm -f nm.h
rm -f nm.h
if test "${nativefile}" != ""; then
if test "${nativefile}" != ""; then
files="${files} config/${gdb_host_cpu}/${nativefile}"
files="${files} config/${gdb_host_cpu}/${nativefile}"
links="${links} nm.h"
links="${links} nm.h"
else
else
# A cross-only configuration.
# A cross-only configuration.
files="${files} config/nm-empty.h"
files="${files} config/nm-empty.h"
links="${links} nm.h"
links="${links} nm.h"
fi
fi
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:7349: checking whether ln -s works" >&5
echo "configure:7349: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  rm -f conftestdata
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
if ln -s X conftestdata 2>/dev/null
then
then
  rm -f conftestdata
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
  ac_cv_prog_LN_S="ln -s"
else
else
  ac_cv_prog_LN_S=ln
  ac_cv_prog_LN_S=ln
fi
fi
fi
fi
LN_S="$ac_cv_prog_LN_S"
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$ac_t""yes" 1>&6
  echo "$ac_t""yes" 1>&6
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
fi
fi
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo "configure:7373: checking for Cygwin environment" >&5
echo "configure:7373: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 7378 "configure"
#line 7378 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
#ifndef __CYGWIN__
#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#define __CYGWIN__ __CYGWIN32__
#endif
#endif
return __CYGWIN__;
return __CYGWIN__;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:7389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:7389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_cygwin=yes
  ac_cv_cygwin=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_cygwin=no
  ac_cv_cygwin=no
fi
fi
rm -f conftest*
rm -f conftest*
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_cygwin" 1>&6
echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
echo "configure:7406: checking for mingw32 environment" >&5
echo "configure:7406: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <
  cat > conftest.$ac_ext <
#line 7411 "configure"
#line 7411 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
return __MINGW32__;
return __MINGW32__;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:7418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:7418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_mingw32=yes
  ac_cv_mingw32=yes
else
else
  echo "configure: failed program was:" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_mingw32=no
  ac_cv_mingw32=no
fi
fi
rm -f conftest*
rm -f conftest*
rm -f conftest*
rm -f conftest*
fi
fi
echo "$ac_t""$ac_cv_mingw32" 1>&6
echo "$ac_t""$ac_cv_mingw32" 1>&6
MINGW32=
MINGW32=
test "$ac_cv_mingw32" = yes && MINGW32=yes
test "$ac_cv_mingw32" = yes && MINGW32=yes
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo "configure:7437: checking for executable suffix" >&5
echo "configure:7437: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  ac_cv_exeext=.exe
  ac_cv_exeext=.exe
else
else
  rm -f conftest*
  rm -f conftest*
  echo 'int main () { return 0; }' > conftest.$ac_ext
  echo 'int main () { return 0; }' > conftest.$ac_ext
  ac_cv_exeext=
  ac_cv_exeext=
  if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    for file in conftest.*; do
    for file in conftest.*; do
      case $file in
      case $file in
      *.c | *.o | *.obj) ;;
      *.c | *.o | *.obj) ;;
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
      esac
      esac
    done
    done
  else
  else
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  fi
  fi
  rm -f conftest*
  rm -f conftest*
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
fi
fi
fi
fi
EXEEXT=""
EXEEXT=""
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
echo "$ac_t""${ac_cv_exeext}" 1>&6
echo "$ac_t""${ac_cv_exeext}" 1>&6
ac_exeext=$EXEEXT
ac_exeext=$EXEEXT
subdirs="$configdirs"
subdirs="$configdirs"
trap '' 1 2 15
trap '' 1 2 15
cat > confcache <<\EOF
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
# If it contains results you don't want to keep, you may remove or edit it.
#
#
# By default, configure uses ./config.cache as the cache file,
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
# --recheck option to rerun configure.
#
#
EOF
EOF
# The following way of writing the cache mishandles newlines in values,
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
    ;;
  *)
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
    ;;
  esac >> confcache
  esac >> confcache
if cmp -s $cache_file confcache; then
if cmp -s $cache_file confcache; then
  :
  :
else
else
  if test -w $cache_file; then
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    echo "updating cache $cache_file"
    cat confcache > $cache_file
    cat confcache > $cache_file
  else
  else
    echo "not updating unwritable cache $cache_file"
    echo "not updating unwritable cache $cache_file"
  fi
  fi
fi
fi
rm -f confcache
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
if test "x$srcdir" = x.; then
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
fi
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <
cat > $CONFIG_STATUS <
#! /bin/sh
#! /bin/sh
# Generated automatically by configure.
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
#
# $0 $ac_configure_args
# $0 $ac_configure_args
#
#
# Compiler output produced by configure, useful for debugging
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
for ac_option
do
do
  case "\$ac_option" in
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    exit 0 ;;
    exit 0 ;;
  -help | --help | --hel | --he | --h)
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
  esac
done
done
ac_given_srcdir=$srcdir
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
EOF
cat >> $CONFIG_STATUS <
cat >> $CONFIG_STATUS <
# Protect against being on the right side of a sed subst in config.status.
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$ac_vpsub
$extrasub
$extrasub
s%@SHELL@%$SHELL%g
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@mandir@%$mandir%g
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
s%@MAINT@%$MAINT%g
s%@MAINT@%$MAINT%g
s%@CC@%$CC%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@CPP@%$CPP%g
s%@host@%$host%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@host_os@%$host_os%g
s%@target@%$target%g
s%@target@%$target%g
s%@target_alias@%$target_alias%g
s%@target_alias@%$target_alias%g
s%@target_cpu@%$target_cpu%g
s%@target_cpu@%$target_cpu%g
s%@target_vendor@%$target_vendor%g
s%@target_vendor@%$target_vendor%g
s%@target_os@%$target_os%g
s%@target_os@%$target_os%g
s%@build@%$build%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@build_os@%$build_os%g
s%@SET_MAKE@%$SET_MAKE%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@RANLIB@%$RANLIB%g
s%@ALLOCA@%$ALLOCA%g
s%@ALLOCA@%$ALLOCA%g
s%@USE_NLS@%$USE_NLS%g
s%@USE_NLS@%$USE_NLS%g
s%@MSGFMT@%$MSGFMT%g
s%@MSGFMT@%$MSGFMT%g
s%@GMSGFMT@%$GMSGFMT%g
s%@GMSGFMT@%$GMSGFMT%g
s%@XGETTEXT@%$XGETTEXT%g
s%@XGETTEXT@%$XGETTEXT%g
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
s%@CATALOGS@%$CATALOGS%g
s%@CATALOGS@%$CATALOGS%g
s%@CATOBJEXT@%$CATOBJEXT%g
s%@CATOBJEXT@%$CATOBJEXT%g
s%@DATADIRNAME@%$DATADIRNAME%g
s%@DATADIRNAME@%$DATADIRNAME%g
s%@GMOFILES@%$GMOFILES%g
s%@GMOFILES@%$GMOFILES%g
s%@INSTOBJEXT@%$INSTOBJEXT%g
s%@INSTOBJEXT@%$INSTOBJEXT%g
s%@INTLDEPS@%$INTLDEPS%g
s%@INTLDEPS@%$INTLDEPS%g
s%@INTLLIBS@%$INTLLIBS%g
s%@INTLLIBS@%$INTLLIBS%g
s%@INTLOBJS@%$INTLOBJS%g
s%@INTLOBJS@%$INTLOBJS%g
s%@POFILES@%$POFILES%g
s%@POFILES@%$POFILES%g
s%@POSUB@%$POSUB%g
s%@POSUB@%$POSUB%g
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
s%@GT_NO@%$GT_NO%g
s%@GT_NO@%$GT_NO%g
s%@GT_YES@%$GT_YES%g
s%@GT_YES@%$GT_YES%g
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
s%@l@%$l%g
s%@l@%$l%g
s%@AWK@%$AWK%g
s%@AWK@%$AWK%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@AR@%$AR%g
s%@AR@%$AR%g
s%@YACC@%$YACC%g
s%@YACC@%$YACC%g
s%@MIG@%$MIG%g
s%@MIG@%$MIG%g
s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
s%@BUILD_TUI@%$BUILD_TUI%g
s%@BUILD_TUI@%$BUILD_TUI%g
s%@TUI_LIBRARY@%$TUI_LIBRARY%g
s%@TUI_LIBRARY@%$TUI_LIBRARY%g
s%@WARN_CFLAGS@%$WARN_CFLAGS%g
s%@WARN_CFLAGS@%$WARN_CFLAGS%g
s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
s%@MMALLOC@%$MMALLOC%g
s%@MMALLOC@%$MMALLOC%g
s%@REGEX@%$REGEX%g
s%@REGEX@%$REGEX%g
s%@REGEX_CFLAGS@%$REGEX_CFLAGS%g
s%@REGEX_CFLAGS@%$REGEX_CFLAGS%g
s%@DLLTOOL@%$DLLTOOL%g
s%@DLLTOOL@%$DLLTOOL%g
s%@WINDRES@%$WINDRES%g
s%@WINDRES@%$WINDRES%g
s%@TERM_LIB@%$TERM_LIB%g
s%@TERM_LIB@%$TERM_LIB%g
s%@WIN32LIBS@%$WIN32LIBS%g
s%@WIN32LIBS@%$WIN32LIBS%g
s%@LIBGUI@%$LIBGUI%g
s%@LIBGUI@%$LIBGUI%g
s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
s%@WIN32LDAPP@%$WIN32LDAPP%g
s%@WIN32LDAPP@%$WIN32LDAPP%g
s%@TCL_VERSION@%$TCL_VERSION%g
s%@TCL_VERSION@%$TCL_VERSION%g
s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
s%@TCL_CC@%$TCL_CC%g
s%@TCL_CC@%$TCL_CC%g
s%@TCL_DEFS@%$TCL_DEFS%g
s%@TCL_DEFS@%$TCL_DEFS%g
s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
s%@TCL_RANLIB@%$TCL_RANLIB%g
s%@TCL_RANLIB@%$TCL_RANLIB%g
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
s%@TK_VERSION@%$TK_VERSION%g
s%@TK_VERSION@%$TK_VERSION%g
s%@TK_DEFS@%$TK_DEFS%g
s%@TK_DEFS@%$TK_DEFS%g
s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
s%@TK_XLIBSW@%$TK_XLIBSW%g
s%@TK_XLIBSW@%$TK_XLIBSW%g
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
s%@TCLHDIR@%$TCLHDIR%g
s%@TCLHDIR@%$TCLHDIR%g
s%@TKHDIR@%$TKHDIR%g
s%@TKHDIR@%$TKHDIR%g
s%@ITCLHDIR@%$ITCLHDIR%g
s%@ITCLHDIR@%$ITCLHDIR%g
s%@ITKHDIR@%$ITKHDIR%g
s%@ITKHDIR@%$ITKHDIR%g
s%@TIXHDIR@%$TIXHDIR%g
s%@TIXHDIR@%$TIXHDIR%g
s%@ITCL_VERSION@%$ITCL_VERSION%g
s%@ITCL_VERSION@%$ITCL_VERSION%g
s%@ITCL_DEFS@%$ITCL_DEFS%g
s%@ITCL_DEFS@%$ITCL_DEFS%g
s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
s%@ITK_VERSION@%$ITK_VERSION%g
s%@ITK_VERSION@%$ITK_VERSION%g
s%@ITK_DEFS@%$ITK_DEFS%g
s%@ITK_DEFS@%$ITK_DEFS%g
s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
s%@TIX_VERSION@%$TIX_VERSION%g
s%@TIX_VERSION@%$TIX_VERSION%g
s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
s%@X_CFLAGS@%$X_CFLAGS%g
s%@X_CFLAGS@%$X_CFLAGS%g
s%@X_LDFLAGS@%$X_LDFLAGS%g
s%@X_LDFLAGS@%$X_LDFLAGS%g
s%@X_LIBS@%$X_LIBS%g
s%@X_LIBS@%$X_LIBS%g
s%@ITCLLIB@%$ITCLLIB%g
s%@ITCLLIB@%$ITCLLIB%g
s%@ITCL_DEPS@%$ITCL_DEPS%g
s%@ITCL_DEPS@%$ITCL_DEPS%g
s%@ITKLIB@%$ITKLIB%g
s%@ITKLIB@%$ITKLIB%g
s%@ITK_DEPS@%$ITK_DEPS%g
s%@ITK_DEPS@%$ITK_DEPS%g
s%@TIXLIB@%$TIXLIB%g
s%@TIXLIB@%$TIXLIB%g
s%@TIX_DEPS@%$TIX_DEPS%g
s%@TIX_DEPS@%$TIX_DEPS%g
s%@GDBTKLIBS@%$GDBTKLIBS%g
s%@GDBTKLIBS@%$GDBTKLIBS%g
s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
s%@IGNORE_SIM@%$IGNORE_SIM%g
s%@IGNORE_SIM@%$IGNORE_SIM%g
s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
s%@CONFIG_OBS@%$CONFIG_OBS%g
s%@CONFIG_OBS@%$CONFIG_OBS%g
s%@CONFIG_DEPS@%$CONFIG_DEPS%g
s%@CONFIG_DEPS@%$CONFIG_DEPS%g
s%@CONFIG_SRCS@%$CONFIG_SRCS%g
s%@CONFIG_SRCS@%$CONFIG_SRCS%g
s%@CONFIG_INITS@%$CONFIG_INITS%g
s%@CONFIG_INITS@%$CONFIG_INITS%g
s%@CONFIG_ALL@%$CONFIG_ALL%g
s%@CONFIG_ALL@%$CONFIG_ALL%g
s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
s%@HLDFLAGS@%$HLDFLAGS%g
s%@HLDFLAGS@%$HLDFLAGS%g
s%@HLDENV@%$HLDENV%g
s%@HLDENV@%$HLDENV%g
s%@target_subdir@%$target_subdir%g
s%@target_subdir@%$target_subdir%g
/@host_makefile_frag@/r $host_makefile_frag
/@host_makefile_frag@/r $host_makefile_frag
s%@host_makefile_frag@%%g
s%@host_makefile_frag@%%g
/@target_makefile_frag@/r $target_makefile_frag
/@target_makefile_frag@/r $target_makefile_frag
s%@target_makefile_frag@%%g
s%@target_makefile_frag@%%g
s%@frags@%$frags%g
s%@frags@%$frags%g
s%@SUBDIRS@%$SUBDIRS%g
s%@SUBDIRS@%$SUBDIRS%g
s%@LN_S@%$LN_S%g
s%@LN_S@%$LN_S%g
s%@EXEEXT@%$EXEEXT%g
s%@EXEEXT@%$EXEEXT%g
s%@subdirs@%$subdirs%g
s%@subdirs@%$subdirs%g
CEOF
CEOF
EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_more_lines=:
ac_sed_cmds=""
ac_sed_cmds=""
while $ac_more_lines; do
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  fi
  if test ! -s conftest.s$ac_file; then
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    ac_more_lines=false
    rm -f conftest.s$ac_file
    rm -f conftest.s$ac_file
  else
  else
    if test -z "$ac_sed_cmds"; then
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    fi
    ac_file=`expr $ac_file + 1`
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
  fi
done
done
if test -z "$ac_sed_cmds"; then
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
  ac_sed_cmds=cat
fi
fi
EOF
EOF
cat >> $CONFIG_STATUS <
cat >> $CONFIG_STATUS <
CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac
  esac
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  # Remove last slash and all that follows it.  Not all systems have dirname.
  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
  else
    ac_dir_suffix= ac_dots=
    ac_dir_suffix= ac_dots=
  fi
  fi
  case "$ac_given_srcdir" in
  case "$ac_given_srcdir" in
  .)  srcdir=.
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac
  esac
  case "$ac_given_INSTALL" in
  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac
  esac
  echo creating "$ac_file"
  echo creating "$ac_file"
  rm -f "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
# $configure_input" ;;
  *) ac_comsub= ;;
  *) ac_comsub= ;;
  esac
  esac
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
fi; done
rm -f conftest.s*
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
#
# ac_d sets the value in "#define NAME VALUE" lines.
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
ac_dC='\3'
ac_dC='\3'
ac_dD='%g'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
ac_uB='\([      ]\)%\1#\2define\3'
ac_uB='\([      ]\)%\1#\2define\3'
ac_uC=' '
ac_uC=' '
ac_uD='\4%g'
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
ac_eB='$%\1#\2define\3'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eC=' '
ac_eD='%g'
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
if test "${CONFIG_HEADERS+set}" != set; then
EOF
EOF
cat >> $CONFIG_STATUS <
cat >> $CONFIG_STATUS <
  CONFIG_HEADERS="config.h:config.in"
  CONFIG_HEADERS="config.h:config.in"
EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
cat >> $CONFIG_STATUS <<\EOF
fi
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac
  esac
  echo creating $ac_file
  echo creating $ac_file
  rm -f conftest.frag conftest.in conftest.out
  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
  cat $ac_file_inputs > conftest.in
EOF
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
rm -f conftest.vals
cat > conftest.hdr <<\EOF
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
s%ac_u%ac_e%gp
EOF
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
rm -f conftest.hdr
# This sed command replaces #undef with comments.  This is necessary, for
# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
cat >> conftest.vals <<\EOF
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
EOF
# Break up conftest.vals because some shells have a limit on
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
rm -f conftest.tail
while :
while :
do
do
  ac_lines=`grep -c . conftest.vals`
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <> $CONFIG_STATUS
  echo '  cat > conftest.frag <> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  echo 'CEOF
  echo 'CEOF
  sed -f conftest.frag conftest.in > conftest.out
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  rm -f conftest.in
  mv conftest.out conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  rm -f conftest.vals
  mv conftest.tail conftest.vals
  mv conftest.tail conftest.vals
done
done
rm -f conftest.vals
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    echo "$ac_file is unchanged"
    rm -f conftest.h
    rm -f conftest.h
  else
  else
    # Remove last slash and all that follows it.  Not all systems have dirname.
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
      test ! -d "$ac_dir" && mkdir "$ac_dir"
    fi
    fi
    rm -f $ac_file
    rm -f $ac_file
    mv conftest.h $ac_file
    mv conftest.h $ac_file
  fi
  fi
fi; done
fi; done
EOF
EOF
cat >> $CONFIG_STATUS <
cat >> $CONFIG_STATUS <
ac_sources="$files"
ac_sources="$files"
ac_dests="$links"
ac_dests="$links"
EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
cat >> $CONFIG_STATUS <<\EOF
srcdir=$ac_given_srcdir
srcdir=$ac_given_srcdir
while test -n "$ac_sources"; do
while test -n "$ac_sources"; do
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
  echo "linking $srcdir/$ac_source to $ac_dest"
  echo "linking $srcdir/$ac_source to $ac_dest"
  if test ! -r $srcdir/$ac_source; then
  if test ! -r $srcdir/$ac_source; then
    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  fi
  fi
  rm -f $ac_dest
  rm -f $ac_dest
  # Make relative symlinks.
  # Make relative symlinks.
  # Remove last slash and all that follows it.  Not all systems have dirname.
  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
    # The dest file is in a subdirectory.
    # The dest file is in a subdirectory.
    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dest_dir_suffix.
    # A "../" for each directory in $ac_dest_dir_suffix.
    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  else
  else
    ac_dest_dir_suffix= ac_dots=
    ac_dest_dir_suffix= ac_dots=
  fi
  fi
  case "$srcdir" in
  case "$srcdir" in
  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  esac
  esac
  # Make a symlink if possible; otherwise try a hard link.
  # Make a symlink if possible; otherwise try a hard link.
  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
    ln $srcdir/$ac_source $ac_dest; then :
    ln $srcdir/$ac_source $ac_dest; then :
  else
  else
    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  fi
  fi
done
done
EOF
EOF
cat >> $CONFIG_STATUS <
cat >> $CONFIG_STATUS <
gdb_host_cpu=$gdb_host_cpu
gdb_host_cpu=$gdb_host_cpu
gdb_target_cpu=$gdb_target_cpu
gdb_target_cpu=$gdb_target_cpu
nativefile=$nativefile
nativefile=$nativefile
EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
cat >> $CONFIG_STATUS <<\EOF
if test "${nativefile}" = ""; then
if test "${nativefile}" = ""; then
sed -e '/^NATDEPFILES[  ]*=[    ]*/s//# NATDEPFILES=/' \
sed -e '/^NATDEPFILES[  ]*=[    ]*/s//# NATDEPFILES=/' \
        < Makefile > Makefile.tem
        < Makefile > Makefile.tem
mv -f Makefile.tem Makefile
mv -f Makefile.tem Makefile
fi
fi
sed -e '/^TM_FILE[      ]*=/s,^TM_FILE[         ]*=[    ]*,&config/'"${gdb_target_cpu}"'/,
sed -e '/^TM_FILE[      ]*=/s,^TM_FILE[         ]*=[    ]*,&config/'"${gdb_target_cpu}"'/,
/^XM_FILE[      ]*=/s,^XM_FILE[         ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,
/^XM_FILE[      ]*=/s,^XM_FILE[         ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,
/^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' Makefile.tmp
/^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' Makefile.tmp
mv -f Makefile.tmp Makefile
mv -f Makefile.tmp Makefile
case x$CONFIG_HEADERS in
case x$CONFIG_HEADERS in
xconfig.h:config.in)
xconfig.h:config.in)
echo > stamp-h ;;
echo > stamp-h ;;
esac
esac
exit 0
exit 0
EOF
EOF
chmod +x $CONFIG_STATUS
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
if test "$no_recursion" != yes; then
if test "$no_recursion" != yes; then
  # Remove --cache-file and --srcdir arguments so they do not pile up.
  # Remove --cache-file and --srcdir arguments so they do not pile up.
  ac_sub_configure_args=
  ac_sub_configure_args=
  ac_prev=
  ac_prev=
  for ac_arg in $ac_configure_args; do
  for ac_arg in $ac_configure_args; do
    if test -n "$ac_prev"; then
    if test -n "$ac_prev"; then
      ac_prev=
      ac_prev=
      continue
      continue
    fi
    fi
    case "$ac_arg" in
    case "$ac_arg" in
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
      ;;
      ;;
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      ;;
      ;;
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
    esac
    esac
  done
  done
  for ac_config_dir in $configdirs; do
  for ac_config_dir in $configdirs; do
    # Do not complain, so a configure script can configure whichever
    # Do not complain, so a configure script can configure whichever
    # parts of a large source tree are present.
    # parts of a large source tree are present.
    if test ! -d $srcdir/$ac_config_dir; then
    if test ! -d $srcdir/$ac_config_dir; then
      continue
      continue
    fi
    fi
    echo configuring in $ac_config_dir
    echo configuring in $ac_config_dir
    case "$srcdir" in
    case "$srcdir" in
    .) ;;
    .) ;;
    *)
    *)
      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
      else
      else
        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
      fi
      fi
      ;;
      ;;
    esac
    esac
    ac_popdir=`pwd`
    ac_popdir=`pwd`
    cd $ac_config_dir
    cd $ac_config_dir
      # A "../" for each directory in /$ac_config_dir.
      # A "../" for each directory in /$ac_config_dir.
      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
    case "$srcdir" in
    case "$srcdir" in
    .) # No --srcdir option.  We are building in place.
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
      ac_sub_srcdir=$srcdir ;;
    /*) # Absolute path.
    /*) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
    *) # Relative path.
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
    esac
    esac
    # Check for guested configure; otherwise get Cygnus style configure.
    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure; then
    if test -f $ac_sub_srcdir/configure; then
      ac_sub_configure=$ac_sub_srcdir/configure
      ac_sub_configure=$ac_sub_srcdir/configure
    elif test -f $ac_sub_srcdir/configure.in; then
    elif test -f $ac_sub_srcdir/configure.in; then
      ac_sub_configure=$ac_configure
      ac_sub_configure=$ac_configure
    else
    else
      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
      ac_sub_configure=
      ac_sub_configure=
    fi
    fi
    # The recursion is here.
    # The recursion is here.
    if test -n "$ac_sub_configure"; then
    if test -n "$ac_sub_configure"; then
      # Make the cache file name correct relative to the subdirectory.
      # Make the cache file name correct relative to the subdirectory.
      case "$cache_file" in
      case "$cache_file" in
      /*) ac_sub_cache_file=$cache_file ;;
      /*) ac_sub_cache_file=$cache_file ;;
      *) # Relative path.
      *) # Relative path.
        ac_sub_cache_file="$ac_dots$cache_file" ;;
        ac_sub_cache_file="$ac_dots$cache_file" ;;
      esac
      esac
  case "$ac_given_INSTALL" in
  case "$ac_given_INSTALL" in
        [/$]*) INSTALL="$ac_given_INSTALL" ;;
        [/$]*) INSTALL="$ac_given_INSTALL" ;;
        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
        esac
        esac
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
      # The eval makes quoting arguments work.
      # The eval makes quoting arguments work.
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
      then :
      then :
      else
      else
        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
      fi
      fi
    fi
    fi
    cd $ac_popdir
    cd $ac_popdir
  done
  done
fi
fi
exit 0
exit 0
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.