Filewatcher File Search
FTP Search
  
Directory (beta)
  
Content Search (beta)
   
pkg://xemacs-21.4.10.tar.gz:10610789/xemacs-21.4.10/configure  downloads

#! /bin/sh

#### Configuration script for XEmacs.  Largely divergent from FSF.
#### Guess values for system-dependent variables and create Makefiles.
#### Generated automatically using autoconf version 2.13 
#### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
#### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
#### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
#### Copyright (C) 1995, 1996 Ben Wing.
#### Copyright (C) 2000, 2001 Martin Buchholz.
#### Copyright (C) 1998, 1999 J. Kean Johnston.

### 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 2.13 or later.
### Note: this script has not yet been ported to autoconf version 2.5x.

### This file is part of XEmacs.

### XEmacs 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.

### XEmacs 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 XEmacs; see the file COPYING.  If not, write to the Free
### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
### 02111-1307, USA.

### For usage, run `./configure --help'
### For more detailed information on building and installing XEmacs,
### read the file `INSTALL'.
###
### If configure succeeds, it leaves its status in config.status.
### A log of configuration tests can be found in config.log.
### If configure fails after disturbing the status quo,
### 	config.status is removed.

ac_help="$ac_help
  --with-x                use the X Window System"



if test -n "$ZSH_VERSION"; then
    setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
  setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
  setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
  setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
      if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
elif test -n "$BASH_VERSION"; then
    set -o posix
  unset CDPATH
else
  if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
fi

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

subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
ac_max_here_lines=12

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 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.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_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

# 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


ac_ext=c
xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
ac_cpp='$CPP '"$xe_cppflags"
ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
cross_compiling=no

ac_exeext=
ac_objext=o
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='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi


progname="`echo $0 | sed 's:^\./\./:\./:'`"


MAKE_SUBDIR="$MAKE_SUBDIR lib-src" &&  if test "$extra_verbose" = "yes"; then echo "    Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" &&  if test "$extra_verbose" = "yes"; then echo "    Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi

prefix='/usr/local'
exec_prefix='${prefix}'
bindir='${exec_prefix}/bin'
datadir='${prefix}/lib'
statedir='${prefix}/lib'
libdir='${exec_prefix}/lib'
mandir='${prefix}/man/man1'
inststaticdir='${PROGNAME}'
instvardir='${PROGNAME}-${version}'
infodir='${datadir}/${instvardir}/info'
infopath=''
install_pp=''
lispdir='${datadir}/${instvardir}/lisp'
moduledir='${libdir}/${instvardir}/${configuration}/modules'
sitelispdir='${datadir}/${inststaticdir}/site-lisp'
sitemoduledir='${libdir}/${inststaticdir}/site-modules'
pkgdir='${datadir}/${instvardir}/lisp'
package_path=''
etcdir='${datadir}/${instvardir}/etc'
archlibdir='${libdir}/${instvardir}/${configuration}'
docdir='${archlibdir}'
with_netinstall="no"
with_prefix='yes'
with_site_lisp='no'
with_site_modules='yes'
with_menubars=''
with_scrollbars=''
with_widgets=''
with_dialogs=''
with_file_coding=''
cpp='' cppflags='' libs='' ldflags=''
extra_includes=''
dynamic=''
with_x11=''
with_msw=''
rel_alloc='default'
with_system_malloc='default'
with_dlmalloc='default'
with_esd_sound='no'
native_sound_lib=''
with_gtk='no'
with_gnome='no'
use_assertions="yes"
with_toolbars=""
with_tty=""
use_union_type="no"
with_dnet=""
pdump="no"
with_dragndrop="no"
with_ipv6_cname="no"




arguments="$@"

quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
quoted_arguments=
for i in "$@"; do
   case "$i" 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) ;;
   *)
   quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
   quoted_arguments="$quoted_arguments '$quoted_i'" ;;
   esac
done

