head	1.1;
branch	1.1.1;
access;
symbols
	EMACS_21_2:1.1.1.34
	EMACS_21_1:1.1.1.33
	EMACS_21_0_106:1.1.1.32
	EMACS_21_0_105:1.1.1.31
	EMACS_21_0_103:1.1.1.30
	EMACS_20_7:1.1.1.29
	EMACS_20_6:1.1.1.28
	EMACS_20_5:1.1.1.27
	EMACS_20_4:1.1.1.26
	EMACS_20_3:1.1.1.25
	EMACS_20_2:1.1.1.24
	EMACS_20_1:1.1.1.24
	EMACS_19_34:1.1.1.23
	EMACS_19_33:1.1.1.22
	EMACS_19_32:1.1.1.21
	EMACS_19_31:1.1.1.20
	EMACS_19_30:1.1.1.19
	EMACS_19_29:1.1.1.18
	EMACS_19_28:1.1.1.17
	EMACS_19_27:1.1.1.16
	EMACS_19_26:1.1.1.16
	EMACS_19_25:1.1.1.15
	EMACS_19_24:1.1.1.15
	EMACS_19_23:1.1.1.15
	EMACS_19_22:1.1.1.14
	EMACS_19_21:1.1.1.13
	EMACS_19_20:1.1.1.12
	EMACS_19_19:1.1.1.11
	EMACS_19_18:1.1.1.10
	EMACS_19_17:1.1.1.9
	EMACS_19_16:1.1.1.8
	EMACS_19_15:1.1.1.7
	EMACS_19_14:1.1.1.6
	EMACS_19_13:1.1.1.5
	EMACS_19_12:1.1.1.4
	EMACS_19_11:1.1.1.4
	EMACS_19_10:1.1.1.3
	EMACS_19_9:1.1.1.2
	EMACS_19_8:1.1.1.2
	EMACS_19_7:1.1.1.1
	FSF_DIST:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2004.11.05.07.57.40;	author Ben Wing;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2004.11.05.07.57.40;	author Ben Wing;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.11.05.08.00.24;	author Ben Wing;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2004.11.05.08.06.16;	author Ben Wing;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2004.11.05.08.09.11;	author Ben Wing;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2004.11.05.08.14.47;	author Ben Wing;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2004.11.05.08.17.48;	author Ben Wing;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2004.11.05.08.21.35;	author Ben Wing;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2004.11.05.08.24.22;	author Ben Wing;	state Exp;
branches;
next	1.1.1.9;

1.1.1.9
date	2004.11.05.08.27.26;	author Ben Wing;	state Exp;
branches;
next	1.1.1.10;

1.1.1.10
date	2004.11.05.08.30.24;	author Ben Wing;	state Exp;
branches;
next	1.1.1.11;

1.1.1.11
date	2004.11.05.08.33.56;	author Ben Wing;	state Exp;
branches;
next	1.1.1.12;

1.1.1.12
date	2004.11.05.08.37.15;	author Ben Wing;	state Exp;
branches;
next	1.1.1.13;

1.1.1.13
date	2004.11.05.08.40.49;	author Ben Wing;	state Exp;
branches;
next	1.1.1.14;

1.1.1.14
date	2004.11.05.08.44.02;	author Ben Wing;	state Exp;
branches;
next	1.1.1.15;

1.1.1.15
date	2004.11.05.08.47.15;	author Ben Wing;	state Exp;
branches;
next	1.1.1.16;

1.1.1.16
date	2004.11.05.08.58.49;	author Ben Wing;	state Exp;
branches;
next	1.1.1.17;

1.1.1.17
date	2004.11.05.09.06.28;	author Ben Wing;	state Exp;
branches;
next	1.1.1.18;

1.1.1.18
date	2004.11.05.09.09.57;	author Ben Wing;	state Exp;
branches;
next	1.1.1.19;

1.1.1.19
date	2004.11.05.09.15.22;	author Ben Wing;	state Exp;
branches;
next	1.1.1.20;

1.1.1.20
date	2004.11.05.09.21.01;	author Ben Wing;	state Exp;
branches;
next	1.1.1.21;

1.1.1.21
date	2004.11.05.09.27.54;	author Ben Wing;	state Exp;
branches;
next	1.1.1.22;

1.1.1.22
date	2004.11.05.09.33.14;	author Ben Wing;	state Exp;
branches;
next	1.1.1.23;

1.1.1.23
date	2004.11.05.09.37.59;	author Ben Wing;	state Exp;
branches;
next	1.1.1.24;

1.1.1.24
date	2004.11.05.09.42.43;	author Ben Wing;	state Exp;
branches;
next	1.1.1.25;

1.1.1.25
date	2004.11.05.09.55.27;	author Ben Wing;	state Exp;
branches;
next	1.1.1.26;

1.1.1.26
date	2004.11.05.10.03.22;	author Ben Wing;	state Exp;
branches;
next	1.1.1.27;

1.1.1.27
date	2004.11.05.10.11.07;	author Ben Wing;	state Exp;
branches;
next	1.1.1.28;

1.1.1.28
date	2004.11.05.10.17.25;	author Ben Wing;	state Exp;
branches;
next	1.1.1.29;

1.1.1.29
date	2004.11.05.10.23.31;	author Ben Wing;	state Exp;
branches;
next	1.1.1.30;

1.1.1.30
date	2004.11.05.10.29.41;	author Ben Wing;	state Exp;
branches;
next	1.1.1.31;

1.1.1.31
date	2004.11.05.10.39.16;	author Ben Wing;	state Exp;
branches;
next	1.1.1.32;

1.1.1.32
date	2004.11.05.10.49.43;	author Ben Wing;	state Exp;
branches;
next	1.1.1.33;

1.1.1.33
date	2004.11.05.10.58.16;	author Ben Wing;	state Exp;
branches;
next	1.1.1.34;

1.1.1.34
date	2004.11.05.11.06.26;	author Ben Wing;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@
### The above line is deliberately left blank.  If it starts with a #,
### some CSH's will think this is a csh script.

#### Configuration script for GNU Emacs
#### Copyright (C) 1992 Free Software Foundation, Inc.

### This file is part of GNU Emacs.

### GNU Emacs is free software; you can redistribute it and/or modify
### it under the terms of the GNU General Public License as published by
### the Free Software Foundation; either version 1, or (at your option)
### any later version.

### GNU Emacs is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
### GNU General Public License for more details.

### You should have received a copy of the GNU General Public License
### along with GNU Emacs; see the file COPYING.  If not, write to
### the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.


### Since Emacs has configuration requirements that autoconf can't
### meet, this file is an unholy marriage of custom-baked
### configuration code and autoconf macros.  New versions of autoconf
### could very well break this arrangement.
###
### We omit the invocation of autoconf's initialization function,
### because it produces Bourne shell code to parse arguments, but we
### need to parse our own arguments.
###
### We use the m4 quoting characters [ ] (as established by the
### autoconf system) to include large sections of raw sewage - Oops, I
### mean, shell code - in the final configuration script.
###
### Usage: configure config_name
###
### If configure succeeds, it leaves its status in config.status.
### If configure fails after disturbing the status quo,
### 	config.status is removed.


### Remove any more than one leading "." element from the path name.
### If we don't remove them, then another "./" will be prepended to
### the file name each time we use config.status, and the program name
### will get larger and larger.  This wouldn't be a problem, except
### that since progname gets recorded in all the Makefiles this script
### produces, move-if-change thinks they're different when they're
### not.
###
### It would be nice if we could put the ./ in a \( \) group and then
### apply the * operator to that, so we remove as many leading ./././'s
### as are present, but some seds (like Ultrix's sed) don't allow you to
### apply * to a \( \) group.  Bleah.
progname="`echo $0 | sed 's:^\./\./:\./:'`"


#### Usage messages.

short_usage="Type \`${progname} --usage' for more information about options."

long_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]

Set compilation and installation parameters for GNU Emacs, and report.
CONFIGURATION specifies the machine and operating system to build for.
For example:
        ${progname} sparc-sun-sunos4.1
configures Emacs to build on a Sun Sparc machine running SunOS 4.1, and 
        ${progname} decstation
configures Emacs to run on a DECstation running Ultrix.  See \`etc/MACHINES'.

The --with-x, --with-x11 and --with-x10 options specify what window
	system to use; if all are omitted, use X11 if present.  If you
	don't want X, specify \`--with-x=no'.

The --x-includes=DIR option tells the build process where to search
	for the X Windows header files.  DIR should have a
	subdirectory called \`X11' which contains \`X.h', \`Xlib.h', and
	the rest of the header files; DIR should not contain \`X11'
	itself.  If this option is omitted, the build process assumes
	they exist in a directory the compiler checks by default.

The --x-libraries=DIR option tells the build process where to look for
	the X windows libraries.  If this option is omitted, the build
	process assumes they are in a directory the compiler checks by
	default.

The --with-gcc option says that the build process should use GCC to
	compile Emacs.  If you have GCC but don't want to use it,
	specify \`--with-gcc=no'.  \`configure' tries to guess whether
	or not you have GCC by searching your executable path, but if
	it guesses incorrectly, you may need to use this.

The --run-in-place option sets up default values for the path
	variables in \`./Makefile' so that Emacs will expect to find
	its data files (lisp libraries, runnable programs, and the
	like) in the same locations they occupy while Emacs builds.
	This means that you don't have to install Emacs in order to
	run it; it uses its data files as they were unpacked.

The --srcdir=DIR option specifies that the configuration and build
	processes should look for the Emacs source code in DIR, when
	DIR is not the current directory.

If successful, ${progname} leaves its status in config.status.  If
unsuccessful after disturbing the status quo, it removes config.status."


#### Option processing.

### Record all the arguments, so we can save them in config.status.
arguments="$@@"

### These values are used to comment and uncomment different values
### for the path variables in the Makefile, to choose the installed
### configuration or the run-in-place configuration.
rip_paths='#disabled# '
inst_paths=''

while [ $# != 0 ]; do
  arg="$1"
  case "${arg}" in

    ## Anything starting with a hyphen we assume is an option.
    -* )

      ## Separate the switch name from the value it's being given.
      case "${arg}" in
        -*=*)
	  opt=`echo ${arg} | sed 's:^-*\([^=]*\)=.*$:\1:'`
	  val=`echo ${arg} | sed 's:^-*[^=]*=\(.*\)$:\1:'`
	  valomitted=no
	;;
        -*)
          ## If FOO is a boolean argument, --FOO is equivalent to
          ## --FOO=yes.  Otherwise, the value comes from the next
          ## argument - see below.
	  opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:'`
          val="yes"
          valomitted=yes
        ;;
      esac

      ## Change `-' in the option name to `_'.
      optname="${opt}"
      opt="`echo ${opt} | tr - _`"

      ## Process the option.
      case "${opt}" in

        ## Has the user specified which window systems they want to support?
        "with_x" | "with_x11" | "with_x10" )
	  ## Make sure the value given was either "yes" or "no".
	  case "${val}" in
	    y | ye | yes )	val=yes ;;
	    n | no )		val=no  ;;
	    * )
	      (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
Set it to either \`yes' or \`no'."
	       echo "${short_usage}") >&2
	      exit 1
	    ;;
	  esac
          eval "${opt}=\"${val}\""
        ;;

	## Has the user specified whether or not they want GCC?
	"with_gcc" )
	  ## Make sure the value given was either "yes" or "no".
	  case "${val}" in
	    y | ye | yes )	val=yes ;;
	    n | no )		val=no  ;;
	    * )
	      (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
Set it to either \`yes' or \`no'."
	       echo "${short_usage}") >&2
	      exit 1
	    ;;
	  esac
          eval "${opt}=\"${val}\""
        ;;

        ## Has the user specified a source directory?
	"srcdir" )
	  ## If the value was omitted, get it from the next argument.
	  if [ "${valomitted}" = "yes" ]; then
	    ## Get the next argument from the argument list, if there is one.
            if [ $# = 1 ]; then
	      (echo "${progname}: You must give a value for the \`--${optname}' option, as in
    \`--${optname}=FOO'."
	       echo "${short_usage}") >&2
	      exit 1
	    fi
	    shift; val="$1"
	  fi
          srcdir="${val}"
	;;

	## Has the user tried to tell us where the X files are?
	## I think these are dopey, but no less than three alpha
	## testers, at large sites, have said they have their X files
	## installed in odd places.
	"x_includes" )
	  ## If the value was omitted, get it from the next argument.
	  if [ "${valomitted}" = "yes" ]; then
	    ## Get the next argument from the argument list, if there is one.
            if [ $# = 1 ]; then
	      (echo "${progname}: You must give a value for the \`--${optname}' option, as in
    \`--${optname}=FOO'."
	       echo "${short_usage}") >&2
	      exit 1
	    fi
	    shift; val="$1"
	  fi
	  x_includes="${val}"
	  C_SWITCH_X_SITE="-I${x_includes}"
        ;;
	"x_libraries" )
	  ## If the value was omitted, get it from the next argument.
	  if [ "${valomitted}" = "yes" ]; then
	    ## Get the next argument from the argument list, if there is one.
            if [ $# = 1 ]; then
	      (echo "${progname}: You must give a value for the \`--${optname}' option, as in
    \`--${optname}=FOO'."
	       echo "${short_usage}") >&2
	      exit 1
	    fi
	    shift; val="$1"
	  fi
	  x_libraries="${val}"
	  LD_SWITCH_X_SITE="-L${x_libraries}"
        ;;

	## Should this use the "development configuration"?
	"run_in_place" )
	  rip_paths=''
	  inst_paths='#disabled# '
	;;

	## Has the user asked for some help?
	"usage" | "help" )
	  echo "${long_usage}" | more
	  exit
	;;

        ## We ignore all other options silently.
      esac
    ;;

    ## Anything not starting with a hyphen we assume is a
    ## configuration name.
    *)
      configuration=${arg}
    ;;

  esac
  shift
done

if [ "${configuration}" = "" ]; then
  (echo "${progname}: You must specify a configuration name as an argument."
   echo "${short_usage}") >&2
  exit 1
fi


#### Decide where the source is.
case "${srcdir}" in

  ## If it's not specified, see if  `.' or `..' might work.
  "" )
    if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
      srcdir=`pwd`
    else
      if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
	srcdir=`(cd .. ; pwd)`
      else
	(echo "\
${progname}: Neither the current directory nor its parent seem to
contain the Emacs sources.  If you do not want to build Emacs in its
source tree, you should run \`${progname}' in the directory in which
you wish to build Emacs, using its \`--srcdir' option to say where the
sources may be found."
	 echo "${short_usage}") >&2
	exit 1
      fi
    fi
  ;;

  ## Otherwise, check if the directory they specified is okay.
  * )
    if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
      (echo "\
${progname}: The directory specified with the \`--srcdir' option,
\`${srcdir}', doesn't seem to contain the Emacs sources.  You should
either run the \`${progname}' script at the top of the Emacs source
tree, or use the \`--srcdir' option to specify where the Emacs sources
are."
       echo "${short_usage}") >&2
      exit 1
    fi
  ;;

esac

### Make the necessary directories, if they don't exist.
if [ ! -d ./src ]; then
  mkdir ./src
fi
if [ ! -d ./lib-src ]; then
  mkdir ./lib-src
fi
if [ ! -d ./cpp ]; then
  mkdir ./cpp
fi
if [ ! -d ./oldXMenu ]; then
  mkdir ./oldXMenu
fi
if [ ! -d ./etc ]; then
  mkdir ./etc
fi

#### Given the configuration name, set machfile and opsysfile to the
#### names of the m/*.h and s/*.h files we should use.

### Canonicalize the configuration name.
echo "Checking the configuration name."
if configuration=`${srcdir}/config.sub "${configuration}"` ; then : ; else
  exit $?
fi

### If you add support for a new configuration, add code to this
### switch statement to recognize your configuration name and select
### the appropriate operating system and machine description files.

### You would hope that you could choose an m/*.h file pretty much
### based on the machine portion of the configuration name, and an s-
### file based on the operating system portion.  However, it turns out
### that each m/*.h file is pretty manufacturer-specific - for
### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
### machines.  So we basically have to have a special case for each
### configuration name.
###
### As far as handling version numbers on operating systems is
### concerned, make sure things will fail in a fixable way.  If
### /etc/MACHINES doesn't say anything about version numbers, be
### prepared to handle anything reasonably.  If version numbers
### matter, be sure /etc/MACHINES says something about it.
###
### Eric Raymond says we should accept strings like "sysvr4" to mean
### "System V Release 4"; he writes, "The old convention encouraged
### confusion between `system' and `release' levels'."

machine='' opsys='' unported='false'
case "${configuration}" in

  ## Alliant machines
  ## Strictly speaking, we need the version of the alliant operating
  ## system to choose the right machine file, but currently the
  ## configuration name doesn't tell us enough to choose the right
  ## one; we need to give alliants their own operating system name to
  ## do this right.  When someone cares, they can help us.
  fx80-alliant-* )
    machine=alliant4 opsys=bsd4-2
  ;;
  i860-alliant-* )
    machine=alliant-2800 opsys=bsd4-3
  ;;

  ## Altos 3068
  m68*-altos-sysv* )
    machine=altos opsys=usg5-2
  ;;
    
  ## Amdahl UTS
  580-amdahl-sysv* )
    machine=amdahl opsys=usg5-2-2
  ;;

  ## Appallings - I mean, Apollos - running Domain
  m68*-apollo* )
    machine=apollo opsys=bsd4-2
  ;;

  ## AT&T 3b2, 3b5, 3b15, 3b20
  we32k-att-sysv* )
    machine=att3b opsys=usg5-2-2
  ;;

  ## AT&T 3b1 - The Mighty Unix PC!
  m68*-att-sysv* )
    machine=7300 opsys=usg5-2-2
  ;;

  ## Bull sps7
  m68*-bull-sysv* )
    machine=sps7 opsys=usg5-2
  ;;

  ## CCI 5/32, 6/32 -- see "Tahoe".

  ## Celerity
  ## I don't know what configuration name to use for this; config.sub
  ## doesn't seem to know anything about it.  Hey, Celerity users, get
  ## in touch with us!
  celerity-celerity-bsd* )
    machine=celerity opsys=bsd4-2
  ;;

  ## Clipper
  ## What operating systems does this chip run that Emacs has been
  ## tested on?
  clipper-* )
    machine=clipper
    ## We'll use the catch-all code at the bottom to guess the
    ## operating system.
  ;;

  ## Convex
  *-convex-bsd* )
    machine=convex opsys=bsd4-3
  ;;

  ## Cubix QBx/386
  i386-cubix-sysv* )
    machine=intel386 opsys=usg5-3
  ;;

  ## Cydra 5
  cydra*-cydrome-sysv* )
    machine=cydra5 opsys=usg5-3
  ;;

  ## DECstations
  mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0 | mips-dec-bsd4.2 )
    machine=pmax opsys=bsd4-2
  ;;
  mips-dec-ultrix* | mips-dec-bsd* )
    machine=pmax opsys=bsd4-3
  ;;
  mips-dec-osf* )
    machine=pmax opsys=osf1
  ;;

  ## Motorola Delta machines
  m68*-motorola-sysv* )
    machine=delta opsys=usg5-3
  ;;
  m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
    machine=delta88k opsys=usg5-3
  ;;

  ## Dual machines
  m68*-dual-sysv* )
    machine=dual opsys=usg5-2
  ;;
  m68*-dual-uniplus* )
    machine=dual opsys=unipl5-2
  ;;

  ## Elxsi 6400
  elxsi-elxsi-sysv* )
    machine=elxsi opsys=usg5-2
  ;;

  ## Encore machines
  ns16k-encore-bsd* )
    machine=ns16000 opsys=umax
  ;;

  ## The GEC 93 - apparently, this port isn't really finished yet.

  ## Gould Power Node and NP1
  pn-gould-bsd4.2 )
    machine=gould opsys=bsd4-2
  ;;
  pn-gould-bsd4.3 )
    machine=gould opsys=bsd4-3
  ;;
  np1-gould-bsd* )
    machine=gould-np1 opsys=bsd4-3
  ;;

  ## Honeywell XPS100
  xps*-honeywell-sysv* )
    machine=xps100 opsys=usg5-2
  ;;

  ## HP 9000 series 200 or 300
  m68*-hp-bsd* )
    machine=hp9000s300 opsys=bsd4-3
  ;;
  ## HP/UX 8 doesn't run on these machines, so use HP/UX 7.
  m68*-hp-hpux* )
    machine=hp9000s300 opsys=hpux
  ;;

  ## HP 9000 series 800, running HP/UX
  hppa1.0-hp-hpux* )
    machine=hp9000s800 opsys=hpux
  ;;

  ## Orion machines
  orion-orion-bsd* )
    machine=orion opsys=bsd4-2
  ;;
  clipper-orion-bsd* )
    machine=orion105 opsys=bsd4-2
  ;;

  ## IBM machines
  i386-ibm-aix1.1 )
    machine=ibmps2-aix opsys=usg5-2-2
  ;;
  i386-ibm-aix1.2 )
    machine=ibmps2-aix opsys=usg5-3
  ;;
  rs6000-ibm-aix3.1 )
    machine=ibmrs6000 opsys=aix3-1
  ;;
  rs6000-ibm-aix3.2 | rs6000-ibm-aix* )
    machine=ibmrs6000 opsys=aix3-2
  ;;
  romp-ibm-bsd* )
    machine=ibmrt opsys=bsd4-2
  ;;
  romp-ibm-aix* )
    machine=ibmrt-aix opsys=usg5-2-2
  ;;

  ## Integrated Solutions `Optimum V'
  m68*-isi-bsd4.2 )
    machine=isi-ov opsys=bsd4-2
  ;;
  m68*-isi-bsd4.3 )
    machine=isi-ov opsys=bsd4-3
  ;;

  ## Intel 386 machines where we do care about the manufacturer
  i[34]86-intsys-sysv* )
    machine=is386 opsys=usg5-2-2
  ;;
  ## Intel 386 machines where we don't care about the manufacturer
  i[34]86-* )
    machine=intel386
    case "${configuration}" in
      *-isc1.* | *-isc2.[01]* )	opsys=386-ix ;;
      *-isc2.2 )		opsys=isc2-2 ;;
      *-isc* )			opsys=isc3-0 ;;
      *-esix* )			opsys=esix ;;
      *-xenix* )		opsys=xenix ;;
      *-linux* )		opsys=linux ;;
      *-sco3.2v4* )		opsys=sco4 ;;
      ## Otherwise, we'll fall through to the generic opsys code at the bottom.
    esac
  ;;

  ## Silicon Graphics machines
  ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
  m68*-sgi-iris3.5 )
    machine=irist opsys=iris3-5
  ;;
  m68*-sgi-iris3.6 | m68*-sgi-iris*)
    machine=irist opsys=iris3-6
  ;;
  ## Iris 4D
  mips-sgi-irix3.* )
    machine=iris4d opsys=irix3-3
  ;;
  mips-sgi-irix4.* | mips-sgi-irix* )
    machine=iris4d opsys=irix4-0
  ;;

  ## Masscomp machines
  m68*-masscomp-rtu )
    machine=masscomp opsys=rtu
  ;;

  ## Megatest machines
  m68*-megatest-bsd* )
    machine=mega68 opsys=bsd4-2
  ;;

  ## Workstations sold by MIPS
  ## This is not necessarily all workstations using the MIPS processor -
  ## Irises are produced by SGI, and DECstations by DEC.

  ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
  ## and usg5-2-2 and bsd4-3 as possible OS files.  The only guidance
  ## it gives for choosing between the alternatives seems to be "Use
  ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
  ## the BSD world."  I'll assume that these are instructions for
  ## handling two odd situations, and that every other situation
  ## should use mips.h and usg5-2-2, they being listed first.
  mips-mips-riscos4* )
    machine=mips4 opsys=usg5-2-2
  ;;
  mips-mips-bsd* )
    machine=mips opsys=bsd4-3
  ;;
  mips-mips-* )
    machine=mips opsys=usg5-2-2
  ;;

  ## NeXT
  m68*-next-mach* | m68*-next-bsd* )
    machine=next opsys=mach2
  ;;

  ## The complete machine from National Semiconductor
  ns32k-ns-genix* )
    machine=ns32000 opsys=usg5-2
  ;;

  ## NCR machines
  m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
    machine=tower32 opsys=usg5-2-2
  ;;
  m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
    machine=tower32v3 opsys=usg5-3
  ;;

  ## Nixdorf Targon 31
  m68*-nixdorf-sysv* )
    machine=targon31 opsys=usg5-2-2
  ;;

  ## Nu (TI or LMI)
  m68*-nu-sysv* )
    machine=nu opsys=usg5-2
  ;;

  ## Plexus
  m68*-plexus-sysv* )
    machine=plexus opsys=usg5-2
  ;;

  ## Prime EXL
  i386-prime-sysv* )
    machine=i386 opsys=usg5-3
  ;;

  ## Pyramid machines
  ## I don't really have any idea what sort of processor the Pyramid has,
  ## so I'm assuming it is its own architecture.
  pyramid-pyramid-bsd* )
    machine=pyramid opsys=bsd4-2
  ;;

  ## Sequent Balance
  ns32k-sequent-bsd4.2 )
    machine=sequent opsys=bsd4-2
  ;;
  ns32k-sequent-bsd4.3 )
    machine=sequent opsys=bsd4-3
  ;;
  ## Sequent Symmetry
  i386-sequent-bsd* )
    machine=symmetry opsys=bsd4-3
  ;;

  ## SONY machines
  m68*-sony-bsd4.2 )
    machine=news opsys=bsd4-2
  ;;
  m68*-sony-bsd4.3 )
    machine=news opsys=bsd4-3
  ;;
  mips-sony-bsd* )
    machine=news-risc opsys=bsd4-3
  ;;

  ## Stride
  m68*-stride-sysv* )
    machine=stride opsys=usg5-2
  ;;

  ## Suns
  *-sun-sunos* | *-sun-bsd* | *-sun-solaris* )
    case "${configuration}" in
      m68*-sunos1* )	machine=sun1 ;;
      m68*-sunos2* )	machine=sun2 ;;
      m68* )		machine=sun3 ;;
      i[34]86* )	machine=sun386 ;;
      sparc* )		machine=sparc ;;
      * )		unported=true ;;
    esac
    case "${configuration}" in
      *-sunos4.0*	  ) opsys=sunos4-0 ;;
      *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
      *-sunos5* | *-solaris* ) opsys=sol2 ;;
      *			  ) opsys=bsd4-2   ;;
    esac
  ;;

  ## Tadpole 68k
  m68*-tadpole-sysv* )
    machine=tad68k opsys=usg5-3
  ;;

  ## Tahoe machines
  tahoe-tahoe-bsd4.2 )
    machine=tahoe opsys=bsd4-2
  ;;
  tahoe-tahoe-bsd4.3 )
    machine=tahoe opsys=bsd4-3
  ;;

  ## Tandem Integrity S2
  mips-tandem-sysv* )
    machine=tandem-s2 opsys=usg5-3
  ;;

  ## Tektronix 16000 box (6130?)
  ns16k-tektronix-bsd* )
    machine=ns16000 opsys=bsd4-2
  ;;
  ## Tektronix 4300
  ## src/m/tek4300.h hints that this is a m68k machine.
  m68*-tektronix-bsd* )
    machine=tex4300 opsys=bsd4-3
  ;;

  ## Titan P2 or P3
  ## We seem to have lost the machine-description file titan.h!
  titan-titan-sysv* )
    machine=titan opsys=usg5-3
  ;;
  
  ## Ustation E30 (SS5E)
  m68*-unisys-uniplus* )
    machine=ustation opsystem=unipl5-2
  ;;

  ## Vaxen.
  vax-dec-* )
    machine=vax
    case "${configuration}" in
      *-bsd4.1 ) 					opsys=bsd4-1 ;;
      *-bsd4.2 | *-ultrix[0-3].* | *-ultrix4.0 )	opsys=bsd4-2 ;;
      *-bsd4.3 | *-ultrix* ) 				opsys=bsd4-3 ;;
      *-sysv[01]* | *-sysvr[01]* ) 			opsys=usg5-0 ;;
      *-sysv2* | *-sysvr2* )				opsys=usg5-2 ;;
      *-vms* ) 						opsys=vms ;;
      * ) 						unported=true
    esac
  ;;

  ## Whitechapel MG1
  ns16k-whitechapel-* )
    machine=mg1
    ## We don't know what sort of OS runs on these; we'll let the
    ## operating system guessing code below try.
  ;;

  ## Wicat
  m68*-wicat-sysv* )
    machine=wicat opsys=usg5-2
  ;;

  * )
    unported=true
  ;;
esac

### If the code above didn't choose an operating system, just choose
### an operating system based on the configuration name.  You really
### only want to use this when you have no idea what the right
### operating system is; if you know what operating systems a machine
### runs, it's cleaner to make it explicit in the case statement
### above.
if [ ! "${opsys}" ]; then
  case "${configuration}" in
    *-bsd4.[01] )	opsys=bsd4-1 ;;
    *-bsd4.2 )		opsys=bsd4-2 ;;
    *-bsd4.3 )		opsys=bsd4-3 ;;
    *-sysv0 | *-sysvr0 )		opsys=usg5-0 ;;
    *-sysv2 | *-sysvr2 )		opsys=usg5-2 ;;
    *-sysv2.2 | *-sysvr2.2 )		opsys=usg5-2-2 ;;
    *-sysv3 | *-sysvr3 )		opsys=usg5-3 ;;
    *-sysv4 | *-sysvr4 )		opsys=usg5-4 ;;
    * )
      unported=true
    ;;
  esac
fi

if $unported ; then
  (echo "${progname}: Emacs hasn't been ported to \`${configuration}' systems."
   echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
  ) >&2
  exit 1
fi

machfile="m/${machine}.h"
opsysfile="s/${opsys}.h"


trap 'rm -f conftest* core; exit 1' 1 3 15

# Needed for some versions of `tr' so that character classes in `[]' work.
if test "${LANG+set}" = "set" ; then
   LANG=C
fi

rm -f conftest*
compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'

# 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.
unique_file=lisp

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  srcdirdefaulted=yes
  # Try the directory containing this script, then `..'.
  prog=$0
  confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  test "X$confdir" = "X$prog" && confdir=.
  srcdir=$confdir
  if test ! -r $srcdir/$unique_file; then
    srcdir=..
  fi
fi
if test ! -r $srcdir/$unique_file; then
  if test x$srcdirdefaulted = xyes; then
    echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  else
    echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  fi
  exit 1
fi
# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
# But we can't avoid them for `..', to make subdirectories work.
case $srcdir in
  .|/*|~*) ;;
  *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
esac




#### Choose a compiler.
case ${with_gcc} in
  "yes" ) CC="gcc" GCC=1 ;;
  "no"  ) CC="cc"        ;;
  * )
     if test -z "$CC"; then
  # Extract the first word of `gcc', so it can be a program name with args.
  set dummy gcc; word=$2
  echo checking for $word
  IFS="${IFS= 	}"; saveifs="$IFS"; IFS="${IFS}:"
  for dir in $PATH; do
    test -z "$dir" && dir=.
    if test -f $dir/$word; then
      CC="gcc"
      break
    fi
  done
  IFS="$saveifs"
fi
test -z "$CC" && CC="cc"
test -n "$CC" -a -n "$verbose" && echo "	setting CC to $CC"

# Find out if we are using GNU C, under whatever name.
cat > conftest.c <<EOF
#ifdef __GNUC__
  yes
#endif
EOF
${CC-cc} -E conftest.c > conftest.out 2>&1
if egrep yes conftest.out >/dev/null 2>&1; then
  GCC=1 # For later tests.
fi
rm -f conftest*
 
esac

CFLAGS='-g'
if test -n "${GCC}"; then
  CFLAGS='-g -O'
fi

#### Some other nice autoconf tests.  If you add a test here which
#### should make an entry in src/config.h, don't forget to add an
#### #undef clause to src/config.h.in for autoconf to modify.

echo checking for ln -s
rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  LN_S="ln -s"
else
  LN_S=ln
fi


echo checking how to run the C preprocessor
if test -z "$CPP"; then
  CPP='${CC-cc} -E'
  cat > conftest.c <<EOF
#include <stdio.h>
EOF
err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
if test -z "$err"; then
  :
else
  CPP=/lib/cpp
fi
rm -f conftest*
fi



for hdr in sys/timeb.h sys/time.h
do
trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
echo checking for ${hdr}
cat > conftest.c <<EOF
#include <${hdr}>
EOF
err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
if test -z "$err"; then
  {
test -n "$verbose" && \
echo '	defining' ${trhdr}
DEFS="$DEFS -D${trhdr}=1"
SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
\${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
\${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*
done

echo checking for ANSI C header files
cat > conftest.c <<EOF
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
if test -z "$err"; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
echo '#include <string.h>' > conftest.c
eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
if egrep "memchr" conftest.out >/dev/null 2>&1; then
  # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cat > conftest.c <<EOF
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
eval $compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  {
test -n "$verbose" && \
echo '	defining' STDC_HEADERS
DEFS="$DEFS -DSTDC_HEADERS=1"
SEDDEFS="${SEDDEFS}\${SEDdA}STDC_HEADERS\${SEDdB}STDC_HEADERS\${SEDdC}1\${SEDdD}
\${SEDuA}STDC_HEADERS\${SEDuB}STDC_HEADERS\${SEDuC}1\${SEDuD}
\${SEDeA}STDC_HEADERS\${SEDeB}STDC_HEADERS\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*
fi
rm -f conftest*

fi
rm -f conftest*

echo checking for whether time.h and sys/time.h may both be included
cat > conftest.c <<EOF
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() { exit(0); }
int t() { struct tm *tp; }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' TIME_WITH_SYS_TIME
DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
SEDDEFS="${SEDDEFS}\${SEDdA}TIME_WITH_SYS_TIME\${SEDdB}TIME_WITH_SYS_TIME\${SEDdC}1\${SEDdD}
\${SEDuA}TIME_WITH_SYS_TIME\${SEDuB}TIME_WITH_SYS_TIME\${SEDuC}1\${SEDuD}
\${SEDeA}TIME_WITH_SYS_TIME\${SEDeB}TIME_WITH_SYS_TIME\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*


echo checking for return type of signal handlers
cat > conftest.c <<EOF
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
extern void (*signal ()) ();
int main() { exit(0); }
int t() { int i; }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' RETSIGTYPE to be 'void'
DEFS="$DEFS -DRETSIGTYPE=void"
SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}void\${SEDdD}
\${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}void\${SEDuD}
\${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}void\${SEDeD}
"
}

else
  {
test -n "$verbose" && \
echo '	defining' RETSIGTYPE to be 'int'
DEFS="$DEFS -DRETSIGTYPE=int"
SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}int\${SEDdD}
\${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}int\${SEDuD}
\${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}int\${SEDeD}
"
}

fi
rm -f conftest*



# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo checking for working alloca.h
cat > conftest.c <<EOF
#include <alloca.h>
int main() { exit(0); }
int t() { char *p = alloca(2 * sizeof(int)); }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' HAVE_ALLOCA_H
DEFS="$DEFS -DHAVE_ALLOCA_H=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ALLOCA_H\${SEDdB}HAVE_ALLOCA_H\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_ALLOCA_H\${SEDuB}HAVE_ALLOCA_H\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_ALLOCA_H\${SEDeB}HAVE_ALLOCA_H\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*

decl="#ifdef __GNUC__
#define alloca __builtin_alloca
#else
#if HAVE_ALLOCA_H
#include <alloca.h>
#else
#ifdef _AIX
 #pragma alloca
#else
char *alloca ();
#endif
#endif
#endif
"
echo checking for alloca
cat > conftest.c <<EOF
$decl
int main() { exit(0); }
int t() { char *p = (char *) alloca(1); }
EOF
if eval $compile; then
  :
else
  alloca_missing=1
cat > conftest.c <<EOF

#if defined(CRAY) && ! defined(CRAY2)
winnitude
#else
lossage
#endif

EOF
eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  echo checking for _getb67
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__getb67) || defined (__stub____getb67)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char _getb67(); _getb67();
#endif
 }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' CRAY_STACKSEG_END to be '_getb67'
DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}_getb67\${SEDdD}
\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}_getb67\${SEDuD}
\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}_getb67\${SEDeD}
"
}

else
  echo checking for GETB67
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_GETB67) || defined (__stub___GETB67)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char GETB67(); GETB67();
#endif
 }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' CRAY_STACKSEG_END to be 'GETB67'
DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}GETB67\${SEDdD}
\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}GETB67\${SEDuD}
\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}GETB67\${SEDeD}
"
}

else
  echo checking for getb67
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getb67) || defined (__stub___getb67)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char getb67(); getb67();
#endif
 }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' CRAY_STACKSEG_END to be 'getb67'
DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}getb67\${SEDdD}
\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}getb67\${SEDuD}
\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}getb67\${SEDeD}
"
}

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*


fi
rm -f conftest*

if test -n "$alloca_missing"; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # 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.
  ALLOCA=alloca.o

  echo 'checking stack direction for C alloca'
  echo checking whether cross-compiling
# If we cannot run a trivial program, we must be cross compiling.
cat > conftest.c <<EOF
main(){exit(0);}
EOF
eval $compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  :
else
  cross_compiling=1
fi
rm -f conftest*

if test -n "$cross_compiling"
then
  {
test -n "$verbose" && \
echo '	defining' STACK_DIRECTION to be '0'
DEFS="$DEFS -DSTACK_DIRECTION=0"
SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}0\${SEDdD}
\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}0\${SEDuD}
\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}0\${SEDeD}
"
}

else
cat > conftest.c <<EOF
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}
main ()
{
  exit (find_stack_direction() < 0);
}
EOF
eval $compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  {
test -n "$verbose" && \
echo '	defining' STACK_DIRECTION to be '1'
DEFS="$DEFS -DSTACK_DIRECTION=1"
SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}1\${SEDdD}
\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}1\${SEDuD}
\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}1\${SEDeD}
"
}

else
  {
test -n "$verbose" && \
echo '	defining' STACK_DIRECTION to be '-1'
DEFS="$DEFS -DSTACK_DIRECTION=-1"
SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}-1\${SEDdD}
\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}-1\${SEDuD}
\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}-1\${SEDeD}
"
}

fi
fi
rm -f conftest*
fi

for func in gettimeofday gethostname dup2
do
trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
echo checking for ${func}
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_${func}) || defined (__stub___${func})
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char ${func}(); ${func}();
#endif
 }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' ${trfunc}
DEFS="$DEFS -D${trfunc}=1"
SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
\${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
\${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*
done


echo checking for struct tm in time.h
cat > conftest.c <<EOF
#include <sys/types.h>
#include <time.h>
int main() { exit(0); }
int t() { struct tm *tp; }
EOF
if eval $compile; then
  :
else
  {
test -n "$verbose" && \
echo '	defining' TM_IN_SYS_TIME
DEFS="$DEFS -DTM_IN_SYS_TIME=1"
SEDDEFS="${SEDDEFS}\${SEDdA}TM_IN_SYS_TIME\${SEDdB}TM_IN_SYS_TIME\${SEDdC}1\${SEDdD}
\${SEDuA}TM_IN_SYS_TIME\${SEDuB}TM_IN_SYS_TIME\${SEDuC}1\${SEDuD}
\${SEDeA}TM_IN_SYS_TIME\${SEDeB}TM_IN_SYS_TIME\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*

decl='#include <sys/types.h>
'
case "$DEFS" in
  *TM_IN_SYS_TIME*) decl="$decl
#include <sys/time.h>
" ;;
  *) decl="$decl
#include <time.h>
" ;;
esac
echo checking for tm_zone in struct tm
cat > conftest.c <<EOF
$decl
int main() { exit(0); }
int t() { struct tm tm; tm.tm_zone; }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' HAVE_TM_ZONE
DEFS="$DEFS -DHAVE_TM_ZONE=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_TM_ZONE\${SEDdB}HAVE_TM_ZONE\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_TM_ZONE\${SEDuB}HAVE_TM_ZONE\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_TM_ZONE\${SEDeB}HAVE_TM_ZONE\${SEDeC}1\${SEDeD}
"
}

else
  no_tm_zone=1
fi
rm -f conftest*

if test -n "$no_tm_zone"; then
echo checking for tzname
cat > conftest.c <<EOF
#include <time.h>
#ifndef tzname /* For SGI.  */
extern char *tzname[]; /* RS6000 and others want it this way.  */
#endif
int main() { exit(0); }
int t() { atoi(*tzname); }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' HAVE_TZNAME
DEFS="$DEFS -DHAVE_TZNAME=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_TZNAME\${SEDdB}HAVE_TZNAME\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_TZNAME\${SEDuB}HAVE_TZNAME\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_TZNAME\${SEDeB}HAVE_TZNAME\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*

fi


prog='/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* AIX XL C 1.02.0.0 rejects this.
   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 */
const char *g = "string";
p = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25,17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}'
echo checking for working const
cat > conftest.c <<EOF

int main() { exit(0); }
int t() { $prog }
EOF
if eval $compile; then
  :
else
  {
test -n "$verbose" && \
echo '	defining' const to be 'empty'
DEFS="$DEFS -Dconst="
SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
\${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
\${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
"
}

fi
rm -f conftest*






#### Choose a window system.
echo "Checking window system."

window_system=''
case "${with_x}" in
  yes )
    window_system=${window_system}x11
  ;;
  no )
    window_system=${window_system}none
esac
case "${with_x11}" in
  yes )
    window_system=${window_system}x11
  ;;
esac
case "${with_x10}" in
  yes )
    window_system=${window_system}x10
  ;;
esac

case "${window_system}" in
  "none" | "x11" | "x10" ) ;;
  "" )
    echo "  No window system specifed.  Looking for X Windows."
    window_system=none
    if [ -r /usr/lib/libX11.a \
	 -o -d /usr/include/X11 \
         -o -d /usr/X386/include \
	 -o -d ${x_includes}/X11 ]; then
      window_system=x11
    fi
  ;;
  * )
    echo "Don\'t specify the window system more than once." >&2
    exit 1
  ;;
esac

case "${window_system}" in
  x11 )
    HAVE_X_WINDOWS=yes
    HAVE_X11=yes
    echo "  Using X11."
  ;;
  x10 )
    HAVE_X_WINDOWS=yes
    HAVE_X11=no
    echo "  Using X10."
  ;;
  none )
    HAVE_X_WINDOWS=no
    HAVE_X11=no
    echo "  Using no window system."
  ;;
esac

### If we're using X11, we should use the X menu package.
HAVE_X_MENU=no
case ${HAVE_X11} in
  yes )
    HAVE_X_MENU=yes
  ;;
esac

### Check for XFree386.  It needs special hacks.
lib_havexbsd=no

LIBS_save="${LIBS}"
LIBS="${LIBS} -lXbsd "
have_lib=""
echo checking for -lXbsd 
cat > conftest.c <<EOF

int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
  have_lib="1"
fi
rm -f conftest*
LIBS="${LIBS_save}"
if test -n "${have_lib}"; then
   :; have_libxbsd=yes 
else
   :; have_libxbsd=no 
fi


if [ -n "${x_libraries}" ] && [ -f ${x_libraries}/libXbsd.a ]; then
  have_libxbsd=yes
fi

case ${window_system} in
  x11 )
    if [ -d /usr/X386/include ] && [ "${have_libxbsd}" = "yes" ]; then
      HAVE_XFREE386=yes
      if [ "${C_SWITCH_X_SITE}" = "" ]; then
	C_SWITCH_X_SITE="-I/usr/X386/include"
      fi
    fi
  ;;
esac

#### Extract some information from the operating system and machine files.

echo "Examining the machine- and system-dependent files to find out"
echo " - which libraries the lib-src programs will want, and"
echo " - whether the GNU malloc routines are usable."

### It's not important that this name contain the PID; you can't run
### two configures in the same directory and have anything work
### anyway.
tempcname="conftest.c"

echo '
#include "'${srcdir}'/src/'${opsysfile}'"
#include "'${srcdir}'/src/'${machfile}'"
#ifndef LIBS_MACHINE
#define LIBS_MACHINE
#endif
#ifndef LIBS_SYSTEM
#define LIBS_SYSTEM
#endif
#ifndef C_SWITCH_SYSTEM
#define C_SWITCH_SYSTEM
#endif
@@configure@@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
@@configure@@ c_switch_system=C_SWITCH_SYSTEM
#ifdef SYSTEM_MALLOC
@@configure@@ system_malloc=yes
#else
@@configure@@ system_malloc=no
#endif
' > ${tempcname}
# The value of CPP is a quoted variable reference, so we need to do this
# to get its actual value...
foo=`eval "echo $CPP"`
eval `${foo} ${tempcname} \
       | grep '@@configure@@' \
       | sed -e 's/^@@configure@@ \([^=]*=\)\(.*\)$/\1"\2"/'`
rm ${tempcname}


# Do the opsystem or machine files prohibit the use of the GNU malloc?
# Assume not, until told otherwise.
GNU_MALLOC=yes
if [ "${system_malloc}" = "yes" ]; then
  GNU_MALLOC=no
  GNU_MALLOC_reason="
  (The GNU allocators don't work with this system configuration.)"
fi

if [ ! "${REL_ALLOC}" ]; then
  REL_ALLOC=${GNU_MALLOC}
fi

LISP_FLOAT_TYPE=yes


#### Find out which version of Emacs this is.
version=`grep 'defconst[	 ]*emacs-version' ${srcdir}/lisp/version.el \
	 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`
if [ ! "${version}" ]; then
  echo "${progname}: can't find current emacs version in
	\`${srcdir}/lisp/version.el'." >&2
  exit 1
fi


#### Specify what sort of things we'll be editing into Makefile and config.h.












{
test -n "$verbose" && \
echo '	defining' config_machfile to be '"\"${machfile}\""'
DEFS="$DEFS -Dconfig_machfile="\"${machfile}\"""
SEDDEFS="${SEDDEFS}\${SEDdA}config_machfile\${SEDdB}config_machfile\${SEDdC}"\"${machfile}\""\${SEDdD}
\${SEDuA}config_machfile\${SEDuB}config_machfile\${SEDuC}"\"${machfile}\""\${SEDuD}
\${SEDeA}config_machfile\${SEDeB}config_machfile\${SEDeC}"\"${machfile}\""\${SEDeD}
"
}

{
test -n "$verbose" && \
echo '	defining' config_opsysfile to be '"\"${opsysfile}\""'
DEFS="$DEFS -Dconfig_opsysfile="\"${opsysfile}\"""
SEDDEFS="${SEDDEFS}\${SEDdA}config_opsysfile\${SEDdB}config_opsysfile\${SEDdC}"\"${opsysfile}\""\${SEDdD}
\${SEDuA}config_opsysfile\${SEDuB}config_opsysfile\${SEDuC}"\"${opsysfile}\""\${SEDuD}
\${SEDeA}config_opsysfile\${SEDeB}config_opsysfile\${SEDeC}"\"${opsysfile}\""\${SEDeD}
"
}

{
test -n "$verbose" && \
echo '	defining' LD_SWITCH_X_SITE to be '${LD_SWITCH_X_SITE}'
DEFS="$DEFS -DLD_SWITCH_X_SITE=${LD_SWITCH_X_SITE}"
SEDDEFS="${SEDDEFS}\${SEDdA}LD_SWITCH_X_SITE\${SEDdB}LD_SWITCH_X_SITE\${SEDdC}${LD_SWITCH_X_SITE}\${SEDdD}
\${SEDuA}LD_SWITCH_X_SITE\${SEDuB}LD_SWITCH_X_SITE\${SEDuC}${LD_SWITCH_X_SITE}\${SEDuD}
\${SEDeA}LD_SWITCH_X_SITE\${SEDeB}LD_SWITCH_X_SITE\${SEDeC}${LD_SWITCH_X_SITE}\${SEDeD}
"
}

{
test -n "$verbose" && \
echo '	defining' C_SWITCH_X_SITE to be '${C_SWITCH_X_SITE}'
DEFS="$DEFS -DC_SWITCH_X_SITE=${C_SWITCH_X_SITE}"
SEDDEFS="${SEDDEFS}\${SEDdA}C_SWITCH_X_SITE\${SEDdB}C_SWITCH_X_SITE\${SEDdC}${C_SWITCH_X_SITE}\${SEDdD}
\${SEDuA}C_SWITCH_X_SITE\${SEDuB}C_SWITCH_X_SITE\${SEDuC}${C_SWITCH_X_SITE}\${SEDuD}
\${SEDeA}C_SWITCH_X_SITE\${SEDeB}C_SWITCH_X_SITE\${SEDeC}${C_SWITCH_X_SITE}\${SEDeD}
"
}



if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
   {
test -n "$verbose" && \
echo '	defining' HAVE_X_WINDOWS
DEFS="$DEFS -DHAVE_X_WINDOWS=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_X_WINDOWS\${SEDdB}HAVE_X_WINDOWS\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_X_WINDOWS\${SEDuB}HAVE_X_WINDOWS\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_X_WINDOWS\${SEDeB}HAVE_X_WINDOWS\${SEDeC}1\${SEDeD}
"
}
 
fi
if [ "${HAVE_X11}" = "yes" ] ; then
   {
test -n "$verbose" && \
echo '	defining' HAVE_X11
DEFS="$DEFS -DHAVE_X11=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_X11\${SEDdB}HAVE_X11\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_X11\${SEDuB}HAVE_X11\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_X11\${SEDeB}HAVE_X11\${SEDeC}1\${SEDeD}
"
}
 
fi
if [ "${HAVE_XFREE386}" = "yes" ] ; then
   {
test -n "$verbose" && \
echo '	defining' HAVE_XFREE386
DEFS="$DEFS -DHAVE_XFREE386=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_XFREE386\${SEDdB}HAVE_XFREE386\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_XFREE386\${SEDuB}HAVE_XFREE386\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_XFREE386\${SEDeB}HAVE_XFREE386\${SEDeC}1\${SEDeD}
"
}
 
fi
if [ "${HAVE_X_MENU}" = "yes" ] ; then
   {
test -n "$verbose" && \
echo '	defining' HAVE_X_MENU
DEFS="$DEFS -DHAVE_X_MENU=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_X_MENU\${SEDdB}HAVE_X_MENU\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_X_MENU\${SEDuB}HAVE_X_MENU\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_X_MENU\${SEDeB}HAVE_X_MENU\${SEDeC}1\${SEDeD}
"
}
 
fi
if [ "${GNU_MALLOC}" = "yes" ] ; then
   {
test -n "$verbose" && \
echo '	defining' GNU_MALLOC
DEFS="$DEFS -DGNU_MALLOC=1"
SEDDEFS="${SEDDEFS}\${SEDdA}GNU_MALLOC\${SEDdB}GNU_MALLOC\${SEDdC}1\${SEDdD}
\${SEDuA}GNU_MALLOC\${SEDuB}GNU_MALLOC\${SEDuC}1\${SEDuD}
\${SEDeA}GNU_MALLOC\${SEDeB}GNU_MALLOC\${SEDeC}1\${SEDeD}
"
}
 
fi
if [ "${REL_ALLOC}" = "yes" ] ; then
   {
test -n "$verbose" && \
echo '	defining' REL_ALLOC
DEFS="$DEFS -DREL_ALLOC=1"
SEDDEFS="${SEDDEFS}\${SEDdA}REL_ALLOC\${SEDdB}REL_ALLOC\${SEDdC}1\${SEDdD}
\${SEDuA}REL_ALLOC\${SEDuB}REL_ALLOC\${SEDuC}1\${SEDuD}
\${SEDeA}REL_ALLOC\${SEDeB}REL_ALLOC\${SEDeC}1\${SEDeD}
"
}
 
fi
if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
   {
test -n "$verbose" && \
echo '	defining' LISP_FLOAT_TYPE
DEFS="$DEFS -DLISP_FLOAT_TYPE=1"
SEDDEFS="${SEDDEFS}\${SEDdA}LISP_FLOAT_TYPE\${SEDdB}LISP_FLOAT_TYPE\${SEDdC}1\${SEDdD}
\${SEDuA}LISP_FLOAT_TYPE\${SEDuB}LISP_FLOAT_TYPE\${SEDuC}1\${SEDuD}
\${SEDeA}LISP_FLOAT_TYPE\${SEDeB}LISP_FLOAT_TYPE\${SEDeC}1\${SEDeD}
"
}
 
fi


#### Report on what we decided to do.
echo "

Configured for \`${configuration}'.

  What operating system and machine description files should Emacs use?
        \`${opsysfile}' and \`${machfile}'
  What compiler should emacs be built with?               ${CC} ${CFLAGS}
  Should Emacs use the GNU version of malloc?             ${GNU_MALLOC}${GNU_MALLOC_reason}
  Should Emacs use the relocating allocator for buffers?  ${REL_ALLOC}
  What window system should Emacs use?                    ${window_system}${x_includes+
  Where do we find X Windows header files?                }${x_includes}${x_libraries+
  Where do we find X Windows libraries?                   }${x_libraries}

"

### Restore the arguments to this script, so autoconf can record them
### in the config.status file.
set - ${arguments}

if test -n "$prefix"; then
  test -z "$exec_prefix" && exec_prefix='${prefix}'
  prsub="s%^prefix\\([ 	]*\\)=\\([ 	]*\\).*$%prefix\\1=\\2$prefix%"
fi
if test -n "$exec_prefix"; then
  prsub="$prsub
s%^exec_prefix\\([ 	]*\\)=\\([ 	]*\\).*$%\
exec_prefix\\1=\\2$exec_prefix%"
fi
DEFS="`echo \"$DEFS\" | sed 's%[&\\\]%\\\&%g'`"

trap 'rm -f config.status; exit 1' 1 3 15
echo creating config.status
rm -f config.status
cat > config.status <<EOF
#!/bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $*

for arg
do
  case "\$arg" in
    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    exec /bin/sh $0 $* ;;
    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  esac
done

trap 'rm -f Makefile src/config.h conftest*; exit 1' 1 3 15
CC='$CC'
LN_S='$LN_S'
CPP='$CPP'
ALLOCA='$ALLOCA'
configuration='$configuration'
version='$version'
srcdir='$srcdir'
c_switch_system='$c_switch_system'
libsrc_libs='$libsrc_libs'
rip_paths='$rip_paths'
inst_paths='$inst_paths'
LD_SWITCH_X_SITE='$LD_SWITCH_X_SITE'
C_SWITCH_X_SITE='$C_SWITCH_X_SITE'
CFLAGS='$CFLAGS'
LIBS='$LIBS'
prefix='$prefix'
exec_prefix='$exec_prefix'
prsub='$prsub'
EOF
cat >> config.status <<\EOF

top_srcdir=$srcdir

# Allow make-time overrides of the generated file list.
test -n "$gen_files" || gen_files="Makefile"

for file in .. $gen_files; do if [ "x$file" != "x.." ]; then
  srcdir=$top_srcdir
  # Remove last slash and all that follows it.  Not all systems have dirname.
  dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  if test "$dir" != "$file"; then
    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
    test ! -d $dir && mkdir $dir
  fi
  echo creating $file
  rm -f $file
  echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  sed -e "
$prsub
s%@@CC@@%$CC%g
s%@@LN_S@@%$LN_S%g
s%@@CPP@@%$CPP%g
s%@@ALLOCA@@%$ALLOCA%g
s%@@configuration@@%$configuration%g
s%@@version@@%$version%g
s%@@srcdir@@%$srcdir%g
s%@@c_switch_system@@%$c_switch_system%g
s%@@libsrc_libs@@%$libsrc_libs%g
s%@@rip_paths@@%$rip_paths%g
s%@@inst_paths@@%$inst_paths%g
s%@@LD_SWITCH_X_SITE@@%$LD_SWITCH_X_SITE%g
s%@@C_SWITCH_X_SITE@@%$C_SWITCH_X_SITE%g
s%@@CFLAGS@@%$CFLAGS%g
s%@@LIBS@@%$LIBS%g
s%@@DEFS@@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
fi; done
test -n "$gen_config" || gen_config=src/config.h
echo creating $gen_config
# These sed commands are put into SEDDEFS when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They 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.
# Each defining turns into a single global substitution command.
#
# SEDd sets the value in "#define NAME VALUE" lines.
SEDdA='s@@^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
SEDdB='\([ 	][ 	]*\)[^ 	]*@@\1#\2'
SEDdC='\3'
SEDdD='@@g'
# SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
SEDuA='s@@^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDuB='\([ 	]\)@@\1#\2define\3'
SEDuC=' '
SEDuD='\4@@g'
# SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
SEDeA='s@@^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDeB='$@@\1#\2define\3'
SEDeC=' '
SEDeD='@@g'
rm -f conftest.sed
EOF
# Turn off quoting long enough to insert the sed commands.
rm -f conftest.sh
cat > conftest.sh <<EOF
$SEDDEFS
EOF

# Maximum number of lines to put in a single here document.
maxshlines=9

# Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
# on the size of here documents.

while :
do
  lines=`grep -c . conftest.sh`
  if test -z "$lines" || test "$lines" -eq 0; then break; fi
  rm -f conftest.s1 conftest.s2
  sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  # Write a limited-size here document to append to conftest.sed.
  echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  cat conftest.s1 >> config.status
  echo 'CONFEOF' >> config.status
  rm -f conftest.s1 conftest.sh
  mv conftest.s2 conftest.sh
done
rm -f conftest.sh

# Now back to your regularly scheduled config.status.
cat >> config.status <<\EOF
# This sed command replaces #undef's with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it in
# src/config.h.
cat >> conftest.sed <<\CONFEOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
CONFEOF
rm -f conftest.h
# Break up the sed commands because old seds have small limits.
maxsedlines=20
cp $top_srcdir/$gen_config.in conftest.h1
while :
do
  lines=`grep -c . conftest.sed`
  if test -z "$lines" || test "$lines" -eq 0; then break; fi
  rm -f conftest.s1 conftest.s2 conftest.h2
  sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  sed -f conftest.s1 < conftest.h1 > conftest.h2
  rm -f conftest.s1 conftest.h1 conftest.sed
  mv conftest.h2 conftest.h1
  mv conftest.s2 conftest.sed
done
rm -f conftest.sed conftest.h
echo "/* $gen_config.  Generated automatically by configure.  */" > conftest.h
cat conftest.h1 >> conftest.h
rm -f conftest.h1
if cmp -s $gen_config conftest.h 2>/dev/null; then
  # The file exists and we would not be changing it.
  rm -f conftest.h
else
  rm -f $gen_config
  mv conftest.h $gen_config
fi


exit 0
EOF
chmod +x config.status
test -n "$no_create" || ./config.status

@


1.1.1.1
log
@import emacs-19.7
@
text
@@


1.1.1.2
log
@import emacs-19.8
@
text
@d1 4
a4 1
#!/bin/sh
a7 7
### Don't edit this script!
### This script was automatically generated by the `autoconf' program
### from the file `./configure.in'.
### To rebuild it, execute the command
###	autoconf
### in the this directory.  You must have autoconf version 1.4 or later.

d27 6
a32 1
### configuration code and autoconf macros.
d62 3
a64 1
short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
d68 38
a105 10
--with-x		Support the X Window System.
--with-x=no		Don't support the X Window System.
--x-includes=DIR 	Search for X Window System header files in DIR.
--x-libraries=DIR	Search for X Window System libraries in DIR.
--with-gcc		Use GCC to compile Emacs.
--with-gcc=no		Don't use GCC to compile Emacs.
--run-in-place		Use libraries and data files directly out of the 
			source tree.
--srcdir=DIR		Look for source in DIR.
--prefix=DIR		Install files below dir.
a121 4
### Establish some default values.
prefix='/usr/local'
exec_prefix='${prefix}'

a241 32
	## Has the user specifiec an installation prefix?
	"prefix" )
	  ## If the value was omitted, get it from the next argument.
	  if [ "${valomitted}" = "yes" ]; then
	    ## Get the next argument from the argument list, if there is one.
            if [ $# = 1 ]; then
	      (echo "${progname}: You must give a value for the \`--${optname}' option, as in
    \`--${optname}=FOO'."
	       echo "${short_usage}") >&2
	      exit 1
	    fi
	    shift; val="$1"
	  fi
	  prefix="${val}"
        ;;

	## Has the user specifiec an installation prefix?
	"exec_prefix" )
	  ## If the value was omitted, get it from the next argument.
	  if [ "${valomitted}" = "yes" ]; then
	    ## Get the next argument from the argument list, if there is one.
            if [ $# = 1 ]; then
	      (echo "${progname}: You must give a value for the \`--${optname}' option, as in
    \`--${optname}=FOO'."
	       echo "${short_usage}") >&2
	      exit 1
	    fi
	    shift; val="$1"
	  fi
	  exec_prefix="${val}"
        ;;

d244 1
a244 1
	  echo "${short_usage}" | more
d274 2
a275 3
    confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
    if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
      srcdir=`(cd $confdir ; pwd)`
d277 2
a278 2
      if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
        srcdir=`pwd`
d280 1
a280 4
        if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
	  srcdir=`(cd .. ; pwd)`
        else
	  (echo "\
d286 2
a287 3
	    echo "${short_usage}") >&2
	  exit 1
        fi
a293 1
    srcdir=`(cd ${srcdir}; pwd)`
d501 1
a501 1
  ## HP 9000 series 700 and 800, running HP/UX
d503 1
a503 11
    machine=hp9000s800 opsys=hpux.h
  ;;
  hppa1.1-hp-hpux* )
    machine=hp9000s800 opsys=hpux8.h
  ;;
  hppa*-hp-hpux* )
    ## Cross-compilation?  Nah!
    case "`uname -m`" in
      9000/8?? ) machine=hp9000s800 opsys=hpux.h ;;
      9000/7?? ) machine=hp9000s800 opsys=hpux8.h ;;
    esac
d547 1
a547 1
  i[34]86-unknown-* )
a552 1
      *-esix5* )		opsys=esix5r4 ;;
a560 5
  ## Intel 860
  i860-*-sysvr4 )
    machine=i860 opsys=usg5-4
  ;;

a916 40
# Make sure to not get the incompatible SysV /etc/install and
# /usr/sbin/install, which might be in PATH before a BSD-like install,
# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
# or the AFS install, which mishandles nonexistent args, or
# /usr/ucb/install on SVR4, which tries to use the nonexistent group
# `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
# anyway.  Sigh.
if test "z${INSTALL}" = "z" ; then
  echo checking for install
  IFS="${IFS= 	}"; saveifs="$IFS"; IFS="${IFS}:"
  for dir in $PATH; do
    test -z "$dir" && dir=.
    case $dir in
    /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
    *)
      if test -f $dir/installbsd; then
	INSTALL="$dir/installbsd -c" # OSF1
	INSTALL_PROGRAM='$(INSTALL)'
	INSTALL_DATA='$(INSTALL) -m 644'
	break
      fi
      if test -f $dir/install; then
	if grep dspmsg $dir/install >/dev/null 2>&1; then
	  : # AIX
	else
	  INSTALL="$dir/install -c"
	  INSTALL_PROGRAM='$(INSTALL)'
	  INSTALL_DATA='$(INSTALL) -m 644'
	  break
	fi
      fi
      ;;
    esac
  done
  IFS="$saveifs"
fi
INSTALL=${INSTALL-cp}
INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}

d1283 1
a1283 1
for func in gettimeofday gethostname dup2 rename
a1645 2


a1829 3
INSTALL='$INSTALL'
INSTALL_PROGRAM='$INSTALL_PROGRAM'
INSTALL_DATA='$INSTALL_DATA'
a1840 2
prefix='$prefix'
exec_prefix='$exec_prefix'
a1868 3
s%@@INSTALL@@%$INSTALL%g
s%@@INSTALL_PROGRAM@@%$INSTALL_PROGRAM%g
s%@@INSTALL_DATA@@%$INSTALL_DATA%g
a1879 2
s%@@prefix@@%$prefix%g
s%@@exec_prefix@@%$exec_prefix%g
@


1.1.1.3
log
@import emacs-19.10
@
text
@d66 3
a68 3
--with-x=no		Don't support X.
--x-includes=DIR 	Search for X header files in DIR.
--x-libraries=DIR	Search for X libraries in DIR.
d95 2
a96 7
### Don't use shift -- that destroys the argument list, which autoconf needs
### to produce config.status.  It turns out that "set - ${arguments}" doesn't
### work portably.
index=0
while [ $index -lt $# ]; do
  index=`expr $index + 1`
  arg=`eval echo '$'$index`
d143 1
a143 1
	"with_gcc" | "with_gnu_cc" )
d163 1
a163 1
            if [ $index = $# ]; then
d169 1
a169 2
            index=`expr $index + 1`
            val=`eval echo '$'$index`
d182 1
a182 1
            if [ $index = $# ]; then
d188 1
a188 2
            index=`expr $index + 1`
            val=`eval echo '$'$index`
d197 1
a197 1
            if [ $index = $# ]; then
d203 1
a203 2
            index=`expr $index + 1`
            val=`eval echo '$'$index`
d220 1
a220 1
            if [ $index = $# ]; then
d226 1
a226 2
            index=`expr $index + 1`
            val=`eval echo '$'$index`
d236 1
a236 1
            if [ $index = $# ]; then
d242 1
a242 2
            index=`expr $index + 1`
            val=`eval echo '$'$index`
d264 1
d268 3
a270 10
  echo '- You did not tell me what kind of host system you want to configure.
- I will attempt to guess the kind of system this is.' 1>&2
  guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
  if configuration=`${guesssys}` ; then
    echo "- Looks like this is a ${configuration}" 1>&2
  else
    echo '- Failed to guess the system type.  You need to tell me.' 1>&2
    echo "${short_usage}" >&2
    exit 1
  fi
d273 1
d281 1
a281 1
      srcdir="${confdir}"
d284 1
a284 1
        srcdir=`.`
d287 1
a287 1
	  srcdir=`..`
d304 1
a315 1
esac
a316 15
#### Make srcdir absolute, if it isn't already.  It's important to
#### avoid running the path through pwd unnecessary, since pwd can
#### give you automounter prefixes, which can go away.
case "${srcdir}" in
  /* ) ;;
  . )
    ## We may be able to use the $PWD environment variable to make this
    ## absolute.  But sometimes PWD is inaccurate.
    if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; pwd)`" = "`pwd`" ] ; then
      srcdir="$PWD"
    else
      srcdir="`(cd ${srcdir}; pwd)`"
    fi
  ;;
  *  ) srcdir="`(cd ${srcdir}; pwd)`" ;;
a318 1

d514 1
a514 1
    machine=hp9000s800 opsys=hpux
d517 1
a517 1
    machine=hp9000s800 opsys=hpux8
d521 3
a523 4
    case "`uname -r`" in
      *.08.* ) machine=hp9000s800 opsys=hpux ;;
      *.09.* ) machine=hp9000s800 opsys=hpux8 ;;
      *) machine=hp9000s800 opsys=hpux ;;
d548 1
a548 4
  romp-ibm-bsd4-3 )
    machine=ibmrt opsys=bsd4-3
  ;;	
  romp-ibm-bsd4-2 )
a550 12
  romp-ibm-aos4-3 )
    machine=ibmrt opsys=bsd4-3
  ;;	
  romp-ibm-aos4-2 )
    machine=ibmrt opsys=bsd4-2
  ;;
  romp-ibm-aos* )
    machine=ibmrt opsys=bsd4-3
  ;;
  romp-ibm-bsd* )
    machine=ibmrt opsys=bsd4-3
  ;;
a719 1
      *-sunos4.1.3*	  ) opsys=sunos4-1-3 ;;
a743 5
  ## Tektronix XD88
  m88k-tektronix-sysv3 )
  machine=tekXD88 opsys=usg5-3
  ;;

a811 1
    *-sysv4.2 | *-sysvr4.2 )		opsys=usg5-4-2 ;;
d1554 1
a1554 1
    echo "  No window system specifed.  Looking for X11."
d1564 1
a1564 1
    echo "Don't specify the window system more than once." >&2
a1658 7

#ifdef UNEXEC
@@configure@@ unexec=UNEXEC
#else
@@configure@@ unexec=unexec.o
#endif

a1672 2
### Compute the unexec source name from the object name.
UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
a1754 10
{
test -n "$verbose" && \
echo '	defining' UNEXEC_SRC to be '${UNEXEC_SRC}'
DEFS="$DEFS -DUNEXEC_SRC=${UNEXEC_SRC}"
SEDDEFS="${SEDDEFS}\${SEDdA}UNEXEC_SRC\${SEDdB}UNEXEC_SRC\${SEDdC}${UNEXEC_SRC}\${SEDdD}
\${SEDuA}UNEXEC_SRC\${SEDuB}UNEXEC_SRC\${SEDuC}${UNEXEC_SRC}\${SEDuD}
\${SEDeA}UNEXEC_SRC\${SEDeB}UNEXEC_SRC\${SEDeC}${UNEXEC_SRC}\${SEDeD}
"
}

a1847 1
  Where should the build process find the source code?    ${srcdir}
d1859 4
@


1.1.1.4
log
@import emacs-19.11
@
text
@d299 1
a299 1
        srcdir='.'
d302 1
a302 1
	  srcdir='..'
a348 9
#### Make sure that the source directory doesn't already have a
#### configured system in it.
if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
   && [ -f "${srcdir}/src/config.h" ] ; then
  (echo "${progname}: the directory tree \`${srcdir}' is being used"
   echo "   as a build directory right now; it has been configured in its own"
   echo "   right.  You can't use srcdir in this situation.") >&2
  exit 1
fi
d571 1
a571 1
  i386-ibm-aix1.[23] | i386-ibm-aix* )
a625 2
      *-bsd386* )		opsys=bsd386 ;;
      *-386bsd )	        opsys=386bsd ;;
a671 4
  mips-mips-usg* )
    machine=mips4
    ## Fall through to the general code at the bottom to decide on the OS.
  ;;
d673 1
a673 1
    machine=mips4 opsys=bsd4-3
a824 1
      *-bsd386 )					opsys=bsd386 ;;
d855 1
a855 1
if [ x"${opsys}" = x ]; then
a923 3
# Save the original args to write them into config.status later.
configure_args="$*"

d1746 1
a1746 1
if [ x"${REL_ALLOC}" = x ]; then
d1756 1
a1756 1
if [ x"${version}" = x ]; then
d1954 1
a1954 1
# $0 $configure_args
d1960 1
a1960 1
    exec /bin/sh $0 $configure_args ;;
@


1.1.1.5
log
@import emacs-19.13
@
text
@d553 1
a553 1
  hppa*-hp-hpux7* )
d556 1
a556 1
  hppa*-hp-hpux8* )
a558 5
  hppa*-hp-hpux9* )
    machine=hp9000s800 opsys=hpux9
  ;;

  ## HP 9000 series 700 and 800, running HP/UX
d562 2
a563 2
      *.08.* ) machine=hp9000s800 opsys=hpux8 ;;
      *.09.* ) machine=hp9000s800 opsys=hpux9 ;;
d624 1
a624 1
  i[34]86-*-* )
d982 5
a1148 29
LIBS_save="${LIBS}"
LIBS="${LIBS} -ldnet"
have_lib=""
echo checking for -ldnet
cat > conftest.c <<EOF

int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
  have_lib="1"
fi
rm -f conftest*
LIBS="${LIBS_save}"
if test -n "${have_lib}"; then
   {
test -n "$verbose" && \
echo '	defining' HAVE_LIBDNET
DEFS="$DEFS -DHAVE_LIBDNET=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBDNET\${SEDdB}HAVE_LIBDNET\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_LIBDNET\${SEDuB}HAVE_LIBDNET\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_LIBDNET\${SEDeB}HAVE_LIBDNET\${SEDeC}1\${SEDeD}
"
}

   LIBS="${LIBS} -ldnet"
fi


d1627 1
a1627 1
    echo "  No window system specified.  Looking for X11."
a1743 14

#ifndef C_DEBUG_SWITCH
#define C_DEBUG_SWITCH -g
#endif

#ifndef C_OPTIMIZE_SWITCH
#define C_OPTIMIZE_SWITCH -O
#endif

#ifdef __GNUC__
@@configure@@ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH
#else
@@configure@@ CFLAGS=C_DEBUG_SWITCH
#endif
@


1.1.1.6
log
@import emacs-19.14
@
text
@d198 1
a198 1
	  C_SWITCH_X_SITE="-I\"${x_includes}\""
d214 1
a214 1
	  LD_SWITCH_X_SITE="-L\"${x_libraries}\""
d223 1
a223 1
	## Has the user specified an installation prefix?
d240 1
a240 1
	## Has the user specified an installation prefix?
d360 15
a374 5
for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do
  if [ ! -d ${dir} ]; then
    mkdir ${dir}
  fi
done
a487 5
  ## Data General AViiON Machines
  m88k-dg-dgux* )
    machine=aviion opsys=dgux
  ;;

a502 3
  m88k-motorola-sysv4* )
    machine=delta88k opsys=usg5-4
  ;;
d547 1
a547 1
  ## HP/UX 7, 8 and 9 are supported on these machines.
d549 1
a549 5
    case "`uname -r`" in
      *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
      *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
      *) machine=hp9000s300 opsys=hpux ;;
    esac
d628 16
a643 9

  ## Prime EXL
  i386-prime-sysv* )
    machine=i386 opsys=usg5-3
  ;;

  ## Sequent Symmetry
  i386-sequent-bsd* )
    machine=symmetry opsys=bsd4-3
d735 5
d754 4
a864 18
  ## Intel 386 machines where we don't care about the manufacturer
  i[34]86-*-* )
    machine=intel386
    case "${configuration}" in
      *-isc1.* | *-isc2.[01]* )	opsys=386-ix ;;
      *-isc2.2 )		opsys=isc2-2 ;;
      *-isc* )			opsys=isc3-0 ;;
      *-esix5* )		opsys=esix5r4 ;;
      *-esix* )			opsys=esix ;;
      *-xenix* )		opsys=xenix ;;
      *-linux* )		opsys=linux ;;
      *-sco3.2v4* )		opsys=sco4 ;;
      *-bsd386* )		opsys=bsd386 ;;
      *-386bsd )	        opsys=386bsd ;;
      ## Otherwise, we'll fall through to the generic opsys code at the bottom.
    esac
  ;;

d906 4
a909 2
# NLS nuisances.
LANG=C; LC_ALL=C; export LANG; export LC_ALL;
a1006 1
Syntax Error
a1056 23
for p in 'bison -y' byacc
do
if test -z "$YACC"; then
  # Extract the first word of `$p', so it can be a program name with args.
  set dummy $p; word=$2
  echo checking for $word
  IFS="${IFS= 	}"; saveifs="$IFS"; IFS="${IFS}:"
  for dir in $PATH; do
    test -z "$dir" && dir=.
    if test -f $dir/$word; then
      YACC="$p"
      break
    fi
  done
  IFS="$saveifs"
fi

test -n "$YACC" -a -n "$verbose" && echo "	setting YACC to $YACC"

test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"

d1452 1
a1452 1
for func in gettimeofday gethostname dup2 rename closedir
a1626 26
echo checking for long file names
lost=false
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      /tmp		where it might want to write temporary files
#      /usr/tmp		likewise
#      $prefix		where we will be installing things
#      $exec_prefix	likewise
for dir in . /tmp /usr/tmp $prefix $exec_prefix ; do
  (echo 1 > $dir/conftest9012345) 2>/dev/null
  (echo 2 > $dir/conftest9012346) 2>/dev/null
  val=`cat $dir/conftest9012345 2>/dev/null`
  test -f $dir/conftest9012345 && test "$val" = 1 || lost=true
  rm -f $dir/conftest9012345 $dir/conftest9012346
done
$lost || {
test -n "$verbose" && \
echo '	defining' HAVE_LONG_FILE_NAMES
DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LONG_FILE_NAMES\${SEDdB}HAVE_LONG_FILE_NAMES\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_LONG_FILE_NAMES\${SEDuB}HAVE_LONG_FILE_NAMES\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_LONG_FILE_NAMES\${SEDeB}HAVE_LONG_FILE_NAMES\${SEDeC}1\${SEDeD}
"
}


d1790 2
a1791 2
CPP=`eval "echo $CPP"`
eval `${CPP} -Isrc ${tempcname} \
a1814 77
#### Add the X libraries to the list, and check for some functions found there.
CFLAGS_save="$CFLAGS"
CFLAGS="${CFLAGS} ${LD_SWITCH_X_SITE}"

LIBS_save="${LIBS}"
LIBS="${LIBS} -lXbsd"
have_lib=""
echo checking for -lXbsd
cat > conftest.c <<EOF

int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
  have_lib="1"
fi
rm -f conftest*
LIBS="${LIBS_save}"
if test -n "${have_lib}"; then
   {
test -n "$verbose" && \
echo '	defining' HAVE_LIBXBSD
DEFS="$DEFS -DHAVE_LIBXBSD=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBXBSD\${SEDdB}HAVE_LIBXBSD\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_LIBXBSD\${SEDuB}HAVE_LIBXBSD\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_LIBXBSD\${SEDeB}HAVE_LIBXBSD\${SEDeC}1\${SEDeD}
"
}

   LIBS="${LIBS} -lXbsd"
fi


LIBS_save="$LIBS"
if [ "${HAVE_X11}" = "yes" ] ; then
  LIBS="-lX11 ${LIBS}"
fi

for func in XrmSetDatabase random
do
trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
echo checking for ${func}
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_${func}) || defined (__stub___${func})
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char ${func}(); ${func}();
#endif
 }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo '	defining' ${trfunc}
DEFS="$DEFS -D${trfunc}=1"
SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
\${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
\${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*
done


CFLAGS="$CFLAGS_save"
LIBS="$LIBS_save"


d2001 2
a2002 1
s%^exec_prefix\\([ 	]*\\)=\\([ 	]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
d2004 1
a2004 6
cat >conftest.def <<EOF
$DEFS
EOF
escape_ampersand_and_backslash='s%[&\\]%\\&%g'
DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
rm -f conftest.def
a2033 1
YACC='$YACC'
a2077 1
s%@@YACC@@%$YACC%g
@


1.1.1.7
log
@import emacs-19.15
@
text
@d1006 1
a1006 4
  # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  # make.  It must be expanded now.
  CPP="${CC-cc} -E"
a1018 1
test ".${verbose}" != "." && echo "	setting CPP to $CPP"
d1749 39
a1942 10
case "${window_system}:${LIBS}" in
  x11:*-lXbsd* )
    if [ -d /usr/X386/include ]; then
      HAVE_XFREE386=yes
      if [ "${C_SWITCH_X_SITE}" = "" ]; then
	C_SWITCH_X_SITE="-I/usr/X386/include"
      fi
    fi
  ;;
esac
@


1.1.1.8
log
@import emacs-19.16
@
text
@a256 5
	## Verbose flag, tested by autoconf macros.
	"verbose" )
	  verbose=yes
	;;

d911 1
a911 4
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
d1608 1
a1608 1
ccp = &g + (g ? g-g : 0);
d1670 1
a1670 1
  rm -f $dir/conftest9012345 $dir/conftest9012346 2> /dev/null
@


1.1.1.9
log
@import emacs-19.17
@
text
@a443 5
  ## Bull dpx2
  m68*-bull-sysv3* )
    machine=dpx2 opsys=usg5-3
  ;;

d445 1
a445 1
  m68*-bull-sysv2* )
d913 1
a913 1
trap 'rm -fr conftest* core; exit 1' 1 3 15
a1716 23
### If the user hasn't specified where we should find X, try
### letting autoconf figure that out.
if [ "0${x_includes}" == 0 ] && [ "0${x_libraries}" == 0 ]; then
  
    # If we find X, set shell vars x_includes and x_libraries to the paths.
echo checking for X include and library files with xmkmf
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  cat < /dev/null > Imakefile
  if xmkmf >/dev/null 2>/dev/null && test -f Makefile; then
    eval `sed -n \
    -e 's,.* INCROOT *=[^/]*,x_includes=,p' \
    -e 's,.* USRLIBDIR *=[^/]*,x_libraries=,p' \
    Makefile`
  fi
  cd ..
  rm -fr conftestdir
fi

  
fi

d2143 1
a2143 1
trap 'rm -fr Makefile src/config.h conftest*; exit 1' 1 3 15
@


1.1.1.10
log
@import emacs-19.18
@
text
@d198 1
d214 1
d376 1
a376 1
if canonical=`${srcdir}/config.sub "${configuration}"` ; then : ; else
d404 1
a404 1
case "${canonical}" in
a599 3
  i370-ibm-aix*)
    machine=ibm370aix opsys=usg5-3
  ;;
d773 1
a773 1
    case "${canonical}" in
d781 1
a781 1
    case "${canonical}" in
d837 1
a837 1
    case "${canonical}" in
d864 1
a864 1
    case "${canonical}" in
d891 1
a891 1
  case "${canonical}" in
d908 1
a908 1
  (echo "${progname}: Emacs hasn't been ported to \`${canonical}' systems."
a1073 1
test -n "$verbose" && echo "	setting INSTALL to $INSTALL"
a1074 1
test -n "$verbose" && echo "	setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
a1075 1
test -n "$verbose" && echo "	setting INSTALL_DATA to $INSTALL_DATA"
d1111 1
a1111 2
  
{
d1113 1
a1113 1
echo "	defining ${trhdr}"
d1151 1
a1151 2
  
{
d1153 1
a1153 1
echo "	defining STDC_HEADERS"
d1178 1
a1178 2
  
{
d1180 1
a1180 1
echo "	defining TIME_WITH_SYS_TIME"
d1192 29
d1233 1
a1233 2
  
{
d1235 1
a1235 1
echo "	defining RETSIGTYPE to be void"
d1244 1
a1244 2
  
{
d1246 1
a1246 1
echo "	defining RETSIGTYPE to be int"
d1259 3
a1261 1
echo checking for struct tm in time.h
d1263 1
a1263 2
#include <sys/types.h>
#include <time.h>
d1265 1
a1265 1
int t() { struct tm *tp; }
d1268 1
a1268 4
  :
else
  
{
d1270 5
a1274 5
echo "	defining TM_IN_SYS_TIME"
DEFS="$DEFS -DTM_IN_SYS_TIME=1"
SEDDEFS="${SEDDEFS}\${SEDdA}TM_IN_SYS_TIME\${SEDdB}TM_IN_SYS_TIME\${SEDdC}1\${SEDdD}
\${SEDuA}TM_IN_SYS_TIME\${SEDuB}TM_IN_SYS_TIME\${SEDuC}1\${SEDuD}
\${SEDeA}TM_IN_SYS_TIME\${SEDeB}TM_IN_SYS_TIME\${SEDeC}1\${SEDeD}
d1281 15
a1295 11
decl='#include <sys/types.h>
'
case "$DEFS" in
  *TM_IN_SYS_TIME*) decl="$decl
#include <sys/time.h>
" ;;
  *) decl="$decl
#include <time.h>
" ;;
esac
echo checking for tm_zone in struct tm
d1299 32
a1330 1
int t() { struct tm tm; tm.tm_zone; }
d1333 1
a1333 2
  
{
d1335 5
a1339 5
echo "	defining HAVE_TM_ZONE"
DEFS="$DEFS -DHAVE_TM_ZONE=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_TM_ZONE\${SEDdB}HAVE_TM_ZONE\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_TM_ZONE\${SEDuB}HAVE_TM_ZONE\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_TM_ZONE\${SEDeB}HAVE_TM_ZONE\${SEDeC}1\${SEDeD}
d1344 26
a1369 3
  no_tm_zone=1
fi
rm -f conftest*
d1371 2
a1372 2
if test -n "$no_tm_zone"; then
echo checking for tzname
d1374 11
a1384 3
#include <time.h>
#ifndef tzname /* For SGI.  */
extern char *tzname[]; /* RS6000 and others want it this way.  */
d1386 1
a1386 2
int main() { exit(0); }
int t() { atoi(*tzname); }
d1389 1
a1389 2
  
{
d1391 5
a1395 5
echo "	defining HAVE_TZNAME"
DEFS="$DEFS -DHAVE_TZNAME=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_TZNAME\${SEDdB}HAVE_TZNAME\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_TZNAME\${SEDuB}HAVE_TZNAME\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_TZNAME\${SEDeB}HAVE_TZNAME\${SEDeC}1\${SEDeD}
d1403 7
d1412 9
a1420 17
prog='/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* AIX XL C 1.02.0.0 rejects this.
   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 */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;
d1422 3
a1424 18
  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25,17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}'
echo checking for working const
d1426 1
a1426 3

int main() { exit(0); }
int t() { $prog }
d1428 2
a1429 1
if eval $compile; then
d1432 31
a1462 1
  
d1464 52
d1517 142
a1658 1
echo "	defining const to be empty"
d1685 1
a1685 2
$lost || 
{
d1687 1
a1687 1
echo "	defining HAVE_LONG_FILE_NAMES"
d1722 5
a1726 30
case "${window_system}" in
  "none" | "x11" | "x10" ) ;;
  "" )
    # --x-includes or --x-libraries implies --with-x11.
    if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
      window_system=x11
    else
      echo "  No window system specified.  Looking for X11."
      # If the user didn't specify a window system and we found X11, use it.
      if [ -r /usr/lib/libX11.a \
	 -o -d /usr/include/X11 \
         -o -d /usr/X386/include \
	 -o -d ${x_includes}/X11 ]; then
        window_system=x11
      fi
    fi
  ;;
  * )
    echo "Don't specify a window system more than once." >&2
    exit 1
  ;;
esac

case "${window_system}" in
  "" | "x11" )
    ### If the user hasn't specified where we should find X, try
    ### letting autoconf figure that out.
    if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then
      
      # If we find X, set shell vars x_includes and x_libraries to the paths.
d1731 6
a1736 6
  cat > Imakefile <<\EOF
acfindx:
	@@echo "x_includes=$(INCROOT); x_libraries=$(USRLIBDIR)"
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    eval `make acfindx`
d1742 12
a1753 3
      
    fi
    if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
d1757 4
a1762 5
[ -z "${window_system}" ] && window_system=none

[ -n "${x_libraries}" ] && LD_SWITCH_X_SITE="-L${x_libraries}"
[ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"

a1814 13
#ifndef LIB_X11_LIB
#define LIB_X11_LIB
#endif

#ifndef LIBX11_MACHINE
#define LIBX11_MACHINE
#endif

#ifndef LIBX11_SYSTEM
#define LIBX11_SYSTEM
#endif
@@configure@@ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM

d1824 5
a1828 215
@@configure@@ system_malloc=no
#endif

#ifndef C_DEBUG_SWITCH
#define C_DEBUG_SWITCH -g
#endif

#ifndef C_OPTIMIZE_SWITCH
#define C_OPTIMIZE_SWITCH -O
#endif

#ifdef __GNUC__
@@configure@@ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH
#else
@@configure@@ CFLAGS=C_DEBUG_SWITCH
#endif
' > ${tempcname}
# The value of CPP is a quoted variable reference, so we need to do this
# to get its actual value...
CPP=`eval "echo $CPP"`
eval `${CPP} -Isrc ${tempcname} \
       | grep '@@configure@@' \
       | sed -e 's/^@@configure@@ \([^=]*=\)\(.*\)$/\1"\2"/'`
rm ${tempcname}

### Compute the unexec source name from the object name.
UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"

# Do the opsystem or machine files prohibit the use of the GNU malloc?
# Assume not, until told otherwise.
GNU_MALLOC=yes
if [ "${system_malloc}" = "yes" ]; then
  GNU_MALLOC=no
  GNU_MALLOC_reason="
  (The GNU allocators don't work with this system configuration.)"
fi

if [ x"${REL_ALLOC}" = x ]; then
  REL_ALLOC=${GNU_MALLOC}
fi

LISP_FLOAT_TYPE=yes


#### Add the libraries to LIBS and check for some functions.


DEFS="$c_switch_system $DEFS"
LIBS="$libsrc_libs"

LIBS_save="${LIBS}"
LIBS="${LIBS} -ldnet"
have_lib=""
echo checking for -ldnet
cat > conftest.c <<EOF

int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
  have_lib="1"
fi
rm -f conftest*
LIBS="${LIBS_save}"
if test -n "${have_lib}"; then
   
{
test -n "$verbose" && \
echo "	defining HAVE_LIBDNET"
DEFS="$DEFS -DHAVE_LIBDNET=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBDNET\${SEDdB}HAVE_LIBDNET\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_LIBDNET\${SEDuB}HAVE_LIBDNET\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_LIBDNET\${SEDeB}HAVE_LIBDNET\${SEDeC}1\${SEDeD}
"
}

   LIBS="${LIBS} -ldnet"
fi


LIBS_save="${LIBS}"
LIBS="${LIBS} -lXbsd"
have_lib=""
echo checking for -lXbsd
cat > conftest.c <<EOF

int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
  have_lib="1"
fi
rm -f conftest*
LIBS="${LIBS_save}"
if test -n "${have_lib}"; then
   :; LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
    if test -d /usr/X386/include; then
      HAVE_XFREE386=yes
      test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
    fi
else
   :; 
fi


if test "${HAVE_X11}" = "yes"; then
  DEFS="$C_SWITCH_X_SITE $DEFS"
  LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS"
  for func in XrmSetDatabase XScreenResourceString
do
trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
echo checking for ${func}
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_${func}) || defined (__stub___${func})
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char ${func}(); ${func}();
#endif
 }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo "	defining ${trfunc}"
DEFS="$DEFS -D${trfunc}=1"
SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
\${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
\${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*
done

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo checking for working alloca.h
cat > conftest.c <<EOF
#include <alloca.h>
int main() { exit(0); }
int t() { char *p = alloca(2 * sizeof(int)); }
EOF
if eval $compile; then
  
{
test -n "$verbose" && \
echo "	defining HAVE_ALLOCA_H"
DEFS="$DEFS -DHAVE_ALLOCA_H=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ALLOCA_H\${SEDdB}HAVE_ALLOCA_H\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_ALLOCA_H\${SEDuB}HAVE_ALLOCA_H\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_ALLOCA_H\${SEDeB}HAVE_ALLOCA_H\${SEDeC}1\${SEDeD}
"
}

fi
rm -f conftest*

decl="#ifdef __GNUC__
#define alloca __builtin_alloca
#else
#if HAVE_ALLOCA_H
#include <alloca.h>
#else
#ifdef _AIX
 #pragma alloca
#else
char *alloca ();
#endif
#endif
#endif
"
echo checking for alloca
cat > conftest.c <<EOF
$decl
int main() { exit(0); }
int t() { char *p = (char *) alloca(1); }
EOF
if eval $compile; then
  :
else
  alloca_missing=1
cat > conftest.c <<EOF

#if defined(CRAY) && ! defined(CRAY2)
winnitude
#else
lossage
#endif

EOF
eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  echo checking for _getb67
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__getb67) || defined (__stub____getb67)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char _getb67(); _getb67();
a1829 12
 }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo "	defining CRAY_STACKSEG_END to be _getb67"
DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}_getb67\${SEDdD}
\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}_getb67\${SEDuD}
\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}_getb67\${SEDeD}
"
}
d1831 2
a1832 14
else
  echo checking for GETB67
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_GETB67) || defined (__stub___GETB67)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char GETB67(); GETB67();
a1833 12
 }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo "	defining CRAY_STACKSEG_END to be GETB67"
DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}GETB67\${SEDdD}
\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}GETB67\${SEDuD}
\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}GETB67\${SEDeD}
"
}
d1835 2
a1836 11
else
  echo checking for getb67
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getb67) || defined (__stub___getb67)
choke me
d1838 1
a1838 2
/* Override any gcc2 internal prototype to avoid an error.  */
extern char getb67(); getb67();
d1840 8
a1847 12
 }
EOF
if eval $compile; then
  {
test -n "$verbose" && \
echo "	defining CRAY_STACKSEG_END to be getb67"
DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}getb67\${SEDdD}
\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}getb67\${SEDuD}
\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}getb67\${SEDeD}
"
}
d1849 2
a1850 2
fi
rm -f conftest*
d1852 7
a1859 1
rm -f conftest*
d1861 2
a1863 1
rm -f conftest*
d1865 1
a1865 2
fi
rm -f conftest*
d1868 3
a1870 2
fi
rm -f conftest*
d1872 5
a1876 6
if test -n "$alloca_missing"; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # 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.
  ALLOCA=alloca.o
d1878 2
a1879 5
  echo 'checking stack direction for C alloca'
  echo checking whether cross-compiling
# If we cannot run a trivial program, we must be cross compiling.
cat > conftest.c <<EOF
main(){exit(0);}
d1881 2
a1882 5
eval $compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  :
else
  cross_compiling=1
d1885 3
a1887 5

if test -n "$cross_compiling"
then
  
{
d1889 5
a1893 5
echo "	defining STACK_DIRECTION to be 0"
DEFS="$DEFS -DSTACK_DIRECTION=0"
SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}0\${SEDdD}
\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}0\${SEDuD}
\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}0\${SEDeD}
d1897 2
a1898 31
else
cat > conftest.c <<EOF
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}
main ()
{
  exit (find_stack_direction() < 0);
}
EOF
eval $compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  
{
test -n "$verbose" && \
echo "	defining STACK_DIRECTION to be 1"
DEFS="$DEFS -DSTACK_DIRECTION=1"
SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}1\${SEDdD}
\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}1\${SEDuD}
\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}1\${SEDeD}
"
}
a1899 11
else
  
{
test -n "$verbose" && \
echo "	defining STACK_DIRECTION to be -1"
DEFS="$DEFS -DSTACK_DIRECTION=-1"
SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}-1\${SEDdD}
\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}-1\${SEDuD}
\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}-1\${SEDeD}
"
}
d1901 3
a1903 3
fi
fi
rm -f conftest*
d1906 1
a1906 1
for func in gettimeofday gethostname dup2 rename closedir mkdir rmdir random bcopy logb frexp
d1928 1
a1928 1
echo "	defining ${trfunc}"
d1941 2
a1942 50
ok_so_far=true
echo checking for socket
cat > conftest.c <<EOF
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_socket) || defined (__stub___socket)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char socket(); socket();
#endif
 }
EOF
if eval $compile; then
  :
else
  ok_so_far=
fi
rm -f conftest*

if test -n "$ok_so_far"; then
  echo checking for netinet/in.h
cat > conftest.c <<EOF
#include <netinet/in.h>
EOF
err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
if test -z "$err"; then
  :
else
  ok_so_far=
fi
rm -f conftest*

fi
if test -n "$ok_so_far"; then
  echo checking for arpa/inet.h
cat > conftest.c <<EOF
#include <arpa/inet.h>
EOF
err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
if test -z "$err"; then
  :
else
  ok_so_far=
fi
rm -f conftest*
d1944 10
a1953 14
fi
if test -n "$ok_so_far"; then
  
{
test -n "$verbose" && \
echo "	defining HAVE_INET_SOCKETS"
DEFS="$DEFS -DHAVE_INET_SOCKETS=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_INET_SOCKETS\${SEDdB}HAVE_INET_SOCKETS\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_INET_SOCKETS\${SEDuB}HAVE_INET_SOCKETS\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_INET_SOCKETS\${SEDeB}HAVE_INET_SOCKETS\${SEDeC}1\${SEDeD}
"
}

fi
a1963 16
if [ -f /usr/lpp/X11/bin/smt.exp ]; then
  
  
{
test -n "$verbose" && \
echo "	defining HAVE_AIX_SMT_EXP"
DEFS="$DEFS -DHAVE_AIX_SMT_EXP=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_AIX_SMT_EXP\${SEDdB}HAVE_AIX_SMT_EXP\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_AIX_SMT_EXP\${SEDuB}HAVE_AIX_SMT_EXP\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_AIX_SMT_EXP\${SEDeB}HAVE_AIX_SMT_EXP\${SEDeC}1\${SEDeD}
"
}

  
fi

a1965 2
### Use configuration here uncanonicalized to avoid exceeding size limits.

d1982 1
a1982 1
echo "	defining config_machfile to be "\"${machfile}\"""
a1989 1

d1992 1
a1992 1
echo "	defining config_opsysfile to be "\"${opsysfile}\"""
a1999 1

d2002 1
a2002 1
echo "	defining LD_SWITCH_X_SITE to be ${LD_SWITCH_X_SITE}"
a2009 1

d2012 1
a2012 1
echo "	defining C_SWITCH_X_SITE to be ${C_SWITCH_X_SITE}"
a2019 1

d2022 1
a2022 1
echo "	defining UNEXEC_SRC to be ${UNEXEC_SRC}"
d2033 1
a2033 2
   
{
d2035 1
a2035 1
echo "	defining HAVE_X_WINDOWS"
d2045 1
a2045 2
   
{
d2047 1
a2047 1
echo "	defining HAVE_X11"
d2057 1
a2057 2
   
{
d2059 1
a2059 1
echo "	defining HAVE_XFREE386"
d2069 1
a2069 2
   
{
d2071 1
a2071 1
echo "	defining HAVE_X_MENU"
d2081 1
a2081 2
   
{
d2083 1
a2083 1
echo "	defining GNU_MALLOC"
d2093 1
a2093 2
   
{
d2095 1
a2095 1
echo "	defining REL_ALLOC"
d2105 1
a2105 2
   
{
d2107 1
a2107 1
echo "	defining LISP_FLOAT_TYPE"
d2121 1
a2121 1
Configured for \`${canonical}'.
a2134 6
# Remove any trailing slashes in these variables.
test -n "${prefix}" &&
  prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
test -n "${exec_prefix}" &&
  exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`

a2165 1
    echo running /bin/sh $0 $configure_args
@


1.1.1.11
log
@import emacs-19.19
@
text
@d262 1
a262 6
	  if [ "x$PAGER" = x ]
	  then
	    echo "${short_usage}" | more
	  else
	    echo "${short_usage}" | $PAGER
	  fi
d492 1
a492 1
  mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
d534 1
a534 1
  pn-gould-bsd4.2* )
d537 1
a537 1
  pn-gould-bsd4.3* )
a555 3
      ## Someone's system reports A.B8.05 for this.
      ## I wonder what other possibilities there are.
      *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
a576 3
      ## Someone's system reports A.B8.05 for this.
      ## I wonder what other possibilities there are.
      *.B8.* ) machine=hp9000s800 opsys=hpux8 ;;
d592 1
a592 1
  i386-ibm-aix1.1* )
d595 1
a595 1
  i386-ibm-aix1.[23]* | i386-ibm-aix* )
d601 1
a601 1
  rs6000-ibm-aix3.1* )
d604 1
a604 1
  rs6000-ibm-aix3.2* | rs6000-ibm-aix* )
d607 1
a607 1
  romp-ibm-bsd4.3* )
d610 1
a610 1
  romp-ibm-bsd4.2* )
d613 1
a613 1
  romp-ibm-aos4.3* )
d616 1
a616 1
  romp-ibm-aos4.2* )
d630 1
a630 1
  m68*-isi-bsd4.2* )
d633 1
a633 1
  m68*-isi-bsd4.3* )
d653 1
a653 1
  i860-*-sysvr4* )
d659 1
a659 1
  m68*-sgi-iris3.5* )
d662 1
a662 1
  m68*-sgi-iris3.6* | m68*-sgi-iris*)
a668 3
  mips-sgi-irix5.* )
    machine=iris4d opsys=irix5-0
  ;;
d674 1
a674 1
  m68*-masscomp-rtu* )
d749 1
a749 1
  ns32k-sequent-bsd4.2* )
d752 1
a752 1
  ns32k-sequent-bsd4.3* )
d757 1
a757 1
  m68*-sony-bsd4.2* )
d760 1
a760 4
  m68*-sony-bsd4.3* )
    machine=news opsys=bsd4-3
  ;;
  m68*-sony-newsos3*)
a782 2
      ## The Sun386 didn't get past 4.0.
      i386-*-sunos4	  ) opsys=sunos4-0 ;;
d797 1
a797 1
  tahoe-tahoe-bsd4.2* )
d800 1
a800 1
  tahoe-tahoe-bsd4.3* )
d810 2
a811 2
  m88k-tektronix-sysv3* )
  machine=tekxd88 opsys=usg5-3
d821 1
a821 1
    machine=tek4300 opsys=bsd4-3
d839 4
a842 4
      *-bsd4.1* ) 					opsys=bsd4-1 ;;
      *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* )	opsys=bsd4-2 ;;
      *-bsd4.3* | *-ultrix* ) 				opsys=bsd4-3 ;;
      *-bsd386* )					opsys=bsd386 ;;
d867 1
a867 1
      *-isc2.2* )		opsys=isc2-2 ;;
d875 1
a875 1
      *-386bsd* )	        opsys=386bsd ;;
a1391 3
  test -w $dir || { echo \
warning: cannot write $dir to see if it supports long file names
		    continue; }
d1472 1
a1472 1
	@@echo "temp_includes=$(INCROOT); temp_libraries=$(USRLIBDIR)"
a1475 8
    case "$temp_includes" in
	/usr/include) ;;
	*) x_includes="$temp_includes" ;;
    esac
    case "$temp_libraries" in
	/usr/lib | /lib) ;;
	*) x_libraries="$temp_libraries" ;;
    esac
d1547 1
a1547 1
#define LIB_X11_LIB -lX11
d1676 1
a1676 1
  for func in XrmSetDatabase XScreenResourceString XScreenNumberOfScreen
d1952 1
a1952 32

# logb and frexp are found in -lm on most systems.
LIBS_save="${LIBS}"
LIBS="${LIBS} -lm"
have_lib=""
echo checking for -lm
cat > conftest.c <<EOF

int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
  have_lib="1"
fi
rm -f conftest*
LIBS="${LIBS_save}"
if test -n "${have_lib}"; then
   
{
test -n "$verbose" && \
echo "	defining HAVE_LIBM"
DEFS="$DEFS -DHAVE_LIBM=1"
SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBM\${SEDdB}HAVE_LIBM\${SEDdC}1\${SEDdD}
\${SEDuA}HAVE_LIBM\${SEDuB}HAVE_LIBM\${SEDuC}1\${SEDuD}
\${SEDeA}HAVE_LIBM\${SEDeB}HAVE_LIBM\${SEDeC}1\${SEDeD}
"
}

   LIBS="${LIBS} -lm"
fi

for func in gettimeofday gethostname dup2 rename closedir mkdir rmdir random bcopy logb frexp ftime
@


1.1.1.12
log
@import emacs-19.20
@
text
@d28 1
d43 1
a58 25
### Establish some default values.
run_in_place=
single_tree=
prefix='/usr/local'
exec_prefix='${prefix}'
bindir='${exec_prefix}/bin'
datadir='${prefix}/lib'
statedir='${prefix}/lib'
libdir='${exec_prefix}/lib'
mandir='${prefix}/man/man1'
infodir='${prefix}/info'
lispdir='${datadir}/emacs/${version}/lisp'
locallisppath='${datadir}/emacs/site-lisp'
lisppath='${locallisppath}:${lispdir}'
etcdir='${datadir}/emacs/${version}/etc'
lockdir='${statedir}/emacs/lock'
archlibdir='${libdir}/emacs/${version}/${configuration}'

# We cannot use this variable in the case statement below, because many
# /bin/sh's have broken semantics for "case".  Unfortunately, you must
# actually edit the clause itself.
# path_options="prefix | exec_prefix | bindir | libdir | etcdir | datadir"
# path_options="$path_options | archlibdir | statedir | mandir | infodir"
# path_options="$path_options | lispdir | lockdir | lisppath | locallisppath"

d73 2
a74 14
--single-tree=DIR	Has the effect of creating a directory tree at DIR
			which looks like:
			  .../DIR/bin/CONFIGNAME (emacs, etags, etc.)
			  .../DIR/bin/CONFIGNAME/etc (movemail, etc.)
			  .../DIR/common/lisp  (emacs' lisp files)
			  .../DIR/common/site-lisp (local lisp files)
			  .../DIR/common/lib (DOC, TUTORIAL, etc.)
			  .../DIR/common/lock (lockfiles)
--srcdir=DIR		Look for the Emacs source files in DIR.
--prefix=DIR		Install files below DIR. Defaults to \`${prefix}'.

You may also specify any of the \`path' variables found in Makefile.in,
including --bindir, --libdir, --etcdir, --infodir, and so on.  This allows
you to override a single default location when configuring.
d85 9
a93 7
### Shell Magic: Quote the quoted arguments in ARGUMENTS.  At a later date,
### in order to get the arguments back in $@@, we have to do an
###  `eval set x "$quoted_arguments"; shift'.
quoted_arguments=
for i in "$@@"; do
   quoted_arguments="$quoted_arguments '$i'"
done
d98 4
a101 5
### However, it also turns out that many shells cannot expand ${10} at all.
### So using an index variable doesn't work either.  It is possible to use
### some shell magic to make 'set x "$arguments"; shift' work portably.
while [ $# != 0 ]; do
  arg="$1"; shift
d106 1
d168 1
a168 1
            if [ $# = 0 ]; then
d174 2
a175 1
	    val="$1"; shift
d188 1
a188 1
            if [ $# = 0 ]; then
d190 1
a190 1
    \`--${optname}=/usr/local/X11/include'."
d194 2
a195 1
            val="$1"; shift
d203 1
a203 1
            if [ $# = 0 ]; then
d205 1
a205 1
    \`--${optname}=/usr/local/X11/lib'."
d209 2
a210 1
            val="$1"; shift
d217 2
a218 2
	  single_tree=
	  run_in_place=1
d221 16
a236 5
        ## Should this use the "single tree" configuration?
	"single_tree" )
	   run_in_place=
	   single_tree=1
	;;
d238 16
a253 19
	## Has the user specified one of the path options?
	prefix | exec_prefix | bindir | libdir | etcdir | datadir | \
	archlibdir | statedir | mandir | infodir | lispdir | lockdir | \
	lisppath | locallisppath )
	   ## If the value was omitted, get it from the next argument.
	   if [ "${valomitted}" = "yes" ]; then
	      if [ $# = 0 ]; then
		 (echo \
"$progname: You must give a value for the \`--${optname}' option,";
		  echo \
"as in \`--${optname}=`eval echo '$'$optname`.'"
		  echo "$short_usage") >&2
		 exit 1
	      fi
	      val="$1"; shift
	   fi
	   eval "${opt}=\"${val}\""
	   eval "${opt}_specified=1"
	;;
a283 3
### Get the arguments back.  See the diatribe on Shell Magic above.
eval set x "$quoted_arguments"; shift

d348 1
a348 1
    if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
d357 2
a358 1
#### Check if the source directory already has a configured system in it.
d361 1
a361 1
  (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
d363 2
a364 11
   echo "   right.  To configure in another directory as well, you MUST"
   echo "   use GNU make.  If you do not have GNU make, then you must"
   echo "   now do \`make distclean' in ${srcdir},"
   echo "   and then run ${progname} again.") >&2
  extrasub='/^VPATH[	 ]*=/c\
vpath %.c $(srcdir)\
vpath %.h $(srcdir)\
vpath %.y $(srcdir)\
vpath %.l $(srcdir)\
vpath %.s $(srcdir)\
vpath %.in $(srcdir)'
a557 3
  m68*-hp-netbsd* )
    machine=hp9000s300 opsys=netbsd
  ;;
a894 1
      *-netbsd* )	        opsys=netbsd ;;
d1125 1
a1125 1
for hdr in sys/timeb.h sys/time.h unistd.h
d1435 1
a1523 5
# Avoid forcing the search of /usr/include before fixed include files.
if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
   C_SWITCH_X_SITE=" "
fi

d1573 2
a1574 2
configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
configure___ c_switch_system=C_SWITCH_SYSTEM
d1587 1
a1587 1
configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
d1590 1
a1590 1
configure___ unexec=UNEXEC
d1592 1
a1592 1
configure___ unexec=unexec.o
d1596 1
a1596 1
configure___ system_malloc=yes
d1598 1
a1598 1
configure___ system_malloc=no
d1610 1
a1610 1
configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH
d1612 1
a1612 1
configure___ CFLAGS=C_DEBUG_SWITCH
d1619 2
a1620 2
       | grep 'configure___' \
       | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
d1694 4
a1702 6
echo checking for XFree86
if test -d /usr/X386/include; then
  HAVE_XFREE386=yes
  test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
fi

d2013 1
a2013 1
for func in gettimeofday gethostname dup2 rename closedir mkdir rmdir random bcopy logb frexp ftime res_init
a2156 10










a2304 47
# ====================== Developer's configuration =======================

# The following assignments make sense if you're running Emacs on a single
# machine, one version at a time, and  you want changes to the lisp and etc
# directories in the source tree to show up immediately in your working
# environment.  It saves a great deal of disk space by not duplicating the
# lisp and etc directories.

if [ "$run_in_place" = "1" ]; then
   lispdir='${srcdir}/lisp'
   locallisppath='${srcdir}/site-lisp:${datadir}/emacs/site-lisp'
   etcdir='${srcdir}/etc'
   lockdir='${srcdir}/lock'
   archlibdir='${srcdir}/lib-src'
   infodir='${srcdir}/info'
elif [ "$single_tree" = "1" ]; then
   if [ "$exec_prefix_specified" = "" ]; then
      exec_prefix='${prefix}'
   fi
   if [ "$bindir_specified" = "" ]; then
      bindir='${exec_prefix}/bin/${configuration}'
   fi
   if [ "$datadir_specified" = "" ]; then
      datadir='${prefix}/common'
   fi
   if [ "$statedir_specified" = "" ]; then
      statedir='${prefix}/common'
   fi
   if [ "$libdir_specified" = "" ]; then
      libdir='${bindir}'
   fi
   if [ "$lispdir_specified" = "" ]; then
      lispdir='${prefix}/common/lisp'
   fi
   if [ "$locallisppath_specified" = "" ]; then
      locallisppath='${prefix}/common/site-lisp'
   fi
   if [ "$lockdir_specified" = "" ]; then
      lockdir='${prefix}/common/lock'
   fi
   if [ "$archlibdir_specified" = "" ]; then
      archlibdir='${libdir}/etc'
   fi
   if [ "$etcdir_specified" = "" ]; then
      etcdir='${prefix}/common/data'
   fi
fi
d2366 1
a2366 1
trap 'rm -fr Makefile lib-src/Makefile oldXMenu/Makefile src/Makefile.in src/config.h conftest*; exit 1' 1 3 15
a2377 14
prefix='$prefix'
exec_prefix='$exec_prefix'
bindir='$bindir'
datadir='$datadir'
statedir='$statedir'
libdir='$libdir'
mandir='$mandir'
infodir='$infodir'
lispdir='$lispdir'
locallisppath='$locallisppath'
lisppath='$lisppath'
etcdir='$etcdir'
lockdir='$lockdir'
archlibdir='$archlibdir'
d2380 2
d2385 2
d2397 1
a2397 1
test -n "$gen_files" || gen_files="Makefile lib-src/Makefile oldXMenu/Makefile src/Makefile.in"
a2422 14
s%@@prefix@@%$prefix%g
s%@@exec_prefix@@%$exec_prefix%g
s%@@bindir@@%$bindir%g
s%@@datadir@@%$datadir%g
s%@@statedir@@%$statedir%g
s%@@libdir@@%$libdir%g
s%@@mandir@@%$mandir%g
s%@@infodir@@%$infodir%g
s%@@lispdir@@%$lispdir%g
s%@@locallisppath@@%$locallisppath%g
s%@@lisppath@@%$lisppath%g
s%@@etcdir@@%$etcdir%g
s%@@lockdir@@%$lockdir%g
s%@@archlibdir@@%$archlibdir%g
d2425 2
d2430 2
a2529 41
 
# Build src/Makefile from ${srcdir}/src/Makefile.in.  This must be done
# after src/config.h is built, since we rely on that file.  Only do the
# build if "config.status" is present, since it's non-presence indicates
# an error occured.
status=$?
if [ ! -f ./config.status ]; then
   exit $status
fi
topsrcdir=${srcdir}
makefile_command='echo "creating src/Makefile";
  topsrcdir='"${topsrcdir}"';
( cd ./src;
  cp Makefile.in junk.c;
  eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
  < junk.cpp							'\
'    sed -e '\''s/^#.*//'\''					'\
'	-e '\''s/^[ \f\t][ \f\t]*$//'\''			'\
'	-e '\''s/^ /	/'\'' 					'\
'	| sed -n -e '\''/^..*$/p'\''				'\
'	> Makefile.new;
    chmod 444 Makefile.new;
    mv -f Makefile.new Makefile;
    rm -f junk.c junk.cpp;
)'
eval `echo $makefile_command`
# AC-OUTPUT has created `config.status' already.  We need to add the above
# commands to re-create `src/Makefile', and we need to insert them before
# the final "exit 0" which appears at the end of `config.status'.
<config.status sed -e 's/^exit 0$//' >config.new
echo $makefile_command >>config.new
echo exit 0 >>config.new
mv -f config.new config.status
chmod +x config.status
# Don't let the fact that we just rewrote config.status make Makefile think
# that it is now newer.  We have just rewritten all of the Makefiles as well.
MFS="Makefile src/Makefile src/Makefile.in lib-src/Makefile oldXMenu/Makefile"
for file in $MFS; do
   chmod a+w $file; touch $file; chmod 444 $file
done
exit 0
@


1.1.1.13
log
@import emacs-19.21
@
text
@a2659 4
  # We discard all lines in Makefile.in that start with `# Generated' or /**/#
  # because some cpps get confused by them.
  # Really we should preserve them somehow into Makefile,
  # but that is beyond my level of shell programming.
d2663 1
a2663 1
  sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
@


1.1.1.14
log
@import emacs-19.22
@
text
@a698 5
  ## Unspecified sysv on an ncr machine defaults to svr4.
  i[34]86-ncr-sysv* )
    machine=intel386 opsys=usg5-4
  ;;

d975 1
a975 2
trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
trap 'rm -f confdefs*' 0
d983 2
a984 4
rm -f conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
a1016 1

d1043 1
a1043 1
test -n "$CC" && test -n "$verbose" && echo "	setting CC to $CC"
a1080 1
#include "confdefs.h"
d1084 1
a1084 1
err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
a1087 1
  rm -rf conftest*
d1130 1
a1130 10
if test -z "$INSTALL"; then
  if test -f ${srcdir}/install.sh; then
    # We want the top-level source directory, not the subdir's srcdir,
    # so expand srcdir now rather than in the Makefile.
    INSTALL="${srcdir}/install.sh -c"
  else
    echo "warning: ${srcdir}/install.sh not found; using cp"
    INSTALL=cp
  fi
fi
d1154 1
a1154 1
test -n "$YACC" && test -n "$verbose" && echo "	setting YACC to $YACC"
a1166 1
#include "confdefs.h"
d1169 1
a1169 1
err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
a1170 1
  rm -rf conftest*
a1174 1
echo "#define" ${trhdr} 1 >> confdefs.h
a1181 1

a1187 1
#include "confdefs.h"
d1193 1
a1193 1
err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
a1194 1
  rm -rf conftest*
d1196 2
a1197 3
echo '#include "confdefs.h"
#include <string.h>' > conftest.c
eval "$CPP conftest.c > conftest.out 2>&1"
a1198 1
  rm -rf conftest*
a1200 1
#include "confdefs.h"
a1215 1
echo "#define" STDC_HEADERS 1 >> confdefs.h
a1222 1

d1224 1
a1224 2
rm -fr conftest*

a1227 1

a1232 1
#include "confdefs.h"
a1239 1
  rm -rf conftest*
a1243 1
echo "#define" TIME_WITH_SYS_TIME 1 >> confdefs.h
a1250 1

a1256 1
#include "confdefs.h"
a1266 1
  rm -rf conftest*
d1270 1
a1270 2
echo "	defining" RETSIGTYPE to be void
echo "#define" RETSIGTYPE void >> confdefs.h
a1277 1

a1278 1
  rm -rf conftest*
d1282 1
a1282 2
echo "	defining" RETSIGTYPE to be int
echo "#define" RETSIGTYPE int >> confdefs.h
a1296 1
#include "confdefs.h"
d1300 1
a1300 1
int t() { struct tm *tp; tp->tm_sec; }
a1304 1
  rm -rf conftest*
a1308 1
echo "#define" TM_IN_SYS_TIME 1 >> confdefs.h
a1330 1
#include "confdefs.h"
a1335 1
  rm -rf conftest*
a1339 1
echo "#define" HAVE_TM_ZONE 1 >> confdefs.h
a1346 1

a1347 1
  rm -rf conftest*
a1354 1
#include "confdefs.h"
a1362 1
  rm -rf conftest*
a1366 1
echo "#define" HAVE_TZNAME 1 >> confdefs.h
a1373 1

a1413 3
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
d1415 1
a1415 1
echo checking for lack of working const
a1416 1
#include "confdefs.h"
a1423 1
  rm -rf conftest*
d1427 1
a1427 2
echo "	defining" const to be empty
echo "#define" const  >> confdefs.h
d1440 1
a1440 1
some_dir_failed=false
a1443 1
#      /var/tmp		likewise
d1445 6
a1450 6
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
for dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
  test -d $dir || continue
  test -w $dir || continue # It's less confusing to not echo anything here.
d1454 1
a1454 1
  test -f $dir/conftest9012345 && test "$val" = 1 || some_dir_failed=true
d1457 1
a1457 1
$some_dir_failed || 
a1460 1
echo "#define" HAVE_LONG_FILE_NAMES 1 >> confdefs.h
a1523 1
no_x=true
d1528 1
a1528 1
  cat > Imakefile <<'EOF'
d1530 1
a1530 1
	@@echo 'im_incroot="$(INCROOT)"; im_usrlibdir="$(USRLIBDIR)"; im_libdir="$(LIBDIR)"'
d1533 2
a1534 8
    no_x=
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `make acfindx | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    if test ! -f $im_usrlibdir/libX11.a && test -f $im_libdir/libX11.a; then
      im_usrlibdir=$im_libdir
    fi
    case "$im_incroot" in
d1536 1
a1536 1
	*) x_includes="$im_incroot" ;;
d1538 1
a1538 1
    case "$im_usrlibdir" in
d1540 1
a1540 1
	*) x_libraries="$im_usrlibdir" ;;
a1546 95
if test -z "$im_usrlibdir"; then
echo checking for X include and library files directly
if test ".$x_direct_test_library" = . ; then
   x_direct_test_library=Xt
fi
cat > conftest.c <<EOF
#include "confdefs.h"
#include <X11/Intrinsic.h>
EOF
err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
if test -z "$err"; then
  rm -rf conftest*
  no_x=

else
  rm -rf conftest*
  for dir in \
    /usr/local/include \
    /usr/unsupported/include \
    /usr/x386/include \
    /usr/local/x11r5/include \
    /usr/include/X11R6 \
    /usr/include/X11R5 \
    /usr/include/X11R4 \
    /usr/X11R6/include \
    /usr/X11R5/include \
    /usr/X11/include \
    /usr/openwin/include \
    /usr/openwin/share/include \
    /usr/lpp/Xamples/include \
    /usr/athena/include \
    ; \
  do
    if test -r $dir/X11/Intrinsic.h; then
      x_includes=$dir; no_x=
      break
    fi
  done
fi
rm -f conftest*

# Check for the libraries.  First see if replacing the `include' by
# `lib' works.
LIBS_save="${LIBS}"
LIBS="${LIBS} -l"$x_direct_test_library""
have_lib=""
echo checking for -l"$x_direct_test_library"
cat > conftest.c <<EOF
#include "confdefs.h"

int main() { exit(0); }
int t() { main(); }
EOF
if eval $compile; then
  rm -rf conftest*
  have_lib="1"

fi
rm -f conftest*
LIBS="${LIBS_save}"
if test -n "${have_lib}"; then
   :; no_x=
else
   :; for dir in `echo "$x_includes" | sed s/include/lib/` \
  /usr/local/lib \
  /usr/unsupported/lib \
  /usr/x386/lib \
  /usr/local/x11r5/lib \
  /usr/lib/X11 \
  /usr/lib/X11R6 \
  /usr/lib/X11R5 \
  /usr/lib/X11R4 \
  /usr/X11R6/lib \
  /usr/X11R5/lib \
  /usr/X11R4/lib \
  /usr/X11/lib \
  /usr/openwin/lib \
  /usr/lpp/Xamples/lib \
  /usr/athena/lib \
  ; \
do
  for extension in a so sl; do
    if test -r $dir/libXt.$extension; then
      x_libraries=$dir; no_x=
      break 2
    fi
  done
done
fi

fi
if test -n "$verbose"; then
  test -n "$x_includes" && echo "	found X11 headers in $x_includes"
  test -n "$x_libraries" && echo "	found X11 libraries in $x_libraries"
fi
a1693 1
#include "confdefs.h"
a1698 1
  rm -rf conftest*
a1699 1

a1707 1
echo "#define" HAVE_LIBDNET 1 >> confdefs.h
a1723 1
#include "confdefs.h"
a1728 1
  rm -rf conftest*
a1729 1

a1753 1
#include "confdefs.h"
a1768 1
  rm -rf conftest*
a1771 1
echo "#define" ${trfunc} 1 >> confdefs.h
a1778 1

a1788 1
#include "confdefs.h"
a1793 1
  rm -rf conftest*
a1797 1
echo "#define" HAVE_ALLOCA_H 1 >> confdefs.h
a1804 1

a1823 1
#include "confdefs.h"
a1830 1
  rm -rf conftest*
a1832 1
#include "confdefs.h"
d1841 1
a1841 1
eval "$CPP conftest.c > conftest.out 2>&1"
a1842 1
  rm -rf conftest*
a1844 1
#include "confdefs.h"
a1859 1
  rm -rf conftest*
d1862 1
a1862 2
echo "	defining" CRAY_STACKSEG_END to be _getb67
echo "#define" CRAY_STACKSEG_END _getb67 >> confdefs.h
a1869 1

a1870 1
  rm -rf conftest*
a1872 1
#include "confdefs.h"
a1887 1
  rm -rf conftest*
d1890 1
a1890 2
echo "	defining" CRAY_STACKSEG_END to be GETB67
echo "#define" CRAY_STACKSEG_END GETB67 >> confdefs.h
a1897 1

a1898 1
  rm -rf conftest*
a1900 1
#include "confdefs.h"
a1915 1
  rm -rf conftest*
d1918 1
a1918 2
echo "	defining" CRAY_STACKSEG_END to be getb67
echo "#define" CRAY_STACKSEG_END getb67 >> confdefs.h
a1925 1

a1934 1

a1947 12
  
{
test -n "$verbose" && \
echo "	defining C_ALLOCA"
echo "#define" C_ALLOCA 1 >> confdefs.h
DEFS="$DEFS -DC_ALLOCA=1"
SEDDEFS="${SEDDEFS}\${SEDdA}C_ALLOCA\${SEDdB}C_ALLOCA\${SEDdC}1\${SEDdD}
\${SEDuA}C_ALLOCA\${SEDuB}C_ALLOCA\${SEDuC}1\${SEDuD}
\${SEDeA}C_ALLOCA\${SEDeB}C_ALLOCA\${SEDeC}1\${SEDeD}
"
}

a1952 1
#include "confdefs.h"
d1961 1
a1961 1
rm -fr conftest*
d1968 1
a1968 2
echo "	defining" STACK_DIRECTION to be 0
echo "#define" STACK_DIRECTION 0 >> confdefs.h
a1977 1
#include "confdefs.h"
d2000 1
a2000 2
echo "	defining" STACK_DIRECTION to be 1
echo "#define" STACK_DIRECTION 1 >> confdefs.h
a2007 1

d2012 1
a2012 2
echo "	defining" STACK_DIRECTION to be -1
echo "#define" STACK_DIRECTION -1 >> confdefs.h
d2022 1
a2022 1
rm -fr conftest*
a2031 1
#include "confdefs.h"
a2036 1
  rm -rf conftest*
a2037 1

a2045 1
echo "#define" HAVE_LIBM 1 >> confdefs.h
a2060 1
#include "confdefs.h"
a2075 1
  rm -rf conftest*
a2078 1
echo "#define" ${trfunc} 1 >> confdefs.h
a2085 1

a2093 1
#include "confdefs.h"
a2110 1
  rm -rf conftest*
a2117 1
#include "confdefs.h"
d2120 1
a2120 1
err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
a2123 1
  rm -rf conftest*
a2131 1
#include "confdefs.h"
d2134 1
a2134 1
err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
a2137 1
  rm -rf conftest*
a2147 1
echo "#define" HAVE_INET_SOCKETS 1 >> confdefs.h
a2171 1
echo "#define" HAVE_AIX_SMT_EXP 1 >> confdefs.h
d2212 1
a2212 2
echo "	defining" config_machfile to be "\"${machfile}\""
echo "#define" config_machfile "\"${machfile}\"" >> confdefs.h
d2223 1
a2223 2
echo "	defining" config_opsysfile to be "\"${opsysfile}\""
echo "#define" config_opsysfile "\"${opsysfile}\"" >> confdefs.h
d2234 1
a2234 2
echo "	defining" LD_SWITCH_X_SITE to be ${LD_SWITCH_X_SITE}
echo "#define" LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} >> confdefs.h
d2245 1
a2245 2
echo "	defining" C_SWITCH_X_SITE to be ${C_SWITCH_X_SITE}
echo "#define" C_SWITCH_X_SITE ${C_SWITCH_X_SITE} >> confdefs.h
d2256 1
a2256 2
echo "	defining" UNEXEC_SRC to be ${UNEXEC_SRC}
echo "#define" UNEXEC_SRC ${UNEXEC_SRC} >> confdefs.h
a2270 1
echo "#define" HAVE_X_WINDOWS 1 >> confdefs.h
a2283 1
echo "#define" HAVE_X11 1 >> confdefs.h
a2296 1
echo "#define" HAVE_XFREE386 1 >> confdefs.h
a2309 1
echo "#define" HAVE_X_MENU 1 >> confdefs.h
a2322 1
echo "#define" GNU_MALLOC 1 >> confdefs.h
a2335 1
echo "#define" REL_ALLOC 1 >> confdefs.h
a2348 1
echo "#define" LISP_FLOAT_TYPE 1 >> confdefs.h
d2368 1
a2368 1
   locallisppath='${srcdir}/site-lisp'
a2428 1
# Set default prefixes.
a2436 1
# Quote sed substitution magic chars in DEFS.
a2442 1
# Substitute for predefined variables.
d2460 2
a2461 2
    echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
    exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
a2500 1
extrasub='$extrasub'
d2506 4
a2509 2
CONFIG_FILES=${CONFIG_FILES-"Makefile lib-src/Makefile oldXMenu/Makefile src/Makefile.in"}
for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
d2515 1
a2515 1
    test ! -d "$dir" && mkdir "$dir"
d2517 3
a2519 7
  echo creating "$file"
  rm -f "$file"
  comment_str="Generated automatically from `echo $file|sed 's|.*/||'`.in by configure."
  case "$file" in
    *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$file" ;;
    * )          echo "# $comment_str"     > "$file" ;;
  esac
a2521 1
$extrasub
d2555 2
a2556 5

CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"}
for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
echo creating $file

a2561 2
# Hopefully no one uses "!" as a variable value.
# Other candidates for the sed separators, like , and @@, do get used.
d2564 2
a2565 2
SEDdA='s!^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
SEDdB='\([ 	][ 	]*\)[^ 	]*!\1#\2'
d2567 1
a2567 1
SEDdD='!g'
d2569 2
a2570 2
SEDuA='s!^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDuB='\([ 	]\)!\1#\2define\3'
d2572 1
a2572 1
SEDuD='\4!g'
d2574 2
a2575 2
SEDeA='s!^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDeB='$!\1#\2define\3'
d2577 1
a2577 1
SEDeD='!g'
d2586 3
a2591 3
# Maximum number of lines to put in a single here document.
maxshlines=9

a2593 1
  # wc gives bogus results for an empty file on some systems.
d2620 1
a2620 1
cp $top_srcdir/$file.in conftest.h1
d2634 1
a2634 1
echo "/* $file.  Generated automatically by configure.  */" > conftest.h
d2637 1
a2637 1
if cmp -s $file conftest.h 2>/dev/null; then
a2638 1
  echo "$file is unchanged"
d2641 2
a2642 2
  rm -f $file
  mv conftest.h $file
a2643 2
fi; done

d2649 1
a2649 1
${CONFIG_SHELL-/bin/sh} config.status
a2666 1
  rm -f junk.c;
@


1.1.1.15
log
@import emacs-19.23
@
text
@d1 2957
@


1.1.1.16
log
@import emacs-19.26
@
text
@a0 3527
#!/bin/sh
#### Configuration script for GNU Emacs
#### Copyright (C) 1992, 1994 Free Software Foundation, Inc.
#### This script requires autoconf version 1.9 or later.

### Don't edit this script!
### This script was automatically generated by the `autoconf' program
### from the file `./configure.in'.
### To rebuild it, execute the command
###	autoconf
### in the this directory.

### This file is part of GNU Emacs.

### GNU Emacs is free software; you can redistribute it and/or modify
### it under the terms of the GNU General Public License as published by
### the Free Software Foundation; either version 2, or (at your option)
### any later version.

### GNU Emacs is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
### GNU General Public License for more details.

### You should have received a copy of the GNU General Public License
### along with GNU Emacs; see the file COPYING.  If not, write to
### the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

### Since Emacs has configuration requirements that autoconf can't
### meet, this file is an unholy marriage of custom-baked
### configuration code and autoconf macros.
###
### We use the m4 quoting characters [ ] (as established by the
### autoconf system) to include large sections of raw sewage - Oops, I
### mean, shell code - in the final configuration script.
###
### Usage: configure config_name
###
### If configure succeeds, it leaves its status in config.status.
### If configure fails after disturbing the status quo,
### 	config.status is removed.

### Remove any more than one leading "." element from the path name.
### If we don't remove them, then another "./" will be prepended to
### the file name each time we use config.status, and the program name
### will get larger and larger.  This wouldn't be a problem, except
### that since progname gets recorded in all the Makefiles this script
### produces, move-if-change thinks they're different when they're
### not.
###
### It would be nice if we could put the ./ in a \( \) group and then
### apply the * operator to that, so we remove as many leading ./././'s
### as are present, but some seds (like Ultrix's sed) don't allow you to
### apply * to a \( \) group.  Bleah.
progname="`echo $0 | sed 's:^\./\./:\./:'`"


### Establish some default values.
run_in_place=
single_tree=
prefix='/usr/local'
exec_prefix='${prefix}'
bindir='${exec_prefix}/bin'
datadir='${prefix}/lib'
statedir='${prefix}/lib'
libdir='${exec_prefix}/lib'
mandir='${prefix}/man/man1'
infodir='${prefix}/info'
lispdir='${datadir}/emacs/${version}/lisp'
locallisppath='${datadir}/emacs/site-lisp'
lisppath='${locallisppath}:${lispdir}'
etcdir='${datadir}/emacs/${version}/etc'
lockdir='${statedir}/emacs/lock'
archlibdir='${libdir}/emacs/${version}/${configuration}'
docdir='${datadir}/emacs/${version}/etc'

# On Sun systems, people sometimes set up the variable CPP
# with a value that is a directory, not an executable at all.
# Detect that case, and ignore that value.
if [ "x$CPP" != x ] && [ -d "$CPP" ];
then
  CPP=
fi

# We cannot use this variable in the case statement below, because many
# /bin/sh's have broken semantics for "case".  Unfortunately, you must
# actually edit the clause itself.
# path_options="prefix | exec_prefix | bindir | libdir | etcdir | datadir"
# path_options="$path_options | archlibdir | statedir | mandir | infodir"
# path_options="$path_options | lispdir | lockdir | lisppath | locallisppath"

#### Usage messages.

short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]

Set compilation and installation parameters for GNU Emacs, and report.
CONFIGURATION specifies the machine and operating system to build for.
--with-x		Support the X Window System.
--with-x=no		Don't support X.
--with-x-toolkit	Use an X toolkit.
--with-x-toolkit=no	Don't use an X toolkit.
--with-gcc		Use GCC to compile Emacs.
--with-gcc=no		Don't use GCC to compile Emacs.
--x-includes=DIR 	Search for X header files in DIR.
--x-libraries=DIR	Search for X libraries in DIR.
--run-in-place		Use libraries and data files directly out of the 
			source tree.
--single-tree=DIR	Has the effect of creating a directory tree at DIR
			which looks like:
			  .../DIR/bin/CONFIGNAME (emacs, etags, etc.)
			  .../DIR/bin/CONFIGNAME/etc (movemail, etc.)
			  .../DIR/common/lisp  (emacs' lisp files)
			  .../DIR/common/site-lisp (local lisp files)
			  .../DIR/common/lib (DOC, TUTORIAL, etc.)
			  .../DIR/common/lock (lockfiles)
--srcdir=DIR		Look for the Emacs source files in DIR.
--prefix=DIR		Install files below DIR. Defaults to \`${prefix}'.

You may also specify any of the \`path' variables found in Makefile.in,
including --bindir, --libdir, --etcdir, --infodir, and so on.  This allows
you to override a single default location when configuring.

If successful, ${progname} leaves its status in config.status.  If
unsuccessful after disturbing the status quo, it removes config.status."


#### Option processing.

### Record all the arguments, so we can save them in config.status.
arguments="$@@"

### Shell Magic: Quote the quoted arguments in ARGUMENTS.  At a later date,
### in order to get the arguments back in $@@, we have to do an
###  `eval set x "$quoted_arguments"; shift'.
quoted_arguments=
for i in "$@@"; do
   quoted_arguments="$quoted_arguments '$i'"
done

### Don't use shift -- that destroys the argument list, which autoconf needs
### to produce config.status.  It turns out that "set - ${arguments}" doesn't
### work portably.
### However, it also turns out that many shells cannot expand ${10} at all.
### So using an index variable doesn't work either.  It is possible to use
### some shell magic to make 'set x "$arguments"; shift' work portably.
while [ $# != 0 ]; do
  arg="$1"; shift
  case "${arg}" in

    ## Anything starting with a hyphen we assume is an option.
    -* )
      ## Separate the switch name from the value it's being given.
      case "${arg}" in
        -*=*)
	  opt=`echo ${arg} | sed 's:^-*\([^=]*\)=.*$:\1:'`
	  val=`echo ${arg} | sed 's:^-*[^=]*=\(.*\)$:\1:'`
	  valomitted=no
	;;
        -*)
          ## If FOO is a boolean argument, --FOO is equivalent to
          ## --FOO=yes.  Otherwise, the value comes from the next
          ## argument - see below.
	  opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:'`
          val="yes"
          valomitted=yes
        ;;
      esac

      ## Change `-' in the option name to `_'.
      optname="${opt}"
      opt="`echo ${opt} | tr - _`"

      ## Process the option.
      case "${opt}" in

        ## Has the user specified which window systems they want to support?
        "with_x" | "with_x11" | "with_x10" )
	  ## Make sure the value given was either "yes" or "no".
	  case "${val}" in
	    y | ye | yes )	val=yes ;;
	    n | no )		val=no  ;;
	    * )
	      (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
Set it to either \`yes' or \`no'."
	       echo "${short_usage}") >&2
	      exit 1
	    ;;
	  esac
          eval "${opt}=\"${val}\""
        ;;

        ## Has the user specified which toolkit they want to support?
        "with_x_toolkit" )
	  case "${val}" in
	    y | ye | yes )	val=athena ;;
	    n | no )		val=no  ;;
	    l | lu | luc | luci | lucid )	val=lucid ;;
	    a | at | ath | athe | athena )	val=athena ;;
# These don't currently work.
#	    m | mo | mot | moti | motif )	val=motif ;;
#	    o | op | ope | open | open- | open-l | open-lo \
#		| open-loo | open-look )	val=open-look ;;
	    * )
	      (
#echo "${progname}: the \`--${optname}' option is supposed to have a value
#which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'."
echo "${progname}: the \`--${optname}' option is supposed to have a value
which is \`yes', \`no', \`lucid', or \`athena'.
Currently, \`yes', \`athena' and \`lucid' are synonyms."
	       echo "${short_usage}") >&2
	      exit 1
	    ;;
	  esac
          eval "${opt}=\"${val}\""
        ;;

	## Has the user specified whether or not they want GCC?
	"with_gcc" | "with_gnu_cc" )
	  ## Make sure the value given was either "yes" or "no".
	  case "${val}" in
	    y | ye | yes )	val=yes ;;
	    n | no )		val=no  ;;
	    * )
	      (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
Set it to either \`yes' or \`no'."
	       echo "${short_usage}") >&2
	      exit 1
	    ;;
	  esac
          eval "${opt}=\"${val}\""
        ;;

        ## Has the user specified a source directory?
	"srcdir" )
	  ## If the value was omitted, get it from the next argument.
	  if [ "${valomitted}" = "yes" ]; then
	    ## Get the next argument from the argument list, if there is one.
            if [ $# = 0 ]; then
	      (echo "${progname}: You must give a value for the \`--${optname}' option, as in
    \`--${optname}=FOO'."
	       echo "${short_usage}") >&2
	      exit 1
	    fi
	    val="$1"; shift
	  fi
          srcdir="${val}"
	;;

	## Has the user tried to tell us where the X files are?
	## I think these are dopey, but no less than three alpha
	## testers, at large sites, have said they have their X files
	## installed in odd places.
	"x_includes" )
	  ## If the value was omitted, get it from the next argument.
	  if [ "${valomitted}" = "yes" ]; then
	    ## Get the next argument from the argument list, if there is one.
            if [ $# = 0 ]; then
	      (echo "${progname}: You must give a value for the \`--${optname}' option, as in
    \`--${optname}=/usr/local/X11/include'."
	       echo "${short_usage}") >&2
	      exit 1
	    fi
            val="$1"; shift
	  fi
	  x_includes="${val}"
        ;;
	"x_libraries" )
	  ## If the value was omitted, get it from the next argument.
	  if [ "${valomitted}" = "yes" ]; then
	    ## Get the next argument from the argument list, if there is one.
            if [ $# = 0 ]; then
	      (echo "${progname}: You must give a value for the \`--${optname}' option, as in
    \`--${optname}=/usr/local/X11/lib'."
	       echo "${short_usage}") >&2
	      exit 1
	    fi
            val="$1"; shift
	  fi
	  x_libraries="${val}"
        ;;

	## Should this use the "development" file organization?
	"run_in_place" )
	  single_tree=
	  run_in_place=1
	;;

        ## Should this use the "single tree" file organization?
	"single_tree" )
	   run_in_place=
	   single_tree=1
	;;

	## Has the user specified one of the path options?
	prefix | exec_prefix | bindir | libdir | etcdir | datadir | \
	archlibdir | statedir | mandir | infodir | lispdir | lockdir | \
	lisppath | locallisppath | docdir )
	   ## If the value was omitted, get it from the next argument.
	   if [ "${valomitted}" = "yes" ]; then
	      if [ $# = 0 ]; then
		 (echo \
"$progname: You must give a value for the \`--${optname}' option,";
		  echo \
"as in \`--${optname}=`eval echo '$'$optname`.'"
		  echo "$short_usage") >&2
		 exit 1
	      fi
	      val="$1"; shift
	   fi
	   eval "${opt}=\"${val}\""
	   eval "${opt}_specified=1"
	;;

	## Verbose flag, tested by autoconf macros.
	"verbose" )
	  verbose=yes
	;;

	## Has the user asked for some help?
	"usage" | "help" )
	  if [ "x$PAGER" = x ]
	  then
	    echo "${short_usage}" | more
	  else
	    echo "${short_usage}" | $PAGER
	  fi
	  exit
	;;

        ## We ignore all other options silently.
      esac
    ;;

    ## Anything not starting with a hyphen we assume is a
    ## configuration name.
    *)
      configuration=${arg}
    ;;

  esac
done

### Get the arguments back.  See the diatribe on Shell Magic above.
eval set x "$quoted_arguments"; shift

if [ "${configuration}" = "" ]; then
  echo '- You did not tell me what kind of host system you want to configure.
- I will attempt to guess the kind of system this is.' 1>&2
  guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
  if configuration=`${guesssys}` ; then
    echo "- Looks like this is a ${configuration}" 1>&2
  else
    echo '- Failed to guess the system type.  You need to tell me.' 1>&2
    echo "${short_usage}" >&2
    exit 1
  fi
fi

#### Decide where the source is.
case "${srcdir}" in

  ## If it's not specified, see if  `.' or `..' might work.
  "" )
    confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
    if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
      srcdir="${confdir}"
    else
      if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
        srcdir='.'
      else
        if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
	  srcdir='..'
        else
	  (echo "\
${progname}: Neither the current directory nor its parent seem to
contain the Emacs sources.  If you do not want to build Emacs in its
source tree, you should run \`${progname}' in the directory in which
you wish to build Emacs, using its \`--srcdir' option to say where the
sources may be found."
	    echo "${short_usage}") >&2
	  exit 1
        fi
      fi
    fi
  ;;

  ## Otherwise, check if the directory they specified is okay.
  * )
    if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
      (echo "\
${progname}: The directory specified with the \`--srcdir' option,
\`${srcdir}', doesn't seem to contain the Emacs sources.  You should
either run the \`${progname}' script at the top of the Emacs source
tree, or use the \`--srcdir' option to specify where the Emacs sources
are."
       echo "${short_usage}") >&2
      exit 1
    fi
  ;;
esac

#### Make srcdir absolute, if it isn't already.  It's important to
#### avoid running the path through pwd unnecessary, since pwd can
#### give you automounter prefixes, which can go away.
case "${srcdir}" in
  /* ) ;;
  . )
    ## We may be able to use the $PWD environment variable to make this
    ## absolute.  But sometimes PWD is inaccurate.
    if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
      srcdir="$PWD"
    else
      srcdir="`(cd ${srcdir}; pwd)`"
    fi
  ;;
  *  ) srcdir="`(cd ${srcdir}; pwd)`" ;;
esac

#### Check if the source directory already has a configured system in it.
if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
   && [ -f "${srcdir}/src/config.h" ] ; then
  (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
   echo "   as a build directory right now; it has been configured in its own"
   echo "   right.  To configure in another directory as well, you MUST"
   echo "   use GNU make.  If you do not have GNU make, then you must"
   echo "   now do \`make distclean' in ${srcdir},"
   echo "   and then run ${progname} again.") >&2
  extrasub='/^VPATH[	 ]*=/c\
vpath %.c $(srcdir)\
vpath %.h $(srcdir)\
vpath %.y $(srcdir)\
vpath %.l $(srcdir)\
vpath %.s $(srcdir)\
vpath %.in $(srcdir)'
fi

### Make the necessary directories, if they don't exist.
for dir in ./src ./lib-src ./cpp ./oldXMenu ./lwlib ./etc ; do
  if [ ! -d ${dir} ]; then
    mkdir ${dir}
  fi
done

#### Given the configuration name, set machfile and opsysfile to the
#### names of the m/*.h and s/*.h files we should use.

### Canonicalize the configuration name.
echo "Checking the configuration name"
if canonical=`${srcdir}/config.sub "${configuration}"` ; then : ; else
  exit $?
fi

### If you add support for a new configuration, add code to this
### switch statement to recognize your configuration name and select
### the appropriate operating system and machine description files.

### You would hope that you could choose an m/*.h file pretty much
### based on the machine portion of the configuration name, and an s-
### file based on the operating system portion.  However, it turns out
### that each m/*.h file is pretty manufacturer-specific - for
### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
### machines.  So we basically have to have a special case for each
### configuration name.
###
### As far as handling version numbers on operating systems is
### concerned, make sure things will fail in a fixable way.  If
### /etc/MACHINES doesn't say anything about version numbers, be
### prepared to handle anything reasonably.  If version numbers
### matter, be sure /etc/MACHINES says something about it.
###
### Eric Raymond says we should accept strings like "sysvr4" to mean
### "System V Release 4"; he writes, "The old convention encouraged
### confusion between `system' and `release' levels'."

machine='' opsys='' unported='false'
case "${canonical}" in

  ## NetBSD ports
  *-*-netbsd* )
    opsys=netbsd
    case "${canonical}" in
      i[345]86-*-netbsd*) machine=intel386 ;;
      m68k-*-netbsd*)
			# This is somewhat bogus.
			machine=hp9000s300 ;;
      mips-*-netbsd*)	machine=pmax ;;
      ns32k-*-netbsd*)	machine=ns32000 ;;
      sparc-*-netbsd*)	machine=sparc ;;
    esac
  ;;

  ## Alliant machines
  ## Strictly speaking, we need the version of the alliant operating
  ## system to choose the right machine file, but currently the
  ## configuration name doesn't tell us enough to choose the right
  ## one; we need to give alliants their own operating system name to
  ## do this right.  When someone cares, they can help us.
  fx80-alliant-* )
    machine=alliant4 opsys=bsd4-2
  ;;
  i860-alliant-* )
    machine=alliant-2800 opsys=bsd4-3
  ;;

  ## Altos 3068
  m68*-altos-sysv* )
    machine=altos opsys=usg5-2
  ;;
    
  ## Amdahl UTS
  580-amdahl-sysv* )
    machine=amdahl opsys=usg5-2-2
  ;;

  ## Appallings - I mean, Apollos - running Domain
  m68*-apollo* )
    machine=apollo opsys=bsd4-2
  ;;

  ## AT&T 3b2, 3b5, 3b15, 3b20
  we32k-att-sysv* )
    machine=att3b opsys=usg5-2-2
  ;;

  ## AT&T 3b1 - The Mighty Unix PC!
  m68*-att-sysv* )
    machine=7300 opsys=usg5-2-2
  ;;

  ## Bull dpx20
  rs6000-bull-bosx* )
    machine=ibmrs6000 opsys=aix3-2
  ;;

  ## Bull dpx2
  m68*-bull-sysv3* )
    machine=dpx2 opsys=usg5-3
  ;;

  ## Bull sps7
  m68*-bull-sysv2* )
    machine=sps7 opsys=usg5-2
  ;;

  ## CCI 5/32, 6/32 -- see "Tahoe".

  ## Celerity
  ## I don't know what configuration name to use for this; config.sub
  ## doesn't seem to know anything about it.  Hey, Celerity users, get
  ## in touch with us!
  celerity-celerity-bsd* )
    machine=celerity opsys=bsd4-2
  ;;

  ## Clipper
  ## What operating systems does this chip run that Emacs has been
  ## tested on?
  clipper-* )
    machine=clipper
    ## We'll use the catch-all code at the bottom to guess the
    ## operating system.
  ;;

  ## Convex
  *-convex-bsd* | *-convex-convexos* )
    machine=convex opsys=bsd4-3
    ## Prevents suprious white space in makefiles - d.m.cooke@@larc.nasa.gov
    NON_GNU_CPP="cc -E -P"
  ;;

  ## Cubix QBx/386
  i[345]86-cubix-sysv* )
    machine=intel386 opsys=usg5-3
  ;;

  ## Cydra 5
  cydra*-cydrome-sysv* )
    machine=cydra5 opsys=usg5-3
  ;;

  ## Data General AViiON Machines
  m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
    machine=aviion opsys=dgux5-4r3
  ;;
  m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
    machine=aviion opsys=dgux5-4r2
  ;;
  m88k-dg-dgux* )
    machine=aviion opsys=dgux
  ;;

  ## DECstations
  mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
    machine=pmax opsys=bsd4-2
  ;;
  mips-dec-ultrix* | mips-dec-bsd* )
    machine=pmax opsys=bsd4-3
  ;;
  mips-dec-osf* )
    machine=pmax opsys=osf1
  ;;

  ## Motorola Delta machines
  m68k-motorola-sysv* | m68000-motorola-sysv* )
    machine=delta opsys=usg5-3
    if [ -z "`type gnucc | grep 'not found'`" ]
    then CC=gnucc
    else
      if [ -z "`type gcc | grep 'not found'`" ]
      then CC=gcc
      else CC=cc
      fi
    fi
  ;;
  m88k-motorola-sysv4* )
    machine=delta88k opsys=usg5-4
  ;;
  m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
    machine=delta88k opsys=usg5-3
  ;;

  ## Dual machines
  m68*-dual-sysv* )
    machine=dual opsys=usg5-2
  ;;
  m68*-dual-uniplus* )
    machine=dual opsys=unipl5-2
  ;;

  ## Elxsi 6400
  elxsi-elxsi-sysv* )
    machine=elxsi opsys=usg5-2
  ;;

  ## Encore machines
  ns16k-encore-bsd* )
    machine=ns16000 opsys=umax
  ;;

  ## The GEC 93 - apparently, this port isn't really finished yet.

  ## Gould Power Node and NP1
  pn-gould-bsd4.2* )
    machine=gould opsys=bsd4-2
  ;;
  pn-gould-bsd4.3* )
    machine=gould opsys=bsd4-3
  ;;
  np1-gould-bsd* )
    machine=gould-np1 opsys=bsd4-3
  ;;

  ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
  ## as far as Emacs is concerned).
  m88k-harris-cxux* )
    # Build needs to be different on 7.0 and later releases
    case "`uname -r`" in
       [56].[0-9] ) machine=nh4000 opsys=cxux ;;
       [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
    esac
  ;;
  ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
  m68k-harris-cxux* )
    machine=nh3000 opsys=cxux
  ;;

  ## Honeywell XPS100
  xps*-honeywell-sysv* )
    machine=xps100 opsys=usg5-2
  ;;

  ## HP 9000 series 200 or 300
  m68*-hp-bsd* )
    machine=hp9000s300 opsys=bsd4-3
  ;;
  ## HP/UX 7, 8 and 9 are supported on these machines.
  m68*-hp-hpux* )
    case "`uname -r`" in
      ## Someone's system reports A.B8.05 for this.
      ## I wonder what other possibilities there are.
      *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
      *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
      *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
      *) machine=hp9000s300 opsys=hpux ;;
    esac
  ;;

  ## HP 9000 series 700 and 800, running HP/UX
  hppa*-hp-hpux7* )
    machine=hp800 opsys=hpux
  ;;
  hppa*-hp-hpux8* )
    machine=hp800 opsys=hpux8
  ;;
  hppa*-hp-hpux9shr* )
    machine=hp800 opsys=hpux9shr
  ;;
  hppa*-hp-hpux9* )
    machine=hp800 opsys=hpux9
  ;;

  ## HP 9000 series 700 and 800, running HP/UX
  hppa*-hp-hpux* )
    ## Cross-compilation?  Nah!
    case "`uname -r`" in
      ## Someone's system reports A.B8.05 for this.
      ## I wonder what other possibilities there are.
      *.B8.* ) machine=hp800 opsys=hpux8 ;;
      *.08.* ) machine=hp800 opsys=hpux8 ;;
      *.09.* ) machine=hp800 opsys=hpux9 ;;
      *) machine=hp800 opsys=hpux ;;
    esac
  ;;

  ## Orion machines
  orion-orion-bsd* )
    machine=orion opsys=bsd4-2
  ;;
  clipper-orion-bsd* )
    machine=orion105 opsys=bsd4-2
  ;;

  ## IBM machines
  i[345]86-ibm-aix1.1* )
    machine=ibmps2-aix opsys=usg5-2-2
  ;;
  i[345]86-ibm-aix1.[23]* | i[345]86-ibm-aix* )
    machine=ibmps2-aix opsys=usg5-3
  ;;
  i370-ibm-aix*)
    machine=ibm370aix opsys=usg5-3
  ;;
  rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1*  )
    machine=ibmrs6000 opsys=aix3-1
  ;;
  rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
    machine=ibmrs6000 opsys=aix3-2-5
  ;;
  rs6000-ibm-aix* | powerpc-ibm-aix* )
    machine=ibmrs6000 opsys=aix3-2
  ;;
  romp-ibm-bsd4.3* )
    machine=ibmrt opsys=bsd4-3
  ;;	
  romp-ibm-bsd4.2* )
    machine=ibmrt opsys=bsd4-2
  ;;
  romp-ibm-aos4.3* )
    machine=ibmrt opsys=bsd4-3
  ;;	
  romp-ibm-aos4.2* )
    machine=ibmrt opsys=bsd4-2
  ;;
  romp-ibm-aos* )
    machine=ibmrt opsys=bsd4-3
  ;;
  romp-ibm-bsd* )
    machine=ibmrt opsys=bsd4-3
  ;;
  romp-ibm-aix* )
    machine=ibmrt-aix opsys=usg5-2-2
  ;;

  ## Integrated Solutions `Optimum V'
  m68*-isi-bsd4.2* )
    machine=isi-ov opsys=bsd4-2
  ;;
  m68*-isi-bsd4.3* )
    machine=isi-ov opsys=bsd4-3
  ;;

  ## Intel 386 machines where we do care about the manufacturer
  i[345]86-intsys-sysv* )
    machine=is386 opsys=usg5-2-2
  ;;

  ## Prime EXL
  i[345]86-prime-sysv* )
    machine=i386 opsys=usg5-3
  ;;

  ## Sequent Symmetry
  i[345]86-sequent-bsd* )
    machine=symmetry opsys=bsd4-3
  ;;

  ## Unspecified sysv on an ncr machine defaults to svr4.2.
  ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
  i[345]86-ncr-sysv* )
    machine=intel386 opsys=usg5-4-2
  ;;

  ## Intel 860
  i860-*-sysv4* )
    machine=i860 opsys=usg5-4
    NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
    NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
  ;;

  ## Masscomp machines
  m68*-masscomp-rtu* )
    machine=masscomp opsys=rtu
  ;;

  ## Megatest machines
  m68*-megatest-bsd* )
    machine=mega68 opsys=bsd4-2
  ;;

  ## Workstations sold by MIPS
  ## This is not necessarily all workstations using the MIPS processor -
  ## Irises are produced by SGI, and DECstations by DEC.

  ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
  ## and usg5-2-2 and bsd4-3 as possible OS files.  The only guidance
  ## it gives for choosing between the alternatives seems to be "Use
  ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
  ## the BSD world."  I'll assume that these are instructions for
  ## handling two odd situations, and that every other situation
  ## should use mips.h and usg5-2-2, they being listed first.
  mips-mips-usg* )
    machine=mips4
    ## Fall through to the general code at the bottom to decide on the OS.
  ;;
  mips-mips-riscos4* )
    machine=mips4 opsys=bsd4-3
    NON_GNU_CC="cc -systype bsd43"
    NON_GNU_CPP="cc -systype bsd43 -E"
  ;;
  mips-mips-bsd* )
    machine=mips opsys=bsd4-3
  ;;
  mips-mips-* )
    machine=mips opsys=usg5-2-2
  ;;

  ## NeXT
  m68*-next-* | i[345]86-next-* )
    machine=next opsys=mach2
  ;;

  ## The complete machine from National Semiconductor
  ns32k-ns-genix* )
    machine=ns32000 opsys=usg5-2
  ;;

  ## NCR machines
  m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
    machine=tower32 opsys=usg5-2-2
  ;;
  m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
    machine=tower32v3 opsys=usg5-3
  ;;

  ## Nixdorf Targon 31
  m68*-nixdorf-sysv* )
    machine=targon31 opsys=usg5-2-2
  ;;

  ## Nu (TI or LMI)
  m68*-nu-sysv* )
    machine=nu opsys=usg5-2
  ;;

  ## Plexus
  m68*-plexus-sysv* )
    machine=plexus opsys=usg5-2
  ;;

  ## Pyramid machines
  ## I don't really have any idea what sort of processor the Pyramid has,
  ## so I'm assuming it is its own architecture.
  pyramid-pyramid-bsd* )
    machine=pyramid opsys=bsd4-2
  ;;

  ## Sequent Balance
  ns32k-sequent-bsd4.2* )
    machine=sequent opsys=bsd4-2
  ;;
  ns32k-sequent-bsd4.3* )
    machine=sequent opsys=bsd4-3
  ;;

  ## Siemens Nixdorf
  mips-siemens-sysv* )
    machine=mips-siemens opsys=usg5-4
    NON_GNU_CC=/usr/ccs/bin/cc
    NON_GNU_CPP=/usr/ccs/lib/cpp
  ;;

  ## Silicon Graphics machines
  ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
  m68*-sgi-iris3.5* )
    machine=irist opsys=iris3-5
  ;;
  m68*-sgi-iris3.6* | m68*-sgi-iris*)
    machine=irist opsys=iris3-6
  ;;
  ## Iris 4D
  mips-sgi-irix3* )
    machine=iris4d opsys=irix3-3
  ;;
  mips-sgi-irix5* )
    machine=iris4d opsys=irix5-0
  ;;
  mips-sgi-irix4* | mips-sgi-irix* )
    machine=iris4d opsys=irix4-0
  ;;

  ## SONY machines
  m68*-sony-bsd4.2* )
    machine=news opsys=bsd4-2
  ;;
  m68*-sony-bsd4.3* )
    machine=news opsys=bsd4-3
  ;;
  m68*-sony-newsos3*)
    machine=news opsys=bsd4-3
  ;;
  mips-sony-bsd* | mips-sony-newsos4* )
    machine=news-risc opsys=bsd4-3
  ;;
  mips-sony-newsos* )
    machine=news-risc opsys=newsos5
  ;;

  ## Stride
  m68*-stride-sysv* )
    machine=stride opsys=usg5-2
  ;;

  ## Suns
  *-sun-sunos* | *-sun-bsd* | *-sun-solaris* | i[345]86-*-solaris2* | i[345]86-*-sunos5* )
    case "${canonical}" in
      m68*-sunos1* )	machine=sun1 ;;
      m68*-sunos2* )	machine=sun2 ;;
      m68* )		machine=sun3 ;;
      i[345]86-sun-sunos[34]* )	machine=sun386 ;;
      i[345]86-*-* )     machine=intel386 ;;
      sparc* )		machine=sparc ;;
      * )		unported=true ;;
    esac
    case "${canonical}" in
      ## The Sun386 didn't get past 4.0.
      i[345]86-*-sunos4	  ) opsys=sunos4-0 ;;
      *-sunos4.0*	  ) opsys=sunos4-0 ;;
      *-sunos4.1.3*	  ) opsys=sunos4-1-3
		NON_GCC_TEST_OPTIONS=-Bstatic
		GCC_TEST_OPTIONS=-static
		;;
      *-sunos4shr*	  ) opsys=sunos4shr ;;
      *-sunos4* | *-sunos ) opsys=sunos4-1
		NON_GCC_TEST_OPTIONS=-Bstatic
		GCC_TEST_OPTIONS=-static
		;;
      *-sunos5.3* | *-solaris2.3* )
		opsys=sol2-3
		NON_GNU_CPP=/usr/ccs/lib/cpp
		;;
      *-sunos5.4* | *-solaris2.4* )
		opsys=sol2-4
		NON_GNU_CPP=/usr/ccs/lib/cpp
		;;
      *-sunos5* | *-solaris* )
		opsys=sol2
		NON_GNU_CPP=/usr/ccs/lib/cpp
		;;
      *			  ) opsys=bsd4-2   ;;
    esac
  ;;

  ## Tadpole 68k
  m68*-tadpole-sysv* )
    machine=tad68k opsys=usg5-3
  ;;

  ## Tahoe machines
  tahoe-tahoe-bsd4.2* )
    machine=tahoe opsys=bsd4-2
  ;;
  tahoe-tahoe-bsd4.3* )
    machine=tahoe opsys=bsd4-3
  ;;

  ## Tandem Integrity S2
  mips-tandem-sysv* )
    machine=tandem-s2 opsys=usg5-3
  ;;

  ## Tektronix XD88
  m88k-tektronix-sysv3* )
  machine=tekxd88 opsys=usg5-3
  ;;

  ## Tektronix 16000 box (6130?)
  ns16k-tektronix-bsd* )
    machine=ns16000 opsys=bsd4-2
  ;;
  ## Tektronix 4300
  ## src/m/tek4300.h hints that this is a m68k machine.
  m68*-tektronix-bsd* )
    machine=tek4300 opsys=bsd4-3
  ;;

  ## Titan P2 or P3
  ## We seem to have lost the machine-description file titan.h!
  titan-titan-sysv* )
    machine=titan opsys=usg5-3
  ;;
  
  ## Ustation E30 (SS5E)
  m68*-unisys-uniplus* )
    machine=ustation opsystem=unipl5-2
  ;;

  ## Vaxen.
  vax-dec-* )
    machine=vax
    case "${canonical}" in
      *-bsd4.1* ) 					opsys=bsd4-1 ;;
      *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* )	opsys=bsd4-2 ;;
      *-bsd4.3* | *-ultrix* ) 				opsys=bsd4-3 ;;
      *-bsd386* | *-bsdi* )				opsys=bsd386 ;;
      *-sysv[01]* | *-sysvr[01]* ) 			opsys=usg5-0 ;;
      *-sysv2* | *-sysvr2* )				opsys=usg5-2 ;;
      *-vms* ) 						opsys=vms ;;
      * ) 						unported=true
    esac
  ;;

  ## Whitechapel MG1
  ns16k-whitechapel-* )
    machine=mg1
    ## We don't know what sort of OS runs on these; we'll let the
    ## operating system guessing code below try.
  ;;

  ## Wicat
  m68*-wicat-sysv* )
    machine=wicat opsys=usg5-2
  ;;

  ## Intel 386 machines where we don't care about the manufacturer
  i[345]86-*-* )
    machine=intel386
    case "${canonical}" in
      *-isc1.* | *-isc2.[01]* )	opsys=386-ix ;;
      *-isc2.2* )		opsys=isc2-2 ;;
      *-isc4.0* )		opsys=isc4-0 ;;
      *-isc* )			opsys=isc3-0 ;;
      *-esix5* )		opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
      *-esix* )			opsys=esix ;;
      *-xenix* )		opsys=xenix ;;
      *-linux* )		opsys=linux ;;
      *-sco3.2v4* )		opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
      *-bsd386* | *-bsdi* )	opsys=bsd386 ;;
      *-386bsd* )	        opsys=386bsd ;;
      *-freebsd* )	        opsys=freebsd ;;
      *-nextstep* )             opsys=mach2 ;;
      ## Otherwise, we'll fall through to the generic opsys code at the bottom.
    esac
  ;;

  * )
    unported=true
  ;;
esac

### If the code above didn't choose an operating system, just choose
### an operating system based on the configuration name.  You really
### only want to use this when you have no idea what the right
### operating system is; if you know what operating systems a machine
### runs, it's cleaner to make it explicit in the case statement
### above.
if [ x"${opsys}" = x ]; then
  case "${canonical}" in
    *-gnu* )				opsys=gnu ;;
    *-bsd4.[01] )			opsys=bsd4-1 ;;
    *-bsd4.2 )				opsys=bsd4-2 ;;
    *-bsd4.3 )				opsys=bsd4-3 ;;
    *-sysv0 | *-sysvr0 )		opsys=usg5-0 ;;
    *-sysv2 | *-sysvr2 )		opsys=usg5-2 ;;
    *-sysv2.2 | *-sysvr2.2 )		opsys=usg5-2-2 ;;
    *-sysv3 | *-sysvr3 )		opsys=usg5-3 ;;
    *-sysv4 | *-sysvr4 )		opsys=usg5-4 ;;
    *-sysv4.1 | *-sysvr4.1 )
	NON_GNU_CPP=/usr/lib/cpp
	opsys=usg5-4 ;;
    *-sysv4.2 | *-sysvr4.2 )		opsys=usg5-4-2 ;;
    * )
      unported=true
    ;;
  esac
fi

if $unported ; then
  (echo "${progname}: Emacs hasn't been ported to \`${canonical}' systems."
   echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
  ) >&2
  exit 1
fi

machfile="m/${machine}.h"
opsysfile="s/${opsys}.h"


trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
trap 'rm -fr confdefs* $ac_clean_files' 0

# Save the original args if we used an alternate arg parser.
ac_configure_temp="${configure_args-$*}"
# Strip out --no-create and --norecursion so they don't pile up.
configure_args=
for ac_arg in $ac_configure_temp; do
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -norecursion | --norecursion | --norecursio | --norecursi \
  | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  *) configure_args="$configure_args $ac_arg" ;;
  esac
done

# NLS nuisances.
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# 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.
ac_unique_file=lisp

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then `..'.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test x$ac_srcdir_defaulted = xyes; then
    echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  else
    echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  fi
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CPP}'
ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'





#### Choose a compiler.
if [ "x$CC" = x ]
then true
else cc_specified=1
fi

case ${with_gcc} in
  "yes" ) CC="gcc" GCC=1 ;;
  "no"  )
    if [ "x$CC" = x ]
    then CC=cc;
    else true;
    fi
    ;;
  * )
     if test -z "$CC"; then
  # Extract the first word of `gcc', so it can be a program name with args.
  set ac_dummy gcc; ac_word=$2
  test -n "$silent" || echo "checking for $ac_word"
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
test -z "$CC" && CC="cc"
test -n "$CC" && test -n "$verbose" && echo "	setting CC to $CC"

# Find out if we are using GNU C, under whatever name.
cat > conftest.c <<EOF
#ifdef __GNUC__
  yes
#endif
EOF
${CC-cc} -E conftest.c > conftest.out 2>&1
if egrep yes conftest.out >/dev/null 2>&1; then
  GCC=1 # For later tests.
fi
rm -f conftest*
 
esac

#### Some systems specify a CPP to use unless we are using GCC.
#### Now that we know whether we are using GCC, we can decide whether
#### to use that one.
if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] || [ "x$CPP" != x ]
then true
else
  CPP="$NON_GNU_CPP"
fi

#### Some systems specify a CC to use unless we are using GCC.
#### Now that we know whether we are using GCC, we can decide whether
#### to use that one.
if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
then true
else
  CC="$NON_GNU_CC"
fi

if [ x$GCC = x1 ] && [ "x$GCC_TEST_OPTIONS" != x ]
then
  CC="$CC $GCC_TEST_OPTIONS"
fi  

if [ x$GCC = x ] && [ "x$NON_GCC_TEST_OPTIONS" != x ]
then
  CC="$CC $NON_GCC_TEST_OPTIONS"
fi  

#### Some other nice autoconf tests.  If you add a test here which
#### should make an entry in src/config.h, don't forget to add an
#### #undef clause to src/config.h.in for autoconf to modify.

test -n "$silent" || echo "checking for ln -s"
rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  LN_S="ln -s"
else
  LN_S=ln
fi


test -n "$silent" || echo "checking how to run the C preprocessor"
if test -z "$CPP"; then
  # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  # make.  It must be expanded now.
  CPP="${CC-cc} -E"
  cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
Syntax Error
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
  :
else
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdio.h>
Syntax Error
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
  :
else
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
test -n "$verbose" && echo "	setting CPP to $CPP"

# Make sure to not get the incompatible SysV /etc/install and
# /usr/sbin/install, which might be in PATH before a BSD-like install,
# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
# or the AFS install, which mishandles nonexistent args, or
# /usr/ucb/install on SVR4, which tries to use the nonexistent group
# `staff', or /sbin/install on IRIX which has incompatible command-line
# syntax.  Sigh.
#
#     On most BSDish systems install is in /usr/bin, not /usr/ucb
#     anyway.
# This turns out not to be true, so the mere pathname isn't an indication
# of whether the program works.  What we really need is a set of tests for
# the install program to see if it actually works in all the required ways.
#
# Avoid using ./install, which might have been erroneously created
# by make from ./install.sh.
if test -z "${INSTALL}"; then
  test -n "$silent" || echo "checking for a BSD compatible install"
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    case "$ac_dir" in
    ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      for ac_prog in installbsd scoinst install; do
        if test -f $ac_dir/$ac_prog; then
	  if test $ac_prog = install &&
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    # OSF/1 installbsd also uses dspmsg, but is usable.
	    :
	  else
	    INSTALL="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS="$ac_save_ifs"
fi

if test -z "$INSTALL"; then
  # As a last resort, use the slow shell script.
  for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
    if test -f $ac_dir/install.sh; then
      INSTALL="$ac_dir/install.sh -c"; break
    fi
  done
fi
if test -z "$INSTALL"; then
  echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
fi
test -n "$verbose" && echo "	setting INSTALL to $INSTALL"

# Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -n "$verbose" && echo "	setting INSTALL_PROGRAM to $INSTALL_PROGRAM"

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
test -n "$verbose" && echo "	setting INSTALL_DATA to $INSTALL_DATA"

for ac_prog in 'bison -y' byacc
do
if test -z "$YACC"; then
  # Extract the first word of `$ac_prog', so it can be a program name with args.
  set ac_dummy $ac_prog; ac_word=$2
  test -n "$silent" || echo "checking for $ac_word"
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      YACC="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi

test -n "$YACC" && test -n "$verbose" && echo "	setting YACC to $YACC"

test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"



for ac_hdr in sys/timeb.h sys/time.h unistd.h
do
ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
test -n "$silent" || echo "checking for ${ac_hdr}"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <${ac_hdr}>
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining ${ac_tr_hdr}"
echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
DEFS="$DEFS -D${ac_tr_hdr}=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
\${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
\${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*
done

test -n "$silent" || echo "checking for ANSI C header files"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
  rm -rf conftest*
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
echo '#include "confdefs.h"
#include <string.h>' > conftest.${ac_ext}
eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
if egrep "memchr" conftest.out >/dev/null 2>&1; then
  rm -rf conftest*
  # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
echo '#include "confdefs.h"
#include <stdlib.h>' > conftest.${ac_ext}
eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
if egrep "free" conftest.out >/dev/null 2>&1; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining STDC_HEADERS"
echo "#define" STDC_HEADERS "1" >> confdefs.h
DEFS="$DEFS -DSTDC_HEADERS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
\${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
\${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*


fi
rm -fr conftest*

fi
rm -f conftest*


fi
rm -f conftest*

test -n "$silent" || echo "checking for whether time.h and sys/time.h may both be included"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() { return 0; }
int t() { struct tm *tp;; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining TIME_WITH_SYS_TIME"
echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h
DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}TIME_WITH_SYS_TIME\${ac_dB}TIME_WITH_SYS_TIME\${ac_dC}1\${ac_dD}
\${ac_uA}TIME_WITH_SYS_TIME\${ac_uB}TIME_WITH_SYS_TIME\${ac_uC}1\${ac_uD}
\${ac_eA}TIME_WITH_SYS_TIME\${ac_eB}TIME_WITH_SYS_TIME\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*

test -n "$silent" || echo "checking for sys_siglist declaration in signal.h or unistd.h"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <signal.h>
/* NetBSD declares sys_siglist in <unistd.h>.  */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main() { return 0; }
int t() { char *msg = *(sys_siglist + 1);; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining SYS_SIGLIST_DECLARED"
echo "#define" SYS_SIGLIST_DECLARED "1" >> confdefs.h
DEFS="$DEFS -DSYS_SIGLIST_DECLARED=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}SYS_SIGLIST_DECLARED\${ac_dB}SYS_SIGLIST_DECLARED\${ac_dC}1\${ac_dD}
\${ac_uA}SYS_SIGLIST_DECLARED\${ac_uB}SYS_SIGLIST_DECLARED\${ac_uC}1\${ac_uD}
\${ac_eA}SYS_SIGLIST_DECLARED\${ac_eB}SYS_SIGLIST_DECLARED\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*


test -n "$silent" || echo "checking for return type of signal handlers"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
extern void (*signal ()) ();
int main() { return 0; }
int t() { int i;; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining" RETSIGTYPE to be "void"
echo "#define" RETSIGTYPE "void" >> confdefs.h
DEFS="$DEFS -DRETSIGTYPE=void"
ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
\${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
\${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
"
}


else
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining" RETSIGTYPE to be "int"
echo "#define" RETSIGTYPE "int" >> confdefs.h
DEFS="$DEFS -DRETSIGTYPE=int"
ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
\${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
\${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
"
}

fi
rm -f conftest*



test -n "$silent" || echo "checking for struct tm in time.h"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
int main() { return 0; }
int t() { struct tm *tp; tp->tm_sec;; return 0; }
EOF
if eval $ac_compile; then
  :
else
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining TM_IN_SYS_TIME"
echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h
DEFS="$DEFS -DTM_IN_SYS_TIME=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}TM_IN_SYS_TIME\${ac_dB}TM_IN_SYS_TIME\${ac_dC}1\${ac_dD}
\${ac_uA}TM_IN_SYS_TIME\${ac_uB}TM_IN_SYS_TIME\${ac_uC}1\${ac_uD}
\${ac_eA}TM_IN_SYS_TIME\${ac_eB}TM_IN_SYS_TIME\${ac_eC}1\${ac_eD}
"
}

fi
rm -f conftest*

ac_decl='#include <sys/types.h>
'
case "$DEFS" in
  *TM_IN_SYS_TIME*) ac_decl="$ac_decl
#include <sys/time.h>
" ;;
  *) ac_decl="$ac_decl
#include <time.h>
" ;;
esac
test -n "$silent" || echo "checking for tm_zone in struct tm"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
$ac_decl
int main() { return 0; }
int t() { struct tm tm; tm.tm_zone;; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining HAVE_TM_ZONE"
echo "#define" HAVE_TM_ZONE "1" >> confdefs.h
DEFS="$DEFS -DHAVE_TM_ZONE=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TM_ZONE\${ac_dB}HAVE_TM_ZONE\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_TM_ZONE\${ac_uB}HAVE_TM_ZONE\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_TM_ZONE\${ac_eB}HAVE_TM_ZONE\${ac_eC}1\${ac_eD}
"
}


else
  rm -rf conftest*
  ac_no_tm_zone=1
fi
rm -f conftest*

if test -n "$ac_no_tm_zone"; then
test -n "$silent" || echo "checking for tzname"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <time.h>
#ifndef tzname /* For SGI.  */
extern char *tzname[]; /* RS6000 and others want it this way.  */
#endif
int main() { return 0; }
int t() { atoi(*tzname);; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining HAVE_TZNAME"
echo "#define" HAVE_TZNAME "1" >> confdefs.h
DEFS="$DEFS -DHAVE_TZNAME=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TZNAME\${ac_dB}HAVE_TZNAME\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_TZNAME\${ac_uB}HAVE_TZNAME\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_TZNAME\${ac_eB}HAVE_TZNAME\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*

fi


ac_prog='/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* AIX XL C 1.02.0.0 rejects this.
   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 */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25,17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}'
test -n "$silent" || echo "checking for lack of working const"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"

int main() { return 0; }
int t() { $ac_prog; return 0; }
EOF
if eval $ac_compile; then
  :
else
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining" const to be empty
echo "#define" const "" >> confdefs.h
DEFS="$DEFS -Dconst="
ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
\${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
\${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
"
}

fi
rm -f conftest*


cat > conftestmake <<'EOF'
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then SET_MAKE=
else SET_MAKE="MAKE=${MAKE-make}"; fi
rm -f conftestmake


test -n "$silent" || echo "checking for long file names"
ac_some_dir_failed=false
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
  test -d $ac_dir || continue
  test -w $ac_dir || continue # It's less confusing to not echo anything here.
  (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  val=`cat $ac_dir/conftest9012345 2>/dev/null`
  test -f $ac_dir/conftest9012345 && test "$val" = 1 || ac_some_dir_failed=true
  rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null
done
$ac_some_dir_failed || 
{
test -n "$verbose" && \
echo "	defining HAVE_LONG_FILE_NAMES"
echo "#define" HAVE_LONG_FILE_NAMES "1" >> confdefs.h
DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_FILE_NAMES\${ac_dB}HAVE_LONG_FILE_NAMES\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_LONG_FILE_NAMES\${ac_uB}HAVE_LONG_FILE_NAMES\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_LONG_FILE_NAMES\${ac_eB}HAVE_LONG_FILE_NAMES\${ac_eC}1\${ac_eD}
"
}





#### Choose a window system.
echo "checking for specified window system"

window_system=''
case "${with_x}" in
  yes )
    window_system=${window_system}x11
  ;;
  no )
    window_system=${window_system}none
  ;;
esac
case "${window_system}" in
  .* )
  ;;
  * )
    case "${with_x11}" in
      yes )
	window_system=x11
      ;;
      no )
	window_system=none
      ;;
    esac
    case "${with_x10}" in
      yes )
	window_system=x10
      ;;
      no )
	window_system=none
      ;;
    esac
  ;;
esac

case "${window_system}" in
  "none" | "x11" | "x10" ) ;;
  "" )
    # --x-includes or --x-libraries implies --with-x11.
    if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
      window_system=x11
    else
      echo "  No window system specified.  Looking for X11."
      # If the user didn't specify a window system and we found X11, use it.
      if [ -r /usr/lib/libX11.a \
	 -o -d /usr/include/X11 \
         -o -d /usr/X386/include \
	 -o -d ${x_includes}/X11 ]; then
        window_system=x11
      fi
    fi
  ;;
  * )
    echo "Don't specify a window system more than once." >&2
    exit 1
  ;;
esac

case "${window_system}" in
  "" | "x11" )
    ### If the user hasn't specified where we should find X, try
    ### letting autoconf figure that out.
    if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then
      
      # If we find X, set shell vars x_includes and x_libraries to the paths.
no_x=true
if test "x$with_x" != xno; then
test -n "$silent" || echo "checking for X include and library files with xmkmf"
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
acfindx:
	@@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    no_x=
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `make acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
    then
      ac_im_usrlibdir=$ac_im_libdir
    fi
    case "$ac_im_incroot" in
	/usr/include) ;;
	*) test -z "$x_includes" && x_includes="$ac_im_incroot" ;;
    esac
    case "$ac_im_usrlibdir" in
	/usr/lib | /lib) ;;
	*) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;;
    esac
  fi
  cd ..
  rm -fr conftestdir
fi

if test -z "$ac_im_usrlibdir"; then
test -n "$silent" || echo "checking for X include and library files directly"
if test ".$x_direct_test_library" = . ; then
   x_direct_test_library='Xt'
fi
if test ".$x_direct_test_include" = . ; then
   x_direct_test_include='X11/Intrinsic.h'
fi
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
  rm -rf conftest*
  no_x=

else
  rm -rf conftest*
  for ac_dir in               \
    /usr/X11R6/include        \
    /usr/X11R5/include        \
    /usr/X11R4/include        \
                              \
    /usr/include/X11R6        \
    /usr/include/X11R5        \
    /usr/include/X11R4        \
                              \
    /usr/local/X11R6/include  \
    /usr/local/X11R5/include  \
    /usr/local/X11R4/include  \
                              \
    /usr/local/include/X11R6  \
    /usr/local/include/X11R5  \
    /usr/local/include/X11R4  \
                              \
    /usr/X11/include          \
    /usr/include/X11          \
    /usr/local/X11/include    \
    /usr/local/include/X11    \
                              \
    /usr/X386/include         \
    /usr/x386/include         \
    /usr/XFree86/include/X11  \
                              \
    /usr/include              \
    /usr/local/include        \
    /usr/unsupported/include  \
    /usr/athena/include       \
    /usr/local/x11r5/include  \
    /usr/lpp/Xamples/include  \
                              \
    /usr/openwin/include      \
    /usr/openwin/share/include \
    ; \
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
      test -z "$x_includes" && x_includes=$ac_dir
      no_x=
      break
    fi
  done
fi
rm -f conftest*

# Check for the libraries.  First see if replacing the `include' by
# `lib' works.
ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -l"$x_direct_test_library""
ac_have_lib=""
test -n "$silent" || echo "checking for -l"$x_direct_test_library""
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"

int main() { return 0; }
int t() { main();; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_have_lib="1"

fi
rm -f conftest*
LIBS="${ac_save_LIBS}"
if test -n "${ac_have_lib}"; then
   :; no_x=
else
   :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /usr/X11/lib          \
    /usr/lib/X11          \
    /usr/local/X11/lib    \
    /usr/local/lib/X11    \
                          \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
                          \
    /usr/lib              \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
                          \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    ; \
do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      test -z "$x_libraries" && x_libraries=$ac_dir
      no_x=
      break 2
    fi
  done
done
fi

fi
test -n "$x_includes" && test -n "$verbose" && echo "	X11 headers are in $x_includes"
test -n "$x_libraries" && test -n "$verbose" && echo "	X11 libraries are in $x_libraries"
fi

      
    fi
    if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
      window_system=x11
    fi
  ;;
esac

[ -z "${window_system}" ] && window_system=none

[ -n "${x_libraries}" ] && LD_SWITCH_X_SITE="-L${x_libraries}"
[ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
[ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"

# Avoid forcing the search of /usr/include before fixed include files.
if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
   C_SWITCH_X_SITE=" "
fi

case "${window_system}" in
  x11 )
    HAVE_X_WINDOWS=yes
    HAVE_X11=yes
    echo "  Using X11."
    case "${with_x_toolkit}" in
      athena | lucid )
	USE_X_TOOLKIT=LUCID
	echo "  Using Xt toolkit."
	;;	
      motif )
	USE_X_TOOLKIT=MOTIF
	echo "  Using Motif toolkit."
	;;	
      open-look )
	USE_X_TOOLKIT=OPEN_LOOK
	echo "  Using Open-Look toolkit."
	;;	
      * )
	USE_X_TOOLKIT=none
	echo "  Using Xlib directly."
      ;;
    esac
  ;;
  x10 )
    HAVE_X_WINDOWS=yes
    HAVE_X11=no
    USE_X_TOOLKIT=none
    echo "  Using X10."
  ;;
  none )
    HAVE_X_WINDOWS=no
    HAVE_X11=no
    USE_X_TOOLKIT=none
    echo "  Using no window system."
  ;;
esac
X_TOOLKIT_TYPE=$USE_X_TOOLKIT

### If we're using X11, we should use the X menu package.
HAVE_X_MENU=no
case ${HAVE_X11} in
  yes )
    HAVE_X_MENU=yes
  ;;
esac

#### Extract some information from the operating system and machine files.

echo "examining the machine- and system-dependent files to find out"
echo " - which libraries the lib-src programs will want, and"
echo " - whether the GNU malloc routines are usable"

### First figure out CFLAGS (which we use for running the compiler here)
### and REAL_CFLAGS (which we use for real compilation).
### The two are the same except on a few systems, where they are made
### different to work around various lossages.  For example,
### GCC 2.5 on Linux needs them to be different because it treats -g
### as implying static linking.

### If the CFLAGS env var is specified, we use that value
### instead of the default.

### It's not important that this name contain the PID; you can't run
### two configures in the same directory and have anything work
### anyway.
tempcname="conftest.c"

echo '
#include "'${srcdir}'/src/'${opsysfile}'"
#include "'${srcdir}'/src/'${machfile}'"
#ifndef LIBS_MACHINE
#define LIBS_MACHINE
#endif
#ifndef LIBS_SYSTEM
#define LIBS_SYSTEM
#endif
#ifndef C_SWITCH_SYSTEM
#define C_SWITCH_SYSTEM
#endif
#ifndef C_SWITCH_MACHINE
#define C_SWITCH_MACHINE
#endif
configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
configure___ c_switch_system=C_SWITCH_SYSTEM
configure___ c_switch_machine=C_SWITCH_MACHINE

#ifndef LIB_X11_LIB
#define LIB_X11_LIB -lX11
#endif

#ifndef LIBX11_MACHINE
#define LIBX11_MACHINE
#endif

#ifndef LIBX11_SYSTEM
#define LIBX11_SYSTEM
#endif
configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM

#ifdef UNEXEC
configure___ unexec=UNEXEC
#else
configure___ unexec=unexec.o
#endif

#ifdef SYSTEM_MALLOC
configure___ system_malloc=yes
#else
configure___ system_malloc=no
#endif

#ifndef C_DEBUG_SWITCH
#define C_DEBUG_SWITCH -g
#endif

#ifndef C_OPTIMIZE_SWITCH
#define C_OPTIMIZE_SWITCH -O
#endif

#ifdef THIS_IS_CONFIGURE

/* Get the CFLAGS for tests in configure.  */
#ifdef __GNUC__
configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${CFLAGS}'
#else
configure___ CFLAGS=C_DEBUG_SWITCH '${CFLAGS}'
#endif

#else /* not THIS_IS_CONFIGURE */

/* Get the CFLAGS for real compilation.  */
#ifdef __GNUC__
configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${CFLAGS}'
#else
configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${CFLAGS}'
#endif

#endif /* not THIS_IS_CONFIGURE */
' > ${tempcname}
# The value of CPP is a quoted variable reference, so we need to do this
# to get its actual value...
CPP=`eval "echo $CPP"`
eval `${CPP} -Isrc ${tempcname} \
       | grep 'configure___' \
       | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
if [ "x$CFLAGS" = x ]; then
  eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
	 | grep 'configure___' \
	 | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
else
  REAL_CFLAGS="$CFLAGS"
fi
rm ${tempcname}

### Compute the unexec source name from the object name.
UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"

# Do the opsystem or machine files prohibit the use of the GNU malloc?
# Assume not, until told otherwise.
GNU_MALLOC=yes
if [ "${system_malloc}" = "yes" ]; then
  GNU_MALLOC=no
  GNU_MALLOC_reason="
  (The GNU allocators don't work with this system configuration.)"
fi

if [ x"${REL_ALLOC}" = x ]; then
  REL_ALLOC=${GNU_MALLOC}
fi

LISP_FLOAT_TYPE=yes


#### Add the libraries to LIBS and check for some functions.


DEFS="$c_switch_system $c_switch_machine $DEFS"
LIBS="$libsrc_libs"

ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -ldnet"
ac_have_lib=""
test -n "$silent" || echo "checking for -ldnet"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"

int main() { return 0; }
int t() { main();; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_have_lib="1"

fi
rm -f conftest*
LIBS="${ac_save_LIBS}"
if test -n "${ac_have_lib}"; then
   
{
test -n "$verbose" && \
echo "	defining HAVE_LIBDNET"
echo "#define" HAVE_LIBDNET "1" >> confdefs.h
DEFS="$DEFS -DHAVE_LIBDNET=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDNET\${ac_dB}HAVE_LIBDNET\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_LIBDNET\${ac_uB}HAVE_LIBDNET\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_LIBDNET\${ac_eB}HAVE_LIBDNET\${ac_eC}1\${ac_eD}
"
}

   LIBS="${LIBS} -ldnet"
fi


ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -lXbsd"
ac_have_lib=""
test -n "$silent" || echo "checking for -lXbsd"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"

int main() { return 0; }
int t() { main();; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_have_lib="1"

fi
rm -f conftest*
LIBS="${ac_save_LIBS}"
if test -n "${ac_have_lib}"; then
   :; LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
else
   :; 
fi


echo checking for XFree86
if test -d /usr/X386/include; then
  HAVE_XFREE386=yes
  test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
fi

# We change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
# for the tests that follow.

if test "${HAVE_X11}" = "yes"; then
  DEFS="$C_SWITCH_X_SITE $DEFS"
  LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS"
  CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
  for ac_func in XrmSetDatabase XScreenResourceString \
XScreenNumberOfScreen XSetWMProtocols
do
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
test -n "$silent" || echo "checking for ${ac_func}"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <ctype.h>
int main() { return 0; }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char ${ac_func}(); ${ac_func}();
#endif
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  {
test -n "$verbose" && \
echo "	defining ${ac_tr_func}"
echo "#define" ${ac_tr_func} "1" >> confdefs.h
DEFS="$DEFS -D${ac_tr_func}=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
\${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
\${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*
done

fi

if test "${USE_X_TOOLKIT}" != "none"; then
  test -n "$silent" || echo "checking for X11 toolkit version"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <X11/Intrinsic.h>
int main() { return 0; }
int t() { 
#if XtSpecificationRelease < 6
fail;
#endif
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining HAVE_X11XTR6"
echo "#define" HAVE_X11XTR6 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_X11XTR6=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X11XTR6\${ac_dB}HAVE_X11XTR6\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_X11XTR6\${ac_uB}HAVE_X11XTR6\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_X11XTR6\${ac_eB}HAVE_X11XTR6\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*

fi

# If netdb.h doesn't declare h_errno, we must declare it by hand.
test -n "$silent" || echo "checking for declaration of h_errno in netdb.h"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <netdb.h>
int main() { return 0; }
int t() { 
int
foo ()
{
  return h_errno;
}
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining HAVE_H_ERRNO"
echo "#define" HAVE_H_ERRNO "1" >> confdefs.h
DEFS="$DEFS -DHAVE_H_ERRNO=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_H_ERRNO\${ac_dB}HAVE_H_ERRNO\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_H_ERRNO\${ac_uB}HAVE_H_ERRNO\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_H_ERRNO\${ac_eB}HAVE_H_ERRNO\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*


# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
test -n "$silent" || echo "checking for working alloca.h"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <alloca.h>
int main() { return 0; }
int t() { char *p = alloca(2 * sizeof(int));; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining HAVE_ALLOCA_H"
echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
DEFS="$DEFS -DHAVE_ALLOCA_H=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*

ac_decl="#ifdef __GNUC__
#define alloca __builtin_alloca
#else
#if HAVE_ALLOCA_H
#include <alloca.h>
#else
#ifdef _AIX
 #pragma alloca
#else
char *alloca ();
#endif
#endif
#endif
"
test -n "$silent" || echo "checking for alloca"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
$ac_decl
int main() { return 0; }
int t() { char *p = (char *) alloca(1);; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining HAVE_ALLOCA"
echo "#define" HAVE_ALLOCA "1" >> confdefs.h
DEFS="$DEFS -DHAVE_ALLOCA=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
"
}


else
  rm -rf conftest*
  ac_alloca_missing=1
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"

#if defined(CRAY) && ! defined(CRAY2)
winnitude
#else
lossage
#endif

EOF
eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  rm -rf conftest*
  test -n "$silent" || echo "checking for _getb67"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <ctype.h>
int main() { return 0; }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__getb67) || defined (__stub____getb67)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char _getb67(); _getb67();
#endif
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  {
test -n "$verbose" && \
echo "	defining" CRAY_STACKSEG_END to be "_getb67"
echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
\${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
\${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
"
}


else
  rm -rf conftest*
  test -n "$silent" || echo "checking for GETB67"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <ctype.h>
int main() { return 0; }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_GETB67) || defined (__stub___GETB67)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char GETB67(); GETB67();
#endif
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  {
test -n "$verbose" && \
echo "	defining" CRAY_STACKSEG_END to be "GETB67"
echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
\${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
\${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
"
}


else
  rm -rf conftest*
  test -n "$silent" || echo "checking for getb67"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <ctype.h>
int main() { return 0; }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getb67) || defined (__stub___getb67)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char getb67(); getb67();
#endif
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  {
test -n "$verbose" && \
echo "	defining" CRAY_STACKSEG_END to be "getb67"
echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
\${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
\${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
"
}


fi
rm -f conftest*

fi
rm -f conftest*

fi
rm -f conftest*


fi
rm -f conftest*


fi
rm -f conftest*

if test -n "$ac_alloca_missing"; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # 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.
  ALLOCA=alloca.o
  
{
test -n "$verbose" && \
echo "	defining C_ALLOCA"
echo "#define" C_ALLOCA "1" >> confdefs.h
DEFS="$DEFS -DC_ALLOCA=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
\${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
\${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
"
}


  test -n "$silent" || echo "checking stack direction for C alloca"
  test -n "$silent" || echo "checking whether cross-compiling"
# If we cannot run a trivial program, we must be cross compiling.
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
main(){exit(0);}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  :
else
  cross_compiling=1
fi
rm -fr conftest*

if test -n "$cross_compiling"
then
  
{
test -n "$verbose" && \
echo "	defining" STACK_DIRECTION to be "0"
echo "#define" STACK_DIRECTION "0" >> confdefs.h
DEFS="$DEFS -DSTACK_DIRECTION=0"
ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
\${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
\${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
"
}

else
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}
main ()
{
  exit (find_stack_direction() < 0);
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  
{
test -n "$verbose" && \
echo "	defining" STACK_DIRECTION to be "1"
echo "#define" STACK_DIRECTION "1" >> confdefs.h
DEFS="$DEFS -DSTACK_DIRECTION=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
\${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
\${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
"
}


else
  
{
test -n "$verbose" && \
echo "	defining" STACK_DIRECTION to be "-1"
echo "#define" STACK_DIRECTION "-1" >> confdefs.h
DEFS="$DEFS -DSTACK_DIRECTION=-1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
\${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
\${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
"
}

fi
fi
rm -fr conftest*
fi


# logb and frexp are found in -lm on most systems.
ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -lm"
ac_have_lib=""
test -n "$silent" || echo "checking for -lm"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"

int main() { return 0; }
int t() { main();; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_have_lib="1"

fi
rm -f conftest*
LIBS="${ac_save_LIBS}"
if test -n "${ac_have_lib}"; then
   
{
test -n "$verbose" && \
echo "	defining HAVE_LIBM"
echo "#define" HAVE_LIBM "1" >> confdefs.h
DEFS="$DEFS -DHAVE_LIBM=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBM\${ac_dB}HAVE_LIBM\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_LIBM\${ac_uB}HAVE_LIBM\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_LIBM\${ac_eB}HAVE_LIBM\${ac_eC}1\${ac_eD}
"
}

   LIBS="${LIBS} -lm"
fi

for ac_func in gettimeofday gethostname dup2 rename closedir mkdir rmdir \
random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \
strerror fpathconf
do
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
test -n "$silent" || echo "checking for ${ac_func}"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <ctype.h>
int main() { return 0; }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char ${ac_func}(); ${ac_func}();
#endif
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  {
test -n "$verbose" && \
echo "	defining ${ac_tr_func}"
echo "#define" ${ac_tr_func} "1" >> confdefs.h
DEFS="$DEFS -D${ac_tr_func}=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
\${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
\${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*
done


ok_so_far=true
test -n "$silent" || echo "checking for socket"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <ctype.h>
int main() { return 0; }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_socket) || defined (__stub___socket)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char socket(); socket();
#endif
; return 0; }
EOF
if eval $ac_compile; then
  :
else
  rm -rf conftest*
  ok_so_far=
fi
rm -f conftest*

if test -n "$ok_so_far"; then
  test -n "$silent" || echo "checking for netinet/in.h"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <netinet/in.h>
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
  :
else
  rm -rf conftest*
  ok_so_far=
fi
rm -f conftest*

fi
if test -n "$ok_so_far"; then
  test -n "$silent" || echo "checking for arpa/inet.h"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <arpa/inet.h>
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
  :
else
  rm -rf conftest*
  ok_so_far=
fi
rm -f conftest*

fi
if test -n "$ok_so_far"; then
  
{
test -n "$verbose" && \
echo "	defining HAVE_INET_SOCKETS"
echo "#define" HAVE_INET_SOCKETS "1" >> confdefs.h
DEFS="$DEFS -DHAVE_INET_SOCKETS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_INET_SOCKETS\${ac_dB}HAVE_INET_SOCKETS\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_INET_SOCKETS\${ac_uB}HAVE_INET_SOCKETS\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_INET_SOCKETS\${ac_eB}HAVE_INET_SOCKETS\${ac_eC}1\${ac_eD}
"
}

fi

# Set up the CFLAGS for real compilation, so we can substitute it.
CFLAGS="$REAL_CFLAGS"


#### Find out which version of Emacs this is.
version=`grep 'defconst[	 ]*emacs-version' ${srcdir}/lisp/version.el \
	 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
if [ x"${version}" = x ]; then
  echo "${progname}: can't find current emacs version in
	\`${srcdir}/lisp/version.el'." >&2
  exit 1
fi

if [ -f /usr/lpp/X11/bin/smt.exp ]; then
  
  
{
test -n "$verbose" && \
echo "	defining HAVE_AIX_SMT_EXP"
echo "#define" HAVE_AIX_SMT_EXP "1" >> confdefs.h
DEFS="$DEFS -DHAVE_AIX_SMT_EXP=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_AIX_SMT_EXP\${ac_dB}HAVE_AIX_SMT_EXP\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_AIX_SMT_EXP\${ac_uB}HAVE_AIX_SMT_EXP\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_AIX_SMT_EXP\${ac_eB}HAVE_AIX_SMT_EXP\${ac_eC}1\${ac_eD}
"
}

  
fi

#### Specify what sort of things we'll be editing into Makefile and config.h.
### Use configuration here uncanonicalized to avoid exceeding size limits.






























{
test -n "$verbose" && \
echo "	defining" EMACS_CONFIGURATION to be ""\"${configuration}\"""
echo "#define" EMACS_CONFIGURATION ""\"${configuration}\""" >> confdefs.h
DEFS="$DEFS -DEMACS_CONFIGURATION="\"${configuration}\"""
ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_CONFIGURATION\${ac_dB}EMACS_CONFIGURATION\${ac_dC}"\"${configuration}\""\${ac_dD}
\${ac_uA}EMACS_CONFIGURATION\${ac_uB}EMACS_CONFIGURATION\${ac_uC}"\"${configuration}\""\${ac_uD}
\${ac_eA}EMACS_CONFIGURATION\${ac_eB}EMACS_CONFIGURATION\${ac_eC}"\"${configuration}\""\${ac_eD}
"
}


{
test -n "$verbose" && \
echo "	defining" config_machfile to be ""\"${machfile}\"""
echo "#define" config_machfile ""\"${machfile}\""" >> confdefs.h
DEFS="$DEFS -Dconfig_machfile="\"${machfile}\"""
ac_sed_defs="${ac_sed_defs}\${ac_dA}config_machfile\${ac_dB}config_machfile\${ac_dC}"\"${machfile}\""\${ac_dD}
\${ac_uA}config_machfile\${ac_uB}config_machfile\${ac_uC}"\"${machfile}\""\${ac_uD}
\${ac_eA}config_machfile\${ac_eB}config_machfile\${ac_eC}"\"${machfile}\""\${ac_eD}
"
}


{
test -n "$verbose" && \
echo "	defining" config_opsysfile to be ""\"${opsysfile}\"""
echo "#define" config_opsysfile ""\"${opsysfile}\""" >> confdefs.h
DEFS="$DEFS -Dconfig_opsysfile="\"${opsysfile}\"""
ac_sed_defs="${ac_sed_defs}\${ac_dA}config_opsysfile\${ac_dB}config_opsysfile\${ac_dC}"\"${opsysfile}\""\${ac_dD}
\${ac_uA}config_opsysfile\${ac_uB}config_opsysfile\${ac_uC}"\"${opsysfile}\""\${ac_uD}
\${ac_eA}config_opsysfile\${ac_eB}config_opsysfile\${ac_eC}"\"${opsysfile}\""\${ac_eD}
"
}


{
test -n "$verbose" && \
echo "	defining" LD_SWITCH_X_SITE to be "${LD_SWITCH_X_SITE}"
echo "#define" LD_SWITCH_X_SITE "${LD_SWITCH_X_SITE}" >> confdefs.h
DEFS="$DEFS -DLD_SWITCH_X_SITE=${LD_SWITCH_X_SITE}"
ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE\${ac_dB}LD_SWITCH_X_SITE\${ac_dC}${LD_SWITCH_X_SITE}\${ac_dD}
\${ac_uA}LD_SWITCH_X_SITE\${ac_uB}LD_SWITCH_X_SITE\${ac_uC}${LD_SWITCH_X_SITE}\${ac_uD}
\${ac_eA}LD_SWITCH_X_SITE\${ac_eB}LD_SWITCH_X_SITE\${ac_eC}${LD_SWITCH_X_SITE}\${ac_eD}
"
}


{
test -n "$verbose" && \
echo "	defining" LD_SWITCH_X_SITE_AUX to be "${LD_SWITCH_X_SITE_AUX}"
echo "#define" LD_SWITCH_X_SITE_AUX "${LD_SWITCH_X_SITE_AUX}" >> confdefs.h
DEFS="$DEFS -DLD_SWITCH_X_SITE_AUX=${LD_SWITCH_X_SITE_AUX}"
ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE_AUX\${ac_dB}LD_SWITCH_X_SITE_AUX\${ac_dC}${LD_SWITCH_X_SITE_AUX}\${ac_dD}
\${ac_uA}LD_SWITCH_X_SITE_AUX\${ac_uB}LD_SWITCH_X_SITE_AUX\${ac_uC}${LD_SWITCH_X_SITE_AUX}\${ac_uD}
\${ac_eA}LD_SWITCH_X_SITE_AUX\${ac_eB}LD_SWITCH_X_SITE_AUX\${ac_eC}${LD_SWITCH_X_SITE_AUX}\${ac_eD}
"
}


{
test -n "$verbose" && \
echo "	defining" C_SWITCH_X_SITE to be "${C_SWITCH_X_SITE}"
echo "#define" C_SWITCH_X_SITE "${C_SWITCH_X_SITE}" >> confdefs.h
DEFS="$DEFS -DC_SWITCH_X_SITE=${C_SWITCH_X_SITE}"
ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_X_SITE\${ac_dB}C_SWITCH_X_SITE\${ac_dC}${C_SWITCH_X_SITE}\${ac_dD}
\${ac_uA}C_SWITCH_X_SITE\${ac_uB}C_SWITCH_X_SITE\${ac_uC}${C_SWITCH_X_SITE}\${ac_uD}
\${ac_eA}C_SWITCH_X_SITE\${ac_eB}C_SWITCH_X_SITE\${ac_eC}${C_SWITCH_X_SITE}\${ac_eD}
"
}


{
test -n "$verbose" && \
echo "	defining" UNEXEC_SRC to be "${UNEXEC_SRC}"
echo "#define" UNEXEC_SRC "${UNEXEC_SRC}" >> confdefs.h
DEFS="$DEFS -DUNEXEC_SRC=${UNEXEC_SRC}"
ac_sed_defs="${ac_sed_defs}\${ac_dA}UNEXEC_SRC\${ac_dB}UNEXEC_SRC\${ac_dC}${UNEXEC_SRC}\${ac_dD}
\${ac_uA}UNEXEC_SRC\${ac_uB}UNEXEC_SRC\${ac_uC}${UNEXEC_SRC}\${ac_uD}
\${ac_eA}UNEXEC_SRC\${ac_eB}UNEXEC_SRC\${ac_eC}${UNEXEC_SRC}\${ac_eD}
"
}



if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
   
{
test -n "$verbose" && \
echo "	defining HAVE_X_WINDOWS"
echo "#define" HAVE_X_WINDOWS "1" >> confdefs.h
DEFS="$DEFS -DHAVE_X_WINDOWS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X_WINDOWS\${ac_dB}HAVE_X_WINDOWS\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_X_WINDOWS\${ac_uB}HAVE_X_WINDOWS\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_X_WINDOWS\${ac_eB}HAVE_X_WINDOWS\${ac_eC}1\${ac_eD}
"
}
 
fi
if [ "${USE_X_TOOLKIT}" != "none" ] ; then
   
{
test -n "$verbose" && \
echo "	defining USE_X_TOOLKIT"
echo "#define" USE_X_TOOLKIT "1" >> confdefs.h
DEFS="$DEFS -DUSE_X_TOOLKIT=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_X_TOOLKIT\${ac_dB}USE_X_TOOLKIT\${ac_dC}1\${ac_dD}
\${ac_uA}USE_X_TOOLKIT\${ac_uB}USE_X_TOOLKIT\${ac_uC}1\${ac_uD}
\${ac_eA}USE_X_TOOLKIT\${ac_eB}USE_X_TOOLKIT\${ac_eC}1\${ac_eD}
"
}
 
fi
if [ "${HAVE_X11}" = "yes" ] ; then
   
{
test -n "$verbose" && \
echo "	defining HAVE_X11"
echo "#define" HAVE_X11 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_X11=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X11\${ac_dB}HAVE_X11\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_X11\${ac_uB}HAVE_X11\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_X11\${ac_eB}HAVE_X11\${ac_eC}1\${ac_eD}
"
}
 
fi
if [ "${HAVE_XFREE386}" = "yes" ] ; then
   
{
test -n "$verbose" && \
echo "	defining HAVE_XFREE386"
echo "#define" HAVE_XFREE386 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_XFREE386=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFREE386\${ac_dB}HAVE_XFREE386\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_XFREE386\${ac_uB}HAVE_XFREE386\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_XFREE386\${ac_eB}HAVE_XFREE386\${ac_eC}1\${ac_eD}
"
}
 
fi
if [ "${HAVE_X_MENU}" = "yes" ] ; then
   
{
test -n "$verbose" && \
echo "	defining HAVE_X_MENU"
echo "#define" HAVE_X_MENU "1" >> confdefs.h
DEFS="$DEFS -DHAVE_X_MENU=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X_MENU\${ac_dB}HAVE_X_MENU\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_X_MENU\${ac_uB}HAVE_X_MENU\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_X_MENU\${ac_eB}HAVE_X_MENU\${ac_eC}1\${ac_eD}
"
}
 
fi
if [ "${GNU_MALLOC}" = "yes" ] ; then
   
{
test -n "$verbose" && \
echo "	defining GNU_MALLOC"
echo "#define" GNU_MALLOC "1" >> confdefs.h
DEFS="$DEFS -DGNU_MALLOC=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}GNU_MALLOC\${ac_dB}GNU_MALLOC\${ac_dC}1\${ac_dD}
\${ac_uA}GNU_MALLOC\${ac_uB}GNU_MALLOC\${ac_uC}1\${ac_uD}
\${ac_eA}GNU_MALLOC\${ac_eB}GNU_MALLOC\${ac_eC}1\${ac_eD}
"
}
 
fi
if [ "${REL_ALLOC}" = "yes" ] ; then
   
{
test -n "$verbose" && \
echo "	defining REL_ALLOC"
echo "#define" REL_ALLOC "1" >> confdefs.h
DEFS="$DEFS -DREL_ALLOC=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}REL_ALLOC\${ac_dB}REL_ALLOC\${ac_dC}1\${ac_dD}
\${ac_uA}REL_ALLOC\${ac_uB}REL_ALLOC\${ac_uC}1\${ac_uD}
\${ac_eA}REL_ALLOC\${ac_eB}REL_ALLOC\${ac_eC}1\${ac_eD}
"
}
 
fi
if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
   
{
test -n "$verbose" && \
echo "	defining LISP_FLOAT_TYPE"
echo "#define" LISP_FLOAT_TYPE "1" >> confdefs.h
DEFS="$DEFS -DLISP_FLOAT_TYPE=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}LISP_FLOAT_TYPE\${ac_dB}LISP_FLOAT_TYPE\${ac_dC}1\${ac_dD}
\${ac_uA}LISP_FLOAT_TYPE\${ac_uB}LISP_FLOAT_TYPE\${ac_uC}1\${ac_uD}
\${ac_eA}LISP_FLOAT_TYPE\${ac_eB}LISP_FLOAT_TYPE\${ac_eC}1\${ac_eD}
"
}
 
fi

# ====================== Developer's configuration =======================

# The following assignments make sense if you're running Emacs on a single
# machine, one version at a time, and  you want changes to the lisp and etc
# directories in the source tree to show up immediately in your working
# environment.  It saves a great deal of disk space by not duplicating the
# lisp and etc directories.

if [ "$run_in_place" = "1" ]; then
   lispdir='${srcdir}/lisp'
   locallisppath='${srcdir}/site-lisp'
   etcdir='${srcdir}/etc'
   lockdir='${srcdir}/lock'
   # We used to make archlibdir and docdir absolute,
   # but that caused trouble with automounters.
   archlibdir='${srcdir}/lib-src'
   docdir='${srcdir}/etc'
   infodir='${srcdir}/info'
elif [ "$single_tree" = "1" ]; then
   if [ "$exec_prefix_specified" = "" ]; then
      exec_prefix='${prefix}'
   fi
   if [ "$bindir_specified" = "" ]; then
      bindir='${exec_prefix}/bin/${configuration}'
   fi
   if [ "$datadir_specified" = "" ]; then
      datadir='${prefix}/common'
   fi
   if [ "$statedir_specified" = "" ]; then
      statedir='${prefix}/common'
   fi
   if [ "$libdir_specified" = "" ]; then
      libdir='${bindir}'
   fi
   if [ "$lispdir_specified" = "" ]; then
      lispdir='${prefix}/common/lisp'
   fi
   if [ "$locallisppath_specified" = "" ]; then
      locallisppath='${prefix}/common/site-lisp'
   fi
   if [ "$lockdir_specified" = "" ]; then
      lockdir='${prefix}/common/lock'
   fi
   if [ "$archlibdir_specified" = "" ]; then
      archlibdir='${libdir}/etc'
   fi
   if [ "$etcdir_specified" = "" ]; then
      etcdir='${prefix}/common/data'
   fi
   if [ "$docdir_specified" = "" ]; then
      docdir='${prefix}/common/data'
   fi
fi

#### Report on what we decided to do.
echo "

Configured for \`${canonical}'.

  Where should the build process find the source code?    ${srcdir}
  What operating system and machine description files should Emacs use?
        \`${opsysfile}' and \`${machfile}'
  What compiler should emacs be built with?               ${CC} ${CFLAGS}
  Should Emacs use the GNU version of malloc?             ${GNU_MALLOC}${GNU_MALLOC_reason}
  Should Emacs use the relocating allocator for buffers?  ${REL_ALLOC}
  What window system should Emacs use?                    ${window_system}
  What toolkit should Emacs use?                          ${USE_X_TOOLKIT}${x_includes+
  Where do we find X Windows header files?                }${x_includes}${x_libraries+
  Where do we find X Windows libraries?                   }${x_libraries}

"

# Remove any trailing slashes in these variables.
test -n "${prefix}" &&
  prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
test -n "${exec_prefix}" &&
  exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`


# The preferred way to propogate these variables is regular @@ substitutions.
if test -n "$prefix"; then
  ac_prsub="s%^prefix\\([ 	]*\\)=\\([ 	]*\\).*$%prefix\\1=\\2$prefix%"
else
  prefix=/usr/local
fi
if test -n "$exec_prefix"; then
  ac_prsub="$ac_prsub
s%^exec_prefix\\([ 	]*\\)=\\([ 	]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
else
  exec_prefix='${prefix}' # Let make expand it.
fi

# Any assignment to VPATH causes Sun make to only execute
# 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 test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi

# Quote sed substitution magic chars in DEFS.
cat >conftest.def <<EOF
$DEFS
EOF
ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
rm -f conftest.def
# Substitute for predefined variables.

trap 'rm -f config.status; exit 1' 1 2 15
echo creating config.status
rm -f config.status
cat > config.status <<EOF
#!/bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $configure_args

ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
    exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "config.status generated by autoconf version 1.11"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

trap 'rm -fr Makefile lib-src/Makefile.in oldXMenu/Makefile lwlib/Makefile src/Makefile.in src/config.h conftest*; exit 1' 1 2 15
CC='$CC'
LN_S='$LN_S'
CPP='$CPP'
INSTALL='$INSTALL'
INSTALL_PROGRAM='$INSTALL_PROGRAM'
INSTALL_DATA='$INSTALL_DATA'
YACC='$YACC'
SET_MAKE='$SET_MAKE'
ALLOCA='$ALLOCA'
version='$version'
configuration='$configuration'
srcdir='$srcdir'
prefix='$prefix'
exec_prefix='$exec_prefix'
bindir='$bindir'
datadir='$datadir'
statedir='$statedir'
libdir='$libdir'
mandir='$mandir'
infodir='$infodir'
lispdir='$lispdir'
locallisppath='$locallisppath'
lisppath='$lisppath'
etcdir='$etcdir'
lockdir='$lockdir'
archlibdir='$archlibdir'
docdir='$docdir'
c_switch_system='$c_switch_system'
c_switch_machine='$c_switch_machine'
LD_SWITCH_X_SITE='$LD_SWITCH_X_SITE'
LD_SWITCH_X_SITE_AUX='$LD_SWITCH_X_SITE_AUX'
C_SWITCH_X_SITE='$C_SWITCH_X_SITE'
CFLAGS='$CFLAGS'
X_TOOLKIT_TYPE='$X_TOOLKIT_TYPE'
machfile='$machfile'
opsysfile='$opsysfile'
LIBS='$LIBS'
top_srcdir='$top_srcdir'
ac_prsub='$ac_prsub'
ac_vpsub='$ac_vpsub'
extrasub='$extrasub'
EOF
cat >> config.status <<\EOF

ac_given_srcdir=$srcdir

CONFIG_FILES=${CONFIG_FILES-"Makefile lib-src/Makefile.in oldXMenu/Makefile lwlib/Makefile src/Makefile.in"}
for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/$ac_dir"
  else
    ac_dir_suffix=
  fi

  # A "../" for each directory in $ac_dir_suffix.
  ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dir_suffix"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

  echo creating "$ac_file"
  rm -f "$ac_file"
  comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  case "$ac_file" in
    *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
    * )          echo "# $comment_str"     > "$ac_file" ;;
  esac
  sed -e "
$ac_prsub
$ac_vpsub
$extrasub
s%@@CC@@%$CC%g
s%@@LN_S@@%$LN_S%g
s%@@CPP@@%$CPP%g
s%@@INSTALL@@%$INSTALL%g
s%@@INSTALL_PROGRAM@@%$INSTALL_PROGRAM%g
s%@@INSTALL_DATA@@%$INSTALL_DATA%g
s%@@YACC@@%$YACC%g
s%@@SET_MAKE@@%$SET_MAKE%g
s%@@ALLOCA@@%$ALLOCA%g
s%@@version@@%$version%g
s%@@configuration@@%$configuration%g
s%@@srcdir@@%$srcdir%g
s%@@prefix@@%$prefix%g
s%@@exec_prefix@@%$exec_prefix%g
s%@@bindir@@%$bindir%g
s%@@datadir@@%$datadir%g
s%@@statedir@@%$statedir%g
s%@@libdir@@%$libdir%g
s%@@mandir@@%$mandir%g
s%@@infodir@@%$infodir%g
s%@@lispdir@@%$lispdir%g
s%@@locallisppath@@%$locallisppath%g
s%@@lisppath@@%$lisppath%g
s%@@etcdir@@%$etcdir%g
s%@@lockdir@@%$lockdir%g
s%@@archlibdir@@%$archlibdir%g
s%@@docdir@@%$docdir%g
s%@@c_switch_system@@%$c_switch_system%g
s%@@c_switch_machine@@%$c_switch_machine%g
s%@@LD_SWITCH_X_SITE@@%$LD_SWITCH_X_SITE%g
s%@@LD_SWITCH_X_SITE_AUX@@%$LD_SWITCH_X_SITE_AUX%g
s%@@C_SWITCH_X_SITE@@%$C_SWITCH_X_SITE%g
s%@@CFLAGS@@%$CFLAGS%g
s%@@X_TOOLKIT_TYPE@@%$X_TOOLKIT_TYPE%g
s%@@machfile@@%$machfile%g
s%@@opsysfile@@%$opsysfile%g
s%@@LIBS@@%$LIBS%g
s%@@top_srcdir@@%$top_srcdir%g
s%@@DEFS@@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
fi; done

# These sed commands are put into ac_sed_defs when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They 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.
# Each defining turns into a single global substitution command.
# Hopefully no one uses "!" as a variable value.
# Other candidates for the sed separators, like , and @@, do get used.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s!^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*!\1#\2'
ac_dC='\3'
ac_dD='!g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s!^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)!\1#\2define\3'
ac_uC=' '
ac_uD='\4!g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s!^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$!\1#\2define\3'
ac_eC=' '
ac_eD='!g'
rm -f conftest.sed
EOF
# Turn off quoting long enough to insert the sed commands.
rm -f conftest.sh
cat > conftest.sh <<EOF
$ac_sed_defs
EOF

# Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
# on the size of here documents.

# Maximum number of lines to put in a single here document.
ac_max_sh_lines=9

while :
do
  # wc gives bogus results for an empty file on some AIX systems.
  ac_lines=`grep -c . conftest.sh`
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  rm -f conftest.s1 conftest.s2
  sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  # Write a limited-size here document to append to conftest.sed.
  echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  cat conftest.s1 >> config.status
  echo 'CONFEOF' >> config.status
  rm -f conftest.s1 conftest.sh
  mv conftest.s2 conftest.sh
done
rm -f conftest.sh

# Now back to your regularly scheduled config.status.
cat >> config.status <<\EOF
# This sed command replaces #undef's with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it in
# src/config.h.
cat >> conftest.sed <<\CONFEOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
CONFEOF
rm -f conftest.h
# Break up the sed commands because old seds have small limits.
ac_max_sed_lines=20

CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"}
for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  echo creating $ac_file

  cp $ac_given_srcdir/$ac_file.in conftest.h1
  cp conftest.sed conftest.stm
  while :
  do
    ac_lines=`grep -c . conftest.stm`
    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    rm -f conftest.s1 conftest.s2 conftest.h2
    sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
    sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
    sed -f conftest.s1 < conftest.h1 > conftest.h2
    rm -f conftest.s1 conftest.h1 conftest.stm
    mv conftest.h2 conftest.h1
    mv conftest.s2 conftest.stm
  done
  rm -f conftest.stm conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.h1 >> conftest.h
  rm -f conftest.h1
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    # The file exists and we would not be changing it.
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done
rm -f conftest.sed




# Build src/Makefile from ${srcdir}/src/Makefile.in.  This must be done
# after src/config.h is built, since we rely on that file.

# Now get this: Some word that is part of the ${srcdir} directory name
# or the ${configuration} value might, just might, happen to be an
# identifier like `sun4' or `i386' or something, and be predefined by
# the C preprocessor to some helpful value like 1, or maybe the empty
# string.  Needless to say consequent macro substitutions are less
# than conducive to the makefile finding the correct directory.
undefs="`echo $top_srcdir $configuration $canonical |
sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
    -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
`"

echo creating lib-src/Makefile
( cd lib-src
  rm -f junk.c junk1.c junk2.c
  sed -e '/start of cpp stuff/q' \
      < Makefile.in > junk1.c
  sed -e '1,/start of cpp stuff/d'\
      -e 's@@/\*\*/#\(.*\)$@@/* \1 */@@' \
      < Makefile.in > junk.c
  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
      sed -e 's/^ /	/' -e '/^#/d' -e '/^[ 	]*$/d' > junk2.c
  cat junk1.c junk2.c > Makefile.new
  rm -f junk.c junk1.c junk2.c
  chmod 444 Makefile.new
  mv -f Makefile.new Makefile
)

echo creating src/Makefile
( cd src
  rm -f junk.c junk1.c junk2.c
  sed -e '/start of cpp stuff/q' \
      < Makefile.in > junk1.c
  sed -e '1,/start of cpp stuff/d'\
      -e 's@@/\*\*/#\(.*\)$@@/* \1 */@@' \
      < Makefile.in > junk.c
  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
      sed -e 's/^ /	/' -e '/^#/d' -e '/^[ 	]*$/d' > junk2.c
  cat junk1.c junk2.c > Makefile.new
  rm -f junk.c junk1.c junk2.c
  chmod 444 Makefile.new
  mv -f Makefile.new Makefile
)
exit 0
EOF
chmod +x config.status
# Some shells look in PATH for config.status without the "./".
test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status

@


1.1.1.17
log
@import emacs-19.28
@
text
@a2342 32
if test "${HAVE_X11}" = "yes"; then
  test -n "$silent" || echo "checking for X11 version"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <X11/Xlib.h>
int main() { return 0; }
int t() { 
#if XlibSpecificationRelease < 6
fail;
#endif
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining HAVE_X11R6"
echo "#define" HAVE_X11R6 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_X11R6=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X11R6\${ac_dB}HAVE_X11R6\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_X11R6\${ac_uB}HAVE_X11R6\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_X11R6\${ac_eB}HAVE_X11R6\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*

fi

@


1.1.1.18
log
@import emacs-19.29
@
text
@d1 55
a55 1
#! /bin/sh
a56 6
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.4 
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
d58 18
a75 38
# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_help="$ac_help
  --with-gcc              use GCC to compile Emacs"
ac_help="$ac_help
  --with-pop              support POP for mail retrieval"
ac_help="$ac_help
  --with-kerberos         support Kerberos-authenticated POP"
ac_help="$ac_help
  --with-hesiod           support Hesiod to get the POP server host"
ac_help="$ac_help
  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif)"
ac_help="$ac_help
  --with-x                use the X Window System"

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
d77 7
a83 2
# Initialize some other variables.
subdirs=
d85 54
a138 3
ac_prev=
for ac_option
do
d140 51
a190 6
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi
d192 24
a215 4
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
d217 15
a231 1
  # Accept the important Cygnus configure options, so we can diagnose typos.
d233 15
a247 1
  case "$ac_option" in
d249 32
a280 20
  -build | --build | --buil | --bui | --bu | --b)
    ac_prev=build ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
    build="$ac_optarg" ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file="$ac_optarg" ;;

  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    # Reject names that are not valid shell variable names.
    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; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;
d282 47
a328 70
  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    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; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_${ac_feature}='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he)
    # 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.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
                          [same as prefix]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
--enable and --with options recognized:$ac_help
EOF
    exit 0 ;;

  -host | --host | --hos | --ho)
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host="$ac_optarg" ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;
d330 2
a331 111
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix="$ac_optarg" ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix="$ac_optarg" ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name="$ac_optarg" ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site="$ac_optarg" ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir="$ac_optarg" ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.4"
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    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; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    # Reject names that are not valid shell variable names.
    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; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes="$ac_optarg" ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries="$ac_optarg" ;;

  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
d334 4
a337 8
  *) 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    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; }
    fi
    nonopt="$ac_option"
d343 2
a344 103
if test -n "$ac_prev"; then
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --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" ;;
  esac
done

# NLS nuisances.
# Only set LANG and LC_ALL to C if already set.
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# 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.
ac_unique_file=src/lisp.h

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi
d346 6
a351 11
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'

if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # 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
    ac_n= ac_c='
' ac_t='	'
d353 3
a355 1
    ac_n=-n ac_c= ac_t=
a356 2
else
  ac_n= ac_c='\c' ac_t=
d359 2
d362 24
d387 14
a400 67

bindir='${exec_prefix}/bin'
datadir='${prefix}/share'
sharedstatedir='${prefix}/com'
libexecdir='${exec_prefix}/libexec'
mandir='${prefix}/man/man1'
infodir='${prefix}/info'
lispdir='${datadir}/emacs/${version}/lisp'
locallisppath='${datadir}/emacs/site-lisp'
lisppath='${locallisppath}:${lispdir}'
etcdir='${datadir}/emacs/${version}/etc'
lockdir='${sharedstatedir}/emacs/lock'
archlibdir='${libexecdir}/emacs/${version}/${configuration}'
docdir='${datadir}/emacs/${version}/etc'

# Check whether --with-gcc or --without-gcc was given.
withval="$with_gcc"
if test -n "$withval"; then
  :
fi

# Check whether --with-pop or --without-pop was given.
withval="$with_pop"
if test -n "$withval"; then
  cat >> confdefs.h <<\EOF
#define MAIL_USE_POP 1
EOF

fi

# Check whether --with-kerberos or --without-kerberos was given.
withval="$with_kerberos"
if test -n "$withval"; then
  cat >> confdefs.h <<\EOF
#define KERBEROS 1
EOF

fi

# Check whether --with-hesiod or --without-hesiod was given.
withval="$with_hesiod"
if test -n "$withval"; then
  cat >> confdefs.h <<\EOF
#define HESIOD 1
EOF

fi

# Check whether --with-x-toolkit or --without-x-toolkit was given.
withval="$with_x_toolkit"
if test -n "$withval"; then
  	  case "${withval}" in
	    y | ye | yes )	val=athena ;;
	    n | no )		val=no  ;;
	    l | lu | luc | luci | lucid )	val=lucid ;;
	    a | at | ath | athe | athena )	val=athena ;;
	    m | mo | mot | moti | motif )	val=motif ;;
	    * )
{ echo "configure: error: the \`--with-x-toolkit' option is supposed to have a value
which is \`yes', \`no', \`lucid', \`athena', or \`motif'.
Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
	    ;;
	  esac
	  with_x_toolkit=$val

fi

d404 1
a404 2
#### give you automounter prefixes, which can go away.  We do all this
#### so Emacs can find its files when run uninstalled.
d410 1
a410 4
    ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
    CDPATH=
    if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"  ;
    then
d420 8
a427 9
if test `pwd` != `(cd ${srcdir} && pwd)` \
   && test -f "${srcdir}/src/config.h" ; then
  echo "configure: warning: The directory tree \`${srcdir}' is being used
   as a build directory right now; it has been configured in its own
   right.  To configure in another directory as well, you MUST
   use GNU make.  If you do not have GNU make, then you must
   now do \`make distclean' in ${srcdir},
   and then run $0 again." 1>&2

d437 7
d448 3
a450 15

ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a451 33
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.


# Make sure we can run config.sub.
if $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`$ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`$ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

canonical=$host
configuration=$host_alias

d476 1
a476 1
machine='' opsys='' unported=no
a492 8
  ## Acorn RISCiX:
  arm-acorn-riscix1.1* )
    machine=acorn opsys=riscix1-1
  ;;
  arm-acorn-riscix1.2* | arm-acorn-riscix )
    machine=acorn opsys=riscix1-2
  ;;

a505 4
  alpha-dec-osf* )
    machine=alpha opsys=osf1
  ;;

d516 3
a518 3
  ## Apollo, Domain/OS
  m68*-apollo-* )
    machine=apollo opsys=bsd4-3
d607 2
a608 6
    if test -z "`type gnucc | grep 'not found'`"
    then
      if test -s /etc/167config
      then CC="gnucc -m68040"
      else CC="gnucc -m68881"
      fi 
d610 1
a610 1
      if test -z "`type gcc | grep 'not found'`"
d617 1
a617 5
    # jbotte@@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
    # needs POSIX_SIGNALS and therefore needs usg5-4-2.
    # I hope there are not other 4.0 versions for this machine
    # which really need usg5-4 instead.
    machine=delta88k opsys=usg5-4-2
d677 1
a677 1
  ## HP/UX 7, 8, 9, and 10 are supported on these machines.
a684 1
      *.10.* ) machine=hp9000s300 opsys=hpux9shr ;;
a701 3
  hppa*-hp-hpux10* )
    machine=hp800 opsys=hpux9shr
  ;;
a739 6
  rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1*  )
    machine=ibmrs6000 opsys=aix4-1
  ;;
  rs6000-ibm-aix4* | powerpc-ibm-aix4*  )
    machine=ibmrs6000 opsys=aix4
  ;;
d783 1
a783 1
  ## Sequent Symmetry running Dynix
a787 7
  ## Sequent Symmetry running DYNIX/ptx
  ## Use the old cpp rather than the newer ANSI one.
  i[345]86-sequent-ptx* )
    machine=sequent-ptx opsys=ptx
    NON_GNU_CPP="/lib/cpp"
  ;;

d791 1
a791 6
    machine=ncr386 opsys=usg5-4-2
  ;;

  ## Intel Paragon OSF/1
  i860-intel-osf1* )
    machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
d905 1
a905 7
  mips-sgi-irix4* )
    machine=iris4d opsys=irix4-0
  ;;
  mips-sgi-irix6* )
    machine=iris4d opsys=irix6-0
  ;;
  mips-sgi-irix5.[01]* )
d908 2
a909 2
  mips-sgi-irix5* | mips-sgi-irix* )
    machine=iris4d opsys=irix5-2
d919 1
a919 1
  m68*-sony-newsos3* | m68*-sony-news3*)
d922 1
a922 1
  mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
d925 1
a925 1
  mips-sony-news* )
d943 1
a943 1
      * )		unported=yes ;;
d949 3
a951 2
      *-sunos4.1.3* | *-sunos4shr*  ) opsys=sunos4shr
		NON_GNU_CPP=/usr/lib/cpp
d953 1
a965 4
      *-sunos5.5* | *-solaris2.5* )
		opsys=sol2-5
		NON_GNU_CPP=/usr/ccs/lib/cpp
		;;
d1025 1
d1029 1
a1029 1
      * ) 						unported=yes
a1051 1
      *-isc4.* )		opsys=isc4-1 ;;
d1058 1
a1058 2
      *-bsd386* | *-bsdi1* )	opsys=bsd386 ;;
      *-bsdi2* )		opsys=bsdos2 ;;
d1067 1
a1067 1
    unported=yes
d1077 1
a1077 1
if test x"${opsys}" = x; then
d1091 1
a1091 5
    *-sysv4.2 | *-sysvr4.2 )
	if [ x$NON_GNU_CPP = x ]; then
	  NON_GNU_CPP=/usr/ccs/lib/cpp
	fi
	opsys=usg5-4-2 ;;
d1093 1
a1093 1
      unported=yes
d1098 5
a1102 4

if test $unported = yes; then
  { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
d1109 60
d1170 4
a1173 1
test -n "$CC" && cc_specified=yes
d1176 12
a1187 11
  "yes" ) CC="gcc" GCC=yes ;;
  "no"  ) : ${CC=cc} ;;
  * ) # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
d1192 1
a1192 1
      ac_cv_prog_CC="gcc"
a1196 8
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
d1198 2
d1201 2
a1202 6

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
d1204 1
a1204 1
  yes;
d1207 3
a1209 19
if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
  if test "${CFLAGS+set}" != set; then
    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_gcc_g=yes
else
  ac_cv_prog_gcc_g=no
d1212 2
d1215 1
a1215 21
fi
    echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
    if test $ac_cv_prog_gcc_g = yes; then
      CFLAGS="-g -O"
    else
      CFLAGS="-O"
    fi
  fi
else
  GCC=
  test "${CFLAGS+set}" = set || CFLAGS="-g"
fi

esac

# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi

#### Some systems specify a CPP to use unless we are using GCC.
d1218 3
a1220 2
if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
then
d1227 3
a1229 3
if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
  test x$cc_specified != xyes
then
d1233 1
a1233 1
if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
d1238 1
a1238 1
if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
d1247 2
a1248 5
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftestdata
d1252 1
a1252 1
  ac_cv_prog_LN_S="ln -s"
d1254 1
a1254 8
  ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
d1257 2
a1258 5
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
d1260 3
a1262 5
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
d1264 1
a1264 4
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 1439 "configure"
d1266 1
a1266 1
#include <assert.h>
d1269 3
a1271 2
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
a1274 1
  echo "$ac_err" >&5
d1277 1
a1277 2
  cat > conftest.$ac_ext <<EOF
#line 1453 "configure"
d1279 1
a1279 1
#include <assert.h>
d1282 3
a1284 2
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
a1287 1
  echo "$ac_err" >&5
a1293 5
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
d1295 1
a1295 1
echo "$ac_t""$CPP" 1>&6
d1297 19
a1315 16
# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
d1317 2
a1318 3
    # Account for people who put trailing slashes in PATH elements.
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
d1321 1
a1321 1
      for ac_prog in ginstall installbsd scoinst install; do
d1329 1
a1329 1
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
d1338 3
d1342 5
a1346 1
  test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
d1348 2
a1349 1
  INSTALL="$ac_cv_path_install"
d1351 1
a1351 1
echo "$ac_t""$INSTALL" 1>&6
d1353 1
a1353 1
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
d1356 1
d1359 1
d1363 4
a1366 9
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
d1371 1
a1371 1
      ac_cv_prog_YACC="$ac_prog"
d1377 2
a1378 7
fi
YACC="$ac_cv_prog_YACC"
if test -n "$YACC"; then
  echo "$ac_t""$YACC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
a1384 15
echo $ac_n "checking for AIX""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
#line 1566 "configure"
#include "confdefs.h"
#ifdef _AIX
  yes
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
#define _ALL_SOURCE 1
EOF
d1386 12
a1397 1
else
d1399 11
a1409 4
  echo "$ac_t""no" 1>&6
fi
rm -f conftest*

a1411 21
for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1596 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
a1413 11
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
d1416 2
a1417 31
# If we cannot run a trivial program, we must be cross compiling.
echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_c_cross=yes
else
cat > conftest.$ac_ext <<EOF
#line 1633 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_c_cross=no
else
  ac_cv_c_cross=yes
fi
fi
rm -fr conftest*
fi
cross_compiling=$ac_cv_c_cross
echo "$ac_t""$ac_cv_c_cross" 1>&6

echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1654 "configure"
d1424 3
a1426 2
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
a1428 9
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
d1430 4
a1433 27
cat > conftest.$ac_ext <<EOF
#line 1676 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1694 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
d1435 2
a1436 13
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  ac_cv_header_stdc=no
else
cat > conftest.$ac_ext <<EOF
#line 1715 "configure"
d1441 1
a1441 1
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
d1447 1
a1447 1
eval $ac_link
d1449 19
a1467 3
  :
else
  ac_cv_header_stdc=no
d1469 3
d1474 1
d1476 2
a1477 6
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
d1480 1
d1482 2
a1483 6
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1749 "configure"
d1489 1
a1489 3
int t() {
struct tm *tp;
; return 0; }
d1493 11
a1503 6
  ac_cv_header_time=yes
else
  rm -rf conftest*
  ac_cv_header_time=no
fi
rm -f conftest*
a1504 6
fi
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF
d1507 1
d1509 2
a1510 6
echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1782 "configure"
a1511 1
#include <sys/types.h>
d1513 1
a1513 1
/* NetBSD declares sys_siglist in unistd.h.  */
d1518 1
a1518 3
int t() {
char *msg = *(sys_siglist + 1);
; return 0; }
d1522 11
a1532 16
  ac_cv_decl_sys_siglist=yes
else
  rm -rf conftest*
  ac_cv_decl_sys_siglist=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
if test $ac_cv_decl_sys_siglist = yes; then
  cat >> confdefs.h <<\EOF
#define SYS_SIGLIST_DECLARED 1
EOF

fi

a1533 28
echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
#line 1816 "configure"
#include "confdefs.h"
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
#endif
#endif
#ifdef HAVE_UTIME_H
#include <utime.h>
#endif
int main() { return 0; }
int t() {
static struct utimbuf x; x.actime = x.modtime;
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6
   cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTIMBUF 1
EOF
a1534 3
else
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
d1539 2
a1540 6
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1855 "configure"
d1547 1
a1547 4
#ifdef __cplusplus
extern "C"
#endif
void (*signal ()) ();
d1549 1
a1549 3
int t() {
int i;
; return 0; }
d1553 13
a1565 1
  ac_cv_type_signal=void
d1568 12
a1579 1
  ac_cv_type_signal=int
a1582 5
fi
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF
d1585 2
a1586 4

echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
#line 1890 "configure"
d1588 1
a1588 7
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
a1589 2
#endif
#endif
d1591 1
a1591 3
int t() {
static struct timeval x; x.tv_sec = x.tv_usec;
; return 0; }
d1594 2
d1597 11
a1607 4
  echo "$ac_t""yes" 1>&6
   cat >> confdefs.h <<\EOF
#define HAVE_TIMEVAL 1
EOF
a1608 3
else
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
d1612 12
a1623 7

echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1926 "configure"
d1625 1
a1625 2
#include <sys/types.h>
#include <time.h>
d1627 1
a1627 3
int t() {
struct tm *tp; tp->tm_sec;
; return 0; }
d1631 11
a1641 13
  ac_cv_struct_tm=time.h
else
  rm -rf conftest*
  ac_cv_struct_tm=sys/time.h
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_struct_tm" 1>&6
if test $ac_cv_struct_tm = sys/time.h; then
  cat >> confdefs.h <<\EOF
#define TM_IN_SYS_TIME 1
EOF
a1642 1
fi
a1643 17
echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1958 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_cv_struct_tm>
int main() { return 0; }
int t() {
struct tm tm; tm.tm_zone;
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_cv_struct_tm_zone=yes
d1646 1
a1646 1
  ac_cv_struct_tm_zone=no
d1650 3
a1652 14
fi
echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
if test "$ac_cv_struct_tm_zone" = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_TM_ZONE 1
EOF

else
  echo $ac_n "checking for tzname""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1989 "configure"
d1656 1
a1656 1
extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
d1659 1
a1659 3
int t() {
atoi(*tzname);
; return 0; }
d1661 1
a1661 1
if eval $ac_link; then
d1663 13
a1675 4
  ac_cv_var_tzname=yes
else
  rm -rf conftest*
  ac_cv_var_tzname=no
a1679 5
  echo "$ac_t""$ac_cv_var_tzname" 1>&6
  if test $ac_cv_var_tzname = yes; then
    cat >> confdefs.h <<\EOF
#define HAVE_TZNAME 1
EOF
a1680 2
  fi
fi
d1682 1
a1682 13

echo $ac_n "checking for working const""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2025 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {

/* Ultrix mips cc rejects this.  */
a1686 3
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero;
d1703 1
a1703 1
  int x[] = {25, 17};
d1719 4
a1722 1
}
d1724 2
a1725 1
; return 0; }
d1728 1
a1728 2
  rm -rf conftest*
  ac_cv_c_const=yes
d1731 12
a1742 1
  ac_cv_c_const=no
a1745 6
fi
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF
d1747 1
a1747 9
fi


echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
set dummy ${MAKE-make}; ac_make=$2
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftestmake <<\EOF
d1753 2
a1754 5
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
a1755 8
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  SET_MAKE=
else
  echo "$ac_t""no" 1>&6
  SET_MAKE="MAKE=${MAKE-make}"
fi
d1758 2
a1759 5
echo $ac_n "checking for long file names""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_sys_long_file_names=yes
d1770 1
a1770 1
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
d1774 2
a1775 6
  if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
    ac_cv_sys_long_file_names=no
    rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
    break
  fi
  rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
d1777 13
a1789 6
fi
echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
if test $ac_cv_sys_long_file_names = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_LONG_FILE_NAMES 1
EOF
a1790 1
fi
d1794 33
d1828 22
a1849 11
# If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# 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.
echo $ac_n "checking for X""... $ac_c" 1>&6

# Check whether --with-x or --without-x was given.
withval="$with_x"
if test -n "$withval"; then
  :
fi
d1851 10
a1860 11
if test "x$with_x" = xno; then
  no_x=yes
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    no_x=
  else
if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # One or both of the vars are not set, and there is no cached value.
no_x=yes
d1874 4
a1877 7
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
        test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.
d1880 1
a1880 1
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
d1884 1
a1884 1
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
d1891 9
a1899 6
if test "$no_x" = yes; then
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_include" && x_direct_test_include=X11/Intrinsic.h
cat > conftest.$ac_ext <<EOF
#line 2220 "configure"
d1903 3
a1905 2
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
d1908 2
a1909 1
  no_x= ac_x_includes=
a1910 1
  echo "$ac_err" >&5
d1912 1
a1912 1
    for ac_dir in               \
d1950 2
a1951 1
      no_x= ac_x_includes=$ac_dir
d1958 7
a1964 7
# Check for the libraries.
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2283 "configure"
d1968 1
a1968 3
int t() {
${x_direct_test_function}()
; return 0; }
d1970 1
a1970 1
if eval $ac_link; then
d1972 7
a1978 1
  LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
d1980 1
a1980 4
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
d2019 2
a2020 1
      no_x= ac_x_libraries=$ac_dir
a2025 1
rm -f conftest*
d2028 2
a2029 5
if test "$no_x" = yes; then
  ac_cv_path_x="no_x=yes"
else
  ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
a2030 3
  fi
  eval "$ac_cv_path_x"
fi # $with_x != no
d2032 7
a2038 8
if test "$no_x" = yes; then
  echo "$ac_t""no" 1>&6
else
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi
d2040 1
a2040 5
if test "$no_x" = yes; then
  window_system=none
else
  window_system=x11
fi
d2042 7
a2048 23
if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
  LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
  LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
fi
if test "${x_includes}" != NONE && test -n "${x_includes}"; then
  C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
fi

if test x"${x_includes}" = x; then
  bitmapdir=/usr/include/X11/bitmaps
else
  # accumulate include directories that have X11 bitmap sudirectories
  bmd_acc="dummyval"
  for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
    if test -d "${bmd}/X11/bitmaps"; then
      bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
    elif test -d "${bmd}/bitmaps"; then
      bmd_acc="${bmd_acc}:${bmd}/bitmaps"
    fi
  done
  if test ${bmd_acc} != "dummyval"; then
    bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
  fi
d2055 1
d2057 16
a2072 3
      athena | lucid ) USE_X_TOOLKIT=LUCID ;;	
      motif ) USE_X_TOOLKIT=MOTIF ;;	
      * ) USE_X_TOOLKIT=none ;;
d2075 6
d2085 1
d2093 3
a2095 1
  yes ) HAVE_X_MENU=yes ;;
d2100 3
a2102 3
echo "checking the machine- and system-dependent files to find out
 - which libraries the lib-src programs will want, and
 - whether the GNU malloc routines are usable" 1>&6
a2190 1

d2195 3
a2197 2
       | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
if test "x$CFLAGS" = x; then
d2199 2
a2200 1
	 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
d2212 1
a2212 1
if test "${system_malloc}" = "yes"; then
d2218 1
a2218 1
if test x"${REL_ALLOC}" = x; then
d2227 2
a2228 1
CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
d2231 5
a2235 8
echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldnet  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2558 "configure"
d2239 1
a2239 3
int t() {
dnet_ntoa()
; return 0; }
d2241 1
a2241 1
if eval $ac_link; then
d2243 2
a2244 4
  eval "ac_cv_lib_dnet=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_dnet=no"
d2247 13
a2259 11
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo dnet | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-ldnet $LIBS"
d2261 1
a2261 2
else
  echo "$ac_t""no" 1>&6
d2265 5
a2269 8
echo $ac_n "checking for -lXbsd""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_Xbsd'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lXbsd  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2598 "configure"
d2273 1
a2273 3
int t() {
main()
; return 0; }
d2275 1
a2275 1
if eval $ac_link; then
d2277 1
a2277 7
  eval "ac_cv_lib_Xbsd=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_Xbsd=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
a2279 30
if eval "test \"`echo '$ac_cv_lib_'Xbsd`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking for -lpthreads""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_pthreads'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lpthreads  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2632 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
cma_open()
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_lib_pthreads=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_pthreads=no"
fi
d2281 3
a2283 12
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'pthreads`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo pthreads | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lpthreads $LIBS"

d2285 1
a2285 1
  echo "$ac_t""no" 1>&6
d2289 1
a2289 1
echo $ac_n "checking for XFree86""... $ac_c" 1>&6
d2292 1
a2292 3
  : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
else
  HAVE_XFREE386=no
a2293 1
echo "$ac_t""$HAVE_XFREE386" 1>&6
d2295 2
a2296 2
# Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
# for the tests that follow.  We set it back to REAL_CFLAGS later on.
a2301 64

  if test "${HAVE_XFREE386}" = "yes" && test "${opsys}" = "linux"; then
    echo $ac_n "checking whether XFree86 needs -b to link""... $ac_c" 1>&6
    cat > conftest.$ac_ext <<EOF
#line 2685 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
XOpenDisplay ("foo");
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  xfree86_first_failure=no
else
  rm -rf conftest*
  xfree86_first_failure=yes
fi
rm -f conftest*

    if test "${xfree86_first_failure}" = "yes"; then
      OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
      OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
      OLD_CPPFLAGS="$CPPFLAGS"
      OLD_LIBS="$LIBS"
      LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
      C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
      CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
      LIBS="$LIBS -b i486-linuxaout"
      cat > conftest.$ac_ext <<EOF
#line 2712 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
XOpenDisplay ("foo");
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  xfree86_second_failure=no
else
  rm -rf conftest*
  xfree86_second_failure=yes
fi
rm -f conftest*

      if test "${xfree86_second_failure}" = "yes"; then
	# If we get the same failure with -b, there is no use adding -b.
	# So take it out.  This plays safe.
	LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
	C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
	CPPFLAGS="$OLD_CPPFLAGS"
	LIBS="$OLD_LIBS"
        echo "$ac_t""no" 1>&6
      else
        echo "$ac_t""yes" 1>&6
      fi
    else
      echo "$ac_t""no" 1>&6
    fi
  fi

d2305 5
a2309 13
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2753 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

d2311 1
a2311 2
int t() {

d2315 1
a2315 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d2318 2
a2319 1
$ac_func();
a2320 1

d2323 1
a2323 1
if eval $ac_link; then
d2325 12
a2336 4
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d2339 1
d2342 12
a2353 5
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
d2355 15
a2369 3
 
else
  echo "$ac_t""no" 1>&6
d2371 1
a2371 1
done
d2376 2
a2377 3
  echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
  cat > conftest.$ac_ext <<EOF
#line 2802 "configure"
d2381 1
a2381 1
int t() {
a2384 1

d2387 1
a2387 1
if eval $ac_link; then
d2389 12
a2400 4
  echo "$ac_t""6" 1>&6
    cat >> confdefs.h <<\EOF
#define HAVE_X11XTR6 1
EOF
a2401 3
else
  rm -rf conftest*
  echo "$ac_t""not 6" 1>&6
d2408 2
a2409 3
echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
#line 2831 "configure"
d2413 6
a2418 2
int t() {
return h_errno;
d2421 1
a2421 1
if eval $ac_link; then
d2423 12
a2434 4
  echo "$ac_t""yes" 1>&6
   cat >> confdefs.h <<\EOF
#define HAVE_H_ERRNO 1
EOF
a2435 3
else
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
d2442 2
a2443 6
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2860 "configure"
d2447 1
a2447 3
int t() {
char *p = alloca(2 * sizeof(int));
; return 0; }
d2449 1
a2449 1
if eval $ac_link; then
d2451 13
a2463 4
  ac_cv_header_alloca_h=yes
else
  rm -rf conftest*
  ac_cv_header_alloca_h=no
d2467 20
a2486 5
fi
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
d2488 13
a2501 1
fi
a2502 3
echo $ac_n "checking for alloca""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2504 3
a2506 2
  cat > conftest.$ac_ext <<EOF
#line 2891 "configure"
d2509 2
a2510 2
#ifdef __GNUC__
# define alloca __builtin_alloca
d2512 1
a2512 11
# if HAVE_ALLOCA_H
#  include <alloca.h>
# else
#  ifdef _AIX
 #pragma alloca
#  else
#   ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#   endif
#  endif
# endif
d2515 8
d2524 10
a2533 2
int t() {
char *p = (char *) alloca(1);
d2536 1
a2536 1
if eval $ac_link; then
d2538 10
a2547 13
  ac_cv_func_alloca=yes
else
  rm -rf conftest*
  ac_cv_func_alloca=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_func_alloca" 1>&6
if test $ac_cv_func_alloca = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA 1
EOF
a2548 1
fi
a2549 14
if test $ac_cv_func_alloca = no; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # 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.
  ALLOCA=alloca.o
  cat >> confdefs.h <<\EOF
#define C_ALLOCA 1
EOF


echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2551 3
a2553 2
  cat > conftest.$ac_ext <<EOF
#line 2949 "configure"
d2555 8
a2562 2
#if defined(CRAY) && ! defined(CRAY2)
webecray
d2564 2
a2565 1
wenotbecray
d2567 1
a2567 1

d2569 1
a2569 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "webecray" >/dev/null 2>&1; then
d2571 12
a2582 1
  ac_cv_os_cray=yes
d2585 2
a2586 14
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2977 "configure"
d2588 1
a2588 6
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

d2590 1
a2590 2
int t() {

d2594 1
a2594 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d2597 2
a2598 1
$ac_func();
a2599 1

d2602 1
a2602 1
if eval $ac_link; then
d2604 15
a2618 4
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d2623 2
a2624 5
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<EOF
#define CRAY_STACKSEG_END $ac_func
EOF
a2625 3
  break
else
  echo "$ac_t""no" 1>&6
d2627 2
a2629 1
done
d2631 1
d2633 29
a2661 3
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2663 18
a2680 2
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
d2682 1
a2682 2
cat > conftest.$ac_ext <<EOF
#line 3031 "configure"
d2701 1
a2701 1
eval $ac_link
d2703 13
a2715 1
  ac_cv_c_stack_direction=1
d2717 12
a2728 1
  ac_cv_c_stack_direction=-1
a2732 6
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
cat >> confdefs.h <<EOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
EOF

fi
d2735 6
a2740 10
# fmod, logb, and frexp are found in -lm on most systems.
# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
echo $ac_n "checking for -lm""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lm  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3076 "configure"
d2744 1
a2744 3
int t() {
sqrt(0.0) + t()
; return 0; }
d2746 1
a2746 1
if eval $ac_link; then
d2748 2
a2749 4
  eval "ac_cv_lib_m=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_m=no"
d2752 13
a2764 9
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d2766 1
a2766 4
  LIBS="-lm $LIBS"

else
  echo "$ac_t""no" 1>&6
d2771 1
a2771 1
strerror fpathconf select mktime eaccess getpagesize
d2773 5
a2777 13
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3117 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

d2779 1
a2779 2
int t() {

d2783 1
a2783 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d2786 2
a2787 1
$ac_func();
a2788 1

d2791 1
a2791 1
if eval $ac_link; then
d2793 12
a2804 4
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
a2806 12

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
d2810 5
a2814 14
ok_so_far=yes
echo $ac_n "checking for socket""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3168 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char socket(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char socket(); 

d2816 1
a2816 2
int t() {

d2823 2
a2824 1
socket();
a2825 1

d2828 2
a2829 3
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_socket=yes"
d2832 1
a2832 1
  eval "ac_cv_func_socket=no"
d2836 3
a2838 17
fi
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
ok_so_far=no
fi

if test $ok_so_far = yes; then
  ac_safe=`echo "netinet/in.h" | tr './\055' '___'`
echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3215 "configure"
d2842 3
a2844 2
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
d2846 1
a2846 2
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
a2847 1
  echo "$ac_err" >&5
d2849 1
a2849 1
  eval "ac_cv_header_$ac_safe=no"
a2851 8
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
ok_so_far=no
fi
d2854 3
a2856 8
if test $ok_so_far = yes; then
  ac_safe=`echo "arpa/inet.h" | tr './\055' '___'`
echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3247 "configure"
d2860 3
a2862 2
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
d2864 1
a2864 2
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
a2865 1
  echo "$ac_err" >&5
d2867 1
a2867 1
  eval "ac_cv_header_$ac_safe=no"
a2869 14
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
ok_so_far=no
fi

fi
if test $ok_so_far = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_INET_SOCKETS 1
EOF
d2872 12
a2883 5

if test -f /usr/lpp/X11/bin/smt.exp; then
  cat >> confdefs.h <<\EOF
#define HAVE_AIX_SMT_EXP 1
EOF
d2890 1
d2894 21
a2914 2
if test x"${version}" = x; then
  { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
d2917 1
a2917 1
### Specify what sort of things we'll be editing into Makefile and config.h.
d2949 35
a2983 3
cat >> confdefs.h <<EOF
#define EMACS_CONFIGURATION "${canonical}"
EOF
d2985 10
a2994 3
cat >> confdefs.h <<EOF
#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
EOF
a2995 3
cat >> confdefs.h <<EOF
#define config_machfile "${machfile}"
EOF
d2997 10
a3006 3
cat >> confdefs.h <<EOF
#define config_opsysfile "${opsysfile}"
EOF
a3007 3
cat >> confdefs.h <<EOF
#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
EOF
d3009 10
a3018 3
cat >> confdefs.h <<EOF
#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
EOF
a3019 3
cat >> confdefs.h <<EOF
#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
EOF
d3021 10
a3030 3
cat >> confdefs.h <<EOF
#define UNEXEC_SRC ${UNEXEC_SRC}
EOF
a3032 4
if test "${HAVE_X_WINDOWS}" = "yes" ; then
  cat >> confdefs.h <<\EOF
#define HAVE_X_WINDOWS 1
EOF
d3034 41
d3076 13
a3088 5
if test "${USE_X_TOOLKIT}" != "none" ; then
  cat >> confdefs.h <<\EOF
#define USE_X_TOOLKIT 1
EOF

d3090 13
a3102 5
if test "${HAVE_X11}" = "yes" ; then
  cat >> confdefs.h <<\EOF
#define HAVE_X11 1
EOF

d3104 13
a3116 5
if test "${HAVE_XFREE386}" = "yes" ; then
  cat >> confdefs.h <<\EOF
#define HAVE_XFREE386 1
EOF

d3118 13
a3130 5
if test "${HAVE_X_MENU}" = "yes" ; then
  cat >> confdefs.h <<\EOF
#define HAVE_X_MENU 1
EOF

d3132 13
a3144 5
if test "${GNU_MALLOC}" = "yes" ; then
  cat >> confdefs.h <<\EOF
#define GNU_MALLOC 1
EOF

a3145 4
if test "${REL_ALLOC}" = "yes" ; then
  cat >> confdefs.h <<\EOF
#define REL_ALLOC 1
EOF
d3147 1
a3147 5
fi
if test "${LISP_FLOAT_TYPE}" = "yes" ; then
  cat >> confdefs.h <<\EOF
#define LISP_FLOAT_TYPE 1
EOF
d3149 50
d3203 1
d3213 3
a3215 12
  What toolkit should Emacs use?                          ${USE_X_TOOLKIT}"

if test -n "${x_includes}"; then
echo "  Where do we find X Windows header files?                ${x_includes}"
else
echo "  Where do we find X Windows header files?                Standard dirs"
fi
if test -n "${x_libraries}"; then
echo "  Where do we find X Windows libraries?                   ${x_libraries}"
else
echo "  Where do we find X Windows libraries?                   Standard dirs"
fi
d3217 1
a3217 1
echo
d3220 1
a3220 1
test "${prefix}" != NONE &&
d3222 1
a3222 1
test "${exec_prefix}" != NONE &&
d3225 10
a3234 24
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# 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.
#
# By default, configure uses ./config.cache as the cache file,
# 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
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# 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.
(set) 2>&1 |
  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  >> confcache
if cmp -s $cache_file confcache; then
  :
d3236 1
a3236 6
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
a3237 7
rm -f confcache

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d3246 14
a3259 11
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H

# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}

echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
d3265 1
a3265 4
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
d3267 1
a3267 1
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
d3272 2
a3273 2
    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 ;;
d3275 1
a3275 1
    echo "$CONFIG_STATUS generated by autoconf version 2.4"
d3283 45
a3328 1
ac_given_INSTALL="$INSTALL"
d3330 23
a3352 2
trap 'rm -fr `echo "Makefile lib-src/Makefile.in oldXMenu/Makefile \
	man/Makefile lwlib/Makefile src/Makefile.in src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
d3354 9
a3362 3
# Protect against being on the right side of a sed subst in config.status. 
sed 's/%@@/@@@@/; s/@@%/@@@@/; s/%g$/@@g/; /@@g$/s/[\\\\&%]/\\\\&/g; 
 s/@@@@/%@@/; s/@@@@/@@%/; s/@@g$/%g/' > conftest.subs <<\CEOF
a3364 14
s%@@CFLAGS@@%$CFLAGS%g
s%@@CPPFLAGS@@%$CPPFLAGS%g
s%@@CXXFLAGS@@%$CXXFLAGS%g
s%@@DEFS@@%$DEFS%g
s%@@LDFLAGS@@%$LDFLAGS%g
s%@@LIBS@@%$LIBS%g
s%@@exec_prefix@@%$exec_prefix%g
s%@@prefix@@%$prefix%g
s%@@program_transform_name@@%$program_transform_name%g
s%@@host@@%$host%g
s%@@host_alias@@%$host_alias%g
s%@@host_cpu@@%$host_cpu%g
s%@@host_vendor@@%$host_vendor%g
s%@@host_os@@%$host_os%g
d3368 1
a3375 1
s%@@canonical@@%$canonical%g
d3377 2
d3381 2
a3382 2
s%@@sharedstatedir@@%$sharedstatedir%g
s%@@libexecdir@@%$libexecdir%g
a3391 1
s%@@bitmapdir@@%$bitmapdir%g
d3397 1
d3401 1
a3401 56

CEOF
EOF
cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.in oldXMenu/Makefile \
	man/Makefile lwlib/Makefile src/Makefile.in"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust relative srcdir, etc. for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac
  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac
  sed -e "$ac_comsub
s%@@configure_input@@%$configure_input%g
s%@@srcdir@@%$srcdir%g
d3403 1
a3403 2
s%@@INSTALL@@%$INSTALL%g
" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
a3404 1
rm -f conftest.subs
d3406 7
a3412 2
# 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.
d3415 2
a3416 2
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
d3418 1
a3418 1
ac_dD='%g'
d3420 2
a3421 2
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
d3423 1
a3423 1
ac_uD='\4%g'
d3425 2
a3426 2
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
d3428 2
a3429 16
ac_eD='%g'

CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"}
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  cp $ac_given_srcdir/$ac_file_in conftest.in

d3431 4
a3434 12

# Transform confdefs.h into a sed script conftest.vals that substitutes
# 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 in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
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%ac_d%ac_u%gp
s%ac_u%ac_e%gp
a3435 2
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
d3437 2
a3438 6
# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
a3439 2
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
d3441 1
a3441 1
ac_max_here_lines=12
a3442 1
rm -f conftest.tail
d3445 2
a3446 2
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
d3448 9
a3456 11
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  echo 'CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
d3458 18
a3475 1
rm -f conftest.vals
d3477 15
a3491 2
cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
d3493 2
a3494 2
  cat conftest.in >> conftest.h
  rm -f conftest.in
d3496 1
d3504 1
a3505 5
EOF
cat >> $CONFIG_STATUS <<EOF
CPP="$CPP" CPPFLAGS="$CPPFLAGS"
EOF
cat >> $CONFIG_STATUS <<\EOF
a3507 4
### Make the necessary directories, if they don't exist.
for dir in cpp etc ; do
  test -d ${dir} || mkdir ${dir}
done
a3553 7

if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then
  echo creating src/.gdbinit
  echo source $top_srcdir/src/.gdbinit > src/.gdbinit
fi


d3556 3
a3558 3
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
@


1.1.1.19
log
@import emacs-19.30
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.5 
a47 12
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
a50 1
MFLAGS= MAKEFLAGS=
d72 1
a72 6
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir="$ac_optarg" ;;

  -build | --build | --buil | --bui | --bu)
d74 1
a74 1
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a83 6
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;

d134 1
a134 1
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
a135 12
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
a139 2
EOF
    cat << EOF
a159 38
  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir="$ac_optarg" ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir="$ac_optarg" ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir="$ac_optarg" ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir="$ac_optarg" ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir="$ac_optarg" ;;

a171 9
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir="$ac_optarg" ;;

a211 17
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir="$ac_optarg" ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir="$ac_optarg" ;;

a221 7
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir="$ac_optarg" ;;

d231 1
a231 1
    echo "configure generated by autoconf version 2.5"
d277 1
a277 1
  *)
d396 3
a398 6
ac_cpp='echo $CPP $CPPFLAGS 1>&5;
$CPP $CPPFLAGS'
ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
d415 6
d430 2
a431 2
if test "${with_gcc+set}" = set; then
  withval="$with_gcc"
d436 2
a437 2
if test "${with_pop+set}" = set; then
  withval="$with_pop"
d445 2
a446 2
if test "${with_kerberos+set}" = set; then
  withval="$with_kerberos"
d454 2
a455 2
if test "${with_hesiod+set}" = set; then
  withval="$with_hesiod"
d463 2
a464 2
if test "${with_x_toolkit+set}" = set; then
  withval="$with_x_toolkit"
d469 1
a469 1
	    a | at | ath | athe | athen | athena )	val=athena ;;
d472 2
a473 2
{ echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
a636 1
  ## Alpha (DEC) machines.
a640 4
  alpha-*-linux* )
    machine=alpha opsys=linux
  ;;

d732 1
a732 1
  mips-dec-ultrix4.[12]* | mips-dec-bsd* )
a734 3
  mips-dec-ultrix* )
    machine=pmax opsys=ultrix4-3
  ;;
a737 3
  mips-dec-mach_bsd4.3* )
    machine=pmax opsys=mach-bsd4-3
  ;;
d847 1
a847 1
    machine=hp800 opsys=hpux10
a995 5
  mips-mips-riscos5* )
    machine=mips4 opsys=riscos5
    NON_GNU_CC="cc -systype bsd43"
    NON_GNU_CPP="cc -systype bsd43 -E"
  ;;
d1004 2
a1005 2
  m68*-next-* | m68k-*-nextstep* )
    machine=m68k opsys=nextstep
d1106 1
a1106 3
  *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
    | i[345]86-*-solaris2* | i[345]86-*-sunos5* | powerpc*-*-solaris2* \
    | rs6000-*-solaris2*)
a1112 1
      powerpc* | rs6000* )  machine=rs6000 ;;
d1120 1
a1120 2
      *-sunos4.1.[3-9]* | *-sunos4shr*)
		opsys=sunos4shr
a1133 1
		RANLIB="ar -ts"
a1137 1
		RANLIB="ar -ts"
a1145 3
  sparc-*-nextstep* )
    machine=sparc opsys=nextstep
  ;;
d1224 1
a1224 4
      *-isc4.* )		opsys=isc4-1
				GCC_TEST_OPTIONS=-posix
				NON_GCC_TEST_OPTIONS=-Xp
				;;
d1235 1
a1235 1
      *-nextstep* )             opsys=nextstep ;;
a1239 5
  ## Linux/68k
  m68k-*-linux* )
    machine=m68k opsys=linux
  ;;

d1260 3
a1262 2
    *-sysv3* | *-sysvr3* )		opsys=usg5-3 ;;
    *-sysv4.1* | *-sysvr4.1* )
d1265 1
a1265 1
    *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
a1269 1
    *-sysv4* | *-sysvr4* )		opsys=usg5-4 ;;
a1275 4
if test "x$RANLIB" = x; then
  RANLIB=ranlib
fi

a1288 3
# Save the value of CFLAGS that the user specified.
SPECIFIED_CFLAGS="$CFLAGS"

a1335 1

d1353 1
a1353 2

echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
d1438 1
a1438 1
#line 1587 "configure"
d1452 1
a1452 1
#line 1601 "configure"
d1516 2
a1517 1

d1519 1
a1519 9
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL="$ac_cv_path_install"
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL="$ac_install_sh"
  fi
d1565 1
a1565 1
#line 1721 "configure"
d1595 1
a1595 1
#line 1751 "configure"
d1613 1
a1613 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
d1632 1
a1632 1
#line 1788 "configure"
d1645 1
a1645 1

a1646 1
cross_compiling=$ac_cv_c_cross
d1653 1
a1653 1
#line 1810 "configure"
d1675 1
a1675 1
#line 1832 "configure"
d1693 1
a1693 1
#line 1850 "configure"
d1714 1
a1714 1
#line 1871 "configure"
a1734 1

d1748 1
a1748 1
#line 1906 "configure"
a1767 1

d1781 1
a1781 1
#line 1940 "configure"
a1803 1

d1815 1
a1815 1
#line 1975 "configure"
d1854 1
a1854 1
#line 2014 "configure"
a1879 1

d1889 1
a1889 1
#line 2050 "configure"
a1908 1
   HAVE_TIMEVAL=yes
d1925 1
a1925 1
#line 2087 "configure"
a1943 1

d1957 1
a1957 1
#line 2120 "configure"
a1975 1

d1988 1
a1988 1
#line 2152 "configure"
d2009 1
a2009 2

echo "$ac_t""$ac_cv_var_tzname" 1>&6
d2024 1
a2024 1
#line 2189 "configure"
a2083 1

a2146 1

d2165 2
a2166 2
if test "${with_x+set}" = set; then
  withval="$with_x"
d2219 1
a2219 1
#line 2386 "configure"
d2282 1
a2282 1
#line 2449 "configure"
a2418 16
if test "${opsys}" = "hpux9"; then
  case "${x_libraries}" in
    *X11R4* )
      opsysfile="s/hpux9-x11r4.h"
      ;;
  esac
fi

if test "${opsys}" = "hpux9shr"; then
  case "${x_libraries}" in
    *X11R4* )
      opsysfile="s/hpux9shxr4.h"
      ;;
  esac
fi

d2496 1
a2496 1
configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
d2498 1
a2498 1
configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
d2505 1
a2505 1
configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
d2507 1
a2507 1
configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
d2518 1
a2518 1
if test "x$SPECIFIED_CFLAGS" = x; then
d2548 1
a2548 1
LIBS="$libsrc_libs $LIBS"
d2551 1
a2551 2
ac_lib_var=`echo dnet | tr './+' '__p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d2557 1
a2557 1
#line 2741 "configure"
d2567 1
a2567 1
  eval "ac_cv_lib_$ac_lib_var=yes"
d2570 1
a2570 1
  eval "ac_cv_lib_$ac_lib_var=no"
d2576 1
a2576 1
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
d2578 1
a2578 1
    ac_tr_lib=HAVE_LIB`echo dnet | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
d2591 1
a2591 2
ac_lib_var=`echo Xbsd | tr './+' '__p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d2597 1
a2597 1
#line 2782 "configure"
d2607 1
a2607 1
  eval "ac_cv_lib_$ac_lib_var=yes"
d2610 1
a2610 1
  eval "ac_cv_lib_$ac_lib_var=no"
d2616 1
a2616 1
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
d2625 1
a2625 2
ac_lib_var=`echo pthreads | tr './+' '__p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d2631 1
a2631 1
#line 2817 "configure"
d2641 1
a2641 1
  eval "ac_cv_lib_$ac_lib_var=yes"
d2644 1
a2644 1
  eval "ac_cv_lib_$ac_lib_var=no"
d2650 1
a2650 1
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
d2652 1
a2652 1
    ac_tr_lib=HAVE_LIB`echo pthreads | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
d2681 2
a2682 2
  if test "${opsys}" = "linux"; then
    echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
d2684 1
a2684 1
#line 2870 "configure"
d2694 1
a2694 1
  xlinux_first_failure=no
d2697 1
a2697 1
  xlinux_first_failure=yes
d2701 1
a2701 1
    if test "${xlinux_first_failure}" = "yes"; then
d2711 1
a2711 1
#line 2897 "configure"
d2721 1
a2721 1
  xlinux_second_failure=no
d2724 1
a2724 1
  xlinux_second_failure=yes
d2728 1
a2728 1
      if test "${xlinux_second_failure}" = "yes"; then
d2752 1
a2752 1
#line 2938 "configure"
d2758 1
a2758 1
char $ac_func();
d2786 1
a2786 1
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
d2801 1
a2801 1
#line 2987 "configure"
d2830 1
a2830 1
#line 3016 "configure"
d2859 1
a2859 1
#line 3045 "configure"
a2876 1

d2890 1
a2890 1
#line 3077 "configure"
a2923 1

d2948 1
a2948 1
#line 3136 "configure"
a2967 1

d2976 1
a2976 1
#line 3165 "configure"
d2982 1
a2982 1
char $ac_func();
d3030 1
a3030 1
#line 3219 "configure"
a3057 1

d3069 1
a3069 2
ac_lib_var=`echo m | tr './+' '__p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d3075 1
a3075 1
#line 3266 "configure"
d3085 1
a3085 1
  eval "ac_cv_lib_$ac_lib_var=yes"
d3088 1
a3088 1
  eval "ac_cv_lib_$ac_lib_var=no"
d3094 1
a3094 1
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
d3096 1
a3096 1
    ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
d3108 2
a3109 2
random lrand48 bcopy bcmp logb frexp fmod ftime res_init setsid \
strerror fpathconf select mktime eaccess getpagesize tzset
d3116 1
a3116 1
#line 3307 "configure"
d3122 1
a3122 1
char $ac_func();
d3150 1
a3150 1
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
a3160 91
echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test $ac_cv_func_tzset = yes; then
if test "$cross_compiling" = yes; then
  # If we have tzset, assume the worst when cross-compiling.
emacs_cv_localtime_cache=yes
else
cat > conftest.$ac_ext <<EOF
#line 3362 "configure"
#include "confdefs.h"
#include <time.h>
#if STDC_HEADERS
# include <stdlib.h>
#endif
main()
{
  time_t now = time ((time_t *) 0);
  int hour;
  if (putenv ("TZ=GMT0") != 0)
    exit (1);
  hour = localtime (&now)->tm_hour;
  if (putenv ("TZ=PST8") != 0)
    exit (1);
  exit (localtime (&now)->tm_hour == hour);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  emacs_cv_localtime_cache=no
else
  emacs_cv_localtime_cache=yes
fi
fi
rm -fr conftest*
else
	# If we lack tzset, report that localtime does not cache TZ,
	# since we can't invalidate the cache if we don't have tzset.
	emacs_cv_localtime_cache=no
fi
fi
echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
if test $emacs_cv_localtime_cache = yes; then
  cat >> confdefs.h <<\EOF
#define LOCALTIME_CACHE 1
EOF

fi

if test $HAVE_TIMEVAL = yes; then
echo $ac_n "checking whether gettimeofday can't accept two arguments""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
#line 3405 "configure"
#include "confdefs.h"

#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
#endif
#endif
  
int main() { return 0; }
int t() {

  struct timeval time;
  struct timezone dummy;
  gettimeofday (&time, &dummy);

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
else
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6
   cat >> confdefs.h <<\EOF
#define GETTIMEOFDAY_ONE_ARGUMENT 1
EOF

fi
rm -f conftest*

fi

d3167 1
a3167 1
#line 3449 "configure"
d3173 1
a3173 1
char socket();
d3214 1
a3214 1
#line 3496 "configure"
d3246 1
a3246 1
#line 3528 "configure"
a3326 1

d3517 1
a3517 1
    echo "$CONFIG_STATUS generated by autoconf version 2.5"
d3528 2
a3529 2
trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
	man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
d3531 2
a3532 2
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@@/@@@@/; s/@@%/@@@@/; s/%g$/@@g/; /@@g$/s/[\\\\&%]/\\\\&/g;
a3544 12
s%@@bindir@@%$bindir%g
s%@@sbindir@@%$sbindir%g
s%@@libexecdir@@%$libexecdir%g
s%@@datadir@@%$datadir%g
s%@@sysconfdir@@%$sysconfdir%g
s%@@sharedstatedir@@%$sharedstatedir%g
s%@@localstatedir@@%$localstatedir%g
s%@@libdir@@%$libdir%g
s%@@includedir@@%$includedir%g
s%@@oldincludedir@@%$oldincludedir%g
s%@@infodir@@%$infodir%g
s%@@mandir@@%$mandir%g
d3562 6
a3583 1
s%@@RANLIB@@%$RANLIB%g
d3589 2
a3590 2
CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
	man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in"}
d3665 1
a3665 1
CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h:src/config.in"}
d3683 1
a3683 1
# Protect against being on the right side of a sed subst in config.status.
d3754 2
a3755 3
# Build src/Makefile from ${srcdir}/src/Makefile.c
# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
# This must be done after src/config.h is built, since we rely on that file.
d3772 1
a3772 1
      < Makefile.c > junk1.c
d3775 1
a3775 1
      < Makefile.c > junk.c
d3788 1
a3788 1
      < Makefile.c > junk1.c
d3791 1
a3791 1
      < Makefile.c > junk.c
@


1.1.1.20
log
@import emacs-19.31
@
text
@d4 2
a5 2
# Generated automatically using autoconf version 2.10 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
d163 1
a163 2
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
d165 1
a165 2
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
d175 1
a175 2
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
d189 1
a190 3
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
d340 1
a340 1
    echo "configure generated by autoconf version 2.10"
d505 6
a510 3
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
d528 1
a528 2
locallisppath='${datadir}/emacs/${version}/site-lisp:'\
'${datadir}/emacs/site-lisp'
d748 2
a749 2
  alpha-*-linux* | alpha-*-lignux* )
    machine=alpha opsys=lignux
d756 1
a756 1

d814 1
a814 1
    ## Prevents spurious white space in makefiles - d.m.cooke@@larc.nasa.gov
d864 1
a864 1
      fi
a921 1
    NON_GNU_CPP="/lib/cpp"
a926 5
  ## Harris power pc NightHawk running Power UNIX (Series 6000)
  powerpc-harris-powerunix )
    machine=nh6000 opsys=powerunix
    NON_GNU_CPP="cc -Xo -E -P"
  ;;
a978 3
  hppa-*-nextstep* )
    machine=hp800 opsys=nextstep
  ;;
d1015 1
a1015 1
  ;;
d1021 1
a1021 1
  ;;
d1174 1
a1174 1
  mips-siemens-sysv* | mips-sni-sysv*)
d1196 1
a1196 1
    machine=iris4d opsys=irix6-0  NON_GNU_CPP=/lib/cpp
a1227 4
  sparc-*-linux* | sparc-*-lignux* )
    machine=sparc opsys=lignux
  ;;

d1249 1
a1249 8
      *-sunos4.1.[3-9]*-noshare )
		opsys=sunos4-1-3
		NON_GNU_CPP=/usr/lib/cpp
		NON_GCC_TEST_OPTIONS=-Bstatic
		GCC_TEST_OPTIONS=-static
		;;
      *-sunos4* | *-sunos )
		opsys=sunos4-1
d1268 1
a1268 1
		opsys=sol2-4
a1272 11
    ## Watch out for a compiler that we know will not work.
    case "${canonical}" in
     *-solaris* | *-sunos5* )
		if [ "x$CC" = x/usr/ucb/cc ]; then
		  ## /usr/ucb/cc doesn't work;
		  ## we should find some other compiler that does work.
		  unset CC
		fi
		;;
      *) ;;
    esac
d1316 1
a1316 1

d1363 1
a1363 1
      *-linux* | *-lignux* )	opsys=lignux ;;
d1374 3
a1376 3
  ## Lignux/68k
  m68k-*-linux* | m68k-*-lignux* )
    machine=m68k opsys=lignux
d1405 1
a1405 5
	  if [ -f /usr/ccs/lib/cpp ]; then
	    NON_GNU_CPP=/usr/ccs/lib/cpp
	  else
	    NON_GNU_CPP=/lib/cpp
	  fi
d1456 1
a1465 49
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  ac_prog_rejected=no
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# -gt 0; then
    # We chose a different compiler from the bogus one.
    # 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.
    shift
    set dummy "$ac_dir/$ac_word" "$@@"
    shift
    ac_cv_prog_CC="$@@"
  fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi
d1476 1
a1476 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1540 1
a1540 1
fi
d1545 1
a1545 1
fi
d1586 1
a1586 1
#line 1673 "configure"
d1591 1
a1591 2
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1600 1
a1600 1
#line 1688 "configure"
d1605 1
a1605 2
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1720 1
a1720 1
#line 1809 "configure"
d1742 1
a1742 1
for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h linux/version.h
d1750 1
a1750 1
#line 1839 "configure"
d1754 1
a1754 2
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1787 1
a1787 1
#line 1877 "configure"
d1791 1
a1791 1
{ (eval echo configure:1881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1809 1
a1809 1
#line 1899 "configure"
d1816 1
a1816 2
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1831 1
a1831 1
#line 1922 "configure"
d1849 1
a1849 1
#line 1940 "configure"
d1867 1
a1867 1
  :
d1870 1
a1870 1
#line 1961 "configure"
d1881 1
a1881 1
{ (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1905 1
a1905 1
#line 1996 "configure"
d1915 1
a1915 1
if { (eval echo configure:2006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1939 1
a1939 1
#line 2030 "configure"
d1952 1
a1952 1
if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1974 1
a1974 1
#line 2065 "configure"
d1994 1
a1994 1
if { (eval echo configure:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2013 1
a2013 1
#line 2104 "configure"
d2021 2
a2022 2
extern "C" void (*signal (int, void (*)(int)))(int);
#else
a2023 2
#endif

d2029 1
a2029 1
if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2049 1
a2049 1
#line 2142 "configure"
d2066 1
a2066 1
if { (eval echo configure:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2076 1
   HAVE_TIMEVAL=no
d2086 1
a2086 1
#line 2180 "configure"
d2095 1
a2095 1
if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2119 1
a2119 1
#line 2213 "configure"
d2128 1
a2128 1
if { (eval echo configure:2222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2151 1
a2151 1
#line 2245 "configure"
d2162 1
a2162 1
if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2188 1
a2188 1
#line 2282 "configure"
d2201 1
a2201 1
static struct point const zero = {0,0};
d2238 1
a2238 1
if { (eval echo configure:2332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2335 1
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
d2337 1
a2337 2
  # The user explicitly disabled X.
  have_x=disabled
d2340 1
a2340 2
    # Both variables are already set.
    have_x=yes
d2342 1
a2342 1
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
d2346 1
a2346 1
ac_x_includes=NO ac_x_libraries=NO
d2356 1
d2358 1
a2358 1
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
d2380 4
a2383 5
if test "$ac_x_includes" = NO; then
  # 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

  # First, try using that file with no special directory specified.
d2385 1
a2385 1
#line 2482 "configure"
d2389 1
a2389 2
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2393 1
a2393 2
  # We can compile using X headers with no special include directory.
ac_x_includes=
d2397 1
a2397 2
  # Look for the header file in a standard set of common directories.
  for ac_dir in               \
d2435 1
a2435 1
      ac_x_includes=$ac_dir
a2440 4
fi # $ac_x_includes = NO

if test "$ac_x_libraries" = NO; then
  # Check for the libraries.
d2442 5
a2446 7
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc

  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS="$LIBS"
  LIBS="-l$x_direct_test_library $LIBS"
d2448 1
a2448 1
#line 2554 "configure"
d2456 1
a2456 1
if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2458 1
a2458 3
  LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=
d2502 1
a2502 1
      ac_x_libraries=$ac_dir
d2510 5
a2514 9
fi # $ac_x_libraries = NO

if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
else
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
d2518 1
a2518 1
  eval "$ac_cv_have_x"
d2521 2
a2522 3
if test "$have_x" != yes; then
  echo "$ac_t""$have_x" 1>&6
  no_x=yes
a2523 1
  # If each of the values was on the command line, it overrides each guess.
d2526 1
a2526 3
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
d2547 1
a2547 1
  # accumulate include directories that have X11 bitmap subdirectories
d2566 3
a2568 4
      athena | lucid ) USE_X_TOOLKIT=LUCID ;;
      motif ) USE_X_TOOLKIT=MOTIF ;;
      no ) USE_X_TOOLKIT=none ;;
      * ) USE_X_TOOLKIT=maybe ;;
d2577 1
d2580 1
a2580 1
HAVE_MENUS=no
d2582 1
a2582 1
  yes ) HAVE_MENUS=yes ;;
d2611 1
a2611 1
### GCC 2.5 on Lignux needs them to be different because it treats -g
d2733 1
a2733 1
ac_lib_var=`echo dnet'_'dnet_ntoa | tr './+\055' '__p_'`
d2740 1
a2740 1
#line 2856 "configure"
a2741 4
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();
d2748 1
a2748 1
if { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2774 1
a2774 1
ac_lib_var=`echo Xbsd'_'main | tr './+\055' '__p_'`
d2781 1
a2781 1
#line 2901 "configure"
d2789 1
a2789 1
if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2809 1
a2809 1
ac_lib_var=`echo pthreads'_'cma_open | tr './+\055' '__p_'`
d2816 1
a2816 1
#line 2936 "configure"
a2817 4
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char cma_open();
d2824 1
a2824 1
if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2863 1
a2863 2
  LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
  LIBS="$LIBX $LIBS"
d2866 1
a2866 10
  # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
  # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
  # but it's more convenient here to set LD_RUN_PATH
  # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
  if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
    LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
    export LD_RUN_PATH
  fi

  if test "${opsys}" = "lignux"; then
d2869 1
a2869 1
#line 3003 "configure"
d2877 1
a2877 1
if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2896 1
a2896 1
#line 3030 "configure"
d2904 1
a2904 1
if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2937 1
a2937 1
#line 3071 "configure"
a2942 2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
d2959 1
a2959 1
if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
a2982 62
if test "${window_system}" = "x11"; then
  echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
  cat > conftest.$ac_ext <<EOF
#line 3122 "configure"
#include "confdefs.h"
#include <X11/Xlib.h>
int main() { return 0; }
int t() {
#if XlibSpecificationRelease < 6
fail;
#endif

; return 0; }
EOF
if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  echo "$ac_t""6 or newer" 1>&6
    cat >> confdefs.h <<\EOF
#define HAVE_X11R6 1
EOF

else
  rm -rf conftest*
  echo "$ac_t""before 6" 1>&6
fi
rm -f conftest*

fi

if test x"${USE_X_TOOLKIT}" = xmaybe; then
  echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
  cat > conftest.$ac_ext <<EOF
#line 3151 "configure"
#include "confdefs.h"
#include <X11/Xlib.h>
int main() { return 0; }
int t() {
#if XlibSpecificationRelease < 5
fail;
#endif

; return 0; }
EOF
if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  echo "$ac_t""5 or newer; use toolkit by default" 1>&6
    USE_X_TOOLKIT=LUCID
    cat >> confdefs.h <<\EOF
#define HAVE_X11R5 1
EOF

else
  rm -rf conftest*
  echo "$ac_t""before 5; do not use toolkit by default" 1>&6
    USE_X_TOOLKIT=none
fi
rm -f conftest*

fi

X_TOOLKIT_TYPE=$USE_X_TOOLKIT

d2986 1
a2986 1
#line 3184 "configure"
d2997 1
a2997 1
if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2999 1
a2999 2
  echo "$ac_t""6 or newer" 1>&6
    HAVE_X11XTR6=yes
d3006 1
a3006 38
  echo "$ac_t""before 6" 1>&6
    HAVE_X11XTR6=no
fi
rm -f conftest*


  OLDLIBS="$LIBS"
  if test x$HAVE_X11XTR6 = xyes; then
    LIBS="-lXt -lSM -lICE $LIBS"
  else
    LIBS="-lXt $LIBS"
  fi
  echo $ac_n "checking for -lXmu""... $ac_c" 1>&6
ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | tr './+\055' '__p_'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lXmu  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3225 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XmuConvertStandardSelection();

int main() { return 0; }
int t() {
XmuConvertStandardSelection()
; return 0; }
EOF
if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a3008 15
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo Xmu | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lXmu $LIBS"

else
  echo "$ac_t""no" 1>&6
fi
a3009 1
  LIBS="$OLDLIBS"
d3015 1
a3015 1
#line 3267 "configure"
d3023 1
a3023 1
if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3044 1
a3044 1
#line 3296 "configure"
d3052 1
a3052 1
if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3076 1
a3076 1
#line 3328 "configure"
d3100 1
a3100 1
if { (eval echo configure:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3135 1
a3135 1
#line 3387 "configure"
d3164 1
a3164 1
#line 3416 "configure"
a3169 2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
d3186 1
a3186 1
if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3218 1
a3218 1
#line 3472 "configure"
d3237 1
a3237 1
{ (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3258 1
a3258 1
ac_lib_var=`echo m'_'sqrt | tr './+\055' '__p_'`
d3265 1
a3265 1
#line 3519 "configure"
a3266 4
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char sqrt();
d3270 1
a3270 1
sqrt()
d3273 1
a3273 1
if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
a3296 1

d3299 1
a3299 1
strerror fpathconf select mktime eaccess getpagesize tzset setlocale
d3306 1
a3306 1
#line 3565 "configure"
a3311 2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
d3328 1
a3328 1
if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
a3350 49
# Check this now, so that we will NOT find the above functions in ncurses.
# That is because we have not set up to link ncurses in lib-src.
# It's better to believe a function is not available
# than to expect to find it in ncurses.
echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
ac_lib_var=`echo ncurses'_'tparm | tr './+\055' '__p_'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lncurses  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3624 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char tparm();

int main() { return 0; }
int t() {
tparm()
; return 0; }
EOF
if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo ncurses | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lncurses $LIBS"

else
  echo "$ac_t""no" 1>&6
fi


d3355 1
a3355 1
  if test x$ac_cv_func_tzset = xyes; then
d3361 1
a3361 1
#line 3671 "configure"
a3366 8
extern char **environ;
unset_TZ ()
{
  char **from, **to;
  for (to = from = environ; (*to = *from); from++)
    if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
      to++;
}
d3370 1
a3370 1
  int hour_GMT0, hour_unset;
d3373 1
a3373 3
  hour_GMT0 = localtime (&now)->tm_hour;
  unset_TZ ();
  hour_unset = localtime (&now)->tm_hour;
d3376 1
a3376 6
  if (localtime (&now)->tm_hour == hour_GMT0)
    exit (1);
  unset_TZ ();
  if (localtime (&now)->tm_hour != hour_unset)
    exit (1);
  exit (0);
d3379 1
a3379 1
{ (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3401 1
a3401 1
if test "x$HAVE_TIMEVAL" = xyes; then
d3404 1
a3404 1
#line 3729 "configure"
d3427 1
a3427 1
if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3448 1
a3448 1
#line 3773 "configure"
a3453 2
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
d3470 1
a3470 1
if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3495 1
a3495 1
#line 3822 "configure"
d3499 1
a3499 2
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3527 1
a3527 1
#line 3855 "configure"
d3531 1
a3531 2
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3666 1
a3666 1
if test "${HAVE_MENUS}" = "yes" ; then
d3668 1
a3668 1
#define HAVE_MENUS 1
d3799 1
a3799 1
    echo "$CONFIG_STATUS generated by autoconf version 2.10"
a3811 2
EOF
cat >> $CONFIG_STATUS <<EOF
d3814 2
a3815 2
sed 's/%@@/@@@@/; s/@@%/@@@@/; s/%g\$/@@g/; /@@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@@@/%@@/; s/@@@@/@@%/; s/@@g\$/%g/' > conftest.subs <<\\CEOF
d3978 1
a3978 1
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
a4025 6
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
    fi
@


1.1.1.21
log
@import emacs-19.32
@
text
@d23 1
a23 1
  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif/no)"
d628 1
a628 2
vpath %.in $(srcdir)\
vpath %.texi $(srcdir)'
d715 1
a715 1
      i[3456]86-*-netbsd*) machine=intel386 ;;
d751 2
a752 2
  alpha-*-linux-gnu* )
    machine=alpha opsys=gnu-linux
d822 1
a822 1
  i[3456]86-cubix-sysv* )
d1001 1
a1001 1
  i[3456]86-ibm-aix1.1* )
d1004 1
a1004 1
  i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
d1056 1
a1056 1
  i[3456]86-intsys-sysv* )
d1061 1
a1061 1
  i[3456]86-prime-sysv* )
d1066 1
a1066 1
  i[3456]86-sequent-bsd* )
d1072 1
a1072 1
  i[3456]86-sequent-ptx* )
a1076 5
  ## ncr machine running svr4.3.
  i[3456]86-ncr-sysv4.3 )
    machine=ncr386 opsys=usg5-4-3
  ;;

d1079 1
a1079 1
  i[3456]86-ncr-sysv* )
d1208 1
a1208 3
    machine=iris4d opsys=irix6-0
    NON_GNU_CPP=/lib/cpp
    NON_GCC_TEST_OPTIONS=-32
d1240 2
a1241 2
  sparc-*-linux-gnu* )
    machine=sparc opsys=gnu-linux
d1245 1
a1245 1
    | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
d1251 3
a1253 3
      i[3456]86-sun-sunos[34]* )	machine=sun386 ;;
      i[3456]86-*-* )     machine=intel386 ;;
      powerpc* | rs6000* )  machine=ibmrs6000 ;;
d1259 1
a1259 1
      i[3456]86-*-sunos4	  ) opsys=sunos4-0 ;;
d1265 1
a1265 1
      *-sunos4.1.[3-9]*noshare )
d1383 1
a1383 1
  i[3456]86-*-* )
d1397 1
a1397 1
      *-linux-gnu* )		opsys=gnu-linux ;;
a1398 6
      *-sco3.2v5* )		opsys=sco5 
				NON_GNU_CPP=/lib/cpp
				# Prevent -belf from being passed to $CPP.
				# /lib/cpp does not accept it.
				OVERRIDE_CPPFLAGS=" "
				;;
d1400 1
a1400 2
      *-bsdi2.0* )		opsys=bsdos2 ;;
      *-bsdi2* )		opsys=bsdos2-1 ;;
d1408 3
a1410 3
  ## Linux/68k-based GNU system
  m68k-*-linux-gnu* )
    machine=m68k opsys=gnu-linux
d1562 1
a1562 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1672 1
a1672 1
#line 1688 "configure"
d1678 1
a1678 1
{ (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1687 1
a1687 1
#line 1703 "configure"
d1693 1
a1693 1
{ (eval echo configure:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1808 1
a1808 1
#line 1824 "configure"
d1838 1
a1838 1
#line 1854 "configure"
d1843 1
a1843 1
{ (eval echo configure:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1876 1
a1876 1
#line 1892 "configure"
d1880 1
a1880 1
{ (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1898 1
a1898 1
#line 1914 "configure"
d1906 1
a1906 1
{ (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1921 1
a1921 1
#line 1937 "configure"
d1939 1
a1939 1
#line 1955 "configure"
d1960 1
a1960 1
#line 1976 "configure"
d1971 1
a1971 1
{ (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1995 1
a1995 1
#line 2011 "configure"
d2005 1
a2005 1
if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2029 1
a2029 1
#line 2045 "configure"
d2042 1
a2042 1
if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2064 1
a2064 1
#line 2080 "configure"
d2084 1
a2084 1
if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2103 1
a2103 1
#line 2119 "configure"
d2121 1
a2121 1
if { (eval echo configure:2137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2141 1
a2141 1
#line 2157 "configure"
d2158 1
a2158 1
if { (eval echo configure:2174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2179 1
a2179 1
#line 2195 "configure"
d2188 1
a2188 1
if { (eval echo configure:2204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2212 1
a2212 1
#line 2228 "configure"
d2221 1
a2221 1
if { (eval echo configure:2237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2244 1
a2244 1
#line 2260 "configure"
d2255 1
a2255 1
if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2281 1
a2281 1
#line 2297 "configure"
d2331 1
a2331 1
if { (eval echo configure:2347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2481 1
a2481 1
#line 2497 "configure"
d2486 1
a2486 1
{ (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2553 1
a2553 1
#line 2569 "configure"
d2561 1
a2561 1
if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2726 1
a2726 1
### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
d2844 1
a2844 6
if test x"${OVERRIDE_CPPFLAGS}" != x; then
  CPPFLAGS="${OVERRIDE_CPPFLAGS}"
else
  CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
fi

d2855 1
a2855 1
#line 2876 "configure"
d2867 1
a2867 1
if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2900 1
a2900 1
#line 2921 "configure"
d2908 1
a2908 1
if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2935 1
a2935 1
#line 2956 "configure"
d2947 1
a2947 1
if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2999 1
a2999 1
  if test "${opsys}" = "gnu-linux"; then
d3002 1
a3002 1
#line 3023 "configure"
d3010 1
a3010 1
if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3029 1
a3029 1
#line 3050 "configure"
d3037 1
a3037 1
if { (eval echo configure:3058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3070 1
a3070 1
#line 3091 "configure"
d3094 1
a3094 1
if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3121 1
a3121 1
#line 3142 "configure"
d3132 1
a3132 1
if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3147 1
a3147 1
if test "${window_system}" = "x11"; then
d3150 1
a3150 1
#line 3171 "configure"
d3161 1
a3161 1
if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3163 2
a3164 2
  echo "$ac_t""5 or newer" 1>&6
    HAVE_X11R5=yes
d3171 2
a3172 3
  
    HAVE_X11R5=no
    echo "$ac_t""before 5" 1>&6
a3177 30
if test x"${USE_X_TOOLKIT}" = xmaybe; then
  if test x"${HAVE_X11R5}" = xyes; then
    echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
    cat > conftest.$ac_ext <<EOF
#line 3204 "configure"
#include "confdefs.h"

#include <X11/Intrinsic.h>
#include <X11/Xaw/Simple.h>
int main() { return 0; }
int t() {

; return 0; }
EOF
if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  echo "$ac_t""5 or newer" 1>&6
       USE_X_TOOLKIT=LUCID
else
  rm -rf conftest*
  echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
       USE_X_TOOLKIT=none
fi
rm -f conftest*

  else
    USE_X_TOOLKIT=none
  fi
fi

d3183 1
a3183 1
#line 3235 "configure"
d3194 1
a3194 1
if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3224 1
a3224 1
#line 3276 "configure"
d3236 1
a3236 1
if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3266 1
a3266 1
#line 3318 "configure"
d3274 1
a3274 1
if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3295 1
a3295 1
#line 3347 "configure"
d3303 1
a3303 1
if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3327 1
a3327 1
#line 3379 "configure"
d3351 1
a3351 1
if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3386 1
a3386 1
#line 3438 "configure"
d3415 1
a3415 1
#line 3467 "configure"
d3439 1
a3439 1
if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3471 1
a3471 1
#line 3523 "configure"
d3490 1
a3490 1
{ (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3518 1
a3518 1
#line 3570 "configure"
d3530 1
a3530 1
if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3557 1
a3557 1
strerror fpathconf select mktime euidaccess getpagesize tzset setlocale
d3564 1
a3564 1
#line 3616 "configure"
d3588 1
a3588 1
if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3623 1
a3623 1
#line 3675 "configure"
d3635 1
a3635 1
if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3670 1
a3670 1
#line 3722 "configure"
d3703 1
a3703 1
{ (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3728 1
a3728 1
#line 3780 "configure"
d3751 1
a3751 1
if { (eval echo configure:3803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3772 1
a3772 1
#line 3824 "configure"
d3796 1
a3796 1
if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3821 1
a3821 1
#line 3873 "configure"
d3826 1
a3826 1
{ (eval echo configure:3878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3854 1
a3854 1
#line 3906 "configure"
d3859 1
a3859 1
{ (eval echo configure:3911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
@


1.1.1.22
log
@import emacs-19.33
@
text
@a749 3
    # This is needed to find X11R6.1 libraries for certain tests.
    NON_GCC_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
    GCC_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
a1070 6
  ## Sequent Symmetry running ptx 4, which is a modified SVR4.
  i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
    machine=sequent-ptx opsys=ptx4
    NON_GNU_CPP=/lib/cpp
  ;;

d1269 4
a1278 4
      *-sunos4.1.[3-9]* | *-sunos4shr*)
		opsys=sunos4shr
		NON_GNU_CPP=/usr/lib/cpp
		;;
d1577 1
a1577 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1687 1
a1687 1
#line 1697 "configure"
d1693 1
a1693 1
{ (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1702 1
a1702 1
#line 1712 "configure"
d1708 1
a1708 1
{ (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1823 1
a1823 1
#line 1833 "configure"
d1853 1
a1853 1
#line 1863 "configure"
d1858 1
a1858 1
{ (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1891 1
a1891 1
#line 1901 "configure"
d1895 1
a1895 1
{ (eval echo configure:1905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1913 1
a1913 1
#line 1923 "configure"
d1921 1
a1921 1
{ (eval echo configure:1931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1936 1
a1936 1
#line 1946 "configure"
d1954 1
a1954 1
#line 1964 "configure"
d1975 1
a1975 1
#line 1985 "configure"
d1986 1
a1986 1
{ (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2010 1
a2010 1
#line 2020 "configure"
d2020 1
a2020 1
if { (eval echo configure:2030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2044 1
a2044 1
#line 2054 "configure"
d2057 1
a2057 1
if { (eval echo configure:2067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2079 1
a2079 1
#line 2089 "configure"
d2099 1
a2099 1
if { (eval echo configure:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2118 1
a2118 1
#line 2128 "configure"
d2136 1
a2136 1
if { (eval echo configure:2146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2156 1
a2156 1
#line 2166 "configure"
d2173 1
a2173 1
if { (eval echo configure:2183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2194 1
a2194 1
#line 2204 "configure"
d2203 1
a2203 1
if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2227 1
a2227 1
#line 2237 "configure"
d2236 1
a2236 1
if { (eval echo configure:2246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2259 1
a2259 1
#line 2269 "configure"
d2270 1
a2270 1
if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2296 1
a2296 1
#line 2306 "configure"
d2346 1
a2346 1
if { (eval echo configure:2356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2496 1
a2496 1
#line 2506 "configure"
d2501 1
a2501 1
{ (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2568 1
a2568 1
#line 2578 "configure"
d2576 1
a2576 1
if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2875 1
a2875 1
#line 2885 "configure"
d2887 1
a2887 1
if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2920 1
a2920 1
#line 2930 "configure"
d2928 1
a2928 1
if { (eval echo configure:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2955 1
a2955 1
#line 2965 "configure"
d2967 1
a2967 1
if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3022 1
a3022 1
#line 3032 "configure"
d3030 1
a3030 1
if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3049 1
a3049 1
#line 3059 "configure"
d3057 1
a3057 1
if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3090 1
a3090 1
#line 3100 "configure"
d3114 1
a3114 1
if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3141 1
a3141 1
#line 3151 "configure"
d3152 1
a3152 1
if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3170 1
a3170 1
#line 3180 "configure"
d3181 1
a3181 1
if { (eval echo configure:3191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3203 1
a3203 1
#line 3213 "configure"
d3213 1
a3213 1
if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3234 1
a3234 1
#line 3244 "configure"
d3245 1
a3245 1
if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3275 1
a3275 1
#line 3285 "configure"
d3287 1
a3287 1
if { (eval echo configure:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3317 1
a3317 1
#line 3327 "configure"
d3325 1
a3325 1
if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3346 1
a3346 1
#line 3356 "configure"
d3354 1
a3354 1
if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3378 1
a3378 1
#line 3388 "configure"
d3402 1
a3402 1
if { (eval echo configure:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3437 1
a3437 1
#line 3447 "configure"
d3466 1
a3466 1
#line 3476 "configure"
d3490 1
a3490 1
if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3522 1
a3522 1
#line 3532 "configure"
d3541 1
a3541 1
{ (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3569 1
a3569 1
#line 3579 "configure"
d3581 1
a3581 1
if { (eval echo configure:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3615 1
a3615 1
#line 3625 "configure"
d3639 1
a3639 1
if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3674 1
a3674 1
#line 3684 "configure"
d3686 1
a3686 1
if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3721 1
a3721 1
#line 3731 "configure"
a3734 2
char TZ_GMT0[] = "TZ=GMT0";
char TZ_PST8[] = "TZ=PST8";
d3739 1
a3739 1
  if (putenv (TZ_GMT0) != 0)
d3744 1
a3744 1
  if (putenv (TZ_PST8) != 0)
d3754 1
a3754 1
{ (eval echo configure:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3779 1
a3779 1
#line 3791 "configure"
d3802 1
a3802 1
if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3823 1
a3823 1
#line 3835 "configure"
d3847 1
a3847 1
if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d3872 1
a3872 1
#line 3884 "configure"
d3877 1
a3877 1
{ (eval echo configure:3889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3905 1
a3905 1
#line 3917 "configure"
d3910 1
a3910 1
{ (eval echo configure:3922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
@


1.1.1.23
log
@import emacs-19.34
@
text
@d751 2
a752 2
    NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
    GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
a1656 10
if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
then
  ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
fi

if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
then
  ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
fi

@


1.1.1.24
log
@import emacs-20.1
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.12 
a20 2
  --with-kerberos5         support Kerberos version 5 authenticated POP"
ac_help="$ac_help
a63 2
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
d345 1
a345 1
    echo "configure generated by autoconf version 2.12"
d447 4
a450 4
# 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).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
a451 3
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_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
a512 1
cross_compiling=$ac_cv_prog_cc_cross
d531 1
a531 1
'${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
d534 1
a561 18
# Check whether --with-kerberos5 or --without-kerberos5 was given.
if test "${with_kerberos5+set}" = set; then
  withval="$with_kerberos5"
  if test "${with_kerberos5+set}" = set; then
  if test "${with_kerberos+set}" != set; then
    with_kerberos=yes
    cat >> confdefs.h <<\EOF
#define KERBEROS 1
EOF

  fi
fi
cat >> confdefs.h <<\EOF
#define KERBEROS5 1
EOF

fi

a662 1
echo "configure:689: checking host system type" >&5
d677 3
a679 3
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a715 1
      alpha*-*-netbsd*)	machine=alpha ;;
a722 15
      vax-*-netbsd*)	machine=vax ;;
    esac
  ;;

  ## OpenBSD ports
  *-*-openbsd* )
    opsys=openbsd
    case "${canonical}" in
      alpha*-*-openbsd*)	machine=alpha ;;
      i386-*-openbsd*)	machine=intel386 ;;
      m68k-*-openbsd*)  machine=hp9000s300 ;;
      mipsel-*-openbsd*) machine=pmax ;;
      ns32k-*-openbsd*)	machine=ns32000 ;;
      sparc-*-openbsd*)	machine=sparc ;;
      vax-*-netbsd*)	machine=vax ;;
d731 1
a731 19
    ## This name is riscix12 instead of riscix1.2
    ## to avoid a file name conflict on MSDOS.
    machine=acorn opsys=riscix12
  ;;

  ## BSDI ports
  *-*-bsdi* )
    opsys=bsdi
    case "${canonical}" in
      i[345]86-*-bsdi*) machine=intel386 ;;
      sparc-*-bsdi*)  machine=sparc ;;
      powerpc-*-bsdi*)  machine=powerpc ;;
    esac
    case "${canonical}" in
      *-*-bsd386* | *-*-bsdi1* )	opsys=bsd386 ;;
      *-*-bsdi2.0* )		opsys=bsdos2 ;;
      *-*-bsdi2* )		opsys=bsdos2-1 ;;
      *-*-bsdi3* )		opsys=bsdos3 ;;
    esac
d748 1
a748 1
  alpha*-dec-osf* )
d755 1
a755 1
  alpha*-*-linux-gnu* )
a835 7
  ## DG changed naming conventions with the release of 5.4.4.10, they
  ## dropped the initial 5.4 but left the intervening R.  Because of the
  ## R this shouldn't conflict with older versions of the OS (which I
  ## think were named like dgux4.*).
  m88k-dg-dguxR4.* | m88k-dg-dgux4* )
    machine=aviion opsys=dgux4
  ;;
d837 1
a837 3
    ## This name is dgux5-4-3 instead of dgux5-4r3
    ## to avoid a file name conflict on MSDOS.
    machine=aviion opsys=dgux5-4-3
d940 1
a940 4
  ## SR2001/SR2201 running HI-UX/MPP
  hppa1.1-hitachi-hiuxmpp* )
    machine=sr2k opsys=hiuxmpp
  ;;
d992 1
a992 1
  hppa*-*-nextstep* )
d1023 1
a1023 4
  rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2*  )
    machine=ibmrs6000 opsys=aix4-2
  ;;
  rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0*  )
a1025 3
  rs6000-ibm-aix4* | powerpc-ibm-aix4*  )
    machine=ibmrs6000 opsys=aix4-1
  ;;
a1184 6
  ## PowerPC reference platform
  powerpcle-*-solaris2* )
    machine=prep
    opsys=sol2-5
  ;;

a1246 3
  mips-sony-newsos6* )
    machine=news-r6 opsys=newsos6
  ;;
a1269 1
      powerpcle* )      machine=powerpcle ;;
d1279 1
a1279 3
		## This name is sunos413 instead of sunos4-1-3
		## to avoid a file name conflict on MSDOS.
		opsys=sunos413
d1422 3
a1424 1
      *-sysv4.2uw* )	  	opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
d1432 1
a1432 1
  ## m68k Linux-based GNU system
a1436 5
  ## Mips Linux-based GNU system
  mips-*-linux-gnu* )
    machine=mips opsys=gnu-linux
  ;;

a1457 1
    *-sysv4.2uw* )			opsys=unixware ;;
a1502 1
echo "configure:1598: checking for $ac_word" >&5
a1530 1
echo "configure:1627: checking for $ac_word" >&5
a1576 39
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1675: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext <<EOF
#line 1685 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
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; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

a1577 1
echo "configure:1714: checking whether we are using GNU C" >&5
d1586 1
a1586 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a1593 1

d1596 3
a1598 6
  ac_test_CFLAGS="${CFLAGS+set}"
  ac_save_CFLAGS="$CFLAGS"
  CFLAGS=
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:1738: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
d1603 1
a1603 1
  ac_cv_prog_cc_g=yes
d1605 1
a1605 1
  ac_cv_prog_cc_g=no
d1611 6
a1616 7
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  if test "$ac_test_CFLAGS" = set; then
    CFLAGS="$ac_save_CFLAGS"
  elif test $ac_cv_prog_cc_g = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-O2"
a1671 1
echo "configure:1814: checking whether ln -s works" >&5
a1691 1
echo "configure:1835: checking how to run the C preprocessor" >&5
d1706 1
a1706 1
#line 1850 "configure"
d1712 1
a1712 1
{ (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1717 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1721 1
a1721 1
#line 1867 "configure"
d1727 1
a1727 1
{ (eval echo configure:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1732 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a1757 1
echo "configure:1906: checking for a BSD compatible install" >&5
d1762 1
a1762 1
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
d1785 1
a1785 1
  IFS="$ac_save_IFS"
a1810 1
echo "configure:1960: checking for $ac_word" >&5
a1840 1
echo "configure:1991: checking for AIX" >&5
d1842 1
a1842 1
#line 1993 "configure"
d1864 1
a1864 1
for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h linux/version.h sys/systeminfo.h termios.h limits.h
d1866 1
a1866 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1867 1
echo "configure:2019: checking for $ac_hdr" >&5
d1872 1
a1872 1
#line 2024 "configure"
d1877 1
a1877 1
{ (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1883 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1891 1
a1891 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d1901 26
a1927 1
echo "configure:2056: checking for ANSI C header files" >&5
d1932 1
a1932 1
#line 2061 "configure"
d1940 1
a1940 1
{ (eval echo configure:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1946 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1955 1
a1955 1
#line 2086 "configure"
d1973 1
a1973 1
#line 2104 "configure"
d1993 2
a1994 2
  cat > conftest.$ac_ext <<EOF
#line 2125 "configure"
d2005 2
a2006 2
if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2008 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2011 1
a2013 2

fi
a2024 1
echo "configure:2160: checking whether time.h and sys/time.h may both be included" >&5
d2029 1
a2029 1
#line 2165 "configure"
d2034 2
a2035 1
int main() {
d2039 1
a2039 1
if { (eval echo configure:2174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2042 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2047 1
a2058 1
echo "configure:2195: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d2063 1
a2063 1
#line 2200 "configure"
d2071 2
a2072 1
int main() {
d2076 1
a2076 1
if { (eval echo configure:2212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2079 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2084 1
a2096 1
echo "configure:2234: checking for struct utimbuf" >&5
d2098 1
a2098 1
#line 2236 "configure"
d2113 2
a2114 1
int main() {
d2118 1
a2118 1
if { (eval echo configure:2255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2125 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2131 1
a2132 1
echo "configure:2271: checking return type of signal handlers" >&5
d2137 1
a2137 1
#line 2276 "configure"
d2150 2
a2151 1
int main() {
d2155 1
a2155 1
if { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2158 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2163 1
a2173 1
echo "configure:2313: checking for struct timeval" >&5
d2175 1
a2175 1
#line 2315 "configure"
d2187 2
a2188 1
int main() {
d2192 1
a2192 1
if { (eval echo configure:2331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2200 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2207 1
a2208 1
echo "configure:2349: checking whether struct tm is in sys/time.h or time.h" >&5
d2213 1
a2213 1
#line 2354 "configure"
d2217 2
a2218 1
int main() {
d2222 1
a2222 1
if { (eval echo configure:2362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2225 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2230 1
a2241 1
echo "configure:2383: checking for tm_zone in struct tm" >&5
d2246 1
a2246 1
#line 2388 "configure"
d2250 2
a2251 1
int main() {
d2255 1
a2255 1
if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2258 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2263 1
a2273 1
echo "configure:2416: checking for tzname" >&5
d2278 1
a2278 1
#line 2421 "configure"
d2284 2
a2285 1
int main() {
d2289 1
a2289 1
if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2292 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2297 1
a2310 1
echo "configure:2454: checking for working const" >&5
d2315 1
a2315 1
#line 2459 "configure"
d2318 2
a2319 1
int main() {
d2365 1
a2365 1
if { (eval echo configure:2508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2368 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2373 1
d2386 1
a2386 2
echo "configure:2530: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
a2412 1
echo "configure:2558: checking for long file names" >&5
d2419 3
d2425 1
a2425 11
#      $TMPDIR		if set, where it might want to write temporary files
# if $TMPDIR is not set:
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  ac_tmpdirs="$TMPDIR"
else
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
fi
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
a2455 1
echo "configure:2609: checking for X" >&5
d2495 1
a2495 3
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
d2515 1
a2515 1
#line 2671 "configure"
d2520 1
a2520 1
{ (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a2527 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a2529 1
# Check X11 before X11Rn because it is often a symlink to the current release.
a2530 1
    /usr/X11/include          \
a2534 1
    /usr/include/X11          \
a2538 1
    /usr/local/X11/include    \
a2542 1
    /usr/local/include/X11    \
d2547 5
d2587 1
a2587 1
#line 2745 "configure"
d2590 2
a2591 1
int main() {
d2595 1
a2595 1
if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2600 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a2603 1
# Check X11 before X11Rn because it is often a symlink to the current release.
a2604 1
    /usr/X11/lib          \
a2608 1
    /usr/lib/X11          \
a2612 1
    /usr/local/X11/lib    \
a2616 1
    /usr/local/lib/X11    \
d2621 5
a2635 1
    /lib/usr/lib/X11	  \
d2650 1
a2687 12
  x_default_search_path=""
  for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
    x_search_path="${x_library}/X11/%L/%T/%N%C%S:\
${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\
${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\
${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S"
    if test x"${x_default_search_path}" = x; then
      x_default_search_path=${x_search_path}
    else
      x_default_search_path="${x_search_path}:${x_default_search_path}"
    fi
  done
a2754 3
echo "configure:2926: checking the machine- and system-dependent files to find out
 - which libraries the lib-src programs will want, and
 - whether the GNU malloc routines are usable" >&5
a2822 15
#ifndef LD_SWITCH_MACHINE
#define LD_SWITCH_MACHINE
#endif

#ifndef LD_SWITCH_SYSTEM
#define LD_SWITCH_SYSTEM
#endif

#ifndef LD_SWITCH_X_SITE_AUX
#define LD_SWITCH_X_SITE_AUX
#endif  

configure___ ld_switch_system=LD_SWITCH_SYSTEM
configure___ ld_switch_machine=LD_SWITCH_MACHINE

a2856 2
ac_link="$ac_link $ld_switch_machine $ld_switch_system"

a2862 120
doug_lea_malloc=yes
echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
echo "configure:3056: checking for malloc_get_state" >&5
if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3061 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char malloc_get_state(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char malloc_get_state();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
choke me
#else
malloc_get_state();
#endif

; return 0; }
EOF
if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_func_malloc_get_state=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_malloc_get_state=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
doug_lea_malloc=no
fi

echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
echo "configure:3105: checking for malloc_set_state" >&5
if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3110 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char malloc_set_state(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char malloc_set_state();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
choke me
#else
malloc_set_state();
#endif

; return 0; }
EOF
if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_func_malloc_set_state=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_malloc_set_state=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
doug_lea_malloc=no
fi

echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
echo "configure:3154: checking whether __after_morecore_hook exists" >&5
cat > conftest.$ac_ext <<EOF
#line 3156 "configure"
#include "confdefs.h"
extern void (* __after_morecore_hook)();
int main() {
__after_morecore_hook = 0
; return 0; }
EOF
if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
   doug_lea_malloc=no
fi
rm -f conftest*
d2866 1
a2866 11
    (The GNU allocators don't work with this system configuration.)"
fi
if test "$doug_lea_malloc" = "yes" ; then
  if test "$GNU_MALLOC" = yes ; then
    GNU_MALLOC_reason="
      (Using Doug Lea's new malloc from the GNU C Library.)"
  fi
  cat >> confdefs.h <<\EOF
#define DOUG_LEA_MALLOC 1
EOF

d2886 2
a2887 3
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
echo "configure:3208: checking for dnet_ntoa in -ldnet" >&5
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
d2894 1
a2894 1
#line 3216 "configure"
d2901 2
a2902 1
int main() {
d2906 1
a2906 1
if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2909 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2919 1
a2919 2
    ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
d2931 2
a2932 3
echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
echo "configure:3256: checking for main in -lXbsd" >&5
ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
d2939 1
a2939 1
#line 3264 "configure"
d2942 2
a2943 1
int main() {
d2947 1
a2947 1
if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2950 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2966 2
a2967 3
echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
echo "configure:3293: checking for cma_open in -lpthreads" >&5
ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
d2974 1
a2974 1
#line 3301 "configure"
d2981 2
a2982 1
int main() {
d2986 1
a2986 1
if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2989 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2999 1
a2999 2
    ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a3011 1
echo "configure:3341: checking for XFree86" >&5
a3039 1
echo "configure:3370: checking whether X on GNU/Linux needs -b to link" >&5
d3041 1
a3041 1
#line 3372 "configure"
d3044 2
a3045 1
int main() {
d3049 1
a3049 1
if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3052 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3057 1
d3068 1
a3068 1
#line 3399 "configure"
d3071 2
a3072 1
int main() {
d3076 1
a3076 1
if { (eval echo configure:3406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3079 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3084 1
a3104 1
echo "configure:3436: checking for $ac_func" >&5
d3109 1
a3109 1
#line 3441 "configure"
d3119 2
a3120 1
int main() {
d3133 1
a3133 1
if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3136 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3141 1
a3142 1

a3158 1
echo "configure:3492: checking X11 version 6" >&5
d3160 1
a3160 1
#line 3494 "configure"
d3163 2
a3164 1
int main() {
d3171 1
a3171 1
if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3178 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3183 1
a3187 1
echo "configure:3522: checking X11 version 5" >&5
d3189 1
a3189 1
#line 3524 "configure"
d3192 2
a3193 1
int main() {
d3200 1
a3200 1
if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3208 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3215 1
a3220 1
echo "configure:3556: checking X11 version 5 with Xaw" >&5
d3222 1
a3222 1
#line 3558 "configure"
d3227 2
a3228 1
int main() {
d3232 1
a3232 1
if { (eval echo configure:3567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3236 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3242 1
a3251 1
echo "configure:3588: checking X11 toolkit version" >&5
d3253 1
a3253 1
#line 3590 "configure"
d3256 2
a3257 1
int main() {
d3264 1
a3264 1
if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3272 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3279 1
d3286 2
a3287 3
  echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
echo "configure:3624: checking for XmuConvertStandardSelection in -lXmu" >&5
ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
d3294 1
a3294 1
#line 3632 "configure"
d3301 2
a3302 1
int main() {
d3306 1
a3306 1
if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3309 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3319 1
a3319 2
    ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a3332 33
if test "${USE_X_TOOLKIT}" = "MOTIF"; then
  echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
echo "configure:3675: checking for Motif version 2.1" >&5
  cat > conftest.$ac_ext <<EOF
#line 3677 "configure"
#include "confdefs.h"
#include <Xm/Xm.h>
int main() {
#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
int x = 5;
#else
Motif version prior to 2.1.
#endif
; return 0; }
EOF
if { (eval echo configure:3688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6
     HAVE_MOTIF_2_1=yes
     cat >> confdefs.h <<\EOF
#define HAVE_MOTIF_2_1 1
EOF

else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
     HAVE_MOTIF_2_1=no
fi
rm -f conftest*
fi

a3334 1
echo "configure:3708: checking whether netdb declares h_errno" >&5
d3336 1
a3336 1
#line 3710 "configure"
d3339 2
a3340 1
int main() {
d3344 1
a3344 1
if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3351 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3357 1
a3360 1
echo "configure:3735: checking for working alloca.h" >&5
d3365 1
a3365 1
#line 3740 "configure"
d3368 2
a3369 1
int main() {
d3373 1
a3373 1
if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3376 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3381 1
d3393 1
a3393 2
echo "configure:3768: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
d3397 1
a3397 1
#line 3773 "configure"
d3416 2
a3417 1
int main() {
d3421 1
a3421 1
if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3423 1
a3423 1
  ac_cv_func_alloca_works=yes
a3424 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3426 1
a3426 1
  ac_cv_func_alloca_works=no
d3429 1
d3432 2
a3433 2
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
if test $ac_cv_func_alloca_works = yes; then
d3440 1
a3440 1
if test $ac_cv_func_alloca_works = no; then
a3451 1
echo "configure:3828: checking whether alloca needs Cray hooks" >&5
d3456 1
a3456 1
#line 3833 "configure"
a3480 1
echo "configure:3858: checking for $ac_func" >&5
d3485 1
a3485 1
#line 3863 "configure"
d3495 2
a3496 1
int main() {
d3509 1
a3509 1
if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3512 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3517 1
a3518 1

a3533 1
echo "configure:3913: checking stack direction for C alloca" >&5
d3540 2
a3541 2
  cat > conftest.$ac_ext <<EOF
#line 3921 "configure"
d3560 2
a3561 2
if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a3563 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d3566 1
a3569 2
fi

d3580 2
a3581 3
echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
echo "configure:3965: checking for sqrt in -lm" >&5
ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
d3588 1
a3588 1
#line 3973 "configure"
d3595 2
a3596 1
int main() {
d3600 1
a3600 1
if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3603 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3613 1
a3613 2
    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
d3625 6
a3630 5
# Check for mail-locking functions in a "mail" library
echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
echo "configure:4014: checking for maillock in -lmail" >&5
ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d3633 2
a3634 4
  ac_save_LIBS="$LIBS"
LIBS="-lmail  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4022 "configure"
d3636 3
a3638 145
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char maillock();

int main() {
maillock()
; return 0; }
EOF
if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_LIBMAIL 1
EOF

	     for ac_func in touchlock
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4055: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4060 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

	     for ac_hdr in maillock.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4111: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4116 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

else
  echo "$ac_t""no" 1>&6
fi


for ac_func in gettimeofday gethostname getdomainname dup2 \
rename closedir mkdir rmdir sysinfo \
random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
utimes setrlimit setpgid getcwd shutdown
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4159: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4164 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d3644 2
a3645 1
int main() {
d3656 1
a3656 467
; return 0; }
EOF
if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


# Check this now, so that we will NOT find the above functions in ncurses.
# That is because we have not set up to link ncurses in lib-src.
# It's better to believe a function is not available
# than to expect to find it in ncurses.
echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
echo "configure:4217: checking for tparm in -lncurses" >&5
ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lncurses  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4225 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char tparm();

int main() {
tparm()
; return 0; }
EOF
if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lncurses $LIBS"

else
  echo "$ac_t""no" 1>&6
fi


# These tell us which Kerberos-related libraries to use.
if test "${with_kerberos+set}" = set; then
  if test "${with_kerberos5+set}" != set; then
    echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
echo "configure:4268: checking for krb_get_cred in -lkrb" >&5
ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lkrb  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4276 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char krb_get_cred();

int main() {
krb_get_cred()
; return 0; }
EOF
if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lkrb $LIBS"

else
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
echo "configure:4313: checking for krb_get_cred in -lkrb4" >&5
ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lkrb4  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4321 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char krb_get_cred();

int main() {
krb_get_cred()
; return 0; }
EOF
if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/^a-zA-Z0-9_/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lkrb4 $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

fi

    echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
echo "configure:4362: checking for des_cbc_encrypt in -ldes" >&5
ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldes  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4370 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char des_cbc_encrypt();

int main() {
des_cbc_encrypt()
; return 0; }
EOF
if { (eval echo configure:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-ldes $LIBS"

else
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
echo "configure:4407: checking for des_cbc_encrypt in -ldes425" >&5
ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldes425  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4415 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char des_cbc_encrypt();

int main() {
des_cbc_encrypt()
; return 0; }
EOF
if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/^a-zA-Z0-9_/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-ldes425 $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

fi

  fi
  echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
echo "configure:4457: checking for krb5_init_context in -lkrb5" >&5
ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lkrb5  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4465 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char krb5_init_context();

int main() {
krb5_init_context()
; return 0; }
EOF
if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lkrb5 $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

  echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
echo "configure:4504: checking for mit_des_cbc_encrypt in -lcrypto" >&5
ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lcrypto  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4512 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mit_des_cbc_encrypt();

int main() {
mit_des_cbc_encrypt()
; return 0; }
EOF
if { (eval echo configure:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lcrypto $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

  echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
echo "configure:4551: checking for com_err in -lcom_err" >&5
ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lcom_err  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4559 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char com_err();

int main() {
com_err()
; return 0; }
EOF
if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lcom_err $LIBS"

else
  echo "$ac_t""no" 1>&6
fi


  if test "${with_kerberos5+set}" = set; then
    for ac_hdr in krb5.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4603: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4608 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

  else
    for ac_hdr in des.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4644: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4649 "configure"
#include "confdefs.h"
#include <$ac_hdr>
d3658 1
a3658 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
d3660 1
a3660 1
  eval "ac_cv_header_$ac_safe=yes"
a3661 3
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3663 1
a3663 1
  eval "ac_cv_header_$ac_safe=no"
d3666 1
d3668 1
a3668 1
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d3670 1
a3670 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d3672 1
a3672 75
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
for ac_hdr in kerberosIV/des.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4681: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4686 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
for ac_hdr in kerberos/des.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4718: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4723 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
a3679 2
fi
done
d3681 7
a3687 9
fi
done

    for ac_hdr in krb.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4764: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d3690 4
a3693 2
  cat > conftest.$ac_ext <<EOF
#line 4769 "configure"
d3695 9
a3703 1
#include <$ac_hdr>
d3705 1
a3705 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
d3707 1
a3707 1
  eval "ac_cv_header_$ac_safe=yes"
a3708 3
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3710 1
a3710 1
  eval "ac_cv_header_$ac_safe=no"
d3713 2
d3716 1
a3716 1
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d3718 1
a3718 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d3720 1
a3720 75
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
for ac_hdr in kerberosIV/krb.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4801: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4806 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
for ac_hdr in kerberos/krb.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4838: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4843 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
a3721 5
 
else
  echo "$ac_t""no" 1>&6
fi
done
d3723 1
a3723 2
fi
done
a3724 39
fi
done

  fi
  for ac_hdr in com_err.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4885: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4890 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
a3727 1
done
a3728 1
fi
a3730 1
echo "configure:4924: checking whether localtime caches TZ" >&5
d3739 2
a3740 2
  cat > conftest.$ac_ext <<EOF
#line 4934 "configure"
d3775 2
a3776 2
if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a3778 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d3781 1
a3782 2
fi

a3798 1
echo "configure:4997: checking whether gettimeofday can't accept two arguments" >&5
d3800 1
a3800 1
#line 4999 "configure"
d3814 2
a3815 1
int main() {
d3823 1
a3823 1
if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3826 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3835 1
a3839 1
echo "configure:5039: checking for socket" >&5
d3844 1
a3844 1
#line 5044 "configure"
d3854 2
a3855 1
int main() {
d3868 1
a3868 1
if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a3871 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3876 1
a3877 1

d3887 1
a3887 1
  ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
a3888 1
echo "configure:5090: checking for netinet/in.h" >&5
d3893 1
a3893 1
#line 5095 "configure"
d3898 1
a3898 1
{ (eval echo configure:5100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a3904 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3920 1
a3920 1
  ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
a3921 1
echo "configure:5126: checking for arpa/inet.h" >&5
d3926 1
a3926 1
#line 5131 "configure"
d3931 1
a3931 1
{ (eval echo configure:5136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a3937 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a4139 3
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
d4143 2
a4144 13
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -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.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
d4199 1
a4199 1
    echo "$CONFIG_STATUS generated by autoconf version 2.12"
d4211 1
a4211 2
	man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
	leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
a4260 1
s%@@x_default_search_path@@%$x_default_search_path%g
d4262 1
a4277 36

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# 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_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

d4281 1
a4281 2
	man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
	leim/Makefile"}
d4285 1
a4285 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d4287 1
a4287 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d4292 1
a4292 1
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
a4319 1

a4327 2

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
d4333 1
a4333 1
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
d4335 1
a4335 1
rm -f conftest.s*
d4356 1
a4356 7
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="src/config.h:src/config.in"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
d4358 1
a4358 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d4360 1
a4360 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d4368 1
a4368 2
  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
d4396 2
d4447 1
a4447 1
for dir in cpp etc lisp ; do
a4465 3
echo creating src/paths.h
make paths-force

a4502 3
# This is how we know whether to re-run configure in certain cases.
touch src/config.stamp

@


1.1.1.25
log
@import emacs-20.3
@
text
@a24 2
  --with-gssapi           support GSSAPI-authenticated POP"
ac_help="$ac_help
a595 9
# Check whether --with-gssapi or --without-gssapi was given.
if test "${with_gssapi+set}" = set; then
  withval="$with_gssapi"
  cat >> confdefs.h <<\EOF
#define GSSAPI 1
EOF

fi

d626 1
a626 1
    unset CDPATH
d688 1
a688 1
echo "configure:700: checking host system type" >&5
d899 2
a900 3
  ## think were named like dgux4.*). In addition, DG new AViiONs series
  ## uses either Motorola M88k or Intel Pentium CPUs.
  i586-dg-dguxR4.* | m88k-dg-dguxR4.* | m88k-dg-dgux4* )
d1030 1
a1030 1
      *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
d1048 1
a1048 1
  hppa*-hp-hpux1[0-9]* )
d1061 1
a1061 1
      *) machine=hp800 opsys=hpux10 ;;
d1398 1
a1398 1
		opsys=sol2-5
a1529 7
  ## UXP/DS
  sparc-fujitsu-sysv4* )
    machine=sparc opsys=uxpds
    NON_GNU_CPP=/usr/ccs/lib/cpp
    RANLIB="ar -ts"
  ;;

d1597 1
a1597 1
echo "configure:1617: checking for $ac_word" >&5
d1626 1
a1626 1
echo "configure:1646: checking for $ac_word" >&5
d1674 1
a1674 1
echo "configure:1694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d1684 1
a1684 1
#line 1704 "configure"
d1688 1
a1688 1
if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1708 1
a1708 1
echo "configure:1728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1713 1
a1713 1
echo "configure:1733: checking whether we are using GNU C" >&5
d1722 1
a1722 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1737 1
a1737 1
echo "configure:1757: checking whether ${CC-cc} accepts -g" >&5
d1813 1
a1813 1
echo "configure:1833: checking whether ln -s works" >&5
d1834 1
a1834 1
echo "configure:1854: checking how to run the C preprocessor" >&5
d1849 1
a1849 1
#line 1869 "configure"
d1855 1
a1855 1
{ (eval echo configure:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1866 1
a1866 1
#line 1886 "configure"
d1872 1
a1872 1
{ (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1905 1
a1905 1
echo "configure:1925: checking for a BSD compatible install" >&5
d1959 1
a1959 1
echo "configure:1979: checking for $ac_word" >&5
d1990 1
a1990 1
echo "configure:2010: checking for AIX" >&5
d1992 1
a1992 1
#line 2012 "configure"
d2014 1
a2014 1
for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h linux/version.h sys/systeminfo.h termios.h limits.h string.h
d2018 1
a2018 1
echo "configure:2038: checking for $ac_hdr" >&5
d2023 1
a2023 1
#line 2043 "configure"
d2028 1
a2028 1
{ (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2055 1
a2055 1
echo "configure:2075: checking for ANSI C header files" >&5
d2060 1
a2060 1
#line 2080 "configure"
d2068 1
a2068 1
{ (eval echo configure:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2085 1
a2085 1
#line 2105 "configure"
d2103 1
a2103 1
#line 2123 "configure"
d2124 1
a2124 1
#line 2144 "configure"
d2135 1
a2135 1
if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2159 1
a2159 1
echo "configure:2179: checking whether time.h and sys/time.h may both be included" >&5
d2164 1
a2164 1
#line 2184 "configure"
d2173 1
a2173 1
if { (eval echo configure:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2194 1
a2194 1
echo "configure:2214: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d2199 1
a2199 1
#line 2219 "configure"
d2211 1
a2211 1
if { (eval echo configure:2231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2233 3
a2235 6
echo "configure:2253: checking for struct utimbuf" >&5
if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2258 "configure"
d2254 1
a2254 1
if { (eval echo configure:2277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2256 5
a2260 1
  emacs_cv_struct_utimbuf=yes
d2265 1
a2265 1
  emacs_cv_struct_utimbuf=no
a2267 9
fi

echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
if test $emacs_cv_struct_utimbuf = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTIMBUF 1
EOF

fi
d2270 1
a2270 1
echo "configure:2298: checking return type of signal handlers" >&5
d2275 1
a2275 1
#line 2303 "configure"
d2292 1
a2292 1
if { (eval echo configure:2320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2312 3
a2314 6
echo "configure:2340: checking for struct timeval" >&5
if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2345 "configure"
d2330 1
a2330 1
if { (eval echo configure:2361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2332 6
a2337 1
  emacs_cv_struct_timeval=yes
d2342 2
a2343 1
  emacs_cv_struct_timeval=no
a2345 10
fi

echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
HAVE_TIMEVAL=$emacs_cv_struct_timeval
if test $emacs_cv_struct_timeval = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_TIMEVAL 1
EOF

fi
d2348 1
a2348 1
echo "configure:2383: checking whether struct tm is in sys/time.h or time.h" >&5
d2353 1
a2353 1
#line 2388 "configure"
d2361 1
a2361 1
if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2382 1
a2382 1
echo "configure:2417: checking for tm_zone in struct tm" >&5
d2387 1
a2387 1
#line 2422 "configure"
d2395 1
a2395 1
if { (eval echo configure:2430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2415 1
a2415 1
echo "configure:2450: checking for tzname" >&5
d2420 1
a2420 1
#line 2455 "configure"
d2430 1
a2430 1
if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2453 1
a2453 1
echo "configure:2488: checking for working const" >&5
d2458 1
a2458 1
#line 2493 "configure"
d2507 1
a2507 1
if { (eval echo configure:2542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2529 1
a2529 1
echo "configure:2564: checking whether ${MAKE-make} sets \${MAKE}" >&5
d2557 1
a2557 1
echo "configure:2592: checking for long file names" >&5
d2608 1
a2608 1
echo "configure:2643: checking for X" >&5
d2670 1
a2670 1
#line 2705 "configure"
d2675 1
a2675 1
{ (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2744 1
a2744 1
#line 2779 "configure"
d2751 1
a2751 1
if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2925 1
a2925 1
echo "configure:2960: checking the machine- and system-dependent files to find out
d3055 1
a3055 1
echo "configure:3090: checking for malloc_get_state" >&5
d3060 1
a3060 1
#line 3095 "configure"
d3083 1
a3083 1
if { (eval echo configure:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3104 1
a3104 1
echo "configure:3139: checking for malloc_set_state" >&5
d3109 1
a3109 1
#line 3144 "configure"
d3132 1
a3132 1
if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3153 3
a3155 6
echo "configure:3188: checking whether __after_morecore_hook exists" >&5
if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3193 "configure"
d3162 1
a3162 1
if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3164 1
a3164 1
  emacs_cv_var___after_morecore_hook=yes
d3169 2
a3170 1
  emacs_cv_var___after_morecore_hook=no
a3172 6
fi

echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
if test $emacs_cv_var___after_morecore_hook = no; then
  doug_lea_malloc=no
fi
d3207 1
a3207 1
echo "configure:3250: checking for dnet_ntoa in -ldnet" >&5
d3215 1
a3215 1
#line 3258 "configure"
d3226 1
a3226 1
if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3255 1
a3255 1
echo "configure:3298: checking for main in -lXbsd" >&5
d3263 1
a3263 1
#line 3306 "configure"
d3270 1
a3270 1
if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3292 1
a3292 1
echo "configure:3335: checking for cma_open in -lpthreads" >&5
d3300 1
a3300 1
#line 3343 "configure"
d3311 1
a3311 1
if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3340 1
a3340 1
echo "configure:3383: checking for XFree86" >&5
d3369 1
a3369 1
echo "configure:3412: checking whether X on GNU/Linux needs -b to link" >&5
d3371 1
a3371 1
#line 3414 "configure"
d3378 1
a3378 1
if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3398 1
a3398 1
#line 3441 "configure"
d3405 1
a3405 1
if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3435 1
a3435 1
echo "configure:3478: checking for $ac_func" >&5
d3440 1
a3440 1
#line 3483 "configure"
d3463 1
a3463 1
if { (eval echo configure:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3491 1
a3491 4
echo "configure:3534: checking X11 version 6" >&5
  if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
d3493 1
a3493 1
#line 3539 "configure"
d3503 1
a3503 1
if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3505 5
a3509 1
  emacs_cv_x11_version_6=yes
d3514 1
a3514 1
  emacs_cv_x11_version_6=no
a3518 11
  if test $emacs_cv_x11_version_6 = yes; then
    echo "$ac_t""6 or newer" 1>&6
    cat >> confdefs.h <<\EOF
#define HAVE_X11R6 1
EOF

  else
    echo "$ac_t""before 6" 1>&6
  fi
fi

d3521 1
a3521 4
echo "configure:3574: checking X11 version 5" >&5
  if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
d3523 1
a3523 1
#line 3579 "configure"
d3533 1
a3533 1
if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3535 1
a3535 12
  emacs_cv_x11_version_5=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  emacs_cv_x11_version_5=no
fi
rm -f conftest*
fi

  if test $emacs_cv_x11_version_5 = yes; then
    echo "$ac_t""5 or newer" 1>&6
d3541 5
a3545 1
  else
d3548 2
a3549 1
  fi
d3555 3
a3557 6
echo "configure:3617: checking X11 version 5 with Xaw" >&5
    if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3622 "configure"
d3566 1
a3566 1
if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3568 2
a3569 1
  emacs_cv_x11_version_5_with_xaw=yes
d3574 2
a3575 1
  emacs_cv_x11_version_5_with_xaw=no
a3577 9
fi

    if test $emacs_cv_x11_version_5_with_xaw = yes; then
      echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
      USE_X_TOOLKIT=LUCID
    else
      echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
      USE_X_TOOLKIT=none
    fi
d3587 1
a3587 4
echo "configure:3659: checking X11 toolkit version" >&5
  if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
d3589 1
a3589 1
#line 3664 "configure"
d3599 1
a3599 1
if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3601 6
a3606 1
  emacs_cv_x11_toolkit_version_6=yes
d3611 2
a3612 1
  emacs_cv_x11_toolkit_version_6=no
a3614 12
fi

  HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
  if test $emacs_cv_x11_toolkit_version_6 = yes; then
    echo "$ac_t""6 or newer" 1>&6
    cat >> confdefs.h <<\EOF
#define HAVE_X11XTR6 1
EOF

  else
    echo "$ac_t""before 6" 1>&6
  fi
d3623 1
a3623 1
echo "configure:3704: checking for XmuConvertStandardSelection in -lXmu" >&5
d3631 1
a3631 1
#line 3712 "configure"
d3642 1
a3642 1
if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3674 1
a3674 4
echo "configure:3755: checking for Motif version 2.1" >&5
if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
d3676 1
a3676 1
#line 3760 "configure"
d3687 1
a3687 1
if { (eval echo configure:3771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3689 6
a3694 1
  emacs_cv_motif_version_2_1=yes
d3699 2
a3700 1
  emacs_cv_motif_version_2_1=no
a3704 10
echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
  HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
  if test $emacs_cv_motif_version_2_1 = yes; then
    cat >> confdefs.h <<\EOF
#define HAVE_MOTIF_2_1 1
EOF

  fi
fi

d3707 3
a3709 6
echo "configure:3795: checking whether netdb declares h_errno" >&5
if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3800 "configure"
d3716 1
a3716 1
if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3718 5
a3722 1
  emacs_cv_netdb_declares_h_errno=yes
d3727 1
a3727 1
  emacs_cv_netdb_declares_h_errno=no
a3729 9
fi

echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
if test $emacs_cv_netdb_declares_h_errno = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_H_ERRNO 1
EOF

fi
d3734 1
a3734 1
echo "configure:3830: checking for working alloca.h" >&5
d3739 1
a3739 1
#line 3835 "configure"
d3746 1
a3746 1
if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3767 1
a3767 1
echo "configure:3863: checking for alloca" >&5
d3772 1
a3772 1
#line 3868 "configure"
d3795 1
a3795 1
if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3827 1
a3827 1
echo "configure:3923: checking whether alloca needs Cray hooks" >&5
d3832 1
a3832 1
#line 3928 "configure"
d3857 1
a3857 1
echo "configure:3953: checking for $ac_func" >&5
d3862 1
a3862 1
#line 3958 "configure"
d3885 1
a3885 1
if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3912 1
a3912 1
echo "configure:4008: checking stack direction for C alloca" >&5
d3920 1
a3920 1
#line 4016 "configure"
d3939 1
a3939 1
if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3964 1
a3964 1
echo "configure:4060: checking for sqrt in -lm" >&5
d3972 1
a3972 1
#line 4068 "configure"
d3983 1
a3983 1
if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4013 1
a4013 1
echo "configure:4109: checking for maillock in -lmail" >&5
d4021 1
a4021 1
#line 4117 "configure"
d4032 1
a4032 1
if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4054 1
a4054 1
echo "configure:4150: checking for $ac_func" >&5
d4059 1
a4059 1
#line 4155 "configure"
d4082 1
a4082 1
if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4110 1
a4110 1
echo "configure:4206: checking for $ac_hdr" >&5
d4115 1
a4115 1
#line 4211 "configure"
d4120 1
a4120 1
{ (eval echo configure:4216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4155 1
a4155 1
utimes setrlimit setpgid getcwd shutdown strftime
d4158 1
a4158 1
echo "configure:4254: checking for $ac_func" >&5
d4163 1
a4163 1
#line 4259 "configure"
d4186 1
a4186 1
if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4216 1
a4216 1
echo "configure:4312: checking for tparm in -lncurses" >&5
d4224 1
a4224 1
#line 4320 "configure"
d4235 1
a4235 1
if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4265 4
a4268 3
  echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
echo "configure:4362: checking for com_err in -lcom_err" >&5
ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
d4273 1
a4273 1
LIBS="-lcom_err  $LIBS"
d4275 1
a4275 1
#line 4370 "configure"
d4280 1
a4280 1
char com_err();
d4283 1
a4283 1
com_err()
d4286 1
a4286 1
if { (eval echo configure:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4301 1
a4301 1
    ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
d4307 1
a4307 1
  LIBS="-lcom_err $LIBS"
d4311 3
a4313 5
fi

  echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
echo "configure:4409: checking for mit_des_cbc_encrypt in -lcrypto" >&5
ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
d4318 1
a4318 1
LIBS="-lcrypto  $LIBS"
d4320 1
a4320 1
#line 4417 "configure"
d4325 1
a4325 1
char mit_des_cbc_encrypt();
d4328 1
a4328 1
mit_des_cbc_encrypt()
d4331 1
a4331 1
if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4346 1
a4346 1
    ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
d4352 1
a4352 1
  LIBS="-lcrypto $LIBS"
d4358 5
a4362 3
  echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
echo "configure:4456: checking for krb5_init_context in -lkrb5" >&5
ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
d4367 1
a4367 1
LIBS="-lkrb5  $LIBS"
d4369 1
a4369 1
#line 4464 "configure"
d4374 1
a4374 1
char krb5_init_context();
d4377 1
a4377 1
krb5_init_context()
d4380 1
a4380 1
if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4395 1
a4395 1
    ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
d4401 1
a4401 1
  LIBS="-lkrb5 $LIBS"
d4405 3
a4407 7
fi

  if test "${with_kerberos5+set}" = set; then
    if test "${with_gssapi+set}" = set; then
      echo $ac_n "checking for gss_init_sec_context in -lgssapi_krb5""... $ac_c" 1>&6
echo "configure:4505: checking for gss_init_sec_context in -lgssapi_krb5" >&5
ac_lib_var=`echo gssapi_krb5'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
d4412 1
a4412 1
LIBS="-lgssapi_krb5  $LIBS"
d4414 1
a4414 1
#line 4513 "configure"
d4419 1
a4419 1
char gss_init_sec_context();
d4422 1
a4422 1
gss_init_sec_context()
d4425 1
a4425 1
if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4440 1
a4440 1
    ac_tr_lib=HAVE_LIB`echo gssapi_krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
d4446 1
a4446 1
  LIBS="-lgssapi_krb5 $LIBS"
a4451 34
    fi
  else
    echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
echo "configure:4554: checking for des_cbc_encrypt in -ldes" >&5
ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldes  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4562 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char des_cbc_encrypt();

int main() {
des_cbc_encrypt()
; return 0; }
EOF
if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

a4452 7
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d4454 4
a4457 7
  LIBS="-ldes $LIBS"

else
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
echo "configure:4599: checking for des_cbc_encrypt in -ldes425" >&5
ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
d4462 1
a4462 1
LIBS="-ldes425  $LIBS"
d4464 1
a4464 1
#line 4607 "configure"
d4469 1
a4469 1
char des_cbc_encrypt();
d4472 1
a4472 1
des_cbc_encrypt()
d4475 1
a4475 1
if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4490 1
a4490 1
    ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/^a-zA-Z0-9_/_/g' \
d4496 1
a4496 1
  LIBS="-ldes425 $LIBS"
d4502 3
a4504 5
fi

    echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
echo "configure:4648: checking for krb_get_cred in -lkrb" >&5
ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
d4509 1
a4509 1
LIBS="-lkrb  $LIBS"
d4511 1
a4511 1
#line 4656 "configure"
d4516 1
a4516 1
char krb_get_cred();
d4519 1
a4519 1
krb_get_cred()
d4522 1
a4522 1
if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4537 1
a4537 1
    ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
d4543 1
a4543 1
  LIBS="-lkrb $LIBS"
d4547 5
a4551 3
echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
echo "configure:4693: checking for krb_get_cred in -lkrb4" >&5
ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
d4556 1
a4556 1
LIBS="-lkrb4  $LIBS"
d4558 1
a4558 1
#line 4701 "configure"
d4563 1
a4563 1
char krb_get_cred();
d4566 1
a4566 1
krb_get_cred()
d4569 1
a4569 1
if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4584 1
a4584 1
    ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/^a-zA-Z0-9_/_/g' \
d4590 1
a4590 1
  LIBS="-lkrb4 $LIBS"
a4595 3
fi

  fi
d4602 1
a4602 1
echo "configure:4748: checking for $ac_hdr" >&5
d4607 1
a4607 1
#line 4753 "configure"
d4612 1
a4612 1
{ (eval echo configure:4758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4643 1
a4643 1
echo "configure:4789: checking for $ac_hdr" >&5
d4648 1
a4648 1
#line 4794 "configure"
d4653 1
a4653 1
{ (eval echo configure:4799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4680 1
a4680 1
echo "configure:4826: checking for $ac_hdr" >&5
d4685 1
a4685 1
#line 4831 "configure"
d4690 1
a4690 1
{ (eval echo configure:4836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4717 1
a4717 1
echo "configure:4863: checking for $ac_hdr" >&5
d4722 1
a4722 1
#line 4868 "configure"
d4727 1
a4727 1
{ (eval echo configure:4873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4763 1
a4763 1
echo "configure:4909: checking for $ac_hdr" >&5
d4768 1
a4768 1
#line 4914 "configure"
d4773 1
a4773 1
{ (eval echo configure:4919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4800 1
a4800 1
echo "configure:4946: checking for $ac_hdr" >&5
d4805 1
a4805 1
#line 4951 "configure"
d4810 1
a4810 1
{ (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4837 1
a4837 1
echo "configure:4983: checking for $ac_hdr" >&5
d4842 1
a4842 1
#line 4988 "configure"
d4847 1
a4847 1
{ (eval echo configure:4993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4884 1
a4884 1
echo "configure:5030: checking for $ac_hdr" >&5
d4889 1
a4889 1
#line 5035 "configure"
d4894 1
a4894 1
{ (eval echo configure:5040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a4921 140
if test "${with_gssapi+set}" = set; then
  echo $ac_n "checking for gss_init_sec_context in -lgssapi""... $ac_c" 1>&6
echo "configure:5070: checking for gss_init_sec_context in -lgssapi" >&5
ac_lib_var=`echo gssapi'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lgssapi  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5078 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gss_init_sec_context();

int main() {
gss_init_sec_context()
; return 0; }
EOF
if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo gssapi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lgssapi $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

  for ac_hdr in gssapi.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5120: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5125 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

fi

# Solaris requires -lintl if you want strerror (which calls dgettext)
# to return localized messages.
echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
echo "configure:5161: checking for dgettext in -lintl" >&5
ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lintl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5169 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dgettext();

int main() {
dgettext()
; return 0; }
EOF
if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lintl $LIBS"

else
  echo "$ac_t""no" 1>&6
fi


d4923 1
a4923 1
echo "configure:5209: checking whether localtime caches TZ" >&5
d4933 1
a4933 1
#line 5219 "configure"
d4968 1
a4968 1
if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d4995 4
a4998 7
echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
echo "configure:5282: checking whether gettimeofday can accept two arguments" >&5
if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5287 "configure"
d5020 1
a5020 1
if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d5022 1
a5022 1
  emacs_cv_gettimeofday_two_arguments=yes
d5027 2
a5028 8
  emacs_cv_gettimeofday_two_arguments=no
fi
rm -f conftest*
fi

echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
  if test $emacs_cv_gettimeofday_two_arguments = no; then
    cat >> confdefs.h <<\EOF
d5032 2
a5033 1
  fi
d5038 1
a5038 1
echo "configure:5332: checking for socket" >&5
d5043 1
a5043 1
#line 5337 "configure"
d5066 1
a5066 1
if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d5089 1
a5089 1
echo "configure:5383: checking for netinet/in.h" >&5
d5094 1
a5094 1
#line 5388 "configure"
d5099 1
a5099 1
{ (eval echo configure:5393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5125 1
a5125 1
echo "configure:5419: checking for arpa/inet.h" >&5
d5130 1
a5130 1
#line 5424 "configure"
d5135 1
a5135 1
{ (eval echo configure:5429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
@


1.1.1.26
log
@import emacs-20.4
@
text
@d19 4
d25 2
d562 27
d598 9
d699 1
a699 1
echo "configure:658: checking host system type" >&5
a757 1
      powerpc-apple-netbsd*) machine=macppc ;;
d775 1
a775 1
      vax-*-openbsd*)	machine=vax ;;
a801 1
      *-*-bsdi4* )		opsys=bsdos4 ;;
d912 1
a912 1
  m88k-dg-dguxR4.* | m88k-dg-dgux4* )
a926 7
  ## Data General AViiON Intel (x86) Machines
  ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
  ## Ehud Karni, 1998-may-30, ehud@@unix.simonwiesel.co.il
  i[345]86-dg-dguxR4* )
    machine=aviion-intel opsys=dgux4
  ;;

a1259 5
  ## NEC EWS4800
  mips-nec-sysv4*)
  machine=ews4800 opsys=ux4800
  ;;

a1317 5
  mips-sgi-irix6.5 )
    machine=iris4d opsys=irix6-5
    NON_GNU_CPP=/lib/cpp
    NON_GCC_TEST_OPTIONS="-n32 -G0"
  ;;
a1548 5
  ## UXP/V
  f301-fujitsu-uxpv4.1)
    machine=f301 opsys=uxpv
  ;;

d1616 1
a1616 1
echo "configure:1599: checking for $ac_word" >&5
d1645 1
a1645 1
echo "configure:1628: checking for $ac_word" >&5
d1693 1
a1693 1
echo "configure:1676: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d1703 1
a1703 1
#line 1686 "configure"
d1707 1
a1707 1
if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1727 1
a1727 1
echo "configure:1710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1732 1
a1732 1
echo "configure:1715: checking whether we are using GNU C" >&5
d1741 1
a1741 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1756 1
a1756 1
echo "configure:1739: checking whether ${CC-cc} accepts -g" >&5
d1832 1
a1832 1
echo "configure:1815: checking whether ln -s works" >&5
d1853 1
a1853 1
echo "configure:1836: checking how to run the C preprocessor" >&5
d1868 1
a1868 1
#line 1851 "configure"
d1874 1
a1874 1
{ (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1885 1
a1885 1
#line 1868 "configure"
d1891 1
a1891 1
{ (eval echo configure:1874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1924 1
a1924 1
echo "configure:1907: checking for a BSD compatible install" >&5
d1978 1
a1978 1
echo "configure:1961: checking for $ac_word" >&5
d2009 1
a2009 1
echo "configure:1992: checking for AIX" >&5
d2011 1
a2011 1
#line 1994 "configure"
d2037 1
a2037 1
echo "configure:2020: checking for $ac_hdr" >&5
d2042 1
a2042 1
#line 2025 "configure"
d2047 1
a2047 1
{ (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2074 1
a2074 1
echo "configure:2057: checking for ANSI C header files" >&5
d2079 1
a2079 1
#line 2062 "configure"
d2087 1
a2087 1
{ (eval echo configure:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2104 1
a2104 1
#line 2087 "configure"
d2122 1
a2122 1
#line 2105 "configure"
d2143 1
a2143 1
#line 2126 "configure"
d2154 1
a2154 1
if { (eval echo configure:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2178 1
a2178 1
echo "configure:2161: checking whether time.h and sys/time.h may both be included" >&5
d2183 1
a2183 1
#line 2166 "configure"
d2192 1
a2192 1
if { (eval echo configure:2175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2213 1
a2213 1
echo "configure:2196: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d2218 1
a2218 1
#line 2201 "configure"
d2230 1
a2230 1
if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2252 1
a2252 1
echo "configure:2235: checking for struct utimbuf" >&5
d2257 1
a2257 1
#line 2240 "configure"
d2276 1
a2276 1
if { (eval echo configure:2259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2297 1
a2297 1
echo "configure:2280: checking return type of signal handlers" >&5
d2302 1
a2302 1
#line 2285 "configure"
d2319 1
a2319 1
if { (eval echo configure:2302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2339 1
a2339 1
echo "configure:2322: checking for struct timeval" >&5
d2344 1
a2344 1
#line 2327 "configure"
d2360 1
a2360 1
if { (eval echo configure:2343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2382 1
a2382 1
echo "configure:2365: checking whether struct tm is in sys/time.h or time.h" >&5
d2387 1
a2387 1
#line 2370 "configure"
d2395 1
a2395 1
if { (eval echo configure:2378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2416 1
a2416 1
echo "configure:2399: checking for tm_zone in struct tm" >&5
d2421 1
a2421 1
#line 2404 "configure"
d2429 1
a2429 1
if { (eval echo configure:2412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2449 1
a2449 1
echo "configure:2432: checking for tzname" >&5
d2454 1
a2454 1
#line 2437 "configure"
d2464 1
a2464 1
if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2487 1
a2487 1
echo "configure:2470: checking for working const" >&5
d2492 1
a2492 1
#line 2475 "configure"
d2541 1
a2541 1
if { (eval echo configure:2524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2563 1
a2563 1
echo "configure:2546: checking whether ${MAKE-make} sets \${MAKE}" >&5
d2591 1
a2591 1
echo "configure:2574: checking for long file names" >&5
d2642 1
a2642 1
echo "configure:2625: checking for X" >&5
d2704 1
a2704 1
#line 2687 "configure"
d2709 1
a2709 1
{ (eval echo configure:2692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2778 1
a2778 1
#line 2761 "configure"
d2785 1
a2785 1
if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2959 1
a2959 1
echo "configure:2942: checking the machine- and system-dependent files to find out
d3089 1
a3089 1
echo "configure:3072: checking for malloc_get_state" >&5
d3094 1
a3094 1
#line 3077 "configure"
d3117 1
a3117 1
if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3138 1
a3138 1
echo "configure:3121: checking for malloc_set_state" >&5
d3143 1
a3143 1
#line 3126 "configure"
d3166 1
a3166 1
if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3187 1
a3187 1
echo "configure:3170: checking whether __after_morecore_hook exists" >&5
d3192 1
a3192 1
#line 3175 "configure"
d3199 1
a3199 1
if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3249 1
a3249 1
echo "configure:3232: checking for dnet_ntoa in -ldnet" >&5
d3257 1
a3257 1
#line 3240 "configure"
d3268 1
a3268 1
if { (eval echo configure:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3297 1
a3297 1
echo "configure:3280: checking for main in -lXbsd" >&5
d3305 1
a3305 1
#line 3288 "configure"
d3312 1
a3312 1
if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3334 1
a3334 1
echo "configure:3317: checking for cma_open in -lpthreads" >&5
d3342 1
a3342 1
#line 3325 "configure"
d3353 1
a3353 1
if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3381 2
a3382 2
echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
echo "configure:3365: checking for XFree86 in /usr/X386" >&5
d3411 1
a3411 1
echo "configure:3394: checking whether X on GNU/Linux needs -b to link" >&5
d3413 1
a3413 1
#line 3396 "configure"
d3420 1
a3420 1
if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3440 1
a3440 1
#line 3423 "configure"
d3447 1
a3447 1
if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3477 1
a3477 1
echo "configure:3460: checking for $ac_func" >&5
d3482 1
a3482 1
#line 3465 "configure"
d3505 1
a3505 1
if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3533 1
a3533 1
echo "configure:3516: checking X11 version 6" >&5
d3538 1
a3538 1
#line 3521 "configure"
d3548 1
a3548 1
if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3573 1
a3573 1
echo "configure:3556: checking X11 version 5" >&5
d3578 1
a3578 1
#line 3561 "configure"
d3588 1
a3588 1
if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3616 1
a3616 1
echo "configure:3599: checking X11 version 5 with Xaw" >&5
d3621 1
a3621 1
#line 3604 "configure"
d3630 1
a3630 1
if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3658 1
a3658 1
echo "configure:3641: checking X11 toolkit version" >&5
d3663 1
a3663 1
#line 3646 "configure"
d3673 1
a3673 1
if { (eval echo configure:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3703 1
a3703 1
echo "configure:3686: checking for XmuConvertStandardSelection in -lXmu" >&5
d3711 1
a3711 1
#line 3694 "configure"
d3722 1
a3722 1
if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3754 1
a3754 1
echo "configure:3737: checking for Motif version 2.1" >&5
d3759 1
a3759 1
#line 3742 "configure"
d3770 1
a3770 1
if { (eval echo configure:3753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3788 47
    echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
echo "configure:3773: checking for XpCreateContext in -lXp" >&5
ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lXp  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3781 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XpCreateContext();

int main() {
XpCreateContext()
; return 0; }
EOF
if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lXp $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

d3794 1
a3794 1
echo "configure:3824: checking whether netdb declares h_errno" >&5
d3799 1
a3799 1
#line 3829 "configure"
d3806 1
a3806 1
if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3829 1
a3829 1
echo "configure:3859: checking for working alloca.h" >&5
d3834 1
a3834 1
#line 3864 "configure"
d3841 1
a3841 1
if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3862 1
a3862 1
echo "configure:3892: checking for alloca" >&5
d3867 1
a3867 1
#line 3897 "configure"
d3890 1
a3890 1
if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3922 1
a3922 1
echo "configure:3952: checking whether alloca needs Cray hooks" >&5
d3927 1
a3927 1
#line 3957 "configure"
d3952 1
a3952 1
echo "configure:3982: checking for $ac_func" >&5
d3957 1
a3957 1
#line 3987 "configure"
d3980 1
a3980 1
if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4007 1
a4007 1
echo "configure:4037: checking stack direction for C alloca" >&5
d4015 1
a4015 1
#line 4045 "configure"
d4034 1
a4034 1
if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d4059 1
a4059 1
echo "configure:4089: checking for sqrt in -lm" >&5
d4067 1
a4067 1
#line 4097 "configure"
d4078 1
a4078 1
if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4108 1
a4108 1
echo "configure:4138: checking for maillock in -lmail" >&5
d4116 1
a4116 1
#line 4146 "configure"
d4127 1
a4127 1
if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4149 1
a4149 1
echo "configure:4179: checking for $ac_func" >&5
d4154 1
a4154 1
#line 4184 "configure"
d4177 1
a4177 1
if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4205 1
a4205 1
echo "configure:4235: checking for $ac_hdr" >&5
d4210 1
a4210 1
#line 4240 "configure"
d4215 1
a4215 1
{ (eval echo configure:4245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4253 1
a4253 1
echo "configure:4283: checking for $ac_func" >&5
d4258 1
a4258 1
#line 4288 "configure"
d4281 1
a4281 1
if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4311 1
a4311 1
echo "configure:4341: checking for tparm in -lncurses" >&5
d4319 1
a4319 1
#line 4349 "configure"
d4330 1
a4330 1
if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4358 799
d5160 1
a5160 1
echo "configure:4391: checking for dgettext in -lintl" >&5
d5168 1
a5168 1
#line 4399 "configure"
d5179 1
a5179 1
if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d5208 1
a5208 1
echo "configure:4439: checking whether localtime caches TZ" >&5
d5218 1
a5218 1
#line 4449 "configure"
d5253 1
a5253 1
if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d5281 1
a5281 1
echo "configure:4512: checking whether gettimeofday can accept two arguments" >&5
d5286 1
a5286 1
#line 4517 "configure"
d5308 1
a5308 1
if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d5331 1
a5331 1
echo "configure:4562: checking for socket" >&5
d5336 1
a5336 1
#line 4567 "configure"
d5359 1
a5359 1
if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d5382 1
a5382 1
echo "configure:4613: checking for netinet/in.h" >&5
d5387 1
a5387 1
#line 4618 "configure"
d5392 1
a5392 1
{ (eval echo configure:4623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5418 1
a5418 1
echo "configure:4649: checking for arpa/inet.h" >&5
d5423 1
a5423 1
#line 4654 "configure"
d5428 1
a5428 1
{ (eval echo configure:4659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6006 1
a6006 1
for dir in etc lisp ; do
d6025 2
a6026 2
echo creating src/epaths.h
make epaths-force
@


1.1.1.27
log
@import emacs-20.5
@
text
@d1333 1
a1333 1
  sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
d2887 1
a2887 2
    fi
    if test -d "${bmd}/bitmaps"; then
d2941 1
a2941 1
echo "configure:2943: checking the machine- and system-dependent files to find out
d3071 1
a3071 1
echo "configure:3073: checking for malloc_get_state" >&5
d3076 1
a3076 1
#line 3078 "configure"
d3099 1
a3099 1
if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3120 1
a3120 1
echo "configure:3122: checking for malloc_set_state" >&5
d3125 1
a3125 1
#line 3127 "configure"
d3148 1
a3148 1
if { (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3169 1
a3169 1
echo "configure:3171: checking whether __after_morecore_hook exists" >&5
d3174 1
a3174 1
#line 3176 "configure"
d3181 1
a3181 1
if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3231 1
a3231 1
echo "configure:3233: checking for dnet_ntoa in -ldnet" >&5
d3239 1
a3239 1
#line 3241 "configure"
d3250 1
a3250 1
if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3279 1
a3279 1
echo "configure:3281: checking for main in -lXbsd" >&5
d3287 1
a3287 1
#line 3289 "configure"
d3294 1
a3294 1
if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3316 1
a3316 1
echo "configure:3318: checking for cma_open in -lpthreads" >&5
d3324 1
a3324 1
#line 3326 "configure"
d3335 1
a3335 1
if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3364 1
a3364 1
echo "configure:3366: checking for XFree86 in /usr/X386" >&5
d3393 1
a3393 1
echo "configure:3395: checking whether X on GNU/Linux needs -b to link" >&5
d3395 1
a3395 1
#line 3397 "configure"
d3402 1
a3402 1
if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3422 1
a3422 1
#line 3424 "configure"
d3429 1
a3429 1
if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3459 1
a3459 1
echo "configure:3461: checking for $ac_func" >&5
d3464 1
a3464 1
#line 3466 "configure"
d3487 1
a3487 1
if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3515 1
a3515 1
echo "configure:3517: checking X11 version 6" >&5
d3520 1
a3520 1
#line 3522 "configure"
d3530 1
a3530 1
if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3555 1
a3555 1
echo "configure:3557: checking X11 version 5" >&5
d3560 1
a3560 1
#line 3562 "configure"
d3570 1
a3570 1
if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3598 1
a3598 1
echo "configure:3600: checking X11 version 5 with Xaw" >&5
d3603 1
a3603 1
#line 3605 "configure"
d3612 1
a3612 1
if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3640 1
a3640 1
echo "configure:3642: checking X11 toolkit version" >&5
d3645 1
a3645 1
#line 3647 "configure"
d3655 1
a3655 1
if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3685 1
a3685 1
echo "configure:3687: checking for XmuConvertStandardSelection in -lXmu" >&5
d3693 1
a3693 1
#line 3695 "configure"
d3704 1
a3704 1
if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3736 1
a3736 1
echo "configure:3738: checking for Motif version 2.1" >&5
d3741 1
a3741 1
#line 3743 "configure"
d3752 1
a3752 1
if { (eval echo configure:3754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3772 1
a3772 1
echo "configure:3774: checking for XpCreateContext in -lXp" >&5
d3780 1
a3780 1
#line 3782 "configure"
d3791 1
a3791 1
if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3823 1
a3823 1
echo "configure:3825: checking whether netdb declares h_errno" >&5
d3828 1
a3828 1
#line 3830 "configure"
d3835 1
a3835 1
if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3858 1
a3858 1
echo "configure:3860: checking for working alloca.h" >&5
d3863 1
a3863 1
#line 3865 "configure"
d3870 1
a3870 1
if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3891 1
a3891 1
echo "configure:3893: checking for alloca" >&5
d3896 1
a3896 1
#line 3898 "configure"
d3919 1
a3919 1
if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3951 1
a3951 1
echo "configure:3953: checking whether alloca needs Cray hooks" >&5
d3956 1
a3956 1
#line 3958 "configure"
d3981 1
a3981 1
echo "configure:3983: checking for $ac_func" >&5
d3986 1
a3986 1
#line 3988 "configure"
d4009 1
a4009 1
if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4036 1
a4036 1
echo "configure:4038: checking stack direction for C alloca" >&5
d4044 1
a4044 1
#line 4046 "configure"
d4063 1
a4063 1
if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d4088 1
a4088 1
echo "configure:4090: checking for sqrt in -lm" >&5
d4096 1
a4096 1
#line 4098 "configure"
d4107 1
a4107 1
if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4137 1
a4137 1
echo "configure:4139: checking for maillock in -lmail" >&5
d4145 1
a4145 1
#line 4147 "configure"
d4156 1
a4156 1
if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4178 1
a4178 1
echo "configure:4180: checking for $ac_func" >&5
d4183 1
a4183 1
#line 4185 "configure"
d4206 1
a4206 1
if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4234 1
a4234 1
echo "configure:4236: checking for $ac_hdr" >&5
d4239 1
a4239 1
#line 4241 "configure"
d4244 1
a4244 1
{ (eval echo configure:4246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4282 1
a4282 1
echo "configure:4284: checking for $ac_func" >&5
d4287 1
a4287 1
#line 4289 "configure"
d4310 1
a4310 1
if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4340 1
a4340 1
echo "configure:4342: checking for tparm in -lncurses" >&5
d4348 1
a4348 1
#line 4350 "configure"
d4359 1
a4359 1
if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4390 1
a4390 1
echo "configure:4392: checking for dgettext in -lintl" >&5
d4398 1
a4398 1
#line 4400 "configure"
d4409 1
a4409 1
if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4438 1
a4438 1
echo "configure:4440: checking whether localtime caches TZ" >&5
d4448 1
a4448 1
#line 4450 "configure"
d4483 1
a4483 1
if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d4511 1
a4511 1
echo "configure:4513: checking whether gettimeofday can accept two arguments" >&5
d4516 1
a4516 1
#line 4518 "configure"
d4538 1
a4538 1
if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4561 1
a4561 1
echo "configure:4563: checking for socket" >&5
d4566 1
a4566 1
#line 4568 "configure"
d4589 1
a4589 1
if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d4612 1
a4612 1
echo "configure:4614: checking for netinet/in.h" >&5
d4617 1
a4617 1
#line 4619 "configure"
d4622 1
a4622 1
{ (eval echo configure:4624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4648 1
a4648 1
echo "configure:4650: checking for arpa/inet.h" >&5
d4653 1
a4653 1
#line 4655 "configure"
d4658 1
a4658 1
{ (eval echo configure:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
@


1.1.1.28
log
@import emacs-20.6
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.13 
a61 1
SHELL=${CONFIG_SHELL-/bin/sh}
d345 1
a345 1
    echo "configure generated by autoconf version 2.13"
d515 1
a515 1
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a517 2
ac_exeext=
ac_objext=o
d652 1
a652 1
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
d657 1
a657 1
echo "configure:661: checking host system type" >&5
d664 1
a664 1
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
d671 1
a671 1
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a783 6
    case "${canonical}" in
    # This is necessary on 5.0 to avoid mangling src/Makefile.
    # Separated out in case it causes problems on earlier versions.
    alpha*-dec-osf[5-9]*)
      NON_GNU_CPP='cc -E -std0' ;;
    esac
a789 4
  arm*-*-linux-gnu* )
    machine=arm opsys=gnu-linux       
  ;;

d1598 1
a1598 1
echo "configure:1612: checking for $ac_word" >&5
d1605 2
a1606 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
d1627 1
a1627 1
echo "configure:1642: checking for $ac_word" >&5
d1634 1
a1634 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
d1636 1
a1636 2
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
a1670 34
  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1693: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
 ;;
    esac
  fi
d1675 1
a1675 1
echo "configure:1725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d1681 1
a1681 1
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
d1684 2
a1685 3
cat > conftest.$ac_ext << EOF

#line 1736 "configure"
a1686 1

d1689 1
a1689 1
if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a1702 6
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
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'
cross_compiling=$ac_cv_prog_cc_cross
d1709 1
a1709 1
echo "configure:1767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1714 1
a1714 1
echo "configure:1772: checking whether we are using GNU C" >&5
d1723 1
a1723 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1734 5
a1738 9
else
  GCC=
fi

ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:1800: checking whether ${CC-cc} accepts -g" >&5
d1753 3
a1755 4
if test "$ac_test_CFLAGS" = set; then
  CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
d1758 1
a1758 1
    CFLAGS="-g"
d1761 2
a1762 5
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
d1814 1
a1814 1
echo "configure:1880: checking whether ln -s works" >&5
d1835 1
a1835 1
echo "configure:1901: checking how to run the C preprocessor" >&5
d1850 1
a1850 1
#line 1916 "configure"
d1856 2
a1857 2
{ (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d1867 1
a1867 18
#line 1933 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
#line 1950 "configure"
d1873 2
a1874 2
{ (eval echo configure:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a1886 2
fi
rm -f conftest*
a1901 1
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
d1906 1
a1906 1
echo "configure:1992: checking for a BSD compatible install" >&5
d1911 1
a1911 1
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
d1918 1
a1918 3
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
d1923 1
a1952 2
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'

d1960 1
a1960 1
echo "configure:2049: checking for $ac_word" >&5
d1967 2
a1968 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
d1991 1
a1991 1
echo "configure:2081: checking for AIX" >&5
d1993 1
a1993 1
#line 2083 "configure"
d2019 1
a2019 1
echo "configure:2109: checking for $ac_hdr" >&5
d2024 1
a2024 1
#line 2114 "configure"
d2029 2
a2030 2
{ (eval echo configure:2119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2056 1
a2056 1
echo "configure:2146: checking for ANSI C header files" >&5
d2061 1
a2061 1
#line 2151 "configure"
d2069 2
a2070 2
{ (eval echo configure:2159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2086 1
a2086 1
#line 2176 "configure"
d2104 1
a2104 1
#line 2194 "configure"
d2125 1
a2125 1
#line 2215 "configure"
d2136 1
a2136 1
if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2160 1
a2160 1
echo "configure:2250: checking whether time.h and sys/time.h may both be included" >&5
d2165 1
a2165 1
#line 2255 "configure"
d2174 1
a2174 1
if { (eval echo configure:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2195 1
a2195 1
echo "configure:2285: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d2200 1
a2200 1
#line 2290 "configure"
d2212 1
a2212 1
if { (eval echo configure:2302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2234 1
a2234 1
echo "configure:2324: checking for struct utimbuf" >&5
d2239 1
a2239 1
#line 2329 "configure"
d2258 1
a2258 1
if { (eval echo configure:2348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2279 1
a2279 1
echo "configure:2369: checking return type of signal handlers" >&5
d2284 1
a2284 1
#line 2374 "configure"
d2301 1
a2301 1
if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2321 1
a2321 1
echo "configure:2411: checking for struct timeval" >&5
d2326 1
a2326 1
#line 2416 "configure"
d2342 1
a2342 1
if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2364 1
a2364 1
echo "configure:2454: checking whether struct tm is in sys/time.h or time.h" >&5
d2369 1
a2369 1
#line 2459 "configure"
d2377 1
a2377 1
if { (eval echo configure:2467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2398 1
a2398 1
echo "configure:2488: checking for tm_zone in struct tm" >&5
d2403 1
a2403 1
#line 2493 "configure"
d2411 1
a2411 1
if { (eval echo configure:2501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2431 1
a2431 1
echo "configure:2521: checking for tzname" >&5
d2436 1
a2436 1
#line 2526 "configure"
d2446 1
a2446 1
if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2469 1
a2469 1
echo "configure:2559: checking for working const" >&5
d2474 1
a2474 1
#line 2564 "configure"
d2523 1
a2523 1
if { (eval echo configure:2613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2545 1
a2545 1
echo "configure:2635: checking whether ${MAKE-make} sets \${MAKE}" >&5
d2573 1
a2573 1
echo "configure:2663: checking for long file names" >&5
d2624 1
a2624 1
echo "configure:2714: checking for X" >&5
d2686 1
a2686 1
#line 2776 "configure"
d2691 2
a2692 2
{ (eval echo configure:2781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2760 1
a2760 1
#line 2850 "configure"
d2767 1
a2767 1
if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2942 1
a2942 1
echo "configure:3032: checking the machine- and system-dependent files to find out
d3072 1
a3072 1
echo "configure:3162: checking for malloc_get_state" >&5
d3077 1
a3077 1
#line 3167 "configure"
d3100 1
a3100 1
if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3121 1
a3121 1
echo "configure:3211: checking for malloc_set_state" >&5
d3126 1
a3126 1
#line 3216 "configure"
d3149 1
a3149 1
if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3170 1
a3170 1
echo "configure:3260: checking whether __after_morecore_hook exists" >&5
d3175 1
a3175 1
#line 3265 "configure"
d3182 1
a3182 1
if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3232 1
a3232 1
echo "configure:3322: checking for dnet_ntoa in -ldnet" >&5
d3240 1
a3240 1
#line 3330 "configure"
d3251 1
a3251 1
if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3280 1
a3280 1
echo "configure:3370: checking for main in -lXbsd" >&5
d3288 1
a3288 1
#line 3378 "configure"
d3295 1
a3295 1
if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3317 1
a3317 1
echo "configure:3407: checking for cma_open in -lpthreads" >&5
d3325 1
a3325 1
#line 3415 "configure"
d3336 1
a3336 1
if { (eval echo configure:3426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3365 1
a3365 1
echo "configure:3455: checking for XFree86 in /usr/X386" >&5
d3394 1
a3394 1
echo "configure:3484: checking whether X on GNU/Linux needs -b to link" >&5
d3396 1
a3396 1
#line 3486 "configure"
d3403 1
a3403 1
if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3423 1
a3423 1
#line 3513 "configure"
d3430 1
a3430 1
if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3460 1
a3460 1
echo "configure:3550: checking for $ac_func" >&5
d3465 1
a3465 1
#line 3555 "configure"
d3488 1
a3488 1
if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3516 1
a3516 1
echo "configure:3606: checking X11 version 6" >&5
d3521 1
a3521 1
#line 3611 "configure"
d3531 1
a3531 1
if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3556 1
a3556 1
echo "configure:3646: checking X11 version 5" >&5
d3561 1
a3561 1
#line 3651 "configure"
d3571 1
a3571 1
if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3599 1
a3599 1
echo "configure:3689: checking X11 version 5 with Xaw" >&5
d3604 1
a3604 1
#line 3694 "configure"
d3613 1
a3613 1
if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3641 1
a3641 1
echo "configure:3731: checking X11 toolkit version" >&5
d3646 1
a3646 1
#line 3736 "configure"
d3656 1
a3656 1
if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3686 1
a3686 1
echo "configure:3776: checking for XmuConvertStandardSelection in -lXmu" >&5
d3694 1
a3694 1
#line 3784 "configure"
d3705 1
a3705 1
if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3737 1
a3737 1
echo "configure:3827: checking for Motif version 2.1" >&5
d3742 1
a3742 1
#line 3832 "configure"
d3753 1
a3753 1
if { (eval echo configure:3843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3773 1
a3773 1
echo "configure:3863: checking for XpCreateContext in -lXp" >&5
d3781 1
a3781 1
#line 3871 "configure"
d3792 1
a3792 1
if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3824 1
a3824 1
echo "configure:3914: checking whether netdb declares h_errno" >&5
d3829 1
a3829 1
#line 3919 "configure"
d3836 1
a3836 1
if { (eval echo configure:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3859 1
a3859 1
echo "configure:3949: checking for working alloca.h" >&5
d3864 1
a3864 1
#line 3954 "configure"
d3871 1
a3871 1
if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3892 1
a3892 1
echo "configure:3982: checking for alloca" >&5
d3897 1
a3897 1
#line 3987 "configure"
d3903 2
a3904 3
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
d3906 2
a3907 2
#  if HAVE_ALLOCA_H
#   include <alloca.h>
d3909 1
a3909 4
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
a3910 1
#    endif
d3920 1
a3920 1
if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3945 1
a3945 1
  ALLOCA=alloca.${ac_objext}
d3952 1
a3952 1
echo "configure:4047: checking whether alloca needs Cray hooks" >&5
d3957 1
a3957 1
#line 4052 "configure"
d3982 1
a3982 1
echo "configure:4077: checking for $ac_func" >&5
d3987 1
a3987 1
#line 4082 "configure"
d4010 1
a4010 1
if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4037 1
a4037 1
echo "configure:4132: checking stack direction for C alloca" >&5
d4045 1
a4045 1
#line 4140 "configure"
d4064 1
a4064 1
if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4089 1
a4089 1
echo "configure:4184: checking for sqrt in -lm" >&5
d4097 1
a4097 1
#line 4192 "configure"
d4108 1
a4108 1
if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4138 1
a4138 1
echo "configure:4233: checking for maillock in -lmail" >&5
d4146 1
a4146 1
#line 4241 "configure"
d4157 1
a4157 1
if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4179 1
a4179 1
echo "configure:4274: checking for $ac_func" >&5
d4184 1
a4184 1
#line 4279 "configure"
d4207 1
a4207 1
if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4235 1
a4235 1
echo "configure:4330: checking for $ac_hdr" >&5
d4240 1
a4240 1
#line 4335 "configure"
d4245 2
a4246 2
{ (eval echo configure:4340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d4283 1
a4283 1
echo "configure:4378: checking for $ac_func" >&5
d4288 1
a4288 1
#line 4383 "configure"
d4311 1
a4311 1
if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4341 1
a4341 1
echo "configure:4436: checking for tparm in -lncurses" >&5
d4349 1
a4349 1
#line 4444 "configure"
d4360 1
a4360 1
if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4391 1
a4391 1
echo "configure:4486: checking for dgettext in -lintl" >&5
d4399 1
a4399 1
#line 4494 "configure"
d4410 1
a4410 1
if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4439 1
a4439 1
echo "configure:4534: checking whether localtime caches TZ" >&5
d4449 1
a4449 1
#line 4544 "configure"
d4484 1
a4484 1
if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4512 1
a4512 1
echo "configure:4607: checking whether gettimeofday can accept two arguments" >&5
d4517 1
a4517 1
#line 4612 "configure"
d4539 1
a4539 1
if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4562 1
a4562 1
echo "configure:4657: checking for socket" >&5
d4567 1
a4567 1
#line 4662 "configure"
d4590 1
a4590 1
if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4613 1
a4613 1
echo "configure:4708: checking for netinet/in.h" >&5
d4618 1
a4618 1
#line 4713 "configure"
d4623 2
a4624 2
{ (eval echo configure:4718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d4649 1
a4649 1
echo "configure:4744: checking for arpa/inet.h" >&5
d4654 1
a4654 1
#line 4749 "configure"
d4659 2
a4660 2
{ (eval echo configure:4754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d4943 1
a4943 1
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
a4964 1
s%@@SHELL@@%$SHELL%g
a4967 1
s%@@FFLAGS@@%$FFLAGS%g
a4994 1
s%@@INSTALL_SCRIPT@@%$INSTALL_SCRIPT%g
@


1.1.1.29
log
@import emacs-20.7
@
text
@a1179 5
  ## Macintosh PowerPC
  powerpc*-*-linux-gnu* )
    machine=macppc opsys=gnu-linux
  ;;

d1611 1
a1611 1
echo "configure:1617: checking for $ac_word" >&5
d1641 1
a1641 1
echo "configure:1647: checking for $ac_word" >&5
d1692 1
a1692 1
echo "configure:1698: checking for $ac_word" >&5
d1724 1
a1724 1
echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d1735 1
a1735 1
#line 1741 "configure"
d1740 1
a1740 1
if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1766 1
a1766 1
echo "configure:1772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1771 1
a1771 1
echo "configure:1777: checking whether we are using GNU C" >&5
d1780 1
a1780 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1799 1
a1799 1
echo "configure:1805: checking whether ${CC-cc} accepts -g" >&5
d1879 1
a1879 1
echo "configure:1885: checking whether ln -s works" >&5
d1900 1
a1900 1
echo "configure:1906: checking how to run the C preprocessor" >&5
d1915 1
a1915 1
#line 1921 "configure"
d1921 1
a1921 1
{ (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1932 1
a1932 1
#line 1938 "configure"
d1938 1
a1938 1
{ (eval echo configure:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1949 1
a1949 1
#line 1955 "configure"
d1955 1
a1955 1
{ (eval echo configure:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1991 1
a1991 1
echo "configure:1997: checking for a BSD compatible install" >&5
d2048 1
a2048 1
echo "configure:2054: checking for $ac_word" >&5
d2080 1
a2080 1
echo "configure:2086: checking for AIX" >&5
d2082 1
a2082 1
#line 2088 "configure"
d2108 1
a2108 1
echo "configure:2114: checking for $ac_hdr" >&5
d2113 1
a2113 1
#line 2119 "configure"
d2118 1
a2118 1
{ (eval echo configure:2124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2145 1
a2145 1
echo "configure:2151: checking for ANSI C header files" >&5
d2150 1
a2150 1
#line 2156 "configure"
d2158 1
a2158 1
{ (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2175 1
a2175 1
#line 2181 "configure"
d2193 1
a2193 1
#line 2199 "configure"
d2214 1
a2214 1
#line 2220 "configure"
d2225 1
a2225 1
if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2249 1
a2249 1
echo "configure:2255: checking whether time.h and sys/time.h may both be included" >&5
d2254 1
a2254 1
#line 2260 "configure"
d2263 1
a2263 1
if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2284 1
a2284 1
echo "configure:2290: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d2289 1
a2289 1
#line 2295 "configure"
d2301 1
a2301 1
if { (eval echo configure:2307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2323 1
a2323 1
echo "configure:2329: checking for struct utimbuf" >&5
d2328 1
a2328 1
#line 2334 "configure"
d2347 1
a2347 1
if { (eval echo configure:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2368 1
a2368 1
echo "configure:2374: checking return type of signal handlers" >&5
d2373 1
a2373 1
#line 2379 "configure"
d2390 1
a2390 1
if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2410 1
a2410 1
echo "configure:2416: checking for struct timeval" >&5
d2415 1
a2415 1
#line 2421 "configure"
d2431 1
a2431 1
if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2453 1
a2453 1
echo "configure:2459: checking whether struct tm is in sys/time.h or time.h" >&5
d2458 1
a2458 1
#line 2464 "configure"
d2466 1
a2466 1
if { (eval echo configure:2472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2487 1
a2487 1
echo "configure:2493: checking for tm_zone in struct tm" >&5
d2492 1
a2492 1
#line 2498 "configure"
d2500 1
a2500 1
if { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2520 1
a2520 1
echo "configure:2526: checking for tzname" >&5
d2525 1
a2525 1
#line 2531 "configure"
d2535 1
a2535 1
if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2558 1
a2558 1
echo "configure:2564: checking for working const" >&5
d2563 1
a2563 1
#line 2569 "configure"
d2612 1
a2612 1
if { (eval echo configure:2618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2634 1
a2634 1
echo "configure:2640: checking whether ${MAKE-make} sets \${MAKE}" >&5
d2662 1
a2662 1
echo "configure:2668: checking for long file names" >&5
d2713 1
a2713 1
echo "configure:2719: checking for X" >&5
d2775 1
a2775 1
#line 2781 "configure"
d2780 1
a2780 1
{ (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2849 1
a2849 1
#line 2855 "configure"
d2856 1
a2856 1
if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3031 1
a3031 1
echo "configure:3037: checking the machine- and system-dependent files to find out
d3161 1
a3161 1
echo "configure:3167: checking for malloc_get_state" >&5
d3166 1
a3166 1
#line 3172 "configure"
d3189 1
a3189 1
if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3210 1
a3210 1
echo "configure:3216: checking for malloc_set_state" >&5
d3215 1
a3215 1
#line 3221 "configure"
d3238 1
a3238 1
if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3259 1
a3259 1
echo "configure:3265: checking whether __after_morecore_hook exists" >&5
d3264 1
a3264 1
#line 3270 "configure"
d3271 1
a3271 1
if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3321 1
a3321 1
echo "configure:3327: checking for dnet_ntoa in -ldnet" >&5
d3329 1
a3329 1
#line 3335 "configure"
d3340 1
a3340 1
if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3369 1
a3369 1
echo "configure:3375: checking for main in -lXbsd" >&5
d3377 1
a3377 1
#line 3383 "configure"
d3384 1
a3384 1
if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3406 1
a3406 1
echo "configure:3412: checking for cma_open in -lpthreads" >&5
d3414 1
a3414 1
#line 3420 "configure"
d3425 1
a3425 1
if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3454 1
a3454 1
echo "configure:3460: checking for XFree86 in /usr/X386" >&5
d3483 1
a3483 1
echo "configure:3489: checking whether X on GNU/Linux needs -b to link" >&5
d3485 1
a3485 1
#line 3491 "configure"
d3492 1
a3492 1
if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3512 1
a3512 1
#line 3518 "configure"
d3519 1
a3519 1
if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3549 1
a3549 1
echo "configure:3555: checking for $ac_func" >&5
d3554 1
a3554 1
#line 3560 "configure"
d3577 1
a3577 1
if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3605 1
a3605 1
echo "configure:3611: checking X11 version 6" >&5
d3610 1
a3610 1
#line 3616 "configure"
d3620 1
a3620 1
if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3645 1
a3645 1
echo "configure:3651: checking X11 version 5" >&5
d3650 1
a3650 1
#line 3656 "configure"
d3660 1
a3660 1
if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3688 1
a3688 1
echo "configure:3694: checking X11 version 5 with Xaw" >&5
d3693 1
a3693 1
#line 3699 "configure"
d3702 1
a3702 1
if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3730 1
a3730 1
echo "configure:3736: checking X11 toolkit version" >&5
d3735 1
a3735 1
#line 3741 "configure"
d3745 1
a3745 1
if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3775 1
a3775 1
echo "configure:3781: checking for XmuConvertStandardSelection in -lXmu" >&5
d3783 1
a3783 1
#line 3789 "configure"
d3794 1
a3794 1
if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3826 1
a3826 1
echo "configure:3832: checking for Motif version 2.1" >&5
d3831 1
a3831 1
#line 3837 "configure"
d3842 1
a3842 1
if { (eval echo configure:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3862 1
a3862 1
echo "configure:3868: checking for XpCreateContext in -lXp" >&5
d3870 1
a3870 1
#line 3876 "configure"
d3881 1
a3881 1
if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3913 1
a3913 1
echo "configure:3919: checking whether netdb declares h_errno" >&5
d3918 1
a3918 1
#line 3924 "configure"
d3925 1
a3925 1
if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3948 1
a3948 1
echo "configure:3954: checking for working alloca.h" >&5
d3953 1
a3953 1
#line 3959 "configure"
d3960 1
a3960 1
if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3981 1
a3981 1
echo "configure:3987: checking for alloca" >&5
d3986 1
a3986 1
#line 3992 "configure"
d4014 1
a4014 1
if { (eval echo configure:4020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4046 1
a4046 1
echo "configure:4052: checking whether alloca needs Cray hooks" >&5
d4051 1
a4051 1
#line 4057 "configure"
d4076 1
a4076 1
echo "configure:4082: checking for $ac_func" >&5
d4081 1
a4081 1
#line 4087 "configure"
d4104 1
a4104 1
if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4131 1
a4131 1
echo "configure:4137: checking stack direction for C alloca" >&5
d4139 1
a4139 1
#line 4145 "configure"
d4158 1
a4158 1
if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4183 1
a4183 1
echo "configure:4189: checking for sqrt in -lm" >&5
d4191 1
a4191 1
#line 4197 "configure"
d4202 1
a4202 1
if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4232 1
a4232 1
echo "configure:4238: checking for maillock in -lmail" >&5
d4240 1
a4240 1
#line 4246 "configure"
d4251 1
a4251 1
if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4273 1
a4273 1
echo "configure:4279: checking for $ac_func" >&5
d4278 1
a4278 1
#line 4284 "configure"
d4301 1
a4301 1
if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4329 1
a4329 1
echo "configure:4335: checking for $ac_hdr" >&5
d4334 1
a4334 1
#line 4340 "configure"
d4339 1
a4339 1
{ (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4377 1
a4377 115
echo "configure:4383: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4388 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


# UNIX98 PTYs.
for ac_func in grantpt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4440: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4445 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


# PTY-related GNU extensions.
for ac_func in getpt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4497: checking for $ac_func" >&5
d4382 1
a4382 1
#line 4502 "configure"
d4405 1
a4405 1
if { (eval echo configure:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4435 1
a4435 1
echo "configure:4555: checking for tparm in -lncurses" >&5
d4443 1
a4443 1
#line 4563 "configure"
d4454 1
a4454 1
if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4485 1
a4485 1
echo "configure:4605: checking for dgettext in -lintl" >&5
d4493 1
a4493 1
#line 4613 "configure"
d4504 1
a4504 1
if { (eval echo configure:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4533 1
a4533 1
echo "configure:4653: checking whether localtime caches TZ" >&5
d4543 1
a4543 1
#line 4663 "configure"
d4578 1
a4578 1
if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4606 1
a4606 1
echo "configure:4726: checking whether gettimeofday can accept two arguments" >&5
d4611 1
a4611 1
#line 4731 "configure"
d4633 1
a4633 1
if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4656 1
a4656 1
echo "configure:4776: checking for socket" >&5
d4661 1
a4661 1
#line 4781 "configure"
d4684 1
a4684 1
if { (eval echo configure:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4707 1
a4707 1
echo "configure:4827: checking for netinet/in.h" >&5
d4712 1
a4712 1
#line 4832 "configure"
d4717 1
a4717 1
{ (eval echo configure:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4743 1
a4743 1
echo "configure:4863: checking for arpa/inet.h" >&5
d4748 1
a4748 1
#line 4868 "configure"
d4753 1
a4753 1
{ (eval echo configure:4873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
@


1.1.1.30
log
@import emacs-21.0.103
@
text
@d15 1
a15 1
  --without-gcc           don't use GCC to compile Emacs if GCC is found"
d17 1
a17 5
  --without-pop           don't support POP mail retrieval with movemail"
ac_help="$ac_help
  --with-kerberos         support Kerberos-authenticated POP"
ac_help="$ac_help
  --with-kerberos5        support Kerberos version 5 authenticated POP"
a22 17
  --with-xpm              use -lXpm for displaying XPM images"
ac_help="$ac_help
  --with-jpeg             use -ljpeg for displaying JPEG images"
ac_help="$ac_help
  --with-tiff             use -ltiff for displaying TIFF images"
ac_help="$ac_help
  --with-gif              use -lungif for displaying GIF images"
ac_help="$ac_help
  --with-png              use -lpng for displaying PNG images"
ac_help="$ac_help
  --without-toolkit-scroll-bars
                           don't use Motif or Xaw3d scroll bars"
ac_help="$ac_help
  --without-xim	   don't use X11 XIM"
ac_help="$ac_help
  --disable-largefile     omit support for large files"
ac_help="$ac_help
a552 8
  if test "$withval" = yes; then
   cat >> confdefs.h <<\EOF
#define MAIL_USE_POP 1
EOF

else :
fi
else
a558 27
# Check whether --with-kerberos or --without-kerberos was given.
if test "${with_kerberos+set}" = set; then
  withval="$with_kerberos"
  cat >> confdefs.h <<\EOF
#define KERBEROS 1
EOF

fi

# Check whether --with-kerberos5 or --without-kerberos5 was given.
if test "${with_kerberos5+set}" = set; then
  withval="$with_kerberos5"
  if test "${with_kerberos5+set}" = set; then
  if test "${with_kerberos+set}" != set; then
    with_kerberos=yes
    cat >> confdefs.h <<\EOF
#define KERBEROS 1
EOF

  fi
fi
cat >> confdefs.h <<\EOF
#define KERBEROS5 1
EOF

fi

a586 42
# Check whether --with-xpm or --without-xpm was given.
if test "${with_xpm+set}" = set; then
  withval="$with_xpm"
  :
fi

# Check whether --with-jpeg or --without-jpeg was given.
if test "${with_jpeg+set}" = set; then
  withval="$with_jpeg"
  :
fi

# Check whether --with-tiff or --without-tiff was given.
if test "${with_tiff+set}" = set; then
  withval="$with_tiff"
  :
fi

# Check whether --with-gif or --without-gif was given.
if test "${with_gif+set}" = set; then
  withval="$with_gif"
  :
fi

# Check whether --with-png or --without-png was given.
if test "${with_png+set}" = set; then
  withval="$with_png"
  :
fi

# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
if test "${with_toolkit_scroll_bars+set}" = set; then
  withval="$with_toolkit_scroll_bars"
  :
fi

# Check whether --with-xim or --without-xim was given.
if test "${with_xim+set}" = set; then
  withval="$with_xim"
  :
fi

d589 1
a589 1
#### avoid running the path through pwd unnecessarily, since pwd can
a591 2
## Make sure CDPATH doesn't affect cd (in case PWD is relative).
unset CDPATH
d597 3
a599 1
    if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}"  ;
d660 1
a660 1
echo "configure:759: checking host system type" >&5
a720 1
      mipsel-*-netbsd*)	machine=pmax ;;
d722 1
a722 2
      powerpc-*-netbsd*) machine=macppc ;;
      sparc*-*-netbsd*)	machine=sparc ;;
a723 1
      arm-*-netbsd*)	machine=arm ;;
d757 1
a757 1
      powerpc-*-bsdi*)  machine=macppc ;;
a786 5
    # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
    # due to non-traditional preprocessing with the current compiler
    # defaults.  OSF 4 can also have that compiler version, and there
    # seems always to have been a usable /usr/bin/cpp.
    NON_GNU_CPP=/usr/bin/cpp
d788 2
d791 1
a791 1
      opsys=osf5-0 ;;
d800 1
a800 6
    machine=arm opsys=gnu-linux
  ;;

  ppc-*-linux | \
  powerpc-*-linux* )
    machine=macppc opsys=gnu-linux
d969 1
a969 2
  ## The GEC 63 - apparently, this port isn't really finished yet.
  #  I'm sure we finished off the last of the machines, though.  -- fx
d1310 2
a1311 5
    # Without defining _LANGUAGE_C, things get masked out in the headers
    # so that, for instance, grepping for `free' in stdlib.h fails and
    # AC_HEADER_STD_C fails.   (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
    NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
    NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
d1315 1
a1315 4
    # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
    # but presumably it does no harm.
    NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
    # -32 probably isn't necessary in later v.6s -- anyone know which?
d1355 1
a1355 1
  *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
a1495 5
  ## IA-64
  ia64*-*-linux* )
    machine=ia64 opsys=gnu-linux
  ;;

a1499 1
      *-lynxos* )               opsys=lynxos ;;
d1590 4
d1616 1
a1616 1
echo "configure:1735: checking for $ac_word" >&5
d1646 1
a1646 1
echo "configure:1765: checking for $ac_word" >&5
d1697 1
a1697 1
echo "configure:1816: checking for $ac_word" >&5
d1729 1
a1729 1
echo "configure:1848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d1740 1
a1740 1
#line 1859 "configure"
d1745 1
a1745 1
if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1771 1
a1771 1
echo "configure:1890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1776 1
a1776 1
echo "configure:1895: checking whether we are using GNU C" >&5
d1785 1
a1785 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1804 1
a1804 1
echo "configure:1923: checking whether ${CC-cc} accepts -g" >&5
d1884 1
a1884 1
echo "configure:2003: checking whether ln -s works" >&5
d1905 1
a1905 1
echo "configure:2024: checking how to run the C preprocessor" >&5
d1920 1
a1920 1
#line 2039 "configure"
d1926 1
a1926 1
{ (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1937 1
a1937 1
#line 2056 "configure"
d1943 1
a1943 1
{ (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1954 1
a1954 1
#line 2073 "configure"
d1960 1
a1960 1
{ (eval echo configure:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1996 1
a1996 1
echo "configure:2115: checking for a BSD compatible install" >&5
d2053 1
a2053 1
echo "configure:2172: checking for $ac_word" >&5
a2082 32
if test "x$RANLIB" = x; then
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2206: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

fi
d2085 1
a2085 1
echo "configure:2236: checking for AIX" >&5
d2087 1
a2087 1
#line 2238 "configure"
d2109 6
a2114 157
#### Extract some information from the operating system and machine files.

echo "checking the machine- and system-dependent files to find out
 - which libraries the lib-src programs will want, and
 - whether the GNU malloc routines are usable" 1>&6
echo "configure:2265: checking the machine- and system-dependent files to find out
 - which libraries the lib-src programs will want, and
 - whether the GNU malloc routines are usable" >&5

### First figure out CFLAGS (which we use for running the compiler here)
### and REAL_CFLAGS (which we use for real compilation).
### The two are the same except on a few systems, where they are made
### different to work around various lossages.  For example,
### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
### as implying static linking.

### If the CFLAGS env var is specified, we use that value
### instead of the default.

### It's not important that this name contain the PID; you can't run
### two configures in the same directory and have anything work
### anyway.
tempcname="conftest.c"

echo '
#include "'${srcdir}'/src/'${opsysfile}'"
#include "'${srcdir}'/src/'${machfile}'"
#ifndef LIBS_MACHINE
#define LIBS_MACHINE
#endif
#ifndef LIBS_SYSTEM
#define LIBS_SYSTEM
#endif
#ifndef C_SWITCH_SYSTEM
#define C_SWITCH_SYSTEM
#endif
#ifndef C_SWITCH_MACHINE
#define C_SWITCH_MACHINE
#endif
configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
configure___ c_switch_system=C_SWITCH_SYSTEM
configure___ c_switch_machine=C_SWITCH_MACHINE

#ifndef LIB_X11_LIB
#define LIB_X11_LIB -lX11
#endif

#ifndef LIBX11_MACHINE
#define LIBX11_MACHINE
#endif

#ifndef LIBX11_SYSTEM
#define LIBX11_SYSTEM
#endif
configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM

#ifdef UNEXEC
configure___ unexec=UNEXEC
#else
configure___ unexec=unexec.o
#endif

#ifdef SYSTEM_MALLOC
configure___ system_malloc=yes
#else
configure___ system_malloc=no
#endif

#ifdef USE_MMAP_FOR_BUFFERS
configure___ use_mmap_for_buffers=yes
#else
configure___ use_mmap_for_buffers=no
#endif

#ifndef C_DEBUG_SWITCH
#define C_DEBUG_SWITCH -g
#endif

#ifndef C_OPTIMIZE_SWITCH
#ifdef __GNUC__
#define C_OPTIMIZE_SWITCH -O2
#else
#define C_OPTIMIZE_SWITCH -O
#endif
#endif

#ifndef LD_SWITCH_MACHINE
#define LD_SWITCH_MACHINE
#endif

#ifndef LD_SWITCH_SYSTEM
#define LD_SWITCH_SYSTEM
#endif

#ifndef LD_SWITCH_X_SITE_AUX
#define LD_SWITCH_X_SITE_AUX
#endif  

configure___ ld_switch_system=LD_SWITCH_SYSTEM
configure___ ld_switch_machine=LD_SWITCH_MACHINE

#ifdef THIS_IS_CONFIGURE

/* Get the CFLAGS for tests in configure.  */
#ifdef __GNUC__
configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
#else
configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
#endif

#else /* not THIS_IS_CONFIGURE */

/* Get the CFLAGS for real compilation.  */
#ifdef __GNUC__
configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
#else
configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
#endif

#endif /* not THIS_IS_CONFIGURE */
' > ${tempcname}

# The value of CPP is a quoted variable reference, so we need to do this
# to get its actual value...
CPP=`eval "echo $CPP"`
eval `${CPP} -Isrc ${tempcname} \
       | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
if test "x$SPECIFIED_CFLAGS" = x; then
  eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
	 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
else
  REAL_CFLAGS="$CFLAGS"
fi
rm ${tempcname}

ac_link="$ac_link $ld_switch_machine $ld_switch_system"

### Make sure subsequent tests use flags consistent with the build flags.

if test x"${OVERRIDE_CPPFLAGS}" != x; then
  CPPFLAGS="${OVERRIDE_CPPFLAGS}"
else
  CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
fi


   # Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"
  :
fi

   if test "$enable_largefile" != no; then

     echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
echo "configure:2415: checking for special C compiler options needed for large files" >&5
if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
d2117 2
a2118 6
  ac_cv_sys_largefile_CC=no
        if test "$GCC" != yes; then
	  # IRIX 6.2 and later do not support large files by default,
	  # so use the C compiler's -n32 option if that helps.
	  cat > conftest.$ac_ext <<EOF
#line 2424 "configure"
d2120 1
a2120 6
#include <sys/types.h>
    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
  
int main() {

; return 0; }
d2122 6
a2127 2
if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  :
d2129 1
d2133 1
a2133 18
  ac_save_CC="$CC"
	     CC="$CC -n32"
	     cat > conftest.$ac_ext <<EOF
#line 2442 "configure"
#include "confdefs.h"
#include <sys/types.h>
    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
  
int main() {

; return 0; }
EOF
if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_sys_largefile_CC=' -n32'
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a2135 1
	     CC="$ac_save_CC"
d2137 1
a2137 230
rm -f conftest*
        fi
fi

echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
     if test "$ac_cv_sys_largefile_CC" != no; then
       CC="$CC$ac_cv_sys_largefile_CC"
     fi

     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
echo "configure:2471: checking for _FILE_OFFSET_BITS value needed for large files" >&5
if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_sys_file_offset_bits=no
      cat > conftest.$ac_ext <<EOF
#line 2477 "configure"
#include "confdefs.h"
#include <sys/types.h>
    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
  
int main() {

; return 0; }
EOF
if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat > conftest.$ac_ext <<EOF
#line 2493 "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
  
	   
int main() {

; return 0; }
EOF
if { (eval echo configure:2504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_sys_file_offset_bits=64
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
   if test "$ac_cv_sys_file_offset_bits" != no; then
     cat >> confdefs.h <<EOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
EOF

   fi
     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
echo "configure:2524: checking for _LARGE_FILES value needed for large files" >&5
if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_sys_large_files=no
      cat > conftest.$ac_ext <<EOF
#line 2530 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat > conftest.$ac_ext <<EOF
#line 2544 "configure"
#include "confdefs.h"
#define _LARGE_FILES 1

	   
int main() {

; return 0; }
EOF
if { (eval echo configure:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_sys_large_files=1
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_sys_large_files" 1>&6
   if test "$ac_cv_sys_large_files" != no; then
     cat >> confdefs.h <<EOF
#define _LARGE_FILES $ac_cv_sys_large_files
EOF

   fi
   fi
  

# Sound support for GNU/Linux and the free BSDs.
for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2580: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2585 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

# Emulation library used on NetBSD.
echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
echo "configure:2618: checking for _oss_ioctl in -lossaudio" >&5
ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lossaudio  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2626 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char _oss_ioctl();

int main() {
_oss_ioctl()
; return 0; }
EOF
if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBSOUND=-lossaudio
else
  echo "$ac_t""no" 1>&6
LIBSOUND=
fi



for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
  linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
  termcap.h stdio_ext.h fcntl.h term.h strings.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2666: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2671 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d2150 1
a2150 1
echo "configure:2703: checking for ANSI C header files" >&5
d2155 1
a2155 1
#line 2708 "configure"
d2163 1
a2163 1
{ (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2180 1
a2180 1
#line 2733 "configure"
d2198 1
a2198 1
#line 2751 "configure"
d2219 1
a2219 1
#line 2772 "configure"
d2230 1
a2230 1
if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2254 1
a2254 1
echo "configure:2807: checking whether time.h and sys/time.h may both be included" >&5
d2259 1
a2259 1
#line 2812 "configure"
d2268 1
a2268 1
if { (eval echo configure:2821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2289 1
a2289 1
echo "configure:2842: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d2294 1
a2294 1
#line 2847 "configure"
d2306 1
a2306 1
if { (eval echo configure:2859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2325 42
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
echo "configure:2880: checking for sys/wait.h that is POSIX.1 compatible" >&5
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2885 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
#ifndef WEXITSTATUS
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif
#ifndef WIFEXITED
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
int main() {
int s;
wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
if { (eval echo configure:2901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_sys_wait_h=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_sys_wait_h=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
if test $ac_cv_header_sys_wait_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SYS_WAIT_H 1
EOF

fi

d2328 1
a2328 1
echo "configure:2923: checking for struct utimbuf" >&5
d2333 1
a2333 1
#line 2928 "configure"
d2352 1
a2352 1
if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2373 1
a2373 1
echo "configure:2968: checking return type of signal handlers" >&5
d2378 1
a2378 1
#line 2973 "configure"
d2395 1
a2395 1
if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2413 31
echo $ac_n "checking for speed_t""... $ac_c" 1>&6
echo "configure:3010: checking for speed_t" >&5
if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3015 "configure"
#include "confdefs.h"
#include <termios.h>
int main() {
speed_t x = 1;
; return 0; }
EOF
if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  emacs_cv_speed_t=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi

echo "$ac_t""$emacs_cv_speed_t" 1>&6
if test $emacs_cv_speed_t = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SPEED_T 1
EOF

fi

d2415 1
a2415 1
echo "configure:3041: checking for struct timeval" >&5
d2420 1
a2420 1
#line 3046 "configure"
d2436 1
a2436 1
if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2456 34
echo $ac_n "checking for struct exception""... $ac_c" 1>&6
echo "configure:3084: checking for struct exception" >&5
if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3089 "configure"
#include "confdefs.h"
#include <math.h>
int main() {
static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
; return 0; }
EOF
if { (eval echo configure:3096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  emacs_cv_struct_exception=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  emacs_cv_struct_exception=no
fi
rm -f conftest*
fi

echo "$ac_t""$emacs_cv_struct_exception" 1>&6
HAVE_EXCEPTION=$emacs_cv_struct_exception
if test $emacs_cv_struct_exception != yes; then
  cat >> confdefs.h <<\EOF
#define NO_MATHERR 1
EOF

fi

d2458 1
a2458 1
echo "configure:3118: checking whether struct tm is in sys/time.h or time.h" >&5
d2463 1
a2463 1
#line 3123 "configure"
d2471 1
a2471 1
if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2492 1
a2492 1
echo "configure:3152: checking for tm_zone in struct tm" >&5
d2497 1
a2497 1
#line 3157 "configure"
d2505 1
a2505 1
if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2525 1
a2525 1
echo "configure:3185: checking for tzname" >&5
d2530 1
a2530 1
#line 3190 "configure"
d2540 1
a2540 1
if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2561 4
a2564 3
echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
echo "configure:3222: checking for tm_gmtoff in struct tm" >&5
if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
d2568 1
a2568 1
#line 3227 "configure"
d2570 1
a2570 1
#include <time.h>
a2571 14
struct tm t; t.tm_gmtoff = 0
; return 0; }
EOF
if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  emacs_cv_tm_gmtoff=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  emacs_cv_tm_gmtoff=no
fi
rm -f conftest*
fi
d2573 8
a2580 148
echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
if test $emacs_cv_tm_gmtoff = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_TM_GMTOFF 1
EOF

fi


echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
echo "configure:3256: checking for ${CC-cc} option to accept ANSI C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC="$CC"
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  cat > conftest.$ac_ext <<EOF
#line 3273 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int main() {
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
; return 0; }
EOF
if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_prog_cc_stdc="$ac_arg"; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
CC="$ac_save_CC"

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$ac_t""none needed" 1>&6 ;;
  *)
    echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
echo "configure:3329: checking for function prototypes" >&5
if test "$ac_cv_prog_cc_stdc" != no; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define PROTOTYPES 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking for working volatile""... $ac_c" 1>&6
echo "configure:3341: checking for working volatile" >&5
if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3346 "configure"
#include "confdefs.h"

int main() {

volatile int x;
int * volatile y;
; return 0; }
EOF
if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_volatile=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_volatile=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_volatile" 1>&6
if test $ac_cv_c_volatile = no; then
  cat >> confdefs.h <<\EOF
#define volatile 
EOF

fi

echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:3376: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3381 "configure"
#include "confdefs.h"

int main() {

/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
d2617 1
a2617 1
if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2636 37
echo $ac_n "checking for void * support""... $ac_c" 1>&6
echo "configure:3451: checking for void * support" >&5
if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3456 "configure"
#include "confdefs.h"

int main() {
void * foo;
; return 0; }
EOF
if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  emacs_cv_void_star=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  emacs_cv_void_star=no
fi
rm -f conftest*
fi

echo "$ac_t""$emacs_cv_void_star" 1>&6
if test $emacs_cv_void_star = yes; then
  cat >> confdefs.h <<\EOF
#define POINTER_TYPE void
EOF

else
  cat >> confdefs.h <<\EOF
#define POINTER_TYPE char
EOF

fi
d2639 1
a2639 1
echo "configure:3489: checking whether ${MAKE-make} sets \${MAKE}" >&5
d2667 1
a2667 1
echo "configure:3517: checking for long file names" >&5
d2718 1
a2718 1
echo "configure:3568: checking for X" >&5
d2780 1
a2780 1
#line 3630 "configure"
d2785 1
a2785 1
{ (eval echo configure:3635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2854 1
a2854 1
#line 3704 "configure"
d2861 1
a2861 1
if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2958 4
a2961 7
    x_search_path="\
${x_library}/X11/%L/%T/%N%C%S:\
${x_library}/X11/%l/%T/%N%C%S:\
${x_library}/X11/%T/%N%C%S:\
${x_library}/X11/%L/%T/%N%S:\
${x_library}/X11/%l/%T/%N%S:\
${x_library}/X11/%T/%N%S"
d3014 1
a3014 1
  
d3031 127
d3166 1
a3166 1
echo "configure:3892: checking for malloc_get_state" >&5
d3171 1
a3171 1
#line 3897 "configure"
d3194 1
a3194 1
if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3215 1
a3215 1
echo "configure:3941: checking for malloc_set_state" >&5
d3220 1
a3220 1
#line 3946 "configure"
d3243 1
a3243 1
if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3264 1
a3264 1
echo "configure:3990: checking whether __after_morecore_hook exists" >&5
d3269 1
a3269 1
#line 3995 "configure"
d3276 1
a3276 1
if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3312 12
d3325 4
a3328 6
for ac_hdr in stdlib.h unistd.h sys/stat.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4043: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d3331 4
a3334 2
  cat > conftest.$ac_ext <<EOF
#line 4048 "configure"
d3336 1
a3336 267
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

for ac_func in getpagesize
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4082: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4087 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

echo $ac_n "checking for working mmap""... $ac_c" 1>&6
echo "configure:4135: checking for working mmap" >&5
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat > conftest.$ac_ext <<EOF
#line 4143 "configure"
#include "confdefs.h"
/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   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
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propogated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */
#include <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>

#if STDC_HEADERS || HAVE_STDLIB_H
# include <stdlib.h>
#else
char *malloc ();
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#if !HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# if !HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  if HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftestmmap", 0600);
  if (fd < 0)
    exit (1);
  if (write (fd, data, pagesize) != pagesize)
    exit (1);
  close (fd);

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftestmmap", O_RDWR);
  if (fd < 0)
    exit (1);
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    exit (1);
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      exit (1);

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    exit (1);
  if (read (fd, data3, pagesize) != pagesize)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      exit (1);
  close (fd);
  unlink ("conftestmmap");
  exit (0);
}
EOF
if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_mmap_fixed_mapped=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_mmap_fixed_mapped=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_MMAP 1
EOF

fi

if test $use_mmap_for_buffers = yes; then
  REL_ALLOC=no
fi

LIBS="$libsrc_libs $LIBS"

echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
echo "configure:4306: checking for dnet_ntoa in -ldnet" >&5
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldnet  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4314 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
d3345 1
a3345 1
if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3374 1
a3374 1
echo "configure:4354: checking for main in -lXbsd" >&5
d3382 1
a3382 1
#line 4362 "configure"
d3389 1
a3389 1
if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3411 1
a3411 1
echo "configure:4391: checking for cma_open in -lpthreads" >&5
d3419 1
a3419 1
#line 4399 "configure"
d3430 1
a3430 1
if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3459 1
a3459 1
echo "configure:4439: checking for XFree86 in /usr/X386" >&5
a3470 2
REAL_CPPFLAGS="$CPPFLAGS"

a3475 1
  CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
d3488 1
a3488 1
echo "configure:4471: checking whether X on GNU/Linux needs -b to link" >&5
d3490 1
a3490 1
#line 4473 "configure"
d3497 1
a3497 1
if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3517 1
a3517 1
#line 4500 "configure"
d3524 1
a3524 1
if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a3549 31
  # Reportedly, some broken Solaris systems have XKBlib.h but are missing
  # header files included from there.
  echo $ac_n "checking for Xkb""... $ac_c" 1>&6
echo "configure:4536: checking for Xkb" >&5
  cat > conftest.$ac_ext <<EOF
#line 4538 "configure"
#include "confdefs.h"
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
int main() {
XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
; return 0; }
EOF
if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  emacs_xkb=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  emacs_xkb=no
fi
rm -f conftest*
  echo "$ac_t""$emacs_xkb" 1>&6
  if test $emacs_xkb = yes; then
    cat >> confdefs.h <<\EOF
#define HAVE_XKBGETKEYBOARD 1
EOF

  fi

d3554 1
a3554 1
echo "configure:4568: checking for $ac_func" >&5
d3559 1
a3559 1
#line 4573 "configure"
d3582 1
a3582 1
if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3610 1
a3610 1
echo "configure:4624: checking X11 version 6" >&5
d3615 1
a3615 1
#line 4629 "configure"
d3625 1
a3625 1
if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3650 1
a3650 1
echo "configure:4664: checking X11 version 5" >&5
d3655 1
a3655 1
#line 4669 "configure"
d3665 1
a3665 1
if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3693 1
a3693 1
echo "configure:4707: checking X11 version 5 with Xaw" >&5
d3698 1
a3698 1
#line 4712 "configure"
d3707 1
a3707 1
if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3735 1
a3735 1
echo "configure:4749: checking X11 toolkit version" >&5
d3740 1
a3740 1
#line 4754 "configure"
d3750 1
a3750 1
if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3780 1
a3780 1
echo "configure:4794: checking for XmuConvertStandardSelection in -lXmu" >&5
d3788 1
a3788 1
#line 4802 "configure"
d3799 1
a3799 1
if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3826 1
a3826 54
  test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
fi

# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
if test "${HAVE_X11}" = "yes"; then
  if test "${USE_X_TOOLKIT}" != "none"; then
    echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
echo "configure:4847: checking for XShapeQueryExtension in -lXext" >&5
ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lXext  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4855 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XShapeQueryExtension();

int main() {
XShapeQueryExtension()
; return 0; }
EOF
if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lXext $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

  fi
d3831 1
a3831 1
echo "configure:4898: checking for Motif version 2.1" >&5
d3836 1
a3836 1
#line 4903 "configure"
d3847 1
a3847 1
if { (eval echo configure:4914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3861 1
    HAVE_LIBXP=no
d3867 1
a3867 1
echo "configure:4935: checking for XpCreateContext in -lXp" >&5
d3875 1
a3875 1
#line 4943 "configure"
d3886 1
a3886 1
if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3901 8
a3908 1
  HAVE_LIBXP=yes
a3912 6
    if test ${HAVE_LIBXP} = yes; then
      cat >> confdefs.h <<\EOF
#define HAVE_LIBXP 1
EOF

    fi	
d3916 4
a3919 8
### Is -lXaw3d available?
HAVE_XAW3D=no
if test "${HAVE_X11}" = "yes"; then
  if test "${USE_X_TOOLKIT}" != "none"; then
    ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
echo "configure:4989: checking for X11/Xaw3d/Scrollbar.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d3923 1
a3923 1
#line 4994 "configure"
d3925 4
a3928 1
#include <X11/Xaw3d/Scrollbar.h>
d3930 1
a3930 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
d3932 1
a3932 1
  eval "ac_cv_header_$ac_safe=yes"
a3933 1
  echo "$ac_err" >&5
d3937 1
a3937 1
  eval "ac_cv_header_$ac_safe=no"
d3941 14
a3954 6
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
echo "configure:5016: checking for XawScrollbarSetThumb in -lXaw3d" >&5
ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d3957 2
a3958 4
  ac_save_LIBS="$LIBS"
LIBS="-lXaw3d  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5024 "configure"
d3960 1
a3960 5
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XawScrollbarSetThumb();

d3962 1
a3962 1
XawScrollbarSetThumb()
d3965 1
a3965 1
if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3967 1
a3967 574
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  HAVE_XAW3D=yes
else
  echo "$ac_t""no" 1>&6
fi

else
  echo "$ac_t""no" 1>&6
fi

    if test "${HAVE_XAW3D}" = "yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_XAW3D 1
EOF

    fi
  fi
fi
  

USE_TOOLKIT_SCROLL_BARS=no
if test "${with_toolkit_scroll_bars}" != "no"; then
  if test "${USE_X_TOOLKIT}" != "none"; then
    if test "${USE_X_TOOLKIT}" = "MOTIF"; then
      cat >> confdefs.h <<\EOF
#define USE_TOOLKIT_SCROLL_BARS 1
EOF

      HAVE_XAW3D=no
      USE_TOOLKIT_SCROLL_BARS=yes
    elif test "${HAVE_XAW3D}" = "yes"; then
      cat >> confdefs.h <<\EOF
#define USE_TOOLKIT_SCROLL_BARS 1
EOF

      USE_TOOLKIT_SCROLL_BARS=yes
    fi
  fi
fi


if test "${with_xim}" != "no"; then
  cat >> confdefs.h <<\EOF
#define USE_XIM 1
EOF

fi

### Use -lXpm if available, unless `--with-xpm=no'.
HAVE_XPM=no
if test "${HAVE_X11}" = "yes"; then
  if test "${with_xpm}" != "no"; then
    ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
echo "configure:5103: checking for X11/xpm.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5108 "configure"
#include "confdefs.h"
#include <X11/xpm.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
echo "configure:5130: checking for XpmReadFileToPixmap in -lXpm" >&5
ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lXpm -lX11 $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5138 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XpmReadFileToPixmap();

int main() {
XpmReadFileToPixmap()
; return 0; }
EOF
if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  HAVE_XPM=yes
else
  echo "$ac_t""no" 1>&6
fi

else
  echo "$ac_t""no" 1>&6
fi

    if test "${HAVE_XPM}" = "yes"; then
      echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
echo "configure:5175: checking for XpmReturnAllocPixels preprocessor define" >&5
      cat > conftest.$ac_ext <<EOF
#line 5177 "configure"
#include "confdefs.h"
#include "X11/xpm.h"
#ifndef XpmReturnAllocPixels
no_return_alloc_pixels
#endif
      
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
  rm -rf conftest*
  HAVE_XPM=no
else
  rm -rf conftest*
  HAVE_XPM=yes
fi
rm -f conftest*


      if test "${HAVE_XPM}" = "yes"; then
	echo "$ac_t""yes" 1>&6
      else
	echo "$ac_t""no" 1>&6
      fi
    fi
  fi

  if test "${HAVE_XPM}" = "yes"; then
    cat >> confdefs.h <<\EOF
#define HAVE_XPM 1
EOF

  fi
fi
  
### Use -ljpeg if available, unless `--with-jpeg=no'.
HAVE_JPEG=no
if test "${HAVE_X11}" = "yes"; then
  if test "${with_jpeg}" != "no"; then
            ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
echo "configure:5218: checking for jerror.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5223 "configure"
#include "confdefs.h"
#include <jerror.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
echo "configure:5245: checking for jpeg_destroy_compress in -ljpeg" >&5
ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ljpeg  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5253 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char jpeg_destroy_compress();

int main() {
jpeg_destroy_compress()
; return 0; }
EOF
if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  HAVE_JPEG=yes
else
  echo "$ac_t""no" 1>&6
fi

else
  echo "$ac_t""no" 1>&6
fi

  fi

  if test "${HAVE_JPEG}" = "yes"; then
    cat >> confdefs.h <<\EOF
#define HAVE_JPEG 1
EOF

  fi
fi
  
### Use -lpng if available, unless `--with-png=no'.
HAVE_PNG=no
if test "${HAVE_X11}" = "yes"; then
  if test "${with_png}" != "no"; then
    ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for png.h""... $ac_c" 1>&6
echo "configure:5304: checking for png.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5309 "configure"
#include "confdefs.h"
#include <png.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
echo "configure:5331: checking for png_get_channels in -lpng" >&5
ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lpng -lz -lm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5339 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char png_get_channels();

int main() {
png_get_channels()
; return 0; }
EOF
if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  HAVE_PNG=yes
else
  echo "$ac_t""no" 1>&6
fi

else
  echo "$ac_t""no" 1>&6
fi

  fi

  if test "${HAVE_PNG}" = "yes"; then
    cat >> confdefs.h <<\EOF
#define HAVE_PNG 1
EOF

  fi
fi
  
### Use -ltiff if available, unless `--with-tiff=no'.
HAVE_TIFF=no
if test "${HAVE_X11}" = "yes"; then
  if test "${with_tiff}" != "no"; then
    ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
echo "configure:5390: checking for tiffio.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5395 "configure"
#include "confdefs.h"
#include <tiffio.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  tifflibs="-lz -lm"
      # At least one tiff package requires the jpeg library.
      if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
      echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
echo "configure:5420: checking for TIFFGetVersion in -ltiff" >&5
ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltiff $tifflibs $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5428 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char TIFFGetVersion();

int main() {
TIFFGetVersion()
; return 0; }
EOF
if { (eval echo configure:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  HAVE_TIFF=yes
else
  echo "$ac_t""no" 1>&6
fi

else
  echo "$ac_t""no" 1>&6
fi

  fi

  if test "${HAVE_TIFF}" = "yes"; then
    cat >> confdefs.h <<\EOF
#define HAVE_TIFF 1
EOF

  fi
fi
  
### Use -lgif if available, unless `--with-gif=no'.
HAVE_GIF=no
if test "${HAVE_X11}" = "yes"; then
  if test "${with_gif}" != "no"; then
    ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
echo "configure:5479: checking for gif_lib.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5484 "configure"
#include "confdefs.h"
#include <gif_lib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
echo "configure:5506: checking for DGifOpen in -lungif" >&5
ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lungif  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5514 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char DGifOpen();

int main() {
DGifOpen()
; return 0; }
EOF
if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  HAVE_GIF=yes
else
  echo "$ac_t""no" 1>&6
fi

else
  echo "$ac_t""no" 1>&6
fi

  fi

  if test "${HAVE_GIF}" = "yes"; then
    cat >> confdefs.h <<\EOF
#define HAVE_GIF 1
EOF

  fi
fi

# If netdb.h doesn't declare h_errno, we must declare it by hand.
echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
echo "configure:5561: checking whether netdb declares h_errno" >&5
if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5566 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
return h_errno;
; return 0; }
EOF
if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  emacs_cv_netdb_declares_h_errno=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  emacs_cv_netdb_declares_h_errno=no
fi
rm -f conftest*
fi

echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
if test $emacs_cv_netdb_declares_h_errno = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_H_ERRNO 1
EOF

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo "configure:5596: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5601 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
if { (eval echo configure:5608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_header_alloca_h=yes
d3977 4
a3980 1558
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
EOF

fi

echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo "configure:5629: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5634 "configure"
#include "confdefs.h"

#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  if HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#    endif
#   endif
#  endif
# endif
#endif

int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF
if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_func_alloca_works=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_alloca_works=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
if test $ac_cv_func_alloca_works = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA 1
EOF

fi

if test $ac_cv_func_alloca_works = no; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # 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.
  ALLOCA=alloca.${ac_objext}
  cat >> confdefs.h <<\EOF
#define C_ALLOCA 1
EOF


echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo "configure:5694: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5699 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "webecray" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_os_cray=yes
else
  rm -rf conftest*
  ac_cv_os_cray=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5724: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5729 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<EOF
#define CRAY_STACKSEG_END $ac_func
EOF

  break
else
  echo "$ac_t""no" 1>&6
fi

done
fi

echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo "configure:5779: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
else
  cat > conftest.$ac_ext <<EOF
#line 5787 "configure"
#include "confdefs.h"
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}
main ()
{
  exit (find_stack_direction() < 0);
}
EOF
if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_stack_direction=1
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_stack_direction=-1
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
cat >> confdefs.h <<EOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
EOF

fi


# fmod, logb, and frexp are found in -lm on most systems.
# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
echo "configure:5831: checking for sqrt in -lm" >&5
ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lm  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5839 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char sqrt();

int main() {
sqrt()
; return 0; }
EOF
if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lm $LIBS"

else
  echo "$ac_t""no" 1>&6
fi


# Check for mail-locking functions in a "mail" library
echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
echo "configure:5880: checking for maillock in -lmail" >&5
ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lmail  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5888 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char maillock();

int main() {
maillock()
; return 0; }
EOF
if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lmail $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
echo "configure:5927: checking for maillock in -llockfile" >&5
ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-llockfile  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5935 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char maillock();

int main() {
maillock()
; return 0; }
EOF
if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-llockfile $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

# If we have the shared liblockfile, assume we must use it for mail
# locking (e.g. Debian).  If we couldn't link against liblockfile
# (no liblockfile.a installed), ensure that we don't need to.
if test "$ac_cv_lib_lockfile_maillock" = no; then
      # Extract the first word of "liblockfile.so", so it can be a program name with args.
set dummy liblockfile.so; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5980: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$liblockfile"; then
  ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_liblockfile="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
fi
fi
liblockfile="$ac_cv_prog_liblockfile"
if test -n "$liblockfile"; then
  echo "$ac_t""$liblockfile" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  if test $ac_cv_prog_liblockfile = yes; then
    { echo "configure: error: Shared liblockfile found but can't link against it.
This probably means that movemail could lose mail.
There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
  else cat >> confdefs.h <<\EOF
#define LIBMAIL -llockfile
EOF

  fi
  else :
fi
for ac_func in touchlock
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6021: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6026 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

for ac_hdr in maillock.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:6077: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6082 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


for ac_func in gethostname getdomainname dup2 \
rename closedir mkdir rmdir sysinfo \
random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
__fpending mblen mbrlen strsignal setitimer ualarm index rindex \
gai_strerror mkstemp
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6123: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6128 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


for ac_hdr in sys/time.h unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:6180: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6185 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

for ac_func in alarm
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6219: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6224 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

echo $ac_n "checking for working mktime""... $ac_c" 1>&6
echo "configure:6272: checking for working mktime" >&5
if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_working_mktime=no
else
  cat > conftest.$ac_ext <<EOF
#line 6280 "configure"
#include "confdefs.h"
/* Test program from Paul Eggert (eggert@@twinsun.com)
   and Tony Leneis (tony@@plaza.ds.adp.com).  */
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
#  include <sys/time.h>
# else
#  include <time.h>
# endif
#endif

#if HAVE_UNISTD_H
# include <unistd.h>
#endif

#if !HAVE_ALARM
# define alarm(X) /* empty */
#endif

/* Work around redefinition to rpl_putenv by other config tests.  */
#undef putenv

static time_t time_t_max;

/* Values we'll use to set the TZ environment variable.  */
static const char *const tz_strings[] = {
  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
};
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))

/* Fail if mktime fails to convert a date in the spring-forward gap.
   Based on a problem report from Andreas Jaeger.  */
static void
spring_forward_gap ()
{
  /* glibc (up to about 1998-10-07) failed this test) */
  struct tm tm;

  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
     instead of "TZ=America/Vancouver" in order to detect the bug even
     on systems that don't support the Olson extension, or don't have the
     full zoneinfo tables installed.  */
  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");

  tm.tm_year = 98;
  tm.tm_mon = 3;
  tm.tm_mday = 5;
  tm.tm_hour = 2;
  tm.tm_min = 0;
  tm.tm_sec = 0;
  tm.tm_isdst = -1;
  if (mktime (&tm) == (time_t)-1)
    exit (1);
}

static void
mktime_test (now)
     time_t now;
{
  struct tm *lt;
  if ((lt = localtime (&now)) && mktime (lt) != now)
    exit (1);
  now = time_t_max - now;
  if ((lt = localtime (&now)) && mktime (lt) != now)
    exit (1);
}

static void
irix_6_4_bug ()
{
  /* Based on code from Ariel Faigon.  */
  struct tm tm;
  tm.tm_year = 96;
  tm.tm_mon = 3;
  tm.tm_mday = 0;
  tm.tm_hour = 0;
  tm.tm_min = 0;
  tm.tm_sec = 0;
  tm.tm_isdst = -1;
  mktime (&tm);
  if (tm.tm_mon != 2 || tm.tm_mday != 31)
    exit (1);
}

static void
bigtime_test (j)
     int j;
{
  struct tm tm;
  time_t now;
  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  now = mktime (&tm);
  if (now != (time_t) -1)
    {
      struct tm *lt = localtime (&now);
      if (! (lt
	     && lt->tm_year == tm.tm_year
	     && lt->tm_mon == tm.tm_mon
	     && lt->tm_mday == tm.tm_mday
	     && lt->tm_hour == tm.tm_hour
	     && lt->tm_min == tm.tm_min
	     && lt->tm_sec == tm.tm_sec
	     && lt->tm_yday == tm.tm_yday
	     && lt->tm_wday == tm.tm_wday
	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
	exit (1);
    }
}

int
main ()
{
  time_t t, delta;
  int i, j;

  /* This test makes some buggy mktime implementations loop.
     Give up after 60 seconds; a mktime slower than that
     isn't worth using anyway.  */
  alarm (60);

  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
    continue;
  time_t_max--;
  delta = time_t_max / 997; /* a suitable prime number */
  for (i = 0; i < N_STRINGS; i++)
    {
      if (tz_strings[i])
	putenv (tz_strings[i]);

      for (t = 0; t <= time_t_max - delta; t += delta)
	mktime_test (t);
      mktime_test ((time_t) 60 * 60);
      mktime_test ((time_t) 60 * 60 * 24);

      for (j = 1; 0 < j; j *= 2)
        bigtime_test (j);
      bigtime_test (j - 1);
    }
  irix_6_4_bug ();
  spring_forward_gap ();
  exit (0);
}
EOF
if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_working_mktime=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_working_mktime=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_working_mktime" 1>&6
if test $ac_cv_func_working_mktime = no; then
  LIBOBJS="$LIBOBJS mktime.${ac_objext}"
fi

if test "$ac_cv_func_working_mktime" = no; then
  cat >> confdefs.h <<\EOF
#define BROKEN_MKTIME 1
EOF

fi

ac_have_func=no # yes means we've found a way to get the load average.

# Some systems with -lutil have (and need) -lkvm as well, some do not.
# On Solaris, -lkvm requires nlist from -lelf, so check that first
# to get the right answer into the cache.
echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
echo "configure:6461: checking for elf_begin in -lelf" >&5
ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lelf  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6469 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char elf_begin();

int main() {
elf_begin()
; return 0; }
EOF
if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="-lelf $LIBS"
else
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
echo "configure:6501: checking for kvm_open in -lkvm" >&5
ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lkvm  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6509 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char kvm_open();

int main() {
kvm_open()
; return 0; }
EOF
if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="-lkvm $LIBS"
else
  echo "$ac_t""no" 1>&6
fi

# Check for the 4.4BSD definition of getloadavg.
echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
echo "configure:6542: checking for getloadavg in -lutil" >&5
ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lutil  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6550 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char getloadavg();

int main() {
getloadavg()
; return 0; }
EOF
if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
else
  echo "$ac_t""no" 1>&6
fi


if test $ac_have_func = no; then
  # There is a commonly available library for RS/6000 AIX.
  # Since it is not a standard part of AIX, it might be installed locally.
  ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
  echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
echo "configure:6587: checking for getloadavg in -lgetloadavg" >&5
ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lgetloadavg  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6595 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char getloadavg();

int main() {
getloadavg()
; return 0; }
EOF
if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="-lgetloadavg $LIBS"
else
  echo "$ac_t""no" 1>&6
LIBS="$ac_getloadavg_LIBS"
fi

fi

# Make sure it is really in the library, if we think we found it.
for ac_func in getloadavg
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6633: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6638 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
fi
done



if test $ac_cv_func_getloadavg = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_GETLOADAVG 1
EOF

  ac_have_func=yes
else
  # Figure out what our getloadavg.c needs.
  ac_have_func=no
  ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
echo "configure:6699: checking for sys/dg_sys_info.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6704 "configure"
#include "confdefs.h"
#include <sys/dg_sys_info.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ac_have_func=yes; cat >> confdefs.h <<\EOF
#define DGUX 1
EOF

  echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
echo "configure:6730: checking for dg_sys_info in -ldgc" >&5
ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldgc  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6738 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dg_sys_info();

int main() {
dg_sys_info()
; return 0; }
EOF
if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-ldgc $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

else
  echo "$ac_t""no" 1>&6
fi


  # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
  # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
  # Irix 4.0.5F has the header but not the library.
  if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then
    ac_have_func=yes; cat >> confdefs.h <<\EOF
#define SVR4 1
EOF

  fi

  if test $ac_have_func = no; then
    ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
echo "configure:6794: checking for inq_stats/cpustats.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6799 "configure"
#include "confdefs.h"
#include <inq_stats/cpustats.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ac_have_func=yes; cat >> confdefs.h <<\EOF
#define UMAX 1
EOF

    cat >> confdefs.h <<\EOF
#define UMAX4_3 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

  fi

  if test $ac_have_func = no; then
    ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
echo "configure:6837: checking for sys/cpustats.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6842 "configure"
#include "confdefs.h"
#include <sys/cpustats.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ac_have_func=yes; cat >> confdefs.h <<\EOF
#define UMAX 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

  fi

  if test $ac_have_func = no; then
    for ac_hdr in mach/mach.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:6878: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6883 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

  fi

  ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
echo "configure:6918: checking for nlist.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6923 "configure"
#include "confdefs.h"
#include <nlist.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define NLIST_STRUCT 1
EOF

  echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
echo "configure:6949: checking for n_un in struct nlist" >&5
if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6954 "configure"
#include "confdefs.h"
#include <nlist.h>
int main() {
struct nlist n; n.n_un.n_name = 0;
; return 0; }
EOF
if { (eval echo configure:6961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_struct_nlist_n_un=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_struct_nlist_n_un=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
  if test $ac_cv_struct_nlist_n_un = yes; then
    cat >> confdefs.h <<\EOF
#define NLIST_NAME_UNION 1
EOF

  fi
  
else
  echo "$ac_t""no" 1>&6
fi
fi # Do not have getloadavg in system libraries.

# Some definitions of getloadavg require that the program be installed setgid.
echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
echo "configure:6988: checking whether getloadavg requires setgid" >&5
if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6993 "configure"
#include "confdefs.h"
#include "$srcdir/getloadavg.c"
#ifdef LDAV_PRIVILEGED
Yowza Am I SETGID yet
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_func_getloadavg_setgid=yes
else
  rm -rf conftest*
  ac_cv_func_getloadavg_setgid=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
if test $ac_cv_func_getloadavg_setgid = yes; then
  NEED_SETGID=true; cat >> confdefs.h <<\EOF
#define GETLOADAVG_PRIVILEGED 1
EOF

else
  NEED_SETGID=false
fi

if test $ac_cv_func_getloadavg_setgid = yes; then
  echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
echo "configure:7024: checking group of /dev/kmem" >&5
if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
  ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
  # If we got an error (system does not support symlinks), try without -L.
  test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
  ac_cv_group_kmem=`echo $ac_ls_output \
    | sed -ne 's/[ 	][ 	]*/ /g;
	       s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
	       / /s/.* //;p;'`

fi

echo "$ac_t""$ac_cv_group_kmem" 1>&6
  KMEM_GROUP=$ac_cv_group_kmem
fi


echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
echo "configure:7045: checking for _LARGEFILE_SOURCE value needed for large files" >&5
if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_sys_largefile_source=no
      cat > conftest.$ac_ext <<EOF
#line 7051 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
return !fseeko;
; return 0; }
EOF
if { (eval echo configure:7058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat > conftest.$ac_ext <<EOF
#line 7065 "configure"
#include "confdefs.h"
#define _LARGEFILE_SOURCE 1
#include <stdio.h>
	   
int main() {
return !fseeko;
; return 0; }
EOF
if { (eval echo configure:7074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_sys_largefile_source=1
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
   if test "$ac_cv_sys_largefile_source" != no; then
     cat >> confdefs.h <<EOF
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
EOF

   fi
   # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
   # in glibc 2.1.3, but that breaks too many other things.
   # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.

   echo $ac_n "checking for fseeko""... $ac_c" 1>&6
echo "configure:7098: checking for fseeko" >&5
if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_func_fseeko=no
      cat > conftest.$ac_ext <<EOF
#line 7104 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
return fseeko && fseeko (stdin, 0, 0);
; return 0; }
EOF
if { (eval echo configure:7111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_func_fseeko=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_fseeko" 1>&6
   if test $ac_cv_func_fseeko != no; then
     cat >> confdefs.h <<\EOF
#define HAVE_FSEEKO 1
EOF

   fi

# UNIX98 PTYs.
for ac_func in grantpt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7133: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7138 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
d3982 1
a3982 3
 
else
  echo "$ac_t""no" 1>&6
a3983 1
done
d3985 3
a3987 7

# PTY-related GNU extensions.
for ac_func in getpt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7190: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d3991 1
a3991 1
#line 7195 "configure"
a3992 7
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d3994 2
a3995 7
int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
d3997 16
a4012 1
$ac_func();
a4014 47
; return 0; }
EOF
if { (eval echo configure:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


# Check this now, so that we will NOT find the above functions in ncurses.
# That is because we have not set up to link ncurses in lib-src.
# It's better to believe a function is not available
# than to expect to find it in ncurses.
echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
echo "configure:7248: checking for tparm in -lncurses" >&5
ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lncurses  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7256 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char tparm();

d4016 1
a4016 1
tparm()
d4019 1
a4019 1
if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4021 1
a4021 1
  eval "ac_cv_lib_$ac_lib_var=yes"
d4026 1
a4026 1
  eval "ac_cv_lib_$ac_lib_var=no"
a4028 15
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lncurses $LIBS"

else
  echo "$ac_t""no" 1>&6
d4031 4
a4034 42

# These tell us which Kerberos-related libraries to use.
if test "${with_kerberos+set}" = set; then
  echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
echo "configure:7298: checking for com_err in -lcom_err" >&5
ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lcom_err  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7306 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char com_err();

int main() {
com_err()
; return 0; }
EOF
if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
a4036 4
  LIBS="-lcom_err $LIBS"

else
  echo "$ac_t""no" 1>&6
d4039 8
a4046 39
  echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
echo "configure:7345: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lk5crypto  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7353 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mit_des_cbc_encrypt();

int main() {
mit_des_cbc_encrypt()
; return 0; }
EOF
if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
a4048 1
  LIBS="-lk5crypto $LIBS"
d4050 3
a4052 8
else
  echo "$ac_t""no" 1>&6
fi

  echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
echo "configure:7392: checking for mit_des_cbc_encrypt in -lcrypto" >&5
ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d4055 2
a4056 4
  ac_save_LIBS="$LIBS"
LIBS="-lcrypto  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7400 "configure"
d4058 5
a4062 4
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mit_des_cbc_encrypt();
a4063 3
int main() {
mit_des_cbc_encrypt()
; return 0; }
d4065 2
a4066 1
if { (eval echo configure:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4068 1
a4068 1
  eval "ac_cv_lib_$ac_lib_var=yes"
a4069 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d4071 1
a4071 1
  eval "ac_cv_lib_$ac_lib_var=no"
a4073 1
LIBS="$ac_save_LIBS"
a4075 7
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d4077 6
a4082 10
  LIBS="-lcrypto $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

  echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
echo "configure:7439: checking for krb5_init_context in -lkrb5" >&5
ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d4085 2
a4086 4
  ac_save_LIBS="$LIBS"
LIBS="-lkrb5  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7447 "configure"
d4088 3
d4094 1
a4094 1
char krb5_init_context();
d4097 10
a4106 1
krb5_init_context()
d4109 1
a4109 1
if { (eval echo configure:7458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4111 1
a4111 1
  eval "ac_cv_lib_$ac_lib_var=yes"
d4116 1
a4116 1
  eval "ac_cv_lib_$ac_lib_var=no"
d4119 1
a4119 1
LIBS="$ac_save_LIBS"
d4121 1
a4121 2
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a4122 2
    ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
d4124 1
a4124 1
#define $ac_tr_lib 1
d4127 1
a4127 2
  LIBS="-lkrb5 $LIBS"

d4132 6
a4137 5
  if test "${with_kerberos5+set}" != set; then
    echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
echo "configure:7487: checking for des_cbc_encrypt in -ldes425" >&5
ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d4140 5
a4144 4
  ac_save_LIBS="$LIBS"
LIBS="-ldes425  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7495 "configure"
d4146 16
a4161 8
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char des_cbc_encrypt();

int main() {
des_cbc_encrypt()
; return 0; }
d4163 3
a4165 3
if { (eval echo configure:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
d4169 4
a4172 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a4173 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d4176 4
a4179 6
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
d4182 2
a4183 1
  LIBS="-ldes425 $LIBS"
d4185 5
a4189 5
else
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
echo "configure:7532: checking for des_cbc_encrypt in -ldes" >&5
ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
d4194 1
a4194 1
LIBS="-ldes  $LIBS"
d4196 1
a4196 1
#line 7540 "configure"
d4201 1
a4201 1
char des_cbc_encrypt();
d4204 1
a4204 1
des_cbc_encrypt()
d4207 1
a4207 1
if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4222 1
a4222 1
    ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
d4228 1
a4228 1
  LIBS="-ldes $LIBS"
a4233 1
fi
d4235 4
a4238 3
    echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
echo "configure:7581: checking for krb_get_cred in -lkrb4" >&5
ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
d4243 1
a4243 1
LIBS="-lkrb4  $LIBS"
d4245 1
a4245 1
#line 7589 "configure"
d4250 1
a4250 1
char krb_get_cred();
d4253 1
a4253 1
krb_get_cred()
d4256 1
a4256 1
if { (eval echo configure:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4271 2
a4272 4
    ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
d4275 5
a4279 8
  LIBS="-lkrb4 $LIBS"

else
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
echo "configure:7626: checking for krb_get_cred in -lkrb" >&5
ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d4282 2
a4283 4
  ac_save_LIBS="$LIBS"
LIBS="-lkrb  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7634 "configure"
d4285 3
d4291 1
a4291 1
char krb_get_cred();
a4293 14
krb_get_cred()
; return 0; }
EOF
if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
d4295 8
a4302 8
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d4304 1
a4304 23
  LIBS="-lkrb $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

fi

  fi

  if test "${with_kerberos5+set}" = set; then
    for ac_hdr in krb5.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7681: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7686 "configure"
#include "confdefs.h"
#include <$ac_hdr>
d4306 1
a4306 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
d4308 1
a4308 1
  eval "ac_cv_header_$ac_safe=yes"
a4309 1
  echo "$ac_err" >&5
d4313 1
a4313 1
  eval "ac_cv_header_$ac_safe=no"
a4316 11
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done
d4318 1
a4318 30
  else
    for ac_hdr in des.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7722: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7727 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d4320 1
a4320 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d4322 1
a4322 38
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
for ac_hdr in kerberosIV/des.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7759: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7764 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
d4327 4
a4330 1
for ac_hdr in kerberos/des.h
d4334 1
a4334 1
echo "configure:7796: checking for $ac_hdr" >&5
d4339 1
a4339 1
#line 7801 "configure"
d4344 1
a4344 1
{ (eval echo configure:7806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4370 2
a4372 1
done
a4373 2
fi
done
d4375 5
a4379 1
    for ac_hdr in krb.h
d4381 3
a4383 4
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7842: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4387 1
a4387 1
#line 7847 "configure"
d4389 20
a4408 1
#include <$ac_hdr>
d4410 1
a4410 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
d4412 1
a4412 1
  eval "ac_cv_header_$ac_safe=yes"
a4413 1
  echo "$ac_err" >&5
d4417 1
a4417 1
  eval "ac_cv_header_$ac_safe=no"
d4421 2
a4422 1
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d4424 1
a4424 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d4426 1
a4426 1
#define $ac_tr_hdr 1
d4431 6
a4436 1
for ac_hdr in kerberosIV/krb.h
d4438 3
a4440 4
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7879: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4444 1
a4444 1
#line 7884 "configure"
d4446 20
a4465 1
#include <$ac_hdr>
d4467 1
a4467 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
d4469 1
a4469 1
  eval "ac_cv_header_$ac_safe=yes"
a4470 1
  echo "$ac_err" >&5
d4474 1
a4474 1
  eval "ac_cv_header_$ac_safe=no"
d4478 2
a4479 1
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d4481 1
a4481 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d4483 1
a4483 1
#define $ac_tr_hdr 1
d4488 6
a4493 1
for ac_hdr in kerberos/krb.h
d4495 3
a4497 4
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7916: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4501 1
a4501 1
#line 7921 "configure"
d4503 20
a4522 1
#include <$ac_hdr>
d4524 1
a4524 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
d4526 1
a4526 1
  eval "ac_cv_header_$ac_safe=yes"
a4527 1
  echo "$ac_err" >&5
d4531 1
a4531 1
  eval "ac_cv_header_$ac_safe=no"
d4535 2
a4536 1
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d4538 1
a4538 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d4540 1
a4540 1
#define $ac_tr_hdr 1
a4547 2
fi
done
d4549 8
a4556 10
fi
done

  fi
  for ac_hdr in com_err.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:7963: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4559 4
a4562 2
  cat > conftest.$ac_ext <<EOF
#line 7968 "configure"
d4564 8
a4571 1
#include <$ac_hdr>
d4573 1
a4573 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
d4575 1
a4575 1
  eval "ac_cv_header_$ac_safe=yes"
a4576 1
  echo "$ac_err" >&5
d4580 1
a4580 1
  eval "ac_cv_header_$ac_safe=no"
d4583 2
d4586 1
a4586 1
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d4588 2
a4589 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d4591 1
a4591 1
#define $ac_tr_hdr 1
d4593 3
a4595 1
 
a4598 1
done
a4599 1
fi
d4604 1
a4604 1
echo "configure:8004: checking for dgettext in -lintl" >&5
d4612 1
a4612 1
#line 8012 "configure"
d4623 1
a4623 1
if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4652 1
a4652 1
echo "configure:8052: checking whether localtime caches TZ" >&5
d4662 1
a4662 1
#line 8062 "configure"
d4665 3
d4697 1
a4697 1
if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4703 2
a4704 60
  rm -fr conftest*
  emacs_cv_localtime_cache=yes
fi
rm -fr conftest*
fi

else
	# If we lack tzset, report that localtime does not cache TZ,
	# since we can't invalidate the cache if we don't have tzset.
	emacs_cv_localtime_cache=no
fi
fi
echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
if test $emacs_cv_localtime_cache = yes; then
  cat >> confdefs.h <<\EOF
#define LOCALTIME_CACHE 1
EOF

fi

if test "x$HAVE_TIMEVAL" = xyes; then
  for ac_func in gettimeofday
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8124: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8129 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d4706 1
a4706 1
rm -f conftest*
d4709 10
a4718 5
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
d4720 1
a4720 3
 
else
  echo "$ac_t""no" 1>&6
a4721 1
done
d4723 3
a4725 2
  echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
echo "configure:8177: checking whether gettimeofday can accept two arguments" >&5
d4730 1
a4730 1
#line 8182 "configure"
d4743 1
d4745 5
a4749 2
struct timeval time;
     gettimeofday (&time, 0);
d4752 1
a4752 1
if { (eval echo configure:8200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a4772 63
if test "$ac_cv_func_gettimeofday" = yes; then
  echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
echo "configure:8223: checking for struct timezone" >&5
if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8228 "configure"
#include "confdefs.h"
#include <sys/time.h>
int main() {
struct timezone tz;
; return 0; }
EOF
if { (eval echo configure:8235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
              if test "$cross_compiling" = yes; then
  emacs_cv_struct_timezone=yes
else
  cat > conftest.$ac_ext <<EOF
#line 8241 "configure"
#include "confdefs.h"

#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
#endif
#endif
main () {
  struct timeval time;
  struct timezone dummy;
  exit (gettimeofday (&time, &dummy));
}
EOF
if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  emacs_cv_struct_timezone=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  emacs_cv_struct_timezone=no
fi
rm -fr conftest*
fi

else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  emacs_cv_struct_timezone=no
fi
rm -f conftest*
fi

echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
fi

d4775 1
a4775 1
echo "configure:8286: checking for socket" >&5
d4780 1
a4780 1
#line 8291 "configure"
d4803 1
a4803 1
if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4826 1
a4826 1
echo "configure:8337: checking for netinet/in.h" >&5
d4831 1
a4831 1
#line 8342 "configure"
d4836 1
a4836 1
{ (eval echo configure:8347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4862 1
a4862 1
echo "configure:8373: checking for arpa/inet.h" >&5
d4867 1
a4867 1
#line 8378 "configure"
d4872 1
a4872 1
{ (eval echo configure:8383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a4908 291
echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
echo "configure:8421: checking whether system supports dynamic ptys" >&5
if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_DEV_PTMX 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:8433: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8438 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_pid_t=yes
else
  rm -rf conftest*
  ac_cv_type_pid_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
if test $ac_cv_type_pid_t = no; then
  cat >> confdefs.h <<\EOF
#define pid_t int
EOF

fi

ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
echo "configure:8467: checking for vfork.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8472 "configure"
#include "confdefs.h"
#include <vfork.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_VFORK_H 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking for working vfork""... $ac_c" 1>&6
echo "configure:8502: checking for working vfork" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  echo $ac_n "checking for vfork""... $ac_c" 1>&6
echo "configure:8508: checking for vfork" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8513 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vfork(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char vfork();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vfork) || defined (__stub___vfork)
choke me
#else
vfork();
#endif

; return 0; }
EOF
if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_vfork=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_vfork=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

ac_cv_func_vfork_works=$ac_cv_func_vfork
else
  cat > conftest.$ac_ext <<EOF
#line 8558 "configure"
#include "confdefs.h"
/* Thanks to Paul Eggert for this test.  */
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_VFORK_H
#include <vfork.h>
#endif
/* On some sparc systems, changes by the child to local and incoming
   argument registers are propagated back to the parent.
   The compiler is told about this with #include <vfork.h>,
   but some compilers (e.g. gcc -O) don't grok <vfork.h>.
   Test for this by using a static variable whose address
   is put into a register that is clobbered by the vfork.  */
static
#ifdef __cplusplus
sparc_address_test (int arg)
#else
sparc_address_test (arg) int arg;
#endif
{
  static pid_t child;
  if (!child) {
    child = vfork ();
    if (child < 0) {
      perror ("vfork");
      _exit(2);
    }
    if (!child) {
      arg = getpid();
      write(-1, "", 0);
      _exit (arg);
    }
  }
}
main() {
  pid_t parent = getpid ();
  pid_t child;

  sparc_address_test ();

  child = vfork ();

  if (child == 0) {
    /* Here is another test for sparc vfork register problems.
       This test uses lots of local variables, at least
       as many local variables as main has allocated so far
       including compiler temporaries.  4 locals are enough for
       gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
       A buggy compiler should reuse the register of parent
       for one of the local variables, since it will think that
       parent can't possibly be used any more in this routine.
       Assigning to the local variable will thus munge parent
       in the parent process.  */
    pid_t
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
    /* Convince the compiler that p..p7 are live; otherwise, it might
       use the same hardware register for all 8 local variables.  */
    if (p != p1 || p != p2 || p != p3 || p != p4
	|| p != p5 || p != p6 || p != p7)
      _exit(1);

    /* On some systems (e.g. IRIX 3.3),
       vfork doesn't separate parent from child file descriptors.
       If the child closes a descriptor before it execs or exits,
       this munges the parent's descriptor as well.
       Test for this by closing stdout in the child.  */
    _exit(close(fileno(stdout)) != 0);
  } else {
    int status;
    struct stat st;

    while (wait(&status) != child)
      ;
    exit(
	 /* Was there some problem with vforking?  */
	 child < 0

	 /* Did the child fail?  (This shouldn't happen.)  */
	 || status

	 /* Did the vfork/compiler bug occur?  */
	 || parent != getpid()

	 /* Did the file descriptor bug occur?  */
	 || fstat(fileno(stdout), &st) != 0
	 );
  }
}
EOF
if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_vfork_works=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_vfork_works=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
if test $ac_cv_func_vfork_works = no; then
  cat >> confdefs.h <<\EOF
#define vfork fork
EOF

fi


# Fixme: This should be replaced when we have autoconf 2.14.
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:8678: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8683 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
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
  rm -rf conftest*
  ac_cv_type_size_t=yes
else
  rm -rf conftest*
  ac_cv_type_size_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF

fi


a4910 1
CPPFLAGS="$REAL_CPPFLAGS"
d5027 6
d5043 1
a5043 2
  Should Emacs use a relocating allocator for buffers?    ${REL_ALLOC}
  Should Emacs use mmap(2) for buffer allocation?         $use_mmap_for_buffers
a5057 7
echo "  Does Emacs use -lXaw3d?                                 ${HAVE_XAW3D}"
echo "  Does Emacs use -lXpm?                                   ${HAVE_XPM}"
echo "  Does Emacs use -ljpeg?                                  ${HAVE_JPEG}"
echo "  Does Emacs use -ltiff?                                  ${HAVE_TIFF}"
echo "  Does Emacs use -lungif?                                 ${HAVE_GIF}"
echo "  Does Emacs use -lpng?                                   ${HAVE_PNG}"
echo "  Does Emacs use X toolkit scroll bars?                   ${USE_TOOLKIT_SCROLL_BARS}"
a5065 21
## Check if the C preprocessor will convert `..' to `. .'.  If so, set
## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
## from Makefile.c can correctly provide the arg `-traditional' to the
## C preprocessor.

cat > conftest.$ac_ext <<EOF
#line 8877 "configure"
#include "confdefs.h"
yes..yes
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes..yes" >/dev/null 2>&1; then
  rm -rf conftest*
  CPP_NEED_TRADITIONAL=no
else
  rm -rf conftest*
  CPP_NEED_TRADITIONAL=yes
fi
rm -f conftest*


d5169 1
a5169 1
	lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
a5212 2
s%@@RANLIB@@%$RANLIB%g
s%@@LIBSOUND@@%$LIBSOUND%g
a5214 4
s%@@liblockfile@@%$liblockfile%g
s%@@LIBOBJS@@%$LIBOBJS%g
s%@@NEED_SETGID@@%$NEED_SETGID%g
s%@@KMEM_GROUP@@%$KMEM_GROUP%g
d5235 1
a5235 1
s%@@GETLOADAVG_LIBS@@%$GETLOADAVG_LIBS%g
d5279 1
a5279 1
	lisp/Makefile leim/Makefile"}
d5447 1
a5447 1
GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
a5474 7
# As of 2000-11-19, newest development versions of GNU cpp preprocess
# `..' to `. .'  unless invoked with -traditional

if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
  CPPFLAGS="$CPPFLAGS -traditional"
fi

a5521 1

@


1.1.1.31
log
@import emacs-21.0.105
@
text
@a1114 3
  hppa1.1-hitachi-hiuxwe2* )
    machine=sr2k opsys=hiuxwe2
  ;;
d1734 1
a1734 1
echo "configure:1738: checking for $ac_word" >&5
d1764 1
a1764 1
echo "configure:1768: checking for $ac_word" >&5
d1815 1
a1815 1
echo "configure:1819: checking for $ac_word" >&5
d1847 1
a1847 1
echo "configure:1851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d1858 1
a1858 1
#line 1862 "configure"
d1863 1
a1863 1
if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1889 1
a1889 1
echo "configure:1893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1894 1
a1894 1
echo "configure:1898: checking whether we are using GNU C" >&5
d1903 1
a1903 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1922 1
a1922 1
echo "configure:1926: checking whether ${CC-cc} accepts -g" >&5
d2002 1
a2002 1
echo "configure:2006: checking whether ln -s works" >&5
d2023 1
a2023 1
echo "configure:2027: checking how to run the C preprocessor" >&5
d2038 1
a2038 1
#line 2042 "configure"
d2044 1
a2044 1
{ (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2055 1
a2055 1
#line 2059 "configure"
d2061 1
a2061 1
{ (eval echo configure:2065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2072 1
a2072 1
#line 2076 "configure"
d2078 1
a2078 1
{ (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2114 1
a2114 1
echo "configure:2118: checking for a BSD compatible install" >&5
d2171 1
a2171 1
echo "configure:2175: checking for $ac_word" >&5
d2205 1
a2205 1
echo "configure:2209: checking for $ac_word" >&5
d2235 1
a2235 1
echo "configure:2239: checking for AIX" >&5
d2237 1
a2237 1
#line 2241 "configure"
d2264 1
a2264 1
echo "configure:2268: checking the machine- and system-dependent files to find out
d2414 1
a2414 1
echo "configure:2418: checking for special C compiler options needed for large files" >&5
d2423 1
a2423 1
#line 2427 "configure"
d2432 1
a2432 1
if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2441 1
a2441 1
#line 2445 "configure"
d2450 1
a2450 1
if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2470 1
a2470 1
echo "configure:2474: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d2476 1
a2476 1
#line 2480 "configure"
d2485 1
a2485 1
if { (eval echo configure:2489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2492 1
a2492 1
#line 2496 "configure"
d2503 1
a2503 1
if { (eval echo configure:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2523 1
a2523 1
echo "configure:2527: checking for _LARGE_FILES value needed for large files" >&5
d2529 1
a2529 1
#line 2533 "configure"
d2536 1
a2536 1
if { (eval echo configure:2540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2543 1
a2543 1
#line 2547 "configure"
d2552 1
a2552 1
if { (eval echo configure:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2579 1
a2579 1
echo "configure:2583: checking for $ac_hdr" >&5
d2584 1
a2584 1
#line 2588 "configure"
d2589 1
a2589 1
{ (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2617 1
a2617 1
echo "configure:2621: checking for _oss_ioctl in -lossaudio" >&5
d2625 1
a2625 1
#line 2629 "configure"
d2636 1
a2636 1
if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2665 1
a2665 1
echo "configure:2669: checking for $ac_hdr" >&5
d2670 1
a2670 1
#line 2674 "configure"
d2675 1
a2675 1
{ (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2702 1
a2702 1
echo "configure:2706: checking for ANSI C header files" >&5
d2707 1
a2707 1
#line 2711 "configure"
d2715 1
a2715 1
{ (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2732 1
a2732 1
#line 2736 "configure"
d2750 1
a2750 1
#line 2754 "configure"
d2771 1
a2771 1
#line 2775 "configure"
d2782 1
a2782 1
if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2806 1
a2806 1
echo "configure:2810: checking whether time.h and sys/time.h may both be included" >&5
d2811 1
a2811 1
#line 2815 "configure"
d2820 1
a2820 1
if { (eval echo configure:2824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2841 1
a2841 1
echo "configure:2845: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d2846 1
a2846 1
#line 2850 "configure"
d2858 1
a2858 1
if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2879 1
a2879 1
echo "configure:2883: checking for sys/wait.h that is POSIX.1 compatible" >&5
d2884 1
a2884 1
#line 2888 "configure"
d2900 1
a2900 1
if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2922 1
a2922 1
echo "configure:2926: checking for struct utimbuf" >&5
d2927 1
a2927 1
#line 2931 "configure"
d2946 1
a2946 1
if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2967 1
a2967 1
echo "configure:2971: checking return type of signal handlers" >&5
d2972 1
a2972 1
#line 2976 "configure"
d2989 1
a2989 1
if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3009 1
a3009 1
echo "configure:3013: checking for speed_t" >&5
d3014 1
a3014 1
#line 3018 "configure"
d3021 1
a3021 1
if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3040 1
a3040 1
echo "configure:3044: checking for struct timeval" >&5
d3045 1
a3045 1
#line 3049 "configure"
d3061 1
a3061 1
if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3083 1
a3083 1
echo "configure:3087: checking for struct exception" >&5
d3088 1
a3088 1
#line 3092 "configure"
d3095 1
a3095 1
if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3117 1
a3117 1
echo "configure:3121: checking whether struct tm is in sys/time.h or time.h" >&5
d3122 1
a3122 1
#line 3126 "configure"
d3130 1
a3130 1
if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3151 1
a3151 1
echo "configure:3155: checking for tm_zone in struct tm" >&5
d3156 1
a3156 1
#line 3160 "configure"
d3164 1
a3164 1
if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3184 1
a3184 1
echo "configure:3188: checking for tzname" >&5
d3189 1
a3189 1
#line 3193 "configure"
d3199 1
a3199 1
if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3221 1
a3221 1
echo "configure:3225: checking for tm_gmtoff in struct tm" >&5
d3226 1
a3226 1
#line 3230 "configure"
d3233 1
a3233 1
if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3255 1
a3255 1
echo "configure:3259: checking for ${CC-cc} option to accept ANSI C" >&5
d3272 1
a3272 1
#line 3276 "configure"
d3306 1
a3306 1
if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3328 1
a3328 1
echo "configure:3332: checking for function prototypes" >&5
d3340 1
a3340 1
echo "configure:3344: checking for working volatile" >&5
d3345 1
a3345 1
#line 3349 "configure"
d3354 1
a3354 1
if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3375 1
a3375 1
echo "configure:3379: checking for working const" >&5
d3380 1
a3380 1
#line 3384 "configure"
d3429 1
a3429 1
if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3450 1
a3450 1
echo "configure:3454: checking for void * support" >&5
d3455 1
a3455 1
#line 3459 "configure"
d3462 1
a3462 1
if { (eval echo configure:3466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3488 1
a3488 1
echo "configure:3492: checking whether ${MAKE-make} sets \${MAKE}" >&5
d3516 1
a3516 1
echo "configure:3520: checking for long file names" >&5
d3567 1
a3567 1
echo "configure:3571: checking for X" >&5
d3629 1
a3629 1
#line 3633 "configure"
d3634 1
a3634 1
{ (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3703 1
a3703 1
#line 3707 "configure"
d3710 1
a3710 1
if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3891 1
a3891 1
echo "configure:3895: checking for malloc_get_state" >&5
d3896 1
a3896 1
#line 3900 "configure"
d3919 1
a3919 1
if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3940 1
a3940 1
echo "configure:3944: checking for malloc_set_state" >&5
d3945 1
a3945 1
#line 3949 "configure"
d3968 1
a3968 1
if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3989 1
a3989 1
echo "configure:3993: checking whether __after_morecore_hook exists" >&5
d3994 1
a3994 1
#line 3998 "configure"
d4001 1
a4001 1
if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4042 1
a4042 1
echo "configure:4046: checking for $ac_hdr" >&5
d4047 1
a4047 1
#line 4051 "configure"
d4052 1
a4052 1
{ (eval echo configure:4056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4081 1
a4081 1
echo "configure:4085: checking for $ac_func" >&5
d4086 1
a4086 1
#line 4090 "configure"
d4109 1
a4109 1
if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4134 1
a4134 1
echo "configure:4138: checking for working mmap" >&5
d4142 1
a4142 1
#line 4146 "configure"
d4276 1
a4276 1
if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4305 1
a4305 1
echo "configure:4309: checking for dnet_ntoa in -ldnet" >&5
d4313 1
a4313 1
#line 4317 "configure"
d4324 1
a4324 1
if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4353 1
a4353 1
echo "configure:4357: checking for main in -lXbsd" >&5
d4361 1
a4361 1
#line 4365 "configure"
d4368 1
a4368 1
if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4390 1
a4390 1
echo "configure:4394: checking for cma_open in -lpthreads" >&5
d4398 1
a4398 1
#line 4402 "configure"
d4409 1
a4409 1
if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4438 1
a4438 1
echo "configure:4442: checking for XFree86 in /usr/X386" >&5
d4470 1
a4470 1
echo "configure:4474: checking whether X on GNU/Linux needs -b to link" >&5
d4472 1
a4472 1
#line 4476 "configure"
d4479 1
a4479 1
if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4499 1
a4499 1
#line 4503 "configure"
d4506 1
a4506 1
if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4535 1
a4535 1
echo "configure:4539: checking for Xkb" >&5
d4537 1
a4537 1
#line 4541 "configure"
d4545 1
a4545 1
if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4567 1
a4567 1
echo "configure:4571: checking for $ac_func" >&5
d4572 1
a4572 1
#line 4576 "configure"
d4595 1
a4595 1
if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4623 1
a4623 1
echo "configure:4627: checking X11 version 6" >&5
d4628 1
a4628 1
#line 4632 "configure"
d4638 1
a4638 1
if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4663 1
a4663 1
echo "configure:4667: checking X11 version 5" >&5
d4668 1
a4668 1
#line 4672 "configure"
d4678 1
a4678 1
if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4706 1
a4706 1
echo "configure:4710: checking X11 version 5 with Xaw" >&5
d4711 1
a4711 1
#line 4715 "configure"
d4720 1
a4720 1
if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4748 1
a4748 1
echo "configure:4752: checking X11 toolkit version" >&5
d4753 1
a4753 1
#line 4757 "configure"
d4763 1
a4763 1
if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4793 1
a4793 1
echo "configure:4797: checking for XmuConvertStandardSelection in -lXmu" >&5
d4801 1
a4801 1
#line 4805 "configure"
d4812 1
a4812 1
if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4846 1
a4846 1
echo "configure:4850: checking for XShapeQueryExtension in -lXext" >&5
d4854 1
a4854 1
#line 4858 "configure"
d4865 1
a4865 1
if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4897 1
a4897 1
echo "configure:4901: checking for Motif version 2.1" >&5
d4902 1
a4902 1
#line 4906 "configure"
d4913 1
a4913 1
if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4934 1
a4934 1
echo "configure:4938: checking for XpCreateContext in -lXp" >&5
d4942 1
a4942 1
#line 4946 "configure"
d4953 1
a4953 1
if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4988 1
a4988 1
echo "configure:4992: checking for X11/Xaw3d/Scrollbar.h" >&5
d4993 1
a4993 1
#line 4997 "configure"
d4998 1
a4998 1
{ (eval echo configure:5002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5015 1
a5015 1
echo "configure:5019: checking for XawScrollbarSetThumb in -lXaw3d" >&5
d5023 1
a5023 1
#line 5027 "configure"
d5034 1
a5034 1
if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5102 1
a5102 1
echo "configure:5106: checking for X11/xpm.h" >&5
d5107 1
a5107 1
#line 5111 "configure"
d5112 1
a5112 1
{ (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5129 1
a5129 1
echo "configure:5133: checking for XpmReadFileToPixmap in -lXpm" >&5
d5137 1
a5137 1
#line 5141 "configure"
d5148 1
a5148 1
if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5174 1
a5174 1
echo "configure:5178: checking for XpmReturnAllocPixels preprocessor define" >&5
d5176 1
a5176 1
#line 5180 "configure"
d5217 1
a5217 1
echo "configure:5221: checking for jerror.h" >&5
d5222 1
a5222 1
#line 5226 "configure"
d5227 1
a5227 1
{ (eval echo configure:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5244 1
a5244 1
echo "configure:5248: checking for jpeg_destroy_compress in -ljpeg" >&5
d5252 1
a5252 1
#line 5256 "configure"
d5263 1
a5263 1
if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5303 1
a5303 1
echo "configure:5307: checking for png.h" >&5
d5308 1
a5308 1
#line 5312 "configure"
d5313 1
a5313 1
{ (eval echo configure:5317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5330 1
a5330 1
echo "configure:5334: checking for png_get_channels in -lpng" >&5
d5338 1
a5338 1
#line 5342 "configure"
d5349 1
a5349 1
if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5389 1
a5389 1
echo "configure:5393: checking for tiffio.h" >&5
d5394 1
a5394 1
#line 5398 "configure"
d5399 1
a5399 1
{ (eval echo configure:5403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5419 1
a5419 1
echo "configure:5423: checking for TIFFGetVersion in -ltiff" >&5
d5427 1
a5427 1
#line 5431 "configure"
d5438 1
a5438 1
if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5478 1
a5478 1
echo "configure:5482: checking for gif_lib.h" >&5
d5483 1
a5483 1
#line 5487 "configure"
d5488 1
a5488 1
{ (eval echo configure:5492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5505 1
a5505 1
echo "configure:5509: checking for DGifOpen in -lungif" >&5
d5513 1
a5513 1
#line 5517 "configure"
d5524 1
a5524 1
if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5560 1
a5560 1
echo "configure:5564: checking whether netdb declares h_errno" >&5
d5565 1
a5565 1
#line 5569 "configure"
d5572 1
a5572 1
if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5595 1
a5595 1
echo "configure:5599: checking for working alloca.h" >&5
d5600 1
a5600 1
#line 5604 "configure"
d5607 1
a5607 1
if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5628 1
a5628 1
echo "configure:5632: checking for alloca" >&5
d5633 1
a5633 1
#line 5637 "configure"
d5661 1
a5661 1
if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5693 1
a5693 1
echo "configure:5697: checking whether alloca needs Cray hooks" >&5
d5698 1
a5698 1
#line 5702 "configure"
d5723 1
a5723 1
echo "configure:5727: checking for $ac_func" >&5
d5728 1
a5728 1
#line 5732 "configure"
d5751 1
a5751 1
if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5778 1
a5778 1
echo "configure:5782: checking stack direction for C alloca" >&5
d5786 1
a5786 1
#line 5790 "configure"
d5805 1
a5805 1
if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5830 1
a5830 1
echo "configure:5834: checking for sqrt in -lm" >&5
d5838 1
a5838 1
#line 5842 "configure"
d5849 1
a5849 1
if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5879 1
a5879 1
echo "configure:5883: checking for maillock in -lmail" >&5
d5887 1
a5887 1
#line 5891 "configure"
d5898 1
a5898 1
if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5926 1
a5926 1
echo "configure:5930: checking for maillock in -llockfile" >&5
d5934 1
a5934 1
#line 5938 "configure"
d5945 1
a5945 1
if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5979 1
a5979 1
echo "configure:5983: checking for $ac_word" >&5
d6020 1
a6020 1
echo "configure:6024: checking for $ac_func" >&5
d6025 1
a6025 1
#line 6029 "configure"
d6048 1
a6048 1
if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6076 1
a6076 1
echo "configure:6080: checking for $ac_hdr" >&5
d6081 1
a6081 1
#line 6085 "configure"
d6086 1
a6086 1
{ (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6122 1
a6122 1
echo "configure:6126: checking for $ac_func" >&5
d6127 1
a6127 1
#line 6131 "configure"
d6150 1
a6150 1
if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6179 1
a6179 1
echo "configure:6183: checking for $ac_hdr" >&5
d6184 1
a6184 1
#line 6188 "configure"
d6189 1
a6189 1
{ (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6218 1
a6218 1
echo "configure:6222: checking for $ac_func" >&5
d6223 1
a6223 1
#line 6227 "configure"
d6246 1
a6246 1
if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6271 1
a6271 1
echo "configure:6275: checking for working mktime" >&5
d6279 1
a6279 1
#line 6283 "configure"
d6428 1
a6428 1
if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6460 1
a6460 1
echo "configure:6464: checking for elf_begin in -lelf" >&5
d6468 1
a6468 1
#line 6472 "configure"
d6479 1
a6479 1
if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6500 1
a6500 1
echo "configure:6504: checking for kvm_open in -lkvm" >&5
d6508 1
a6508 1
#line 6512 "configure"
d6519 1
a6519 1
if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6541 1
a6541 1
echo "configure:6545: checking for getloadavg in -lutil" >&5
d6549 1
a6549 1
#line 6553 "configure"
d6560 1
a6560 1
if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6586 1
a6586 1
echo "configure:6590: checking for getloadavg in -lgetloadavg" >&5
d6594 1
a6594 1
#line 6598 "configure"
d6605 1
a6605 1
if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6632 1
a6632 1
echo "configure:6636: checking for $ac_func" >&5
d6637 1
a6637 1
#line 6641 "configure"
d6660 1
a6660 1
if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6698 1
a6698 1
echo "configure:6702: checking for sys/dg_sys_info.h" >&5
d6703 1
a6703 1
#line 6707 "configure"
d6708 1
a6708 1
{ (eval echo configure:6712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6729 1
a6729 1
echo "configure:6733: checking for dg_sys_info in -ldgc" >&5
d6737 1
a6737 1
#line 6741 "configure"
d6748 1
a6748 1
if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6793 1
a6793 1
echo "configure:6797: checking for inq_stats/cpustats.h" >&5
d6798 1
a6798 1
#line 6802 "configure"
d6803 1
a6803 1
{ (eval echo configure:6807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6836 1
a6836 1
echo "configure:6840: checking for sys/cpustats.h" >&5
d6841 1
a6841 1
#line 6845 "configure"
d6846 1
a6846 1
{ (eval echo configure:6850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6877 1
a6877 1
echo "configure:6881: checking for $ac_hdr" >&5
d6882 1
a6882 1
#line 6886 "configure"
d6887 1
a6887 1
{ (eval echo configure:6891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6917 1
a6917 1
echo "configure:6921: checking for nlist.h" >&5
d6922 1
a6922 1
#line 6926 "configure"
d6927 1
a6927 1
{ (eval echo configure:6931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6948 1
a6948 1
echo "configure:6952: checking for n_un in struct nlist" >&5
d6953 1
a6953 1
#line 6957 "configure"
d6960 1
a6960 1
if { (eval echo configure:6964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6987 1
a6987 1
echo "configure:6991: checking whether getloadavg requires setgid" >&5
d6992 1
a6992 1
#line 6996 "configure"
d7023 1
a7023 1
echo "configure:7027: checking group of /dev/kmem" >&5
d7044 1
a7044 1
echo "configure:7048: checking for _LARGEFILE_SOURCE value needed for large files" >&5
d7050 1
a7050 1
#line 7054 "configure"
d7057 1
a7057 1
if { (eval echo configure:7061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7064 1
a7064 1
#line 7068 "configure"
d7073 1
a7073 1
if { (eval echo configure:7077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7097 1
a7097 1
echo "configure:7101: checking for fseeko" >&5
d7103 1
a7103 1
#line 7107 "configure"
d7110 1
a7110 1
if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7132 1
a7132 1
echo "configure:7136: checking for $ac_func" >&5
d7137 1
a7137 1
#line 7141 "configure"
d7160 1
a7160 1
if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7189 1
a7189 1
echo "configure:7193: checking for $ac_func" >&5
d7194 1
a7194 1
#line 7198 "configure"
d7217 1
a7217 1
if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7247 1
a7247 1
echo "configure:7251: checking for tparm in -lncurses" >&5
d7255 1
a7255 1
#line 7259 "configure"
d7266 1
a7266 1
if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7297 1
a7297 1
echo "configure:7301: checking for com_err in -lcom_err" >&5
d7305 1
a7305 1
#line 7309 "configure"
d7316 1
a7316 1
if { (eval echo configure:7320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7344 1
a7344 1
echo "configure:7348: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
d7352 1
a7352 1
#line 7356 "configure"
d7363 1
a7363 1
if { (eval echo configure:7367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7391 1
a7391 1
echo "configure:7395: checking for mit_des_cbc_encrypt in -lcrypto" >&5
d7399 1
a7399 1
#line 7403 "configure"
d7410 1
a7410 1
if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7438 1
a7438 1
echo "configure:7442: checking for krb5_init_context in -lkrb5" >&5
d7446 1
a7446 1
#line 7450 "configure"
d7457 1
a7457 1
if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7486 1
a7486 1
echo "configure:7490: checking for des_cbc_encrypt in -ldes425" >&5
d7494 1
a7494 1
#line 7498 "configure"
d7505 1
a7505 1
if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7531 1
a7531 1
echo "configure:7535: checking for des_cbc_encrypt in -ldes" >&5
d7539 1
a7539 1
#line 7543 "configure"
d7550 1
a7550 1
if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7580 1
a7580 1
echo "configure:7584: checking for krb_get_cred in -lkrb4" >&5
d7588 1
a7588 1
#line 7592 "configure"
d7599 1
a7599 1
if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7625 1
a7625 1
echo "configure:7629: checking for krb_get_cred in -lkrb" >&5
d7633 1
a7633 1
#line 7637 "configure"
d7644 1
a7644 1
if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7680 1
a7680 1
echo "configure:7684: checking for $ac_hdr" >&5
d7685 1
a7685 1
#line 7689 "configure"
d7690 1
a7690 1
{ (eval echo configure:7694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7721 1
a7721 1
echo "configure:7725: checking for $ac_hdr" >&5
d7726 1
a7726 1
#line 7730 "configure"
d7731 1
a7731 1
{ (eval echo configure:7735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7758 1
a7758 1
echo "configure:7762: checking for $ac_hdr" >&5
d7763 1
a7763 1
#line 7767 "configure"
d7768 1
a7768 1
{ (eval echo configure:7772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7795 1
a7795 1
echo "configure:7799: checking for $ac_hdr" >&5
d7800 1
a7800 1
#line 7804 "configure"
d7805 1
a7805 1
{ (eval echo configure:7809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7841 1
a7841 1
echo "configure:7845: checking for $ac_hdr" >&5
d7846 1
a7846 1
#line 7850 "configure"
d7851 1
a7851 1
{ (eval echo configure:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7878 1
a7878 1
echo "configure:7882: checking for $ac_hdr" >&5
d7883 1
a7883 1
#line 7887 "configure"
d7888 1
a7888 1
{ (eval echo configure:7892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7915 1
a7915 1
echo "configure:7919: checking for $ac_hdr" >&5
d7920 1
a7920 1
#line 7924 "configure"
d7925 1
a7925 1
{ (eval echo configure:7929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7962 1
a7962 1
echo "configure:7966: checking for $ac_hdr" >&5
d7967 1
a7967 1
#line 7971 "configure"
d7972 1
a7972 1
{ (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8003 1
a8003 1
echo "configure:8007: checking for dgettext in -lintl" >&5
d8011 1
a8011 1
#line 8015 "configure"
d8022 1
a8022 1
if { (eval echo configure:8026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8051 1
a8051 1
echo "configure:8055: checking whether localtime caches TZ" >&5
d8061 1
a8061 1
#line 8065 "configure"
d8093 1
a8093 1
if { (eval echo configure:8097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8123 1
a8123 1
echo "configure:8127: checking for $ac_func" >&5
d8128 1
a8128 1
#line 8132 "configure"
d8151 1
a8151 1
if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8176 1
a8176 1
echo "configure:8180: checking whether gettimeofday can accept two arguments" >&5
d8181 1
a8181 1
#line 8185 "configure"
d8199 1
a8199 1
if { (eval echo configure:8203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8222 1
a8222 1
echo "configure:8226: checking for struct timezone" >&5
d8227 1
a8227 1
#line 8231 "configure"
d8234 1
a8234 1
if { (eval echo configure:8238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8240 1
a8240 1
#line 8244 "configure"
d8259 1
a8259 1
if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8285 1
a8285 1
echo "configure:8289: checking for socket" >&5
d8290 1
a8290 1
#line 8294 "configure"
d8313 1
a8313 1
if { (eval echo configure:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8336 1
a8336 1
echo "configure:8340: checking for netinet/in.h" >&5
d8341 1
a8341 1
#line 8345 "configure"
d8346 1
a8346 1
{ (eval echo configure:8350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8372 1
a8372 1
echo "configure:8376: checking for arpa/inet.h" >&5
d8377 1
a8377 1
#line 8381 "configure"
d8382 1
a8382 1
{ (eval echo configure:8386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8420 1
a8420 1
echo "configure:8424: checking whether system supports dynamic ptys" >&5
d8432 1
a8432 1
echo "configure:8436: checking for pid_t" >&5
d8437 1
a8437 1
#line 8441 "configure"
d8466 1
a8466 1
echo "configure:8470: checking for vfork.h" >&5
d8471 1
a8471 1
#line 8475 "configure"
d8476 1
a8476 1
{ (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8501 1
a8501 1
echo "configure:8505: checking for working vfork" >&5
d8507 1
a8507 1
echo "configure:8511: checking for vfork" >&5
d8512 1
a8512 1
#line 8516 "configure"
d8535 1
a8535 1
if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8557 1
a8557 1
#line 8561 "configure"
d8652 1
a8652 1
if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8677 1
a8677 1
echo "configure:8681: checking for size_t" >&5
d8682 1
a8682 1
#line 8686 "configure"
d8876 1
a8876 1
#line 8880 "configure"
@


1.1.1.32
log
@import emacs-21.0.106
@
text
@d9322 1
a9322 1
      -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
d9338 1
a9338 1
      -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
@


1.1.1.33
log
@import emacs-21.1
@
text
@a7296 283
# Do we need the Hesiod library to provide the support routines?
if test "$with_hesiod" = yes ; then
  # Don't set $LIBS here -- see comments above.
  resolv=no
  echo $ac_n "checking for res_send""... $ac_c" 1>&6
echo "configure:7303: checking for res_send" >&5
if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7308 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char res_send(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char res_send();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_res_send) || defined (__stub___res_send)
choke me
#else
res_send();
#endif

; return 0; }
EOF
if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_res_send=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_res_send=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for __res_send""... $ac_c" 1>&6
echo "configure:7349: checking for __res_send" >&5
if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7354 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __res_send(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __res_send();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___res_send) || defined (__stub_____res_send)
choke me
#else
__res_send();
#endif

; return 0; }
EOF
if { (eval echo configure:7377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func___res_send=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func___res_send=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'__res_send`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
echo "configure:7395: checking for res_send in -lresolv" >&5
ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lresolv  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7403 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char res_send();

int main() {
res_send()
; return 0; }
EOF
if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  resolv=yes
else
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
echo "configure:7433: checking for __res_send in -lresolv" >&5
ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lresolv  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7441 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __res_send();

int main() {
__res_send()
; return 0; }
EOF
if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  resolv=yes
else
  echo "$ac_t""no" 1>&6
fi

fi

fi

fi

  if test "$resolv" = yes ; then
    RESOLVLIB=-lresolv
    cat >> confdefs.h <<\EOF
#define HAVE_LIBRESOLV 1
EOF

  else
    RESOLVLIB=
  fi
  echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6
echo "configure:7488: checking for hes_getmailhost" >&5
if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7493 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char hes_getmailhost(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char hes_getmailhost();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
choke me
#else
hes_getmailhost();
#endif

; return 0; }
EOF
if { (eval echo configure:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_hes_getmailhost=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_hes_getmailhost=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'hes_getmailhost`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6
echo "configure:7534: checking for hes_getmailhost in -lhesiod" >&5
ac_lib_var=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lhesiod $RESOLVLIB $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7542 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char hes_getmailhost();

int main() {
hes_getmailhost()
; return 0; }
EOF
if { (eval echo configure:7553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_LIBHESIOD 1
EOF

else
  echo "$ac_t""no" 1>&6
:
fi

fi

fi

d7300 1
a7300 1
echo "configure:7584: checking for com_err in -lcom_err" >&5
d7308 1
a7308 1
#line 7592 "configure"
d7319 1
a7319 1
if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7347 1
a7347 1
echo "configure:7631: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
d7355 1
a7355 1
#line 7639 "configure"
d7366 1
a7366 1
if { (eval echo configure:7650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7394 1
a7394 1
echo "configure:7678: checking for mit_des_cbc_encrypt in -lcrypto" >&5
d7402 1
a7402 1
#line 7686 "configure"
d7413 1
a7413 1
if { (eval echo configure:7697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7441 1
a7441 1
echo "configure:7725: checking for krb5_init_context in -lkrb5" >&5
d7449 1
a7449 1
#line 7733 "configure"
d7460 1
a7460 1
if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7489 1
a7489 1
echo "configure:7773: checking for des_cbc_encrypt in -ldes425" >&5
d7497 1
a7497 1
#line 7781 "configure"
d7508 1
a7508 1
if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7534 1
a7534 1
echo "configure:7818: checking for des_cbc_encrypt in -ldes" >&5
d7542 1
a7542 1
#line 7826 "configure"
d7553 1
a7553 1
if { (eval echo configure:7837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7583 1
a7583 1
echo "configure:7867: checking for krb_get_cred in -lkrb4" >&5
d7591 1
a7591 1
#line 7875 "configure"
d7602 1
a7602 1
if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7628 1
a7628 1
echo "configure:7912: checking for krb_get_cred in -lkrb" >&5
d7636 1
a7636 1
#line 7920 "configure"
d7647 1
a7647 1
if { (eval echo configure:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7683 1
a7683 1
echo "configure:7967: checking for $ac_hdr" >&5
d7688 1
a7688 1
#line 7972 "configure"
d7693 1
a7693 1
{ (eval echo configure:7977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7724 1
a7724 1
echo "configure:8008: checking for $ac_hdr" >&5
d7729 1
a7729 1
#line 8013 "configure"
d7734 1
a7734 1
{ (eval echo configure:8018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7761 1
a7761 1
echo "configure:8045: checking for $ac_hdr" >&5
d7766 1
a7766 1
#line 8050 "configure"
d7771 1
a7771 1
{ (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7798 1
a7798 1
echo "configure:8082: checking for $ac_hdr" >&5
d7803 1
a7803 1
#line 8087 "configure"
d7808 1
a7808 1
{ (eval echo configure:8092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7844 1
a7844 1
echo "configure:8128: checking for $ac_hdr" >&5
d7849 1
a7849 1
#line 8133 "configure"
d7854 1
a7854 1
{ (eval echo configure:8138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7881 1
a7881 1
echo "configure:8165: checking for $ac_hdr" >&5
d7886 1
a7886 1
#line 8170 "configure"
d7891 1
a7891 1
{ (eval echo configure:8175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7918 1
a7918 1
echo "configure:8202: checking for $ac_hdr" >&5
d7923 1
a7923 1
#line 8207 "configure"
d7928 1
a7928 1
{ (eval echo configure:8212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7965 1
a7965 1
echo "configure:8249: checking for $ac_hdr" >&5
d7970 1
a7970 1
#line 8254 "configure"
d7975 1
a7975 1
{ (eval echo configure:8259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8006 1
a8006 1
echo "configure:8290: checking for dgettext in -lintl" >&5
d8014 1
a8014 1
#line 8298 "configure"
d8025 1
a8025 1
if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8054 1
a8054 1
echo "configure:8338: checking whether localtime caches TZ" >&5
d8064 1
a8064 1
#line 8348 "configure"
d8096 1
a8096 1
if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8126 1
a8126 1
echo "configure:8410: checking for $ac_func" >&5
d8131 1
a8131 1
#line 8415 "configure"
d8154 1
a8154 1
if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8179 1
a8179 1
echo "configure:8463: checking whether gettimeofday can accept two arguments" >&5
d8184 1
a8184 1
#line 8468 "configure"
d8202 1
a8202 1
if { (eval echo configure:8486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8225 1
a8225 1
echo "configure:8509: checking for struct timezone" >&5
d8230 1
a8230 1
#line 8514 "configure"
d8237 1
a8237 1
if { (eval echo configure:8521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8243 1
a8243 1
#line 8527 "configure"
d8262 1
a8262 1
if { (eval echo configure:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8288 1
a8288 1
echo "configure:8572: checking for socket" >&5
d8293 1
a8293 1
#line 8577 "configure"
d8316 1
a8316 1
if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8339 1
a8339 1
echo "configure:8623: checking for netinet/in.h" >&5
d8344 1
a8344 1
#line 8628 "configure"
d8349 1
a8349 1
{ (eval echo configure:8633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8375 1
a8375 1
echo "configure:8659: checking for arpa/inet.h" >&5
d8380 1
a8380 1
#line 8664 "configure"
d8385 1
a8385 1
{ (eval echo configure:8669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8423 1
a8423 1
echo "configure:8707: checking whether system supports dynamic ptys" >&5
d8435 1
a8435 1
echo "configure:8719: checking for pid_t" >&5
d8440 1
a8440 1
#line 8724 "configure"
d8469 1
a8469 1
echo "configure:8753: checking for vfork.h" >&5
d8474 1
a8474 1
#line 8758 "configure"
d8479 1
a8479 1
{ (eval echo configure:8763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8504 1
a8504 1
echo "configure:8788: checking for working vfork" >&5
d8510 1
a8510 1
echo "configure:8794: checking for vfork" >&5
d8515 1
a8515 1
#line 8799 "configure"
d8538 1
a8538 1
if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8560 1
a8560 1
#line 8844 "configure"
d8655 1
a8655 1
if { (eval echo configure:8939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8680 1
a8680 1
echo "configure:8964: checking for size_t" >&5
d8685 1
a8685 1
#line 8969 "configure"
d8879 1
a8879 1
#line 9163 "configure"
@


1.1.1.34
log
@import emacs-21.2
@
text
@d38 1
a38 1
                          don't use Motif or Xaw3d scroll bars"
d40 1
a40 1
  --without-xim           don't use X11 XIM"
d865 1
a865 1
      *-*-bsdi[45]* )		opsys=bsdos4 ;;
d1153 1
a1153 2

  hppa*-hp-hpux10* )
a1155 3
  hppa*-hp-hpux1[1-9]* )
    machine=hp800 opsys=hpux11
  ;;
a1202 3
  rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1*  )
    machine=ibmrs6000 opsys=aix4-2
  ;;
d1737 1
a1737 1
echo "configure:1745: checking for $ac_word" >&5
d1767 1
a1767 1
echo "configure:1775: checking for $ac_word" >&5
d1818 1
a1818 1
echo "configure:1826: checking for $ac_word" >&5
d1850 1
a1850 1
echo "configure:1858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d1861 1
a1861 1
#line 1869 "configure"
d1866 1
a1866 1
if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1892 1
a1892 1
echo "configure:1900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1897 1
a1897 1
echo "configure:1905: checking whether we are using GNU C" >&5
d1906 1
a1906 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1925 1
a1925 1
echo "configure:1933: checking whether ${CC-cc} accepts -g" >&5
d2005 1
a2005 1
echo "configure:2013: checking whether ln -s works" >&5
d2026 1
a2026 1
echo "configure:2034: checking how to run the C preprocessor" >&5
d2041 1
a2041 1
#line 2049 "configure"
d2047 1
a2047 1
{ (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2058 1
a2058 1
#line 2066 "configure"
d2064 1
a2064 1
{ (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2075 1
a2075 1
#line 2083 "configure"
d2081 1
a2081 1
{ (eval echo configure:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2117 1
a2117 1
echo "configure:2125: checking for a BSD compatible install" >&5
d2174 1
a2174 1
echo "configure:2182: checking for $ac_word" >&5
d2208 1
a2208 1
echo "configure:2216: checking for $ac_word" >&5
d2238 1
a2238 1
echo "configure:2246: checking for AIX" >&5
d2240 1
a2240 1
#line 2248 "configure"
d2267 1
a2267 1
echo "configure:2275: checking the machine- and system-dependent files to find out
d2417 1
a2417 1
echo "configure:2425: checking for special C compiler options needed for large files" >&5
d2426 1
a2426 1
#line 2434 "configure"
d2435 1
a2435 1
if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2444 1
a2444 1
#line 2452 "configure"
d2453 1
a2453 1
if { (eval echo configure:2461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2473 1
a2473 1
echo "configure:2481: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d2479 1
a2479 1
#line 2487 "configure"
d2488 1
a2488 1
if { (eval echo configure:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2495 1
a2495 1
#line 2503 "configure"
d2506 1
a2506 1
if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2526 1
a2526 1
echo "configure:2534: checking for _LARGE_FILES value needed for large files" >&5
d2532 1
a2532 1
#line 2540 "configure"
d2539 1
a2539 1
if { (eval echo configure:2547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2546 1
a2546 1
#line 2554 "configure"
d2555 1
a2555 1
if { (eval echo configure:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2582 1
a2582 1
echo "configure:2590: checking for $ac_hdr" >&5
d2587 1
a2587 1
#line 2595 "configure"
d2592 1
a2592 1
{ (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2620 1
a2620 1
echo "configure:2628: checking for _oss_ioctl in -lossaudio" >&5
d2628 1
a2628 1
#line 2636 "configure"
d2639 1
a2639 1
if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2668 1
a2668 1
echo "configure:2676: checking for $ac_hdr" >&5
d2673 1
a2673 1
#line 2681 "configure"
d2678 1
a2678 1
{ (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2705 1
a2705 1
echo "configure:2713: checking for ANSI C header files" >&5
d2710 1
a2710 1
#line 2718 "configure"
d2718 1
a2718 1
{ (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2735 1
a2735 1
#line 2743 "configure"
d2753 1
a2753 1
#line 2761 "configure"
d2774 1
a2774 1
#line 2782 "configure"
d2785 1
a2785 1
if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2809 1
a2809 1
echo "configure:2817: checking whether time.h and sys/time.h may both be included" >&5
d2814 1
a2814 1
#line 2822 "configure"
d2823 1
a2823 1
if { (eval echo configure:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2844 1
a2844 1
echo "configure:2852: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d2849 1
a2849 1
#line 2857 "configure"
d2861 1
a2861 1
if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2882 1
a2882 1
echo "configure:2890: checking for sys/wait.h that is POSIX.1 compatible" >&5
d2887 1
a2887 1
#line 2895 "configure"
d2903 1
a2903 1
if { (eval echo configure:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2925 1
a2925 1
echo "configure:2933: checking for struct utimbuf" >&5
d2930 1
a2930 1
#line 2938 "configure"
d2949 1
a2949 1
if { (eval echo configure:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2970 1
a2970 1
echo "configure:2978: checking return type of signal handlers" >&5
d2975 1
a2975 1
#line 2983 "configure"
d2992 1
a2992 1
if { (eval echo configure:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3012 1
a3012 1
echo "configure:3020: checking for speed_t" >&5
d3017 1
a3017 1
#line 3025 "configure"
d3024 1
a3024 1
if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3043 1
a3043 1
echo "configure:3051: checking for struct timeval" >&5
d3048 1
a3048 1
#line 3056 "configure"
d3064 1
a3064 1
if { (eval echo configure:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3086 1
a3086 1
echo "configure:3094: checking for struct exception" >&5
d3091 1
a3091 1
#line 3099 "configure"
d3098 1
a3098 1
if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3120 1
a3120 1
echo "configure:3128: checking whether struct tm is in sys/time.h or time.h" >&5
d3125 1
a3125 1
#line 3133 "configure"
d3133 1
a3133 1
if { (eval echo configure:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3154 1
a3154 1
echo "configure:3162: checking for tm_zone in struct tm" >&5
d3159 1
a3159 1
#line 3167 "configure"
d3167 1
a3167 1
if { (eval echo configure:3175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3187 1
a3187 1
echo "configure:3195: checking for tzname" >&5
d3192 1
a3192 1
#line 3200 "configure"
d3202 1
a3202 1
if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3224 1
a3224 1
echo "configure:3232: checking for tm_gmtoff in struct tm" >&5
d3229 1
a3229 1
#line 3237 "configure"
d3236 1
a3236 1
if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3258 1
a3258 1
echo "configure:3266: checking for ${CC-cc} option to accept ANSI C" >&5
d3275 1
a3275 1
#line 3283 "configure"
d3309 1
a3309 1
if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3331 1
a3331 1
echo "configure:3339: checking for function prototypes" >&5
d3343 1
a3343 1
echo "configure:3351: checking for working volatile" >&5
d3348 1
a3348 1
#line 3356 "configure"
d3357 1
a3357 1
if { (eval echo configure:3365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3378 1
a3378 1
echo "configure:3386: checking for working const" >&5
d3383 1
a3383 1
#line 3391 "configure"
d3432 1
a3432 1
if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3453 1
a3453 1
echo "configure:3461: checking for void * support" >&5
d3458 1
a3458 1
#line 3466 "configure"
d3465 1
a3465 1
if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3491 1
a3491 1
echo "configure:3499: checking whether ${MAKE-make} sets \${MAKE}" >&5
d3519 1
a3519 1
echo "configure:3527: checking for long file names" >&5
d3570 1
a3570 1
echo "configure:3578: checking for X" >&5
d3632 1
a3632 1
#line 3640 "configure"
d3637 1
a3637 1
{ (eval echo configure:3645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3706 1
a3706 1
#line 3714 "configure"
d3713 1
a3713 1
if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3894 1
a3894 1
echo "configure:3902: checking for malloc_get_state" >&5
d3899 1
a3899 1
#line 3907 "configure"
d3922 1
a3922 1
if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3943 1
a3943 1
echo "configure:3951: checking for malloc_set_state" >&5
d3948 1
a3948 1
#line 3956 "configure"
d3971 1
a3971 1
if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3992 1
a3992 1
echo "configure:4000: checking whether __after_morecore_hook exists" >&5
d3997 1
a3997 1
#line 4005 "configure"
d4004 1
a4004 1
if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4045 1
a4045 1
echo "configure:4053: checking for $ac_hdr" >&5
d4050 1
a4050 1
#line 4058 "configure"
d4055 1
a4055 1
{ (eval echo configure:4063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4084 1
a4084 1
echo "configure:4092: checking for $ac_func" >&5
d4089 1
a4089 1
#line 4097 "configure"
d4112 1
a4112 1
if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4137 1
a4137 1
echo "configure:4145: checking for working mmap" >&5
d4145 1
a4145 1
#line 4153 "configure"
d4279 1
a4279 1
if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4308 1
a4308 1
echo "configure:4316: checking for dnet_ntoa in -ldnet" >&5
d4316 1
a4316 1
#line 4324 "configure"
d4327 1
a4327 1
if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4356 1
a4356 1
echo "configure:4364: checking for main in -lXbsd" >&5
d4364 1
a4364 1
#line 4372 "configure"
d4371 1
a4371 1
if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4393 1
a4393 1
echo "configure:4401: checking for cma_open in -lpthreads" >&5
d4401 1
a4401 1
#line 4409 "configure"
d4412 1
a4412 1
if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4441 1
a4441 1
echo "configure:4449: checking for XFree86 in /usr/X386" >&5
d4473 1
a4473 1
echo "configure:4481: checking whether X on GNU/Linux needs -b to link" >&5
d4475 1
a4475 1
#line 4483 "configure"
d4482 1
a4482 1
if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4502 1
a4502 1
#line 4510 "configure"
d4509 1
a4509 1
if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4538 1
a4538 1
echo "configure:4546: checking for Xkb" >&5
d4540 1
a4540 1
#line 4548 "configure"
d4548 1
a4548 1
if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4570 1
a4570 1
echo "configure:4578: checking for $ac_func" >&5
d4575 1
a4575 1
#line 4583 "configure"
d4598 1
a4598 1
if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4626 1
a4626 1
echo "configure:4634: checking X11 version 6" >&5
d4631 1
a4631 1
#line 4639 "configure"
d4641 1
a4641 1
if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4666 1
a4666 1
echo "configure:4674: checking X11 version 5" >&5
d4671 1
a4671 1
#line 4679 "configure"
d4681 1
a4681 1
if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4709 1
a4709 1
echo "configure:4717: checking X11 version 5 with Xaw" >&5
d4714 1
a4714 1
#line 4722 "configure"
d4723 1
a4723 1
if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4751 1
a4751 1
echo "configure:4759: checking X11 toolkit version" >&5
d4756 1
a4756 1
#line 4764 "configure"
d4766 1
a4766 1
if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4796 1
a4796 1
echo "configure:4804: checking for XmuConvertStandardSelection in -lXmu" >&5
d4804 1
a4804 1
#line 4812 "configure"
d4815 1
a4815 1
if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4849 1
a4849 1
echo "configure:4857: checking for XShapeQueryExtension in -lXext" >&5
d4857 1
a4857 1
#line 4865 "configure"
d4868 1
a4868 1
if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4900 1
a4900 1
echo "configure:4908: checking for Motif version 2.1" >&5
d4905 1
a4905 1
#line 4913 "configure"
d4916 1
a4916 1
if { (eval echo configure:4924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4937 1
a4937 1
echo "configure:4945: checking for XpCreateContext in -lXp" >&5
d4945 1
a4945 1
#line 4953 "configure"
d4956 1
a4956 1
if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4991 1
a4991 1
echo "configure:4999: checking for X11/Xaw3d/Scrollbar.h" >&5
d4996 1
a4996 1
#line 5004 "configure"
d5001 1
a5001 1
{ (eval echo configure:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5018 1
a5018 1
echo "configure:5026: checking for XawScrollbarSetThumb in -lXaw3d" >&5
d5026 1
a5026 1
#line 5034 "configure"
d5037 1
a5037 1
if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5105 1
a5105 1
echo "configure:5113: checking for X11/xpm.h" >&5
d5110 1
a5110 1
#line 5118 "configure"
d5115 1
a5115 1
{ (eval echo configure:5123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5132 1
a5132 1
echo "configure:5140: checking for XpmReadFileToPixmap in -lXpm" >&5
d5140 1
a5140 1
#line 5148 "configure"
d5151 1
a5151 1
if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5177 1
a5177 1
echo "configure:5185: checking for XpmReturnAllocPixels preprocessor define" >&5
d5179 1
a5179 1
#line 5187 "configure"
d5220 1
a5220 1
echo "configure:5228: checking for jerror.h" >&5
d5225 1
a5225 1
#line 5233 "configure"
d5230 1
a5230 1
{ (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5247 1
a5247 1
echo "configure:5255: checking for jpeg_destroy_compress in -ljpeg" >&5
d5255 1
a5255 1
#line 5263 "configure"
d5266 1
a5266 1
if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5306 1
a5306 1
echo "configure:5314: checking for png.h" >&5
d5311 1
a5311 1
#line 5319 "configure"
d5316 1
a5316 1
{ (eval echo configure:5324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5333 1
a5333 1
echo "configure:5341: checking for png_get_channels in -lpng" >&5
d5341 1
a5341 1
#line 5349 "configure"
d5352 1
a5352 1
if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5392 1
a5392 1
echo "configure:5400: checking for tiffio.h" >&5
d5397 1
a5397 1
#line 5405 "configure"
d5402 1
a5402 1
{ (eval echo configure:5410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5422 1
a5422 1
echo "configure:5430: checking for TIFFGetVersion in -ltiff" >&5
d5430 1
a5430 1
#line 5438 "configure"
d5441 1
a5441 1
if { (eval echo configure:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5481 1
a5481 1
echo "configure:5489: checking for gif_lib.h" >&5
d5486 1
a5486 1
#line 5494 "configure"
d5491 1
a5491 1
{ (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5508 1
a5508 1
echo "configure:5516: checking for DGifOpen in -lungif" >&5
d5516 1
a5516 1
#line 5524 "configure"
d5527 1
a5527 1
if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5563 1
a5563 1
echo "configure:5571: checking whether netdb declares h_errno" >&5
d5568 1
a5568 1
#line 5576 "configure"
d5575 1
a5575 1
if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5598 1
a5598 1
echo "configure:5606: checking for working alloca.h" >&5
d5603 1
a5603 1
#line 5611 "configure"
d5610 1
a5610 1
if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5631 1
a5631 1
echo "configure:5639: checking for alloca" >&5
d5636 1
a5636 1
#line 5644 "configure"
d5664 1
a5664 1
if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5696 1
a5696 1
echo "configure:5704: checking whether alloca needs Cray hooks" >&5
d5701 1
a5701 1
#line 5709 "configure"
d5726 1
a5726 1
echo "configure:5734: checking for $ac_func" >&5
d5731 1
a5731 1
#line 5739 "configure"
d5754 1
a5754 1
if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5781 1
a5781 1
echo "configure:5789: checking stack direction for C alloca" >&5
d5789 1
a5789 1
#line 5797 "configure"
d5808 1
a5808 1
if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5833 1
a5833 1
echo "configure:5841: checking for sqrt in -lm" >&5
d5841 1
a5841 1
#line 5849 "configure"
d5852 1
a5852 1
if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5882 1
a5882 1
echo "configure:5890: checking for maillock in -lmail" >&5
d5890 1
a5890 1
#line 5898 "configure"
d5901 1
a5901 1
if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5929 1
a5929 1
echo "configure:5937: checking for maillock in -llockfile" >&5
d5937 1
a5937 1
#line 5945 "configure"
d5948 1
a5948 1
if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5982 1
a5982 1
echo "configure:5990: checking for $ac_word" >&5
d6023 1
a6023 1
echo "configure:6031: checking for $ac_func" >&5
d6028 1
a6028 1
#line 6036 "configure"
d6051 1
a6051 1
if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6079 1
a6079 1
echo "configure:6087: checking for $ac_hdr" >&5
d6084 1
a6084 1
#line 6092 "configure"
d6089 1
a6089 1
{ (eval echo configure:6097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6125 1
a6125 1
echo "configure:6133: checking for $ac_func" >&5
d6130 1
a6130 1
#line 6138 "configure"
d6153 1
a6153 1
if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6182 1
a6182 1
echo "configure:6190: checking for $ac_hdr" >&5
d6187 1
a6187 1
#line 6195 "configure"
d6192 1
a6192 1
{ (eval echo configure:6200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6221 1
a6221 1
echo "configure:6229: checking for $ac_func" >&5
d6226 1
a6226 1
#line 6234 "configure"
d6249 1
a6249 1
if { (eval echo configure:6257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6274 1
a6274 1
echo "configure:6282: checking for working mktime" >&5
d6282 1
a6282 1
#line 6290 "configure"
d6431 1
a6431 1
if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6459 5
a6463 56
# Some systems have getloadavg without any extra libraries.
echo $ac_n "checking for getloadavg""... $ac_c" 1>&6
echo "configure:6469: checking for getloadavg" >&5
if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6474 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getloadavg(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char getloadavg();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
choke me
#else
getloadavg();
#endif

; return 0; }
EOF
if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_getloadavg=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_getloadavg=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ac_have_func=yes
else
  echo "$ac_t""no" 1>&6
fi


if test $ac_have_func = no; then
  # Some systems with -lutil have (and need) -lkvm as well, some do not.
  # On Solaris, -lkvm requires nlist from -lelf, so check that first
  # to get the right answer into the cache.
  echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
echo "configure:6522: checking for elf_begin in -lelf" >&5
d6471 1
a6471 1
#line 6530 "configure"
d6482 1
a6482 1
if { (eval echo configure:6541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6502 2
a6503 2
  echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
echo "configure:6562: checking for kvm_open in -lkvm" >&5
d6511 1
a6511 1
#line 6570 "configure"
d6522 1
a6522 1
if { (eval echo configure:6581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6542 3
a6544 3
  # Check for the 4.4BSD definition of getloadavg.
  echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
echo "configure:6603: checking for getloadavg in -lutil" >&5
d6552 1
a6552 1
#line 6611 "configure"
d6563 1
a6563 1
if { (eval echo configure:6622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a6582 1
fi
d6589 1
a6589 1
echo "configure:6649: checking for getloadavg in -lgetloadavg" >&5
d6597 1
a6597 1
#line 6657 "configure"
d6608 1
a6608 1
if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6635 1
a6635 1
echo "configure:6695: checking for $ac_func" >&5
d6640 1
a6640 1
#line 6700 "configure"
d6663 1
a6663 1
if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6701 1
a6701 1
echo "configure:6761: checking for sys/dg_sys_info.h" >&5
d6706 1
a6706 1
#line 6766 "configure"
d6711 1
a6711 1
{ (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6732 1
a6732 1
echo "configure:6792: checking for dg_sys_info in -ldgc" >&5
d6740 1
a6740 1
#line 6800 "configure"
d6751 1
a6751 1
if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6796 1
a6796 1
echo "configure:6856: checking for inq_stats/cpustats.h" >&5
d6801 1
a6801 1
#line 6861 "configure"
d6806 1
a6806 1
{ (eval echo configure:6866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6839 1
a6839 1
echo "configure:6899: checking for sys/cpustats.h" >&5
d6844 1
a6844 1
#line 6904 "configure"
d6849 1
a6849 1
{ (eval echo configure:6909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6880 1
a6880 1
echo "configure:6940: checking for $ac_hdr" >&5
d6885 1
a6885 1
#line 6945 "configure"
d6890 1
a6890 1
{ (eval echo configure:6950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6920 1
a6920 1
echo "configure:6980: checking for nlist.h" >&5
d6925 1
a6925 1
#line 6985 "configure"
d6930 1
a6930 1
{ (eval echo configure:6990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6951 1
a6951 1
echo "configure:7011: checking for n_un in struct nlist" >&5
d6956 1
a6956 1
#line 7016 "configure"
d6963 1
a6963 1
if { (eval echo configure:7023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6990 1
a6990 1
echo "configure:7050: checking whether getloadavg requires setgid" >&5
d6995 1
a6995 1
#line 7055 "configure"
d7026 1
a7026 1
echo "configure:7086: checking group of /dev/kmem" >&5
d7047 1
a7047 1
echo "configure:7107: checking for _LARGEFILE_SOURCE value needed for large files" >&5
d7053 1
a7053 1
#line 7113 "configure"
d7060 1
a7060 1
if { (eval echo configure:7120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7067 1
a7067 1
#line 7127 "configure"
d7076 1
a7076 1
if { (eval echo configure:7136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7100 1
a7100 1
echo "configure:7160: checking for fseeko" >&5
d7106 1
a7106 1
#line 7166 "configure"
d7113 1
a7113 1
if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7135 1
a7135 1
echo "configure:7195: checking for $ac_func" >&5
d7140 1
a7140 1
#line 7200 "configure"
d7163 1
a7163 1
if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7192 1
a7192 1
echo "configure:7252: checking for $ac_func" >&5
d7197 1
a7197 1
#line 7257 "configure"
d7220 1
a7220 1
if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7250 1
a7250 1
echo "configure:7310: checking for tparm in -lncurses" >&5
d7258 1
a7258 1
#line 7318 "configure"
d7269 1
a7269 1
if { (eval echo configure:7329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7302 1
a7302 1
echo "configure:7362: checking for res_send" >&5
d7307 1
a7307 1
#line 7367 "configure"
d7330 1
a7330 1
if { (eval echo configure:7390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7348 1
a7348 1
echo "configure:7408: checking for __res_send" >&5
d7353 1
a7353 1
#line 7413 "configure"
d7376 1
a7376 1
if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7394 1
a7394 1
echo "configure:7454: checking for res_send in -lresolv" >&5
d7402 1
a7402 1
#line 7462 "configure"
d7413 1
a7413 1
if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7432 1
a7432 1
echo "configure:7492: checking for __res_send in -lresolv" >&5
d7440 1
a7440 1
#line 7500 "configure"
d7451 1
a7451 1
if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7487 1
a7487 1
echo "configure:7547: checking for hes_getmailhost" >&5
d7492 1
a7492 1
#line 7552 "configure"
d7515 1
a7515 1
if { (eval echo configure:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7533 1
a7533 1
echo "configure:7593: checking for hes_getmailhost in -lhesiod" >&5
d7541 1
a7541 1
#line 7601 "configure"
d7552 1
a7552 1
if { (eval echo configure:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7583 1
a7583 1
echo "configure:7643: checking for com_err in -lcom_err" >&5
d7591 1
a7591 1
#line 7651 "configure"
d7602 1
a7602 1
if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7630 1
a7630 1
echo "configure:7690: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
d7638 1
a7638 1
#line 7698 "configure"
d7649 1
a7649 1
if { (eval echo configure:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7677 1
a7677 1
echo "configure:7737: checking for mit_des_cbc_encrypt in -lcrypto" >&5
d7685 1
a7685 1
#line 7745 "configure"
d7696 1
a7696 1
if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7724 1
a7724 1
echo "configure:7784: checking for krb5_init_context in -lkrb5" >&5
d7732 1
a7732 1
#line 7792 "configure"
d7743 1
a7743 1
if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7772 1
a7772 1
echo "configure:7832: checking for des_cbc_encrypt in -ldes425" >&5
d7780 1
a7780 1
#line 7840 "configure"
d7791 1
a7791 1
if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7817 1
a7817 1
echo "configure:7877: checking for des_cbc_encrypt in -ldes" >&5
d7825 1
a7825 1
#line 7885 "configure"
d7836 1
a7836 1
if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7866 1
a7866 1
echo "configure:7926: checking for krb_get_cred in -lkrb4" >&5
d7874 1
a7874 1
#line 7934 "configure"
d7885 1
a7885 1
if { (eval echo configure:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7911 1
a7911 1
echo "configure:7971: checking for krb_get_cred in -lkrb" >&5
d7919 1
a7919 1
#line 7979 "configure"
d7930 1
a7930 1
if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7966 1
a7966 1
echo "configure:8026: checking for $ac_hdr" >&5
d7971 1
a7971 1
#line 8031 "configure"
d7976 1
a7976 1
{ (eval echo configure:8036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8007 1
a8007 1
echo "configure:8067: checking for $ac_hdr" >&5
d8012 1
a8012 1
#line 8072 "configure"
d8017 1
a8017 1
{ (eval echo configure:8077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8044 1
a8044 1
echo "configure:8104: checking for $ac_hdr" >&5
d8049 1
a8049 1
#line 8109 "configure"
d8054 1
a8054 1
{ (eval echo configure:8114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8081 1
a8081 1
echo "configure:8141: checking for $ac_hdr" >&5
d8086 1
a8086 1
#line 8146 "configure"
d8091 1
a8091 1
{ (eval echo configure:8151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8127 1
a8127 1
echo "configure:8187: checking for $ac_hdr" >&5
d8132 1
a8132 1
#line 8192 "configure"
d8137 1
a8137 1
{ (eval echo configure:8197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8164 1
a8164 1
echo "configure:8224: checking for $ac_hdr" >&5
d8169 1
a8169 1
#line 8229 "configure"
d8174 1
a8174 1
{ (eval echo configure:8234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8201 1
a8201 1
echo "configure:8261: checking for $ac_hdr" >&5
d8206 1
a8206 1
#line 8266 "configure"
d8211 1
a8211 1
{ (eval echo configure:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8248 1
a8248 1
echo "configure:8308: checking for $ac_hdr" >&5
d8253 1
a8253 1
#line 8313 "configure"
d8258 1
a8258 1
{ (eval echo configure:8318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8289 1
a8289 1
echo "configure:8349: checking for dgettext in -lintl" >&5
d8297 1
a8297 1
#line 8357 "configure"
d8308 1
a8308 1
if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8337 1
a8337 1
echo "configure:8397: checking whether localtime caches TZ" >&5
d8347 1
a8347 1
#line 8407 "configure"
d8379 1
a8379 1
if { (eval echo configure:8439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8409 1
a8409 1
echo "configure:8469: checking for $ac_func" >&5
d8414 1
a8414 1
#line 8474 "configure"
d8437 1
a8437 1
if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8462 1
a8462 1
echo "configure:8522: checking whether gettimeofday can accept two arguments" >&5
d8467 1
a8467 1
#line 8527 "configure"
d8485 1
a8485 1
if { (eval echo configure:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8508 1
a8508 1
echo "configure:8568: checking for struct timezone" >&5
d8513 1
a8513 1
#line 8573 "configure"
d8520 1
a8520 1
if { (eval echo configure:8580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8526 1
a8526 1
#line 8586 "configure"
d8545 1
a8545 1
if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8571 1
a8571 1
echo "configure:8631: checking for socket" >&5
d8576 1
a8576 1
#line 8636 "configure"
d8599 1
a8599 1
if { (eval echo configure:8659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8622 1
a8622 1
echo "configure:8682: checking for netinet/in.h" >&5
d8627 1
a8627 1
#line 8687 "configure"
d8632 1
a8632 1
{ (eval echo configure:8692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8658 1
a8658 1
echo "configure:8718: checking for arpa/inet.h" >&5
d8663 1
a8663 1
#line 8723 "configure"
d8668 1
a8668 1
{ (eval echo configure:8728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8706 1
a8706 1
echo "configure:8766: checking whether system supports dynamic ptys" >&5
d8718 1
a8718 1
echo "configure:8778: checking for pid_t" >&5
d8723 1
a8723 1
#line 8783 "configure"
d8752 1
a8752 1
echo "configure:8812: checking for vfork.h" >&5
d8757 1
a8757 1
#line 8817 "configure"
d8762 1
a8762 1
{ (eval echo configure:8822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d8787 1
a8787 1
echo "configure:8847: checking for working vfork" >&5
d8793 1
a8793 1
echo "configure:8853: checking for vfork" >&5
d8798 1
a8798 1
#line 8858 "configure"
d8821 1
a8821 1
if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8843 1
a8843 1
#line 8903 "configure"
d8938 1
a8938 1
if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8963 1
a8963 1
echo "configure:9023: checking for size_t" >&5
d8968 1
a8968 1
#line 9028 "configure"
d9162 1
a9162 1
#line 9222 "configure"
d9590 1
a9590 1
${MAKE-make} epaths-force
@