while test $# != 0; do
  arg="$1"; shift
  case "$arg" in
    --no-create|--no-recursion) ;;
        -* )
            case "$arg" in
        -*=*)
	  opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
	  val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
	  valomitted=no
	;;
                                                                          -*)
                                 	  opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
          val="yes" valomitted=yes
        ;;
      esac

            optname="$opt"
      opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"

            case "${valomitted}-${opt}" in yes-without_* )
	opt=`echo $opt | sed 's/without/with/'`
	valomitted="no" val="no" ;;
      esac

            case "$opt" in

      	with_site_lisp	| \
	with_prefix	| \
	with_site_modules | \
	with_x		| \
	with_x11	| \
	with_gtk	| \
	with_gnome	| \
	with_msw	| \
	with_gcc	| \
	dynamic		| \
	with_ncurses	| \
	with_dnet	| \
	with_socks	| \
	with_dragndrop	| \
	with_cde	| \
	with_offix	| \
	with_gpm	| \
	with_xpm	| \
	with_xface	| \
	with_gif	| \
	with_jpeg	| \
	with_png	| \
	with_tiff	| \
	with_wmcommand	| \
	with_xmu	| \
	with_purify	| \
	with_quantify	| \
	with_toolbars	| \
	with_tty	| \
	with_xfs	| \
	with_i18n3	| \
	with_mule	| \
	with_file_coding| \
	with_canna	| \
	with_wnn	| \
	with_wnn6	| \
	with_workshop	| \
	with_sparcworks | \
	with_tooltalk	| \
	with_ldap	| \
	with_postgresql	| \
	with_pop	| \
	with_kerberos	| \
	with_hesiod	| \
	with_dnet	| \
	with_infodock	| \
	with_netinstall | \
	with_ipv6_cname | \
	external_widget | \
	verbose		| \
	extra_verbose	| \
	usage_tracking	| \
	use_union_type	| \
	pdump		| \
	debug		| \
	use_assertions	| \
	memory_usage_stats | \
	with_clash_detection | \
	with_modules | \
	quick_build )
	  	  case "$val" in
	    y | ye | yes )	val=yes ;;
	    n | no )		val=no	;;
	    * ) (echo "$progname: Usage error:"
echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
	  esac
	  eval "$opt=\"$val\"" ;;


			srcdir		| \
	compiler	| \
	cflags		| \
	cpp		| \
	cppflags	| \
	libs		| \
	ldflags		| \
	cache_file	| \
	native_sound_lib| \
	site_lisp	| \
	x_includes	| \
	x_libraries	| \
	site_includes	| \
	site_libraries	| \
	site_prefixes   | \
	site_runtime_libraries )
	  	  if test "$valomitted" = "yes" ; then
	    	    if test "$#" = 0 ; then
	      (echo "$progname: Usage error:"
echo " " "The \`--$optname' option requires a value."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1;
	    fi
	    val="$1"; shift
	  fi
          eval "$opt=\"$val\""
	;;

		rel_alloc | \
	with_dlmalloc | \
	with_debug_malloc  | use_debug_malloc | \
	with_system_malloc | use_system_malloc )
	  case "$val" in
	    y | ye | yes )	val=yes ;;
	    n | no )		val=no  ;;
	    d | de | def | defa | defau | defaul | default ) val=default ;;
	    * ) (echo "$progname: Usage error:"
echo " " "The \`--$optname' option requires one of these values:
  \`yes', \`no', or \`default'."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
	  esac
	  case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
          eval "$opt=\"$val\""
        ;;

                "with_database" )
	  with_database_berkdb=no
	  with_database_dbm=no
	  with_database_gdbm=no
	  for x in `echo "$val" | sed -e 's/,/ /g'` ; do
	    case "$x" in
	      no ) ;;
	      b | be | ber | berk | berkd | berkdb )       with_database_berkdb=yes ;;
	      d | db | dbm )				   with_database_dbm=yes    ;;
	      g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes   ;;
	      * ) (echo "$progname: Usage error:"
echo " " "The \`--$optname' option value
  must be either \`no' or a comma-separated list
  of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
            esac
	  done
	  if test "$with_database_dbm"  = "yes" -a \
	          "$with_database_gdbm" = "yes"; then
	  (echo "$progname: Usage error:"
echo " " "Only one of \`dbm' and \`gnudbm' may be specified
  with the \`--$optname' option."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1
	  fi
        ;;

        	"with_sound" )
	        	  for x in `echo "$val" | sed -e 's/,/ /g'` ; do
	    case "$x" in
	      	      n | no | non | none ) new_sdefault=no ;;
	      a | al | all | both ) new_sdefault=yes ;;

	      native )       with_native_sound=yes ;;
	      nonative )     with_native_sound=no ;;

	      nas )          with_nas_sound=yes ;;
	      nonas )        with_nas_sound=no ;;

	      esd )	     with_esd_sound=yes ;;
	      noesd )        with_esd_sound=no ;;

	      * ) bogus_sound=yes ;;
	    esac
	    if test "$bogus_sound" -o \
	         \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
		types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
		(echo "$progname: Usage error:"
echo " " "Valid types for the \`--$optname' option are:
  $types.
Option \`all' or \`none' must be first in the list.
The default is to autodetect native and NAS sound support."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1
	    elif test -n "$new_sdefault" ; then
		with_native_sound=$new_sdefault
		with_nas_sound=$new_sdefault
		with_esd_sound=$new_sdefault
		new_sdefault=	# reset this
	    fi
	    sound_notfirst=true
	  done
        ;;

                        "with_athena" )
	  case "$val" in
            xa | xaw )			  val=xaw    ;;
            3 | 3d | xaw3d )              val=3d     ;;
                        ne | nex | next | naxtaw)     val=next   ;;
                        9 | 95 | xaw95 )              val=95     ;;
            xp | xpm | xawxpm )           val=xpm    ;;
	    * ) (echo "$progname: Usage error:"
echo " " "The \`--$optname' option must have one of these values:
  \`xaw', \`3d', \`next', \`95', or \`xpm'."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
	  esac
          eval "$opt=\"$val\""
        ;;

        	"with_xim" )
	  case "$val" in
	    y | ye | yes )		  val=yes   ;;
	    n | no | non | none )	  val=no    ;;
	    x | xl | xli | xlib )	  val=xlib  ;;
	    m | mo | mot | moti | motif ) val=motif ;;
	    * ) (echo "$progname: Usage error:"
echo " " "The \`--$optname' option must have one of these values:
  \`motif', \`xlib', \`yes', or \`no'."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
	  esac
          eval "$opt=\"$val\""
        ;;

        	"mail_locking" )
	  case "$val" in
	    lockf )	val=lockf ;;
	    flock )	val=flock ;;
	    file | dot ) val=file  ;;
	    locking )	val=locking  ;;
	    * ) (echo "$progname: Usage error:"
echo " " "The \`--$optname' option must have one of these values:
  \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
	  esac
          eval "$opt=\"$val\""
        ;;

        	"error_checking" )
	  	  	  
	  for x in `echo "$val" | sed -e 's/,/ /g'` ; do
	    case "$x" in
	      	      n | no | non | none ) new_default=no ;;
	      a | al | all )	    new_default=yes ;;

	      extents )       error_check_extents=yes ;;
	      noextents )     error_check_extents=no ;;

	      typecheck )     error_check_typecheck=yes ;;
	      notypecheck )   error_check_typecheck=no ;;

	      bufpos )	      error_check_bufpos=yes ;;
	      nobufpos )      error_check_bufpos=no ;;

	      gc )	      error_check_gc=yes ;;
	      nogc )          error_check_gc=no ;;

	      malloc )	      error_check_malloc=yes ;;
	      nomalloc )      error_check_malloc=no ;;

	      byte_code )     error_check_byte_code=yes ;;
	      nobyte_code )   error_check_byte_code=no ;;

	      glyphs )     error_check_glyphs=yes ;;
	      noglyphs )   error_check_glyphs=no ;;

	      * ) bogus_error_check=yes ;;
	    esac
	    if test "$bogus_error_check" -o \
	         \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
		if test "$error_check_default" = yes ; then
		  types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
		else
		  types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
		fi
		(echo "$progname: Usage error:"
echo " " "Valid types for the \`--$optname' option are:
  $types."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1
	    elif test -n "$new_default" ; then
		error_check_extents=$new_default
		error_check_typecheck=$new_default
		error_check_bufpos=$new_default
		error_check_gc=$new_default
		error_check_malloc=$new_default
		error_check_byte_code=$new_default
		error_check_glyphs=$new_default
		new_default=	# reset this
	    fi
	    echeck_notfirst=true
	  done
	;;

				
		prefix | exec_prefix | bindir | datadir | statedir | libdir | \
	mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
	archlibdir | docdir | package_path | moduledir )
	   	   if test "$valomitted" = "yes"; then
	     if test "$#" = 0; then
		 (echo "$progname: Usage error:"
echo " " "The \`--$optname' option requires a value."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1;
	     fi
	     val="$1"; shift
	   fi
	   eval "$opt=\"$val\""

                      	   case "$opt" in
	     	     exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
    Defining EXEC_PREFIX_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define EXEC_PREFIX_USER_DEFINED 1
EOF
}
 ;;
             lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
    Defining LISPDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define LISPDIR_USER_DEFINED 1
EOF
}
 ;;
             sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
    Defining SITELISPDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define SITELISPDIR_USER_DEFINED 1
EOF
}
 ;;
             moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
    Defining MODULEDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define MODULEDIR_USER_DEFINED 1
EOF
}
 ;;
             etcdir  )  { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ETCDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define ETCDIR_USER_DEFINED 1
EOF
}
 ;;
             infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
    Defining INFODIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define INFODIR_USER_DEFINED 1
EOF
}
 ;;
             infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
    Defining INFOPATH_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define INFOPATH_USER_DEFINED 1
EOF
}
 ;;
             package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
    Defining PACKAGE_PATH_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define PACKAGE_PATH_USER_DEFINED 1
EOF
}
 ;;
             datadir )
	        { test "$extra_verbose" = "yes" && cat << \EOF
    Defining INFODIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define INFODIR_USER_DEFINED 1
EOF
}

	        { test "$extra_verbose" = "yes" && cat << \EOF
    Defining LISPDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define LISPDIR_USER_DEFINED 1
EOF
}

	        { test "$extra_verbose" = "yes" && cat << \EOF
    Defining MODULEDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define MODULEDIR_USER_DEFINED 1
EOF
}

	        { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ETCDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define ETCDIR_USER_DEFINED 1
EOF
}

	        { test "$extra_verbose" = "yes" && cat << \EOF
    Defining DOCDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define DOCDIR_USER_DEFINED 1
EOF
}

                { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ARCHLIBDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define ARCHLIBDIR_USER_DEFINED 1
EOF
}
 ;;
	     docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
    Defining DOCDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define DOCDIR_USER_DEFINED 1
EOF
}
 ;;
             exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ARCHLIBDIR_USER_DEFINED
EOF
cat >> confdefs.h <<\EOF
#define ARCHLIBDIR_USER_DEFINED 1
EOF
}
 ;;
           esac
	;;

		"no_create" ) ;;

		"usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;

		"with_menubars"   | \
	"with_scrollbars" | \
	"with_dialogs"    | \
	"with_widgets" )
	  case "$val" in
	    l | lu | luc | luci | lucid )		val=lucid  ;;
	    mo | mot | moti | motif )			val=motif  ;;
	    a | at | ath | athe | athen | athena )	val=athena ;;
	    n | no | non | none )			val=no     ;;
	    y | ye | yes )				val=yes    ;;
	                "")						val=yes    ;;
	    g | gt | gtk )				val=gtk    ;;
	    ms | msw )					val=msw    ;;
	    * ) (echo "$progname: Usage error:"
echo " " "The \`--$optname' option must have one of these values:
  \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
	  esac
	  eval "$opt=\"$val\""
	;;

		"use_minimal_tagbits" | \
	"use_indexed_lrecord_implementation" | \
	"run_in_place"	| \
	"const_is_losing" | \
	"with_gnu_make" )
	  echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
	;;

        	* ) (echo "$progname: Usage error:"
echo " " "Unrecognized option: $arg"
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1 ;;

      esac
    ;;

        *-*-*) configuration="$arg" ;;

        *) (echo "$progname: Usage error:"
echo " " "Unrecognized argument: $arg"
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1 ;;

  esac
done


test -n "$cpp"      && CPP="$cpp"
test -n "$cppflags" && CPPFLAGS="$cppflags"
test -n "$libs"     && LIBS="$libs"
test -n "$ldflags"  && LDFLAGS="$ldflags"

eval set x "$quoted_arguments"; shift

test "$extra_verbose" = "yes" && verbose=yes

test -n "$with_x" && with_x11="$with_x"

if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
  test "$with_system_malloc" = "default" && with_system_malloc=yes
fi



if test "$with_cde $with_tooltalk" = "yes no"; then
  (echo "$progname: Usage error:"
echo " " "--with-cde requires --with-tooltalk"
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1
elif test "$with_tooltalk" = "no" ; then with_cde=no
elif test "$with_cde" = "yes"; then with_tooltalk=yes
fi


case "$srcdir" in

    "" )
    for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
      if test -f "$dir/src/lisp.h" -a \
	      -f "$dir/lisp/version.el" ; then
        srcdir="$dir"
        break
      fi
    done
    if test -z "$srcdir" ; then
      (echo "$progname: Usage error:"
echo " " "Neither the current directory nor its parent seem to
  contain the XEmacs sources.  If you do not want to build XEmacs in its
  source tree, you should run \`$progname' in the directory in which
  you wish to build XEmacs, using the \`--srcdir' option to say where the
  sources may be found."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1
    fi
  ;;

    * )
    if test ! -f "$srcdir/src/lisp.h" -o \
	    ! -f "$srcdir/lisp/version.el" ; then
      (echo "$progname: Usage error:"
echo " " "The directory specified with the \`--srcdir' option,
  \`$srcdir', doesn't seem to contain the XEmacs sources.  You should
  either run the \`$progname' script at the top of the XEmacs source
  tree, or use the \`--srcdir' option to specify the XEmacs source directory."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1
    fi
  ;;
esac

if test -z "$configuration"; then
    configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
  if test -z "$configuration"; then
    (echo "$progname: Usage error:"
echo " " "XEmacs has not been ported to this host type.
Try explicitly specifying the CONFIGURATION when rerunning configure."
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1
  fi
fi

echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:853: checking whether ln -s works" >&5

rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  ac_cv_prog_LN_S=ln
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
fi


for dir in lisp etc man info tests; do
  if test ! -d "$dir" ; then
    echo Making symbolic link to "$srcdir/$dir"
    ${LN_S} "$srcdir/$dir" "$dir"
  fi
done


absolute_pwd="`pwd`";
if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
then blddir="$PWD"
else blddir="$absolute_pwd"; if test -d "/net"; then
  if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
  blddir=`echo "$blddir" | \
   sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
fi
fi


case "$srcdir" in
  /* ) ;;
  .  ) srcdir="$blddir" ;;
  *  ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
  if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
  srcdir=`echo "$srcdir" | \
   sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
fi ;;
esac

if test `pwd` != `sh -c cd $srcdir && pwd`  \
   && test -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

. "$srcdir/version.sh" || exit 1;
if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
: "${extra_verbose=$beta}"
version="${emacs_major_version}.${emacs_minor_version}"
{ test "$extra_verbose" = "yes" && cat << EOF
    Defining EMACS_MAJOR_VERSION = $emacs_major_version
EOF
cat >> confdefs.h <<EOF
#define EMACS_MAJOR_VERSION $emacs_major_version
EOF
}

{ test "$extra_verbose" = "yes" && cat << EOF
    Defining EMACS_MINOR_VERSION = $emacs_minor_version
EOF
cat >> confdefs.h <<EOF
#define EMACS_MINOR_VERSION $emacs_minor_version
EOF
}

if test -n "$emacs_beta_version" ; then
  if test "$beta" = "yes"; then
  	version="${version}-b${emacs_beta_version}"
  	{ test "$extra_verbose" = "yes" && cat << EOF
    Defining EMACS_BETA_VERSION = $emacs_beta_version
EOF
cat >> confdefs.h <<EOF
#define EMACS_BETA_VERSION $emacs_beta_version
EOF
}

  else
	version="${version}.${emacs_beta_version}"
	{ test "$extra_verbose" = "yes" && cat << EOF
    Defining EMACS_PATCH_LEVEL = $emacs_beta_version
EOF
cat >> confdefs.h <<EOF
#define EMACS_PATCH_LEVEL $emacs_beta_version
EOF
}

  fi
fi
{ test "$extra_verbose" = "yes" && cat << EOF
    Defining XEMACS_CODENAME = "$xemacs_codename"
EOF
cat >> confdefs.h <<EOF
#define XEMACS_CODENAME "$xemacs_codename"
EOF
}

{ test "$extra_verbose" = "yes" && cat << EOF
    Defining EMACS_VERSION = "$version"
EOF
cat >> confdefs.h <<EOF
#define EMACS_VERSION "$version"
EOF
}


if test "$with_infodock" = "yes"; then
  if test ! -f ../../ID-INSTALL; then
    echo "Cannot build InfoDock without InfoDock sources"
    with_infodock=no
  fi
fi

if test "$with_infodock" = "yes"; then
      { test "$extra_verbose" = "yes" && cat << EOF
    Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
EOF
cat >> confdefs.h <<EOF
#define INFODOCK_MAJOR_VERSION $infodock_major_version
EOF
}

  { test "$extra_verbose" = "yes" && cat << EOF
    Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
EOF
cat >> confdefs.h <<EOF
#define INFODOCK_MINOR_VERSION $infodock_minor_version
EOF
}

  { test "$extra_verbose" = "yes" && cat << EOF
    Defining INFODOCK_BUILD_VERSION = $infodock_build_version
EOF
cat >> confdefs.h <<EOF
#define INFODOCK_BUILD_VERSION $infodock_build_version
EOF
}

  version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
  PROGNAME=infodock
  CPPFLAGS="$CPPFLAGS -DINFODOCK"
else
  PROGNAME=xemacs
fi

{ test "$extra_verbose" = "yes" && cat << EOF
    Defining EMACS_PROGNAME = "$PROGNAME"
EOF
cat >> confdefs.h <<EOF
#define EMACS_PROGNAME "$PROGNAME"
EOF
}


if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
test "${error_check_extents=$beta}"   = yes && { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ERROR_CHECK_EXTENTS
EOF
cat >> confdefs.h <<\EOF
#define ERROR_CHECK_EXTENTS 1
EOF
}

test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ERROR_CHECK_TYPECHECK
EOF
cat >> confdefs.h <<\EOF
#define ERROR_CHECK_TYPECHECK 1
EOF
}

test "${error_check_bufpos=$beta}"    = yes && { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ERROR_CHECK_BUFPOS
EOF
cat >> confdefs.h <<\EOF
#define ERROR_CHECK_BUFPOS 1
EOF
}

test "${error_check_gc=$beta}"        = yes && { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ERROR_CHECK_GC
EOF
cat >> confdefs.h <<\EOF
#define ERROR_CHECK_GC 1
EOF
}

test "${error_check_malloc=$beta}"    = yes && { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ERROR_CHECK_MALLOC
EOF
cat >> confdefs.h <<\EOF
#define ERROR_CHECK_MALLOC 1
EOF
}

test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ERROR_CHECK_BYTE_CODE
EOF
cat >> confdefs.h <<\EOF
#define ERROR_CHECK_BYTE_CODE 1
EOF
}

test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
    Defining ERROR_CHECK_GLYPHS
EOF
cat >> confdefs.h <<\EOF
#define ERROR_CHECK_GLYPHS 1
EOF
}

if test "${debug:=$beta}" = "yes"; then
  use_assertions=yes memory_usage_stats=yes
  extra_objs="$extra_objs debug.o" &&  if test "$extra_verbose" = "yes"; then
   echo "    xemacs will be linked with \"debug.o\""
 fi
  extra_objs="$extra_objs tests.o" &&  if test "$extra_verbose" = "yes"; then
   echo "    xemacs will be linked with \"tests.o\""
 fi
  { test "$extra_verbose" = "yes" && cat << \EOF
    Defining DEBUG_XEMACS
EOF
cat >> confdefs.h <<\EOF
#define DEBUG_XEMACS 1
EOF
}

fi
test "$use_assertions"     = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
    Defining USE_ASSERTIONS
EOF
cat >> confdefs.h <<\EOF
#define USE_ASSERTIONS 1
EOF
}

test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
    Defining MEMORY_USAGE_STATS
EOF
cat >> confdefs.h <<\EOF
#define MEMORY_USAGE_STATS 1
EOF
}



echo $ac_n "checking "host system type"""... $ac_c" 1>&6
echo "configure:1118: checking "host system type"" >&5
internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
echo "$ac_t""$configuration" 1>&6





machine='' opsys=''

case "$canonical" in
  sparc-*-*        ) machine=sparc ;;
  alpha*-*-*       ) machine=alpha ;;
  vax-*-*          ) machine=vax ;;
  mips-dec-*       ) machine=pmax ;;
  mips-sgi-irix6*  ) machine=iris6d ;;
  mips-sgi-*       ) machine=iris4d ;;
  mips*-linux      ) machine=mips ;;
  romp-ibm-*       ) machine=ibmrt ;;
  rs6000-ibm-aix*  ) machine=ibmrs6000 ;;
  powerpc-ibm-aix* ) machine=ibmrs6000 ;;
  powerpc*-*       ) machine=powerpc ;;
  hppa-*-*         ) machine=hp800 ;;
  m88k-dg-*        ) machine=aviion ;;
  m68*-sony-*      ) machine=news ;;
  mips-sony-*      ) machine=news-risc ;;
  clipper-*        ) machine=clipper ;;
  arm*             ) machine=arm ;;
  ns32k-*          ) machine=ns32000 ;;
esac

case "$canonical" in
  *-*-linux*    ) opsys=linux ;;
  *-*-netbsd*   ) opsys=netbsd ;;
  *-*-openbsd*	) opsys=openbsd ;;
  *-*-nextstep* ) opsys=nextstep ;;
  *-*-vms       ) opsys=vms ;;

    *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
  *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
  *-dec-osf3.[2-9]         ) opsys=decosf3-2 ;;
  *-dec-osf3*                ) opsys=decosf3-1 ;;
  *-dec-osf[4-9]*          ) opsys=decosf4-0 ;;

    *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
  *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
  *-*-ultrix* )         opsys=ultrix4-3 ;;

    *-*-aix3.1*  ) opsys=aix3-1	;;
  *-*-aix3.2.5 ) opsys=aix3-2-5	;;
  *-*-aix3*    ) opsys=aix3-2	;;
  *-*-aix4.0*  ) opsys=aix4	;;
  *-*-aix4.1*  ) opsys=aix4-1	;;
  *-*-aix4*    ) opsys=aix4-2	;;

    *-gnu* )			opsys=gnu    ;;
  *-*-bsd4.[01] )		opsys=bsd4-1 ;;
  *-*-bsd4.2 )			opsys=bsd4-2 ;;
  *-*-bsd4.3 )			opsys=bsd4-3 ;;
  *-*-aos4.2 )			opsys=bsd4-2 ;;
  *-*-aos*   )			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.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
  *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
	if test -z "$NON_GNU_CPP" ; then
	  for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
	    if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
	  done
	fi
	opsys=usg5-4-2 ;;
    *-sysv4* | *-sysvr4* )	opsys=usg5-4 ;;
    *-*-mach_bsd4.3* )          opsys=mach-bsd4-3 ;;
esac

case "$canonical" in

    *-*-netbsd* )
    case "$canonical" in
      i[3-9]86-*-netbsd*) machine=intel386 ;;
      hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
                                            machine=hp9000s300 ;;
      pc532-*-netbsd* | ns32k-*-netbsd* )  machine=ns32000 ;;
      pmax-*-netbsd*  | mips-*-netbsd*  )  machine=pmax ;;
    esac
  ;;

    *-*-openbsd* )
    case "${canonical}" in
      i386-*-openbsd*)		machine=intel386 ;;
      m68k-*-openbsd*)		machine=hp9000s300 ;;
      mipsel-*-openbsd*)	machine=pmax ;;
     esac
   ;;

    arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
  arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;

    fx80-alliant-* ) machine=alliant4     opsys=bsd4-2 ;;
  i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;

    m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;

    580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;

    m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;

    we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;

    m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;

    rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
  m68*-bull-sysv3*  ) machine=dpx2      opsys=usg5-3 ;; # dpx2
  m68*-bull-sysv2*  ) machine=sps7      opsys=usg5-2 ;; # sps7

  
    celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;

    *-convex-bsd* | *-convex-convexos* )
    machine=convex opsys=bsd4-3
    NON_GNU_CPP="cc -E -P"
  ;;

    i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;

    *-*-darwin*)
    opsys=darwin
    RANLIB="ranlib -c"     pdump=yes              ;;

    i586-dg-dgux*R4*   | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
  m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
  m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
  m88k-dg-dgux* 			  ) opsys=dgux	   ;;

    m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
  m88k-motorola-sysv4* )
                    machine=delta88k opsys=usg5-4-2
  ;;
  m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;

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

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

    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 ;;

      m88k-harris-cxux* )
        case "`uname -r`" in
       [56].[0-9] ) machine=nh4000 opsys=cxux  ;;
       [7].[0-9]  ) machine=nh4000 opsys=cxux7 ;;
    esac
    NON_GNU_CPP="/lib/cpp"
  ;;
    m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
    powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;

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

    m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;

    *-hp-hpux* )
        case "$canonical" in
      m68*  ) machine=hp9000s300 ;;
      hppa* ) machine=hp800      ;;
    esac

    case "$canonical" in
      *-hp-hpux7*  )  opsys=hpux   ;;
      *-hp-hpux8*  )  opsys=hpux8  ;;
      *-hp-hpux9*  )  opsys=hpux9  ;;
      *-hp-hpux10* )  opsys=hpux10 ;;
      *-hp-hpux11* )  opsys=hpux11 ;;
      *            )  opsys=hpux   ;;
    esac

        case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" &&  if test "$extra_verbose" = "yes"; then
   echo "    xemacs will be linked with \"strcat.o\""
 fi ;; esac

    if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
	ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
    NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"

    case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
  ;;

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

    i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
  i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
  i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
  romp-ibm-aos*    ) opsys=bsd4-3 ;;
  romp-ibm-bsd*    ) opsys=bsd4-3 ;;
  romp-ibm-mach*   ) opsys=mach-bsd4-3 ;;

    m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
  m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;

    i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;

    i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;

    i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;

    i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;

      i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;

    i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;

    i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;

    m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;

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

        mips-mips-usg* ) machine=mips4 ;;
  mips-mips-riscos4 )
    machine=mips4
    NON_GNU_CC="cc -systype bsd43"
    NON_GNU_CPP="cc -systype bsd43 -E"
    case "$canonical" in
      mips-mips-riscos4* ) opsys=bsd4-3  ;;
      mips-mips-riscos5* ) opsys=riscos5 ;;
    esac
  ;;
  mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
  mips-mips-*    ) machine=mips opsys=usg5-2-2 ;;

    m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;

    ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;

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

    m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;

    m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;

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

    pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;

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

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

    mips-nec-sysv*)
    machine=mips-nec
    NON_GNU_CC=/usr/ccs/bin/cc
    NON_GNU_CPP=/usr/ccs/lib/cpp
  ;;

      m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
  m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
    mips-sgi-irix3.*    ) opsys=irix3-3 ;;
  mips-sgi-irix4.*    ) opsys=irix4-0 ;;
  mips-sgi-irix6*     ) opsys=irix6-0 ;;
  mips-sgi-irix5.1*   ) opsys=irix5-1 ;;
  mips-sgi-irix5.2*   ) opsys=irix5-2 ;;
  mips-sgi-irix5.*    ) opsys=irix5-3 ;;
  mips-sgi-irix*      ) opsys=irix5-0 ;;

    *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
  *-sony-news* ) opsys=newsos5 ;;

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

    *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
        case "$canonical" in
      m68*-sunos1* )	         machine=sun1     ;;
      m68*-sunos2* )	         machine=sun2     ;;
      m68* )		         machine=sun3     ;;
      i*86*-sun-sunos[34]* )   machine=sun386   ;;
      i*86-*-* )	         machine=intel386 ;;
      rs6000* )                  machine=rs6000   ;;
    esac

        case "$canonical" in *-sunos5*)
      canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
    esac

                    case "$canonical" in
      *-sunos4* )
	#test -f /usr/lib/cpp     && NON_GNU_CPP=/usr/lib/cpp ;;
	: ;;
      *-solaris2* )
	#test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
	RANLIB=':' ;;
    esac

    case "$canonical" in
      *-solaris*	  )
	opsys=sol2
	os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
	{ test "$extra_verbose" = "yes" && cat << EOF
    Defining OS_RELEASE = $os_release
EOF
cat >> confdefs.h <<EOF
#define OS_RELEASE $os_release
EOF
}
 ;;

            i*86-*-sunos4*      ) opsys=sunos4-0	;;
      *-sunos4.0*	  ) opsys=sunos4-0	;;
      *-sunos4.1.2*	  ) opsys=sunos4-1-2	;;
      *-sunos4.1.3*	  ) opsys=sunos4-1-3	;;
      *-sunos4.1.[4-9]* ) opsys=sunos4-1-4	;;
      *-sunos4* | *-sunos ) opsys=sunos4-1	;;
      *-mach*		  ) opsys=mach-bsd4-3	;;
      *			  ) opsys=bsd4-2	;;
    esac

    case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac

        test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
  ;;

    m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;

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

    mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;

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

    ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
      m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;

    titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;

    m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;

    vax-dec-* )
    case "$canonical" in
      *-sysv[01]* | *-sysvr[01]* ) 	opsys=usg5-0 ;;
      *-sysv2* | *-sysvr2* )		opsys=usg5-2 ;;
      *-mach* )				opsys=mach-bsd4-3 ;;
    esac
  ;;

    ns16k-whitechapel-* ) machine=mg1 ;;

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

    i[3-9]86-*-* )
    machine=intel386
    case "$canonical" in
      *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
      *-isc2.2* )		opsys=isc2-2 ;;
      *-isc4.0* )		opsys=isc4-0 ;;
      *-isc4.* )		opsys=isc4-1
				GCC_TEST_OPTIONS=-posix
				NON_GCC_TEST_OPTIONS=-Xp
				;;
      *-isc* )			opsys=isc3-0 ;;
      *-esix5* )		opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
      *-esix* )			opsys=esix ;;
      *-mach* )			opsys=mach-bsd4-3 ;;
      *-xenix* )		opsys=xenix ;;
      *-sco3.2v4* )		opsys=sco4 NON_GNU_CPP=/lib/cpp  ;;
      *-bsd386* | *-bsdi1* )	opsys=bsd386 ;;
      *-bsdi4* )		opsys=bsdos4 ;;
      *-bsdi3* )		opsys=bsdos3 ;;
      *-bsdi2.1* )		opsys=bsdos2-1 ;;
      *-bsdi2* )		opsys=bsdos2 ;;
      *-sco3.2v5* )		opsys=sco5 ;;
      *-sysv5* )		opsys=sco7 ;;
      *-386bsd* )	        opsys=386bsd ;;
      *-freebsd* )		opsys=freebsd ;;
      *-nextstep* )		opsys=nextstep ;;
      *-pc-cygwin* )		opsys=cygwin32 ;;
      *-pc-mingw* )		opsys=mingw32 ;
				test -z "$with_tty" && with_tty="no";;
          esac
  ;;

    m68k-*-linux* ) machine=m68k opsys=linux ;;

esac

test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`

test -z "$opsys"   && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`

if test -r "${srcdir}/src/m/${machine}.h"; then
  machfile="m/${machine}.h"
  { test "$extra_verbose" = "yes" && cat << EOF
    Defining config_machfile = "$machfile"
EOF
cat >> confdefs.h <<EOF
#define config_machfile "$machfile"
EOF
}

else
  echo "XEmacs has no builtin knowledge of \`$machine' machines."
  echo "Using configure-time autodetection only."
fi

if test -r "${srcdir}/src/s/${opsys}.h"; then
  opsysfile="s/${opsys}.h"
  { test "$extra_verbose" = "yes" && cat << EOF
    Defining config_opsysfile = "$opsysfile"
EOF
cat >> confdefs.h <<EOF
#define config_opsysfile "$opsysfile"
EOF
}

else
  echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
  echo "Using configure-time autodetection only."
fi


if test -z "$dynamic"; then
  case "$opsys" in
    hpux* | sunos4* ) dynamic=no ;;
    *) dynamic=yes ;;
  esac
fi
if test "$dynamic" = "yes"; then
  case "$opsys" in
    hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
    decosf* ) ld_call_shared="-call_shared" ;;
  esac
else   case "$opsys" in
    sol2 )
      echo "Static linking is not supported on Solaris 2."
      echo "Rerun configure without specifying --dynamic=no."
      exit 1 ;;
    linux   ) ld_call_shared="-Bstatic" ;;
    decosf* ) ld_call_shared="-non_shared" ;;
  esac
fi

case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac

stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
{ test "$extra_verbose" = "yes" && cat << EOF
    Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
EOF
cat >> confdefs.h <<EOF
#define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
EOF
}



test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
if test "$with_workshop $with_tooltalk" = "yes no"; then
  (echo "$progname: Usage error:"
echo " " "--with-workshop requires --with-tooltalk"
echo "  Use \`$progname --help' to show usage.") >&2 && exit 1
elif test "$with_tooltalk" = "no" ; then with_workshop=no
elif test "$with_workshop" = "yes"; then with_tooltalk=yes
fi

if test "$with_workshop" = "yes"; then
  { test "$extra_verbose" = "yes" && cat << \EOF
    Defining SUNPRO
EOF
cat >> confdefs.h <<\EOF
#define SUNPRO 1
EOF
}

  extra_objs="$extra_objs sunpro.o" &&  if test "$extra_verbose" = "yes"; then
   echo "    xemacs will be linked with \"sunpro.o\""
 fi
fi

if test "$with_clash_detection" != "no"; then
  { test "$extra_verbose" = "yes" && cat << \EOF
    Defining CLASH_DETECTION
EOF
cat >> confdefs.h <<\EOF
#define CLASH_DETECTION 1
EOF
}

  extra_objs="$extra_objs filelock.o" &&  if test "$extra_verbose" = "yes"; then
   echo "    xemacs will be linked with \"filelock.o\""
 fi
fi

test -n "$compiler" && CC="$compiler"
if test "$with_gcc" = "no"; then   case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
fi

test "${cflags-unset}" != unset && CFLAGS="$cflags"
if test "${CFLAGS-unset}" != unset
  then cflags_specified=yes;
  else cflags_specified=no;
fi

xe_save_CFLAGS="$CFLAGS"

# 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
echo "configure:1637: checking for $ac_word" >&5

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="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
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

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
echo "configure:1664: checking for $ac_word" >&5

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_prog_rejected=no
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; 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
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  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:1712: checking for $ac_word" >&5

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
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2008 IT MARUHN