Vanilla Netrek Server Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[VANILLA-L:718] Patches for VANILLA-L:690
Quoting James Cameron (cameron@stl.dec.com):
> G'day Bob,
>
> Ah, no, I didn't know about that problem, and I've not seen a fix for
> it. All fixes come via the distribution list. Sounds like a good thing
> to do; force a quit rather than just a nuke.
>
> Have a look at how xsg does it; observe the difference between the
> different types of death.
>
> Then post the patch to the list once you've tested it.
>
> By the way, I'm still waiting for your rework of the previous patch
> you sent. Subject ref VANILLA-L:690 or following.
Ok, patches built with the "make patches" command.
See docs/README for details.
--
Bob Tanner <tanner@real-time.com> | Phone : 612.943.8700
http://www.real-time.com | Fax : 612.943.8300
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9
*** /usr/local/tmp/Server/Server/manifest Thu Apr 17 01:57:58 1997
--- ../Server/manifest Sun Nov 2 16:58:12 1997
***************
*** 302,304 ****
--- 302,310 ----
Server/xsg/x11window.c
Server/xsg/xsg_defs.h
Server/pwstats.pl
+ Server/patches
+ Server/tools/geno_timer.in
+ Server/tools/no_geno_timer.in
+ Server/tools/geno_timer.txt
+ Server/tools/no_geno_timer.txt
+ Server/docs/sample_geno_timer_crontab.in
*** /usr/local/tmp/Server/Server/Makefile Wed Apr 16 01:00:34 1997
--- ../Server/Makefile Sun Nov 16 15:47:06 1997
***************
*** 23,28 ****
--- 23,29 ----
cd tools; make depend
cd pledit; make depend
cd keycomp; make depend
+ cd sequencer; make depend
-@if [ -f res-rsa/Makefile ]; then \
cd res-rsa; echo " cd res-rsa; make depend"; make depend; \
fi
***************
*** 64,69 ****
--- 65,71 ----
cd res-rsa; echo " cd res-rsa; $(MAKE)"; $(MAKE); \
fi
cd tools; $(MAKE)
+ cd sequencer; $(MAKE)
rsa_utils: $(DEP_INCS)
cd keycomp; $(MAKE)
***************
*** 125,130 ****
--- 127,133 ----
cd tools; make install
cd keycomp; make install
cd pledit; make install
+ cd sequencer; make install
-@if [ -f xsg/Makefile ]; then \
cd xsg; echo " cd xsg; make install"; make install; \
fi
***************
*** 141,147 ****
patches: name rmdependencies
cd $(PATCHDIR)/Server; make name
@echo Making Server`name`\-`$(PATCHDIR)/Server/name`.diffs
! -rm Server`name`\-`$(PATCHDIR)/Server/name`.diffs
-for f in `cat manifest` ; do \
if [ ! -L ../$${f} ] ; then \
if [ ! -f $(PATCHDIR)/$${f} ] ; then \
--- 144,150 ----
patches: name rmdependencies
cd $(PATCHDIR)/Server; make name
@echo Making Server`name`\-`$(PATCHDIR)/Server/name`.diffs
! -rm -f Server`name`\-`$(PATCHDIR)/Server/name`.diffs
-for f in `cat manifest` ; do \
if [ ! -L ../$${f} ] ; then \
if [ ! -f $(PATCHDIR)/$${f} ] ; then \
***************
*** 149,155 ****
fi ; \
diff -c $(PATCHDIR)/$${f} ../$${f} >> Server`name`\-`$(PATCHDIR)/Server/name`.diffs ;\
fi ; \
! done
# for people on dynix, parallel compiling:
# /bin/make BINDIR="$(BINDIR)"parallel
--- 152,163 ----
fi ; \
diff -c $(PATCHDIR)/$${f} ../$${f} >> Server`name`\-`$(PATCHDIR)/Server/name`.diffs ;\
fi ; \
! done ;\
!
! solaris: name rmdependencies
! cd $(PATCHDIR)/Server; make name
! cd $(SOURCE)
! ./patches
# for people on dynix, parallel compiling:
# /bin/make BINDIR="$(BINDIR)"parallel
*** /usr/local/tmp/Server/Server/patchlevel.h Mon Apr 28 16:14:39 1997
--- ../Server/patchlevel.h Wed Oct 15 19:23:36 1997
***************
*** 13,19 ****
--- 13,21 ----
* (b) increment this number before each patch release.
*/
#define PATCHLEVEL 7
+ #if !defined(NULL)
#define NULL 0
+ #endif
#if 0
/*
*** /usr/local/tmp/Server/Server/version.h Thu Jun 15 23:03:31 1995
--- ../Server/version.h Sun Nov 16 19:13:24 1997
***************
*** 1,3 ****
/* store the version info here */
! static char serv_version[]="Vanilla server version 2.7";
static char mvers[]="2.7";
--- 1,3 ----
/* store the version info here */
! static char serv_version[]="Vanilla server version 2.7 with Continuum changes";
static char mvers[]="2.7";
*** /usr/local/tmp/Server/Server/config.h.in Mon Apr 28 16:12:34 1997
--- ../Server/config.h.in Sun Nov 16 18:37:38 1997
***************
*** 221,226 ****
--- 221,231 ----
/* SENDFLAGS - Print flags set in MOTD */
#undef SENDFLAGS
+ /* SENDPATCHLEVEL - Print release and
+ patch level in MOTD */
+ #define SENDPATCHLEVEL
+
+
/* CHECK_ENV - Check environment variable NTSERV_PATH for location
of system files */
#undef CHECK_ENV
***************
*** 247,256 ****
/* FLAT_BONUS - 3x bonus for killing last
army on a planet */
! #undef FLAT_BONUS
/* BASEPRACTICE - trainingserver support */
! #define BASEPRACTICE
/* NEW_CREDIT - give 1 planet for
destroying, two planets
--- 252,261 ----
/* FLAT_BONUS - 3x bonus for killing last
army on a planet */
! #define FLAT_BONUS
/* BASEPRACTICE - trainingserver support */
! #undef BASEPRACTICE
/* NEW_CREDIT - give 1 planet for
destroying, two planets
***************
*** 279,285 ****
/* CLUE2 - include harder clue
questions */
#undef CLUE2
! #define DOGFIGHT
/* OBSERVERS - allow players to watch */
#define OBSERVERS
--- 284,290 ----
/* CLUE2 - include harder clue
questions */
#undef CLUE2
! #undef DOGFIGHT
/* OBSERVERS - allow players to watch */
#define OBSERVERS
***************
*** 289,349 ****
/* ALLOW_EJECT - define to allow players to eject others*/
#ifdef VOTING
! #undef ALLOW_EJECT
#endif
/* NO_BRUTALITY - disallow fighting between
waiting players in the
dogfighting mode */
#ifdef DOGFIGHT
! #define NO_BRUTALITY
#endif
/* AS_CLOAK - gives cloaked AS's more
randomness in their
apparent positions */
! #undef AS_CLOAK
/* GENO_COUNT - keep track of a player's
winning genocides, see
tools/conq_vert.c for a
description of how to use
this define. */
! #undef GENO_COUNT
#ifdef VOTING
/* AUTO_INL - starts up INL robot
by majority vote */
! #define AUTO_INL
/* AUTO_PRACTICE - starts up PRACTICE robot
by majority vote */
#ifdef BASEPRACTICE
! #define AUTO_PRACTICE
#endif
/* AUTO_HOCKEY - starts up HOCKEY robot
by majority vote */
! #define AUTO_HOCKEY
/* AUTO_DOGFIGHT - starts up DOGFIGHT robot
by majority vote */
/* DOG_RANDOM - somewhat random player
placement in arena */
#ifdef DOGFIGHT
! #define AUTO_DOGFIGHT
/* #define DOG_RANDOM */
#endif
/* TRIPLE_PLANET_MAYHEM - enable voting
for the three planet cool server idea
by felix@coop.com */
! #define TRIPLE_PLANET_MAYHEM
#endif
/* MESSAGES_ALL_TIME - allow messaging during
freezes like twarp, refit, and war decl. */
! #undef MESSAGES_ALL_TIME
/* RANDOM_PRACTICE_ROBOT - Gives the practice
robot (Hoser) the option of comming out in
a random ship type. */
! #undef RANDOM_PRACTICE_ROBOT
/* Rolling statistics - makes the player stats
reflect the immediate playing history of each
--- 294,354 ----
/* ALLOW_EJECT - define to allow players to eject others*/
#ifdef VOTING
! #define ALLOW_EJECT
#endif
/* NO_BRUTALITY - disallow fighting between
waiting players in the
dogfighting mode */
#ifdef DOGFIGHT
! #undef NO_BRUTALITY
#endif
/* AS_CLOAK - gives cloaked AS's more
randomness in their
apparent positions */
! #define AS_CLOAK
/* GENO_COUNT - keep track of a player's
winning genocides, see
tools/conq_vert.c for a
description of how to use
this define. */
! #define GENO_COUNT
#ifdef VOTING
/* AUTO_INL - starts up INL robot
by majority vote */
! #undef AUTO_INL
/* AUTO_PRACTICE - starts up PRACTICE robot
by majority vote */
#ifdef BASEPRACTICE
! #undef AUTO_PRACTICE
#endif
/* AUTO_HOCKEY - starts up HOCKEY robot
by majority vote */
! #undef AUTO_HOCKEY
/* AUTO_DOGFIGHT - starts up DOGFIGHT robot
by majority vote */
/* DOG_RANDOM - somewhat random player
placement in arena */
#ifdef DOGFIGHT
! #undef AUTO_DOGFIGHT
/* #define DOG_RANDOM */
#endif
/* TRIPLE_PLANET_MAYHEM - enable voting
for the three planet cool server idea
by felix@coop.com */
! #undef TRIPLE_PLANET_MAYHEM
#endif
/* MESSAGES_ALL_TIME - allow messaging during
freezes like twarp, refit, and war decl. */
! #define MESSAGES_ALL_TIME
/* RANDOM_PRACTICE_ROBOT - Gives the practice
robot (Hoser) the option of comming out in
a random ship type. */
! #define RANDOM_PRACTICE_ROBOT
/* Rolling statistics - makes the player stats
reflect the immediate playing history of each
*** /usr/local/tmp/Server/Server/configure Sun Apr 23 16:01:37 1995
--- ../Server/configure Sun Nov 2 16:58:10 1997
***************
*** 1,8 ****
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.2
! # 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.
--- 1,8 ----
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.12
! # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
***************
*** 39,47 ****
--- 39,62 ----
verbose=
x_includes=NONE
x_libraries=NONE
+ 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'
# Initialize some other variables.
subdirs=
+ MFLAGS= MAKEFLAGS=
+ # Maximum number of lines to put in a shell here document.
+ ac_max_here_lines=12
ac_prev=
for ac_option
***************
*** 63,71 ****
case "$ac_option" in
! -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 \
--- 78,91 ----
case "$ac_option" in
! -bindir | --bindir | --bindi | --bind | --bin | --bi)
! ac_prev=bindir ;;
! -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
! bindir="$ac_optarg" ;;
!
! -build | --build | --buil | --bui | --bu)
ac_prev=build ;;
! -build=* | --build=* | --buil=* | --bui=* | --bu=*)
build="$ac_optarg" ;;
-cache-file | --cache-file | --cache-fil | --cache-fi \
***************
*** 75,80 ****
--- 95,106 ----
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file="$ac_optarg" ;;
+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+ | --da=*)
+ datadir="$ac_optarg" ;;
+
-disable-* | --disable-*)
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
***************
*** 125,136 ****
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]
--- 151,179 ----
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
! --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
+ --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]
--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
! EOF
! cat << EOF
Host type:
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [guessed]
***************
*** 142,149 ****
--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)
--- 185,194 ----
--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
EOF
+ if test -n "$ac_help"; then
+ echo "--enable and --with options recognized:$ac_help"
+ fi
exit 0 ;;
-host | --host | --hos | --ho)
***************
*** 151,156 ****
--- 196,239 ----
-host=* | --host=* | --hos=* | --ho=*)
host="$ac_optarg" ;;
+ -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" ;;
+
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
***************
*** 163,168 ****
--- 246,260 ----
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
+ -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" ;;
+
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
***************
*** 203,208 ****
--- 295,317 ----
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
+ -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" ;;
+
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
***************
*** 213,218 ****
--- 322,334 ----
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
srcdir="$ac_optarg" ;;
+ -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" ;;
+
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
***************
*** 222,228 ****
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
! echo "configure generated by autoconf version 2.2"
exit 0 ;;
-with-* | --with-*)
--- 338,344 ----
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
! echo "configure generated by autoconf version 2.12"
exit 0 ;;
-with-* | --with-*)
***************
*** 268,274 ****
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
;;
! *)
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" 1>&2
fi
--- 384,390 ----
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
;;
! *)
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" 1>&2
fi
***************
*** 324,334 ****
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
--- 440,453 ----
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
***************
*** 388,395 ****
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} conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
! ac_link='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS $LDFLAGS -o conftest $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.
--- 507,515 ----
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
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
***************
*** 411,416 ****
--- 531,537 ----
#----------------------------------------------------
echo $ac_n "checking for used sources""... $ac_c" 1>&6
+ echo "configure:535: checking for used sources" >&5
if test -f "$srcdir/playerlist.c"; then
code=cow
echo "$ac_t""COW" 1>&6
***************
*** 485,495 ****
# 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}:"
for ac_dir in $PATH; do
# Account for people who put trailing slashes in PATH elements.
case "$ac_dir/" in
--- 606,617 ----
# 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
+ echo "configure:610: checking for a BSD compatible install" >&5
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}:"
for ac_dir in $PATH; do
# Account for people who put trailing slashes in PATH elements.
case "$ac_dir/" in
***************
*** 512,522 ****
;;
esac
done
! IFS="$ac_save_ifs"
! # As a last resort, use the slow shell script.
! test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
fi
! INSTALL="$ac_cv_path_install"
fi
echo "$ac_t""$INSTALL" 1>&6
--- 634,651 ----
;;
esac
done
! IFS="$ac_save_IFS"
!
fi
! 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
fi
echo "$ac_t""$INSTALL" 1>&6
***************
*** 529,534 ****
--- 658,664 ----
# 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:662: 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
***************
*** 544,550 ****
fi
done
IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
fi
fi
CC="$ac_cv_prog_CC"
--- 674,679 ----
***************
*** 554,561 ****
--- 683,780 ----
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:691: 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="${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
+
+ echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
+ echo "configure:739: 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 749 "configure"
+ #include "confdefs.h"
+ main(){return(0);}
+ EOF
+ if { (eval echo configure:753: \"$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:773: 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
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
+ echo "configure:778: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 564,598 ****
yes;
#endif
EOF
! 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
fi
rm -f conftest*
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=
--- 783,824 ----
yes;
#endif
EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:787: \"$ac_try\") 1>&5; (eval $ac_try) 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
! 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:802: checking whether ${CC-cc} accepts -g" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_cc_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_cc_g=yes
else
! ac_cv_prog_cc_g=no
fi
rm -f conftest*
fi
!
! 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"
fi
else
GCC=
***************
*** 600,605 ****
--- 826,832 ----
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
+ echo "configure:830: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
***************
*** 614,644 ****
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
! #line 618 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
! #line 632 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
rm -rf conftest*
CPP=/lib/cpp
fi
--- 841,877 ----
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
! #line 845 "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:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
! #line 862 "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:868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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=/lib/cpp
fi
***************
*** 647,657 ****
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
fi
- CPP="$ac_cv_prog_CPP"
echo "$ac_t""$CPP" 1>&6
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
--- 880,893 ----
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
+ CPP="$ac_cv_prog_CPP"
+ else
+ ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
+ echo "configure:891: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
***************
*** 673,680 ****
echo $ac_n "checking for AIX""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
! #line 678 "configure"
#include "confdefs.h"
#ifdef _AIX
yes
--- 909,917 ----
echo $ac_n "checking for AIX""... $ac_c" 1>&6
+ echo "configure:913: checking for AIX" >&5
cat > conftest.$ac_ext <<EOF
! #line 915 "configure"
#include "confdefs.h"
#ifdef _AIX
yes
***************
*** 697,725 ****
echo $ac_n "checking for inline""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
! #line 707 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
} $ac_kw foo() {
; return 0; }
EOF
! if eval $ac_compile; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
fi
rm -f conftest*
-
done
fi
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
inline | yes) ;;
--- 934,965 ----
echo $ac_n "checking for inline""... $ac_c" 1>&6
+ echo "configure:938: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
! #line 945 "configure"
#include "confdefs.h"
! int main() {
} $ac_kw foo() {
; return 0; }
EOF
! if { (eval echo configure:952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
+ else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
fi
+
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
inline | yes) ;;
***************
*** 745,766 ****
#--------------------------------------------------------------------
echo $ac_n "checking if fd_set requires sys/select.h""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
! #line 750 "configure"
#include "confdefs.h"
#include <sys/types.h>
! int main() { return 0; }
! int t() {
fd_set readMask, writeMask;
; return 0; }
EOF
! if eval $ac_compile; then
rm -rf conftest*
echo "$ac_t""no" 1>&6
else
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
! #line 764 "configure"
#include "confdefs.h"
#include <sys/select.h>
EOF
--- 985,1008 ----
#--------------------------------------------------------------------
echo $ac_n "checking if fd_set requires sys/select.h""... $ac_c" 1>&6
+ echo "configure:989: checking if fd_set requires sys/select.h" >&5
cat > conftest.$ac_ext <<EOF
! #line 991 "configure"
#include "confdefs.h"
#include <sys/types.h>
! int main() {
fd_set readMask, writeMask;
; return 0; }
EOF
! if { (eval echo configure:998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""no" 1>&6
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
! #line 1006 "configure"
#include "confdefs.h"
#include <sys/select.h>
EOF
***************
*** 783,838 ****
fi
rm -f conftest*
-
#--------------------------------------------------------------------
# Check for various typedefs and provide substitutes if
# they don't exist.
#--------------------------------------------------------------------
- # 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 802 "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 823 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
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*
ac_cv_header_stdc=yes
else
echo "$ac_err" >&5
rm -rf conftest*
ac_cv_header_stdc=no
fi
--- 1025,1058 ----
fi
rm -f conftest*
#--------------------------------------------------------------------
# Check for various typedefs and provide substitutes if
# they don't exist.
#--------------------------------------------------------------------
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+ echo "configure:1035: checking for ANSI C header files" >&5
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 1040 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
ac_cv_header_stdc=yes
else
echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_stdc=no
fi
***************
*** 841,847 ****
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
! #line 845 "configure"
#include "confdefs.h"
#include <string.h>
EOF
--- 1061,1067 ----
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
! #line 1065 "configure"
#include "confdefs.h"
#include <string.h>
EOF
***************
*** 859,865 ****
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 863 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
--- 1079,1085 ----
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 1083 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
***************
*** 877,886 ****
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 884 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
--- 1097,1106 ----
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
! :
else
! cat > conftest.$ac_ext <<EOF
! #line 1104 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
***************
*** 891,906 ****
exit (0); }
EOF
! eval $ac_link
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
:
else
ac_cv_header_stdc=no
fi
- fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
--- 1111,1131 ----
exit (0); }
EOF
! if { (eval echo configure:1115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
:
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -fr conftest*
ac_cv_header_stdc=no
fi
rm -fr conftest*
fi
+
+ fi
fi
+
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
***************
*** 911,933 ****
for ac_hdr in unistd.h memory.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 921 "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"
fi
--- 1136,1162 ----
for ac_hdr in unistd.h memory.h
do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:1142: 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 1147 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1152: \"$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
***************
*** 935,941 ****
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
--- 1164,1170 ----
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
***************
*** 947,969 ****
for ac_hdr in sys/timeb.h sys/ptyio.h sys/fcntl.h fcntl.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 957 "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"
fi
--- 1176,1202 ----
for ac_hdr in sys/timeb.h sys/ptyio.h sys/fcntl.h fcntl.h
do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:1182: 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 1187 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1192: \"$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
***************
*** 971,977 ****
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
--- 1204,1210 ----
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
***************
*** 983,1005 ****
for ac_hdr in ctype.h machine/endian.h sys/resource.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 993 "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"
fi
--- 1216,1242 ----
for ac_hdr in ctype.h machine/endian.h sys/resource.h
do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:1222: 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 1227 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1232: \"$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
***************
*** 1007,1013 ****
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
--- 1244,1250 ----
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
***************
*** 1019,1041 ****
for ac_hdr in sys/wait.h netinet/in.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 1029 "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"
fi
--- 1256,1282 ----
for ac_hdr in sys/wait.h netinet/in.h
do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:1262: 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 1267 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1272: \"$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
***************
*** 1043,1049 ****
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
--- 1284,1290 ----
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
***************
*** 1055,1068 ****
echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
! ac_cv_func_wait3=no
else
! cat > conftest.$ac_ext <<EOF
! #line 1066 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
--- 1296,1310 ----
echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
! echo "configure:1300: checking for wait3 that fills in rusage" >&5
! if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
! ac_cv_func_wait3_rusage=no
else
! cat > conftest.$ac_ext <<EOF
! #line 1308 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
***************
*** 1093,1109 ****
}
}
EOF
! eval $ac_link
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
! ac_cv_func_wait3=yes
else
! ac_cv_func_wait3=no
! fi
fi
rm -fr conftest*
fi
! echo "$ac_t""$ac_cv_func_wait3" 1>&6
! if test $ac_cv_func_wait3 = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_WAIT3 1
EOF
--- 1335,1356 ----
}
}
EOF
! if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
! ac_cv_func_wait3_rusage=yes
else
! echo "configure: failed program was:" >&5
! cat conftest.$ac_ext >&5
! rm -fr conftest*
! ac_cv_func_wait3_rusage=no
fi
rm -fr conftest*
fi
!
! fi
!
! echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
! if test $ac_cv_func_wait3_rusage = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_WAIT3 1
EOF
***************
*** 1111,1129 ****
fi
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
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 1119 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! egrep "pid_t" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_pid_t=yes
else
--- 1358,1378 ----
fi
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
+ echo "configure:1362: 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 1367 "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 "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_pid_t=yes
else
***************
*** 1142,1152 ****
fi
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1150 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
--- 1391,1402 ----
fi
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
+ echo "configure:1395: checking for uid_t in sys/types.h" >&5
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 1400 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
***************
*** 1161,1166 ****
--- 1411,1417 ----
rm -f conftest*
fi
+
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
if test $ac_cv_type_uid_t = no; then
cat >> confdefs.h <<\EOF
***************
*** 1174,1192 ****
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
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 1182 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! egrep "size_t" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_size_t=yes
else
--- 1425,1445 ----
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
+ echo "configure:1429: 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 1434 "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 "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_size_t=yes
else
***************
*** 1204,1226 ****
fi
! ac_safe=`echo "vfork.h" | tr './\055' '___'`
echo $ac_n "checking for vfork.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 1214 "configure"
#include "confdefs.h"
#include <vfork.h>
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"
fi
--- 1457,1483 ----
fi
! ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
+ echo "configure:1463: 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 1468 "configure"
#include "confdefs.h"
#include <vfork.h>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1473: \"$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
***************
*** 1237,1250 ****
fi
echo $ac_n "checking for working vfork""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
! ac_cv_func_vfork=no
else
! cat > conftest.$ac_ext <<EOF
! #line 1248 "configure"
#include "confdefs.h"
/* Thanks to Paul Eggert for this test. */
#include <stdio.h>
--- 1494,1555 ----
fi
echo $ac_n "checking for working vfork""... $ac_c" 1>&6
! echo "configure:1498: 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:1504: 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 1509 "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:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
!
! else
! cat > conftest.$ac_ext <<EOF
! #line 1553 "configure"
#include "confdefs.h"
/* Thanks to Paul Eggert for this test. */
#include <stdio.h>
***************
*** 1272,1279 ****
static pid_t child;
if (!child) {
child = vfork ();
! if (child < 0)
perror ("vfork");
if (!child) {
arg = getpid();
write(-1, "", 0);
--- 1577,1586 ----
static pid_t child;
if (!child) {
child = vfork ();
! if (child < 0) {
perror ("vfork");
+ _exit(2);
+ }
if (!child) {
arg = getpid();
write(-1, "", 0);
***************
*** 1337,1353 ****
}
}
EOF
! eval $ac_link
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
! ac_cv_func_vfork=yes
else
! ac_cv_func_vfork=no
! fi
fi
rm -fr conftest*
fi
! echo "$ac_t""$ac_cv_func_vfork" 1>&6
! if test $ac_cv_func_vfork = no; then
cat >> confdefs.h <<\EOF
#define vfork fork
EOF
--- 1644,1665 ----
}
}
EOF
! if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./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
***************
*** 1355,1383 ****
fi
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 1363 "configure"
#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
rm -rf conftest*
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
--- 1667,1697 ----
fi
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
+ echo "configure:1671: checking whether struct tm is in sys/time.h or time.h" >&5
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 1676 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
! int main() {
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
! if { (eval echo configure:1684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm=time.h
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
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
***************
*** 1388,1395 ****
echo $ac_n "checking for itimer in time.h""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
! #line 1393 "configure"
#include "confdefs.h"
#include <time.h>
EOF
--- 1702,1710 ----
echo $ac_n "checking for itimer in time.h""... $ac_c" 1>&6
+ echo "configure:1706: checking for itimer in time.h" >&5
cat > conftest.$ac_ext <<EOF
! #line 1708 "configure"
#include "confdefs.h"
#include <time.h>
EOF
***************
*** 1408,1421 ****
echo $ac_n "checking size of long""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
! cat > conftest.$ac_ext <<EOF
! #line 1419 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
--- 1723,1737 ----
echo $ac_n "checking size of long""... $ac_c" 1>&6
+ echo "configure:1727: checking size of long" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
! cat > conftest.$ac_ext <<EOF
! #line 1735 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
***************
*** 1426,1440 ****
exit(0);
}
EOF
! eval $ac_link
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_sizeof_long=`cat conftestval`
else
ac_cv_sizeof_long=0
fi
- fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG $ac_cv_sizeof_long
--- 1742,1760 ----
exit(0);
}
EOF
! if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
ac_cv_sizeof_long=`cat conftestval`
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -fr conftest*
ac_cv_sizeof_long=0
fi
rm -fr conftest*
fi
+
+ fi
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG $ac_cv_sizeof_long
***************
*** 1443,1450 ****
echo $ac_n "checking for u_int in sys/types.h""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
! #line 1448 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
--- 1763,1771 ----
echo $ac_n "checking for u_int in sys/types.h""... $ac_c" 1>&6
+ echo "configure:1767: checking for u_int in sys/types.h" >&5
cat > conftest.$ac_ext <<EOF
! #line 1769 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
***************
*** 1463,1470 ****
echo $ac_n "checking for PATH_MAX in limits.h""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
! #line 1468 "configure"
#include "confdefs.h"
#include <limits.h>
--- 1784,1792 ----
echo $ac_n "checking for PATH_MAX in limits.h""... $ac_c" 1>&6
+ echo "configure:1788: checking for PATH_MAX in limits.h" >&5
cat > conftest.$ac_ext <<EOF
! #line 1790 "configure"
#include "confdefs.h"
#include <limits.h>
***************
*** 1490,1499 ****
# Check for gmp and mp
#--------------------------------------------------------------------
! echo Searching for mp or gmp
# Check whether --with-gmp-incdir or --without-gmp-incdir was given.
! withval="$with_gmp_incdir"
! if test -n "$withval"; then
MPINC="-I$withval" search=false
else
MPINC=nope
--- 1812,1822 ----
# Check for gmp and mp
#--------------------------------------------------------------------
! echo $ac_n "checking for mp.h or gmp.h""... $ac_c" 1>&6
! echo "configure:1817: checking for mp.h or gmp.h" >&5
# Check whether --with-gmp-incdir or --without-gmp-incdir was given.
! if test "${with_gmp_incdir+set}" = set; then
! withval="$with_gmp_incdir"
MPINC="-I$withval" search=false
else
MPINC=nope
***************
*** 1501,1507 ****
if test "$MPINC" = nope; then
cat > conftest.$ac_ext <<EOF
! #line 1505 "configure"
#include "confdefs.h"
#include <mp.h>
--- 1824,1830 ----
if test "$MPINC" = nope; then
cat > conftest.$ac_ext <<EOF
! #line 1828 "configure"
#include "confdefs.h"
#include <mp.h>
***************
*** 1526,1531 ****
--- 1849,1855 ----
for i in $dirs; do
if test -r $i/gmp.h; then
MPINC="-I$i"
+ echo "$ac_t""yes" 1>&6
fi
done
fi
***************
*** 1533,1566 ****
if test "$code" = cow; then
# mp not supported with new mkkey.
cat > conftest.$ac_ext <<EOF
! #line 1537 "configure"
#include "confdefs.h"
#include <mp.h>
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*
MPINC=nope
else
echo "$ac_err" >&5
rm -rf conftest*
MPINC=nope
fi
rm -f conftest*
else
cat > conftest.$ac_ext <<EOF
! #line 1554 "configure"
#include "confdefs.h"
#include <mp.h>
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*
MPINC=""
else
echo "$ac_err" >&5
rm -rf conftest*
MPINC=nope
fi
--- 1857,1896 ----
if test "$code" = cow; then
# mp not supported with new mkkey.
cat > conftest.$ac_ext <<EOF
! #line 1861 "configure"
#include "confdefs.h"
#include <mp.h>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
MPINC=nope
else
echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
MPINC=nope
fi
rm -f conftest*
else
cat > conftest.$ac_ext <<EOF
! #line 1881 "configure"
#include "confdefs.h"
#include <mp.h>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
MPINC=""
else
echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
MPINC=nope
fi
***************
*** 1574,1582 ****
fi
# Check whether --with-gmp-libdir or --without-gmp-libdir was given.
! withval="$with_gmp_libdir"
! if test -n "$withval"; then
MPLIB="-L$withval -lmp -lgmp" search=false
else
MPLIB=nope
--- 1904,1914 ----
fi
+ echo $ac_n "checking for libgmp.a""... $ac_c" 1>&6
+ echo "configure:1909: checking for libgmp.a" >&5
# Check whether --with-gmp-libdir or --without-gmp-libdir was given.
! if test "${with_gmp_libdir+set}" = set; then
! withval="$with_gmp_libdir"
MPLIB="-L$withval -lmp -lgmp" search=false
else
MPLIB=nope
***************
*** 1586,1618 ****
if test "$search" = true; then
MPLIB=nope
else
! echo $ac_n "checking for -lgmp""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_gmp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lgmp $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1597 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_gmp=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_gmp=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'gmp`\" = yes"; then
echo "$ac_t""yes" 1>&6
MPLIB="-lmp -lgmp"
else
--- 1918,1953 ----
if test "$search" = true; then
MPLIB=nope
else
! echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
! echo "configure:1923: checking for main in -lgmp" >&5
! ac_lib_var=`echo gmp'_'main | 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="-lgmp $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1931 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:1938: \"$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
MPLIB="-lmp -lgmp"
else
***************
*** 1627,1665 ****
for i in $dirs; do
if test -r $i/libgmp.a; then
MPLIB="-L$i -lmp -lgmp"
fi
done
fi
fi
if test "$MPLIB" = nope; then
if test "$code" = cow; then
! echo $ac_n "checking for -lmp""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_mp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lmp $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1644 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_mp=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_mp=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'mp`\" = yes"; then
echo "$ac_t""yes" 1>&6
MPLIB=bsdmp
else
--- 1962,2004 ----
for i in $dirs; do
if test -r $i/libgmp.a; then
MPLIB="-L$i -lmp -lgmp"
+ echo "$ac_t""yes" 1>&6
fi
done
fi
fi
if test "$MPLIB" = nope; then
if test "$code" = cow; then
! echo $ac_n "checking for main in -lmp""... $ac_c" 1>&6
! echo "configure:1974: checking for main in -lmp" >&5
! ac_lib_var=`echo mp'_'main | 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="-lmp $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1982 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:1989: \"$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
MPLIB=bsdmp
else
***************
*** 1668,1700 ****
fi
else
! echo $ac_n "checking for -lmp""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_mp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lmp $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1679 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_mp=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_mp=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'mp`\" = yes"; then
echo "$ac_t""yes" 1>&6
MPLIB="-lmp"
else
--- 2007,2042 ----
fi
else
! echo $ac_n "checking for main in -lmp""... $ac_c" 1>&6
! echo "configure:2012: checking for main in -lmp" >&5
! ac_lib_var=`echo mp'_'main | 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="-lmp $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2020 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2027: \"$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
MPLIB="-lmp"
else
***************
*** 1718,1727 ****
if test "$code" = cow; then
if test -r "$srcdir/mkkey.c"; then
! echo " RSA utilities found."
else
echo
! echo Warning RSA utilities not found, turning RSA off.
NORSA="#"
echo Check your favorite ftp site for a blessed client.
echo In case you can not find one contact brmbugs.
--- 2060,2069 ----
if test "$code" = cow; then
if test -r "$srcdir/mkkey.c"; then
! echo " RSA utilities for cow build found."
else
echo
! echo Warning RSA utilities for cow build not found, turning RSA off.
NORSA="#"
echo Check your favorite ftp site for a blessed client.
echo In case you can not find one contact brmbugs.
***************
*** 1729,1739 ****
fi
fi
if test "$code" = server; then
if test -r "$srcdir/ntserv/rsa_util.c"; then
! echo " RSA utilities found."
else
! echo
! echo Warning RSA utilities not found, turning RSA off.
NORSA="#"
echo
fi
--- 2071,2083 ----
fi
fi
if test "$code" = server; then
+ echo $ac_n "checking ntserv/rsa_util.c""... $ac_c" 1>&6
+ echo "configure:2076: checking ntserv/rsa_util.c" >&5
if test -r "$srcdir/ntserv/rsa_util.c"; then
! echo "$ac_t""RSA utilities found" 1>&6
! RSAINC="-I`pwd`/res-rsa"
else
! echo "$ac_t""Warning RSA utilities for server build not found" 1>&6
NORSA="#"
echo
fi
***************
*** 1741,1746 ****
--- 2085,2092 ----
+
+
#--------------------------------------------------------------------
# Locate the X11 header files and the X11 library archive.
***************
*** 1751,1774 ****
# 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
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
rm -fr conftestdir
if mkdir conftestdir; then
cd conftestdir
--- 2097,2124 ----
# 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
+ echo "configure:2101: checking for X" >&5
# Check whether --with-x or --without-x was given.
! if test "${with_x+set}" = set; then
! withval="$with_x"
:
fi
+ # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
! # The user explicitly disabled X.
! have_x=disabled
else
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
! # Both variables are already set.
! have_x=yes
else
! if eval "test \"`echo '$''{'ac_cv_have_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.
! ac_x_includes=NO ac_x_libraries=NO
rm -fr conftestdir
if mkdir conftestdir; then
cd conftestdir
***************
*** 1778,1792 ****
@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
! # Screen out bogus values from the imake configuration.
case "$ac_im_incroot" in
/usr/include) ;;
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
--- 2128,2145 ----
@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
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
! eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
! 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. They are
! # bogus both because they are the default anyway, and because
! # using them would break gcc on systems where it needs fixed includes.
case "$ac_im_incroot" in
/usr/include) ;;
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
***************
*** 1800,1844 ****
rm -fr conftestdir
fi
! 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 1809 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
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*
! no_x= ac_x_includes=
else
echo "$ac_err" >&5
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 \
--- 2153,2203 ----
rm -fr conftestdir
fi
! 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.
cat > conftest.$ac_ext <<EOF
! #line 2163 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
! # We can compile using X headers with no special include directory.
! ac_x_includes=
else
echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
! # Look for the header file in a standard set of common directories.
! # Check X11 before X11Rn because it is often a symlink to the current release.
! for ac_dir in \
! /usr/X11/include \
/usr/X11R6/include \
/usr/X11R5/include \
/usr/X11R4/include \
\
+ /usr/include/X11 \
/usr/include/X11R6 \
/usr/include/X11R5 \
/usr/include/X11R4 \
\
+ /usr/local/X11/include \
/usr/local/X11R6/include \
/usr/local/X11R5/include \
/usr/local/X11R4/include \
\
+ /usr/local/include/X11 \
/usr/local/include/X11R6 \
/usr/local/include/X11R5 \
/usr/local/include/X11R4 \
\
/usr/X386/include \
/usr/x386/include \
/usr/XFree86/include/X11 \
***************
*** 1855,1910 ****
; \
do
if test -r "$ac_dir/$x_direct_test_include"; then
! no_x= ac_x_includes=$ac_dir
break
fi
done
fi
rm -f conftest*
! # 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 1872 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
${x_direct_test_function}()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
else
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/` \
/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 \
--- 2214,2278 ----
; \
do
if test -r "$ac_dir/$x_direct_test_include"; then
! ac_x_includes=$ac_dir
break
fi
done
fi
rm -f conftest*
+ fi # $ac_x_includes = NO
! if test "$ac_x_libraries" = NO; then
! # Check for the libraries.
!
! 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"
cat > conftest.$ac_ext <<EOF
! #line 2237 "configure"
#include "confdefs.h"
! int main() {
${x_direct_test_function}()
; return 0; }
EOF
! if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
! LIBS="$ac_save_LIBS"
! # We can link X programs with no special library path.
! ac_x_libraries=
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
+ # Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
+ /usr/X11/lib \
/usr/X11R6/lib \
/usr/X11R5/lib \
/usr/X11R4/lib \
\
+ /usr/lib/X11 \
/usr/lib/X11R6 \
/usr/lib/X11R5 \
/usr/lib/X11R4 \
\
+ /usr/local/X11/lib \
/usr/local/X11R6/lib \
/usr/local/X11R5/lib \
/usr/local/X11R4/lib \
\
+ /usr/local/lib/X11 \
/usr/local/lib/X11R6 \
/usr/local/lib/X11R5 \
/usr/local/lib/X11R4 \
\
/usr/X386/lib \
/usr/x386/lib \
/usr/XFree86/lib/X11 \
***************
*** 1915,1920 ****
--- 2283,2289 ----
/usr/athena/lib \
/usr/local/x11r5/lib \
/usr/lpp/Xamples/lib \
+ /lib/usr/lib/X11 \
\
/usr/openwin/lib \
/usr/openwin/share/lib \
***************
*** 1922,1952 ****
do
for ac_extension in a so sl; do
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
! no_x= ac_x_libraries=$ac_dir
break 2
fi
done
done
fi
rm -f conftest*
! fi
! 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
fi
fi
! eval "$ac_cv_path_x"
fi # $with_x != no
! 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
--- 2291,2328 ----
do
for ac_extension in a so sl; do
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
! ac_x_libraries=$ac_dir
break 2
fi
done
done
fi
rm -f conftest*
+ 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"
fi
fi
fi
! eval "$ac_cv_have_x"
fi # $with_x != no
! if test "$have_x" != yes; then
! echo "$ac_t""$have_x" 1>&6
! no_x=yes
else
+ # If each of the values was on the command line, it overrides each guess.
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
! # 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"
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi
***************
*** 1955,1970 ****
echo checking for X11 header files
XINCLUDES=""
cat > conftest.$ac_ext <<EOF
! #line 1959 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
EOF
! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
rm -rf conftest*
XINCLUDES="nope"
fi
--- 2331,2349 ----
echo checking for X11 header files
XINCLUDES=""
cat > conftest.$ac_ext <<EOF
! #line 2335 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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*
XINCLUDES="nope"
fi
***************
*** 1988,2020 ****
fi
echo "checking for X11 library archive"
! echo $ac_n "checking for -lX11""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_X11'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lX11 $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 1999 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_X11=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_X11=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'X11`\" = yes"; then
echo "$ac_t""yes" 1>&6
XLIBSW="-lX11"
else
--- 2367,2402 ----
fi
echo "checking for X11 library archive"
! echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
! echo "configure:2372: checking for main in -lX11" >&5
! ac_lib_var=`echo X11'_'main | 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="-lX11 $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2380 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2387: \"$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
XLIBSW="-lX11"
else
***************
*** 2035,2067 ****
done
fi
if test "$XLIBSW" = nope ; then
! echo $ac_n "checking for -lXwindow""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_Xwindow'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lXwindow $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2046 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_Xwindow=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_Xwindow=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'Xwindow`\" = yes"; then
echo "$ac_t""yes" 1>&6
XLIBSW=-lXwindow
else
--- 2417,2452 ----
done
fi
if test "$XLIBSW" = nope ; then
! echo $ac_n "checking for main in -lXwindow""... $ac_c" 1>&6
! echo "configure:2422: checking for main in -lXwindow" >&5
! ac_lib_var=`echo Xwindow'_'main | 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="-lXwindow $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2430 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2437: \"$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
XLIBSW=-lXwindow
else
***************
*** 2094,2126 ****
# command line generated by Make.
#--------------------------------------------------------------------
! 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 2105 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_Xbsd=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_Xbsd=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'Xbsd`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lXbsd"
else
--- 2479,2514 ----
# command line generated by Make.
#--------------------------------------------------------------------
! echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
! echo "configure:2484: checking for main in -lXbsd" >&5
! ac_lib_var=`echo Xbsd'_'main | 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="-lXbsd $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2492 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2499: \"$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
LIBS="$LIBS -lXbsd"
else
***************
*** 2129,2293 ****
# AC _CHECK_LIB(V3, main, [LIBS="$LIBS -lV3"])
# AC _CHECK_LIB(PW, main, [LIBS="$LIBS -lPW"])
! echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2140 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_socket=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_socket=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lsocket"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for -linet""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_inet'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-linet $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2173 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_inet=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_inet=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'inet`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -linet"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2206 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_nsl=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_nsl=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lnsl"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for -lseq""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_seq'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lseq $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2239 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_seq=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_seq=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'seq`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lseq"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for -lsun""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_sun'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lsun $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2272 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_sun=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_sun=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lsun"
else
--- 2517,2696 ----
# AC _CHECK_LIB(V3, main, [LIBS="$LIBS -lV3"])
# AC _CHECK_LIB(PW, main, [LIBS="$LIBS -lPW"])
! echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
! echo "configure:2522: checking for main in -lsocket" >&5
! ac_lib_var=`echo socket'_'main | 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="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2530 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2537: \"$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
LIBS="$LIBS -lsocket"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for main in -linet""... $ac_c" 1>&6
! echo "configure:2558: checking for main in -linet" >&5
! ac_lib_var=`echo inet'_'main | 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="-linet $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2566 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2573: \"$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
LIBS="$LIBS -linet"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
! echo "configure:2594: checking for main in -lnsl" >&5
! ac_lib_var=`echo nsl'_'main | 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="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2602 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2609: \"$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
LIBS="$LIBS -lnsl"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for main in -lseq""... $ac_c" 1>&6
! echo "configure:2630: checking for main in -lseq" >&5
! ac_lib_var=`echo seq'_'main | 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="-lseq $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2638 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2645: \"$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
LIBS="$LIBS -lseq"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for main in -lsun""... $ac_c" 1>&6
! echo "configure:2666: checking for main in -lsun" >&5
! ac_lib_var=`echo sun'_'main | 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="-lsun $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2674 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2681: \"$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
LIBS="$LIBS -lsun"
else
***************
*** 2296,2394 ****
if test "$code" = server; then
! echo $ac_n "checking for -lipc""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_ipc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lipc $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2307 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_ipc=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_ipc=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'ipc`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lipc"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for -lshm""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_shm'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lshm $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2340 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_shm=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_shm=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'shm`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lshm"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for -lstuff""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_stuff'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lstuff $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2373 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_stuff=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_stuff=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'stuff`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lstuff"
else
--- 2699,2806 ----
if test "$code" = server; then
! echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
! echo "configure:2704: checking for main in -lipc" >&5
! ac_lib_var=`echo ipc'_'main | 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="-lipc $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2712 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2719: \"$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
LIBS="$LIBS -lipc"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for main in -lshm""... $ac_c" 1>&6
! echo "configure:2740: checking for main in -lshm" >&5
! ac_lib_var=`echo shm'_'main | 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="-lshm $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2748 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2755: \"$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
LIBS="$LIBS -lshm"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for main in -lstuff""... $ac_c" 1>&6
! echo "configure:2776: checking for main in -lstuff" >&5
! ac_lib_var=`echo stuff'_'main | 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="-lstuff $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2784 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:2791: \"$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
LIBS="$LIBS -lstuff"
else
***************
*** 2402,2412 ****
#--------------------------------------------------------------------
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 2410 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
--- 2814,2825 ----
#--------------------------------------------------------------------
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
+ echo "configure:2818: checking return type of signal handlers" >&5
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 2823 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
***************
*** 2414,2437 ****
#undef signal
#endif
#ifdef __cplusplus
! extern "C"
! #endif
void (*signal ()) ();
! int main() { return 0; }
! int t() {
int i;
; return 0; }
EOF
! if eval $ac_compile; then
rm -rf conftest*
ac_cv_type_signal=void
else
rm -rf conftest*
ac_cv_type_signal=int
fi
rm -f conftest*
-
fi
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
--- 2827,2853 ----
#undef signal
#endif
#ifdef __cplusplus
! extern "C" void (*signal (int, void (*)(int)))(int);
! #else
void (*signal ()) ();
! #endif
!
! int main() {
int i;
; return 0; }
EOF
! if { (eval echo configure:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_type_signal=int
fi
rm -f conftest*
fi
+
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
***************
*** 2439,2452 ****
echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
! cat > conftest.$ac_ext <<EOF
! #line 2450 "configure"
#include "confdefs.h"
/* Exit 0 (true) if wait returns something other than -1,
i.e. the pid of the child, which means that wait was restarted
--- 2855,2869 ----
echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
+ echo "configure:2859: checking for restartable system calls" >&5
if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
! cat > conftest.$ac_ext <<EOF
! #line 2867 "configure"
#include "confdefs.h"
/* Exit 0 (true) if wait returns something other than -1,
i.e. the pid of the child, which means that wait was restarted
***************
*** 2464,2478 ****
}
EOF
! eval $ac_link
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_sys_restartable_syscalls=yes
else
ac_cv_sys_restartable_syscalls=no
fi
- fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
if test $ac_cv_sys_restartable_syscalls = yes; then
cat >> confdefs.h <<\EOF
--- 2881,2900 ----
}
EOF
! if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
ac_cv_sys_restartable_syscalls=yes
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -fr conftest*
ac_cv_sys_restartable_syscalls=no
fi
rm -fr conftest*
fi
+
+ fi
+
echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
if test $ac_cv_sys_restartable_syscalls = yes; then
cat >> confdefs.h <<\EOF
***************
*** 2489,2496 ****
else
! cat > conftest.$ac_ext <<EOF
! #line 2494 "configure"
#include "confdefs.h"
#include <signal.h>
--- 2911,2918 ----
else
! cat > conftest.$ac_ext <<EOF
! #line 2916 "configure"
#include "confdefs.h"
#include <signal.h>
***************
*** 2510,2537 ****
exit(0);}
EOF
! eval $ac_link
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
cat >> confdefs.h <<\EOF
#define BSD_SIGNALS 1
EOF
else
echo $ac_n "checking for sigset""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_sigset'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2526 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sigset(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
! char sigset();
! 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
--- 2932,2964 ----
exit(0);}
EOF
! if { (eval echo configure:2936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
cat >> confdefs.h <<\EOF
#define BSD_SIGNALS 1
EOF
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -fr conftest*
echo $ac_n "checking for sigset""... $ac_c" 1>&6
+ echo "configure:2947: checking for sigset" >&5
if eval "test \"`echo '$''{'ac_cv_func_sigset'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 2952 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sigset(); 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 sigset();
! int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
***************
*** 2544,2559 ****
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_func_sigset=yes"
else
rm -rf conftest*
eval "ac_cv_func_sigset=no"
fi
rm -f conftest*
-
fi
if eval "test \"`echo '$ac_cv_func_'sigset`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
--- 2971,2988 ----
; return 0; }
EOF
! if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_sigset=yes"
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_sigset=no"
fi
rm -f conftest*
fi
+
if eval "test \"`echo '$ac_cv_func_'sigset`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
***************
*** 2569,2637 ****
fi
fi
- fi
rm -fr conftest*
! echo $ac_n "checking for -lBSD""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_BSD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lBSD $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2583 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_BSD=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_BSD=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'BSD`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lBSD"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for -lbsd""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_bsd'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lbsd $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 2616 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_bsd=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_bsd=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'bsd`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lbsd"
else
--- 2998,3073 ----
fi
fi
rm -fr conftest*
+ fi
!
! echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
! echo "configure:3007: checking for main in -lBSD" >&5
! ac_lib_var=`echo BSD'_'main | 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="-lBSD $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 3015 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:3022: \"$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
LIBS="$LIBS -lBSD"
else
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
! echo "configure:3043: checking for main in -lbsd" >&5
! ac_lib_var=`echo bsd'_'main | 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="-lbsd $LIBS"
cat > conftest.$ac_ext <<EOF
! #line 3051 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:3058: \"$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
LIBS="$LIBS -lbsd"
else
***************
*** 2642,2661 ****
for ac_func in usleep random setstate strftime ftime
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 2650 "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();
! 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
--- 3078,3099 ----
for ac_func in usleep random setstate strftime ftime
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:3082: 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 3087 "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
***************
*** 2668,2686 ****
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
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 '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
--- 3106,3126 ----
; return 0; }
EOF
! if { (eval echo configure:3110: \"$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
***************
*** 2691,2723 ****
done
! 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 2702 "configure"
#include "confdefs.h"
! int main() { return 0; }
! int t() {
main()
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
! eval "ac_cv_lib_m=yes"
else
rm -rf conftest*
! eval "ac_cv_lib_m=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
! if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lm"
else
--- 3131,3166 ----
done
! echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
! echo "configure:3136: checking for main in -lm" >&5
! ac_lib_var=`echo m'_'main | 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 3144 "configure"
#include "confdefs.h"
! int main() {
main()
; return 0; }
EOF
! if { (eval echo configure:3151: \"$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
LIBS="$LIBS -lm"
else
***************
*** 2727,2746 ****
for ac_func in nint
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 2735 "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();
! 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
--- 3170,3191 ----
for ac_func in nint
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:3174: 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 3179 "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
***************
*** 2753,2771 ****
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
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 '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
--- 3198,3218 ----
; return 0; }
EOF
! if { (eval echo configure:3202: \"$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
***************
*** 2776,2782 ****
done
cat > conftest.$ac_ext <<EOF
! #line 2780 "configure"
#include "confdefs.h"
#include <math.h>
EOF
--- 3223,3229 ----
done
cat > conftest.$ac_ext <<EOF
! #line 3227 "configure"
#include "confdefs.h"
#include <math.h>
EOF
***************
*** 2797,2816 ****
for ac_func in setstate strdup rint
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 2805 "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();
! 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
--- 3244,3265 ----
for ac_func in setstate strdup rint
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:3248: 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 3253 "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
***************
*** 2823,2867 ****
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
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
! :
else
echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
-
done
fi
if test "$code" = server; then
for ac_func in random strdup rint
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 2856 "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();
! 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
--- 3272,3324 ----
; return 0; }
EOF
! if { (eval echo configure:3276: \"$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
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
done
+
fi
if test "$code" = server; then
for ac_func in random strdup rint
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:3307: 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 3312 "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
***************
*** 2874,2899 ****
; return 0; }
EOF
! if eval $ac_link; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
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
! :
else
echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
-
done
fi
#--------------------------------------------------------------------
--- 3331,3362 ----
; return 0; }
EOF
! if { (eval echo configure:3335: \"$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
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
done
+
fi
#--------------------------------------------------------------------
***************
*** 2902,2924 ****
if test "$code" = server; then
! echo searching for netstat and uptime
dirs="/bsd /usr/bsd /etc /bin /usr/bin /usr/etc"
NETSTAT="nice -20 /usr/ucb/netstat -f inet"
for i in $dirs; do
if test -x $i/netstat; then
NETSTAT="nice -20 ${i}/netstat -a"
fi
if test -x $i/uptime; then
cat >> confdefs.h <<EOF
#define UPTIME "${i}/uptime"
EOF
fi
done
- cat >> confdefs.h <<EOF
- #define NETSTAT "$NETSTAT"
- EOF
fi
--- 3365,3399 ----
if test "$code" = server; then
! echo $ac_n "checking for netstat""... $ac_c" 1>&6
! echo "configure:3370: checking for netstat" >&5
dirs="/bsd /usr/bsd /etc /bin /usr/bin /usr/etc"
NETSTAT="nice -20 /usr/ucb/netstat -f inet"
for i in $dirs; do
if test -x $i/netstat; then
NETSTAT="nice -20 ${i}/netstat -a"
+ cat >> confdefs.h <<EOF
+ #define NETSTAT "$NETSTAT"
+ EOF
+
+ echo "$ac_t""yes" 1>&6
+ break
fi
+ done
+
+ echo $ac_n "checking for uptime""... $ac_c" 1>&6
+ echo "configure:3386: checking for uptime" >&5
+ dirs="/bsd /usr/bsd /etc /bin /usr/bin /usr/etc"
+ for i in $dirs; do
if test -x $i/uptime; then
cat >> confdefs.h <<EOF
#define UPTIME "${i}/uptime"
EOF
+ echo "$ac_t""yes" 1>&6
+ break
fi
done
fi
***************
*** 2940,2950 ****
# --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
:
else
--- 3415,3439 ----
# --recheck option to rerun configure.
#
EOF
+ # 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.
# 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 |
! case `(ac_space=' '; set) 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
if cmp -s $cache_file confcache; then
:
else
***************
*** 2999,3005 ****
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 ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
! echo "$CONFIG_STATUS generated by autoconf version 2.2"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
--- 3488,3494 ----
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 ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
! echo "$CONFIG_STATUS generated by autoconf version 2.12"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
***************
*** 3010,3020 ****
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
! trap 'rm -fr `echo system.mk config.h | tr : " "` conftest*; exit 1' 1 2 15
! # 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
$ac_vpsub
$extrasub
s%@CFLAGS@%$CFLAGS%g
--- 3499,3511 ----
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
! trap 'rm -fr `echo "system.mk tools/no_geno_timer tools/geno_timer docs/sample_geno_timer_crontab config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
! EOF
! cat >> $CONFIG_STATUS <<EOF
! # 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
$ac_vpsub
$extrasub
s%@CFLAGS@%$CFLAGS%g
***************
*** 3026,3032 ****
--- 3517,3534 ----
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
+ 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
s%@LOGNAME@%$LOGNAME%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
***************
*** 3035,3040 ****
--- 3537,3543 ----
s%@LN_S@%$LN_S%g
s%@MPINC@%$MPINC%g
s%@MPLIB@%$MPLIB%g
+ s%@RSAINC@%$RSAINC%g
s%@NORSA@%$NORSA%g
s%@XINCLUDES@%$XINCLUDES%g
s%@XLIBSW@%$XLIBSW%g
***************
*** 3043,3062 ****
CEOF
EOF
cat >> $CONFIG_STATUS <<EOF
! CONFIG_FILES=\${CONFIG_FILES-"system.mk"}
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%/[^/][^/]*$%%'`
--- 3546,3601 ----
CEOF
EOF
+
+ 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
+
cat >> $CONFIG_STATUS <<EOF
! CONFIG_FILES=\${CONFIG_FILES-"system.mk tools/no_geno_timer tools/geno_timer docs/sample_geno_timer_crontab"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
! # Support "outfile[:infile[: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 a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
***************
*** 3084,3089 ****
--- 3623,3629 ----
[/$]*) 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."
***************
*** 3092,3105 ****
# $configure_input" ;;
*) ac_comsub= ;;
esac
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
! " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
fi; done
! rm -f conftest.subs
# 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.
--- 3632,3647 ----
# $configure_input" ;;
*) ac_comsub= ;;
esac
+
+ ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
! " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
! rm -f conftest.s*
# 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.
***************
*** 3120,3130 ****
ac_eC=' '
ac_eD='%g'
! CONFIG_HEADERS=${CONFIG_HEADERS-"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
--- 3662,3678 ----
ac_eC=' '
ac_eD='%g'
! if test "${CONFIG_HEADERS+set}" != set; then
! EOF
! cat >> $CONFIG_STATUS <<EOF
! CONFIG_HEADERS="config.h"
! EOF
! cat >> $CONFIG_STATUS <<\EOF
! fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
! # Support "outfile[:infile[: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
***************
*** 3132,3150 ****
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
! cp $ac_given_srcdir/$ac_file_in conftest.in
EOF
# 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
EOF
--- 3680,3699 ----
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
! ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
! cat $ac_file_inputs > conftest.in
EOF
# 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
EOF
***************
*** 3160,3167 ****
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
- # Maximum number of lines to put in a single here document.
- ac_max_here_lines=12
rm -f conftest.tail
while :
--- 3709,3714 ----
***************
*** 3192,3206 ****
--- 3739,3764 ----
echo "$ac_file is unchanged"
rm -f conftest.h
else
+ # 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
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
+ EOF
+ cat >> $CONFIG_STATUS <<EOF
+ EOF
+ cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
+
*** /usr/local/tmp/Server/Server/configure.in Sun Apr 23 16:00:33 1995
--- ../Server/configure.in Sun Nov 2 16:58:11 1997
***************
*** 107,113 ****
# Check for gmp and mp
#--------------------------------------------------------------------
! echo Searching for mp or gmp
AC_ARG_WITH(gmp-incdir,[ --with-gmp-incdir GMP Include Dir], MPINC="-I$withval" search=false, MPINC=nope)
if test "$MPINC" = nope; then
AC_EGREP_CPP( GNU_MP,[
--- 107,113 ----
# Check for gmp and mp
#--------------------------------------------------------------------
! AC_MSG_CHECKING(for mp.h or gmp.h)
AC_ARG_WITH(gmp-incdir,[ --with-gmp-incdir GMP Include Dir], MPINC="-I$withval" search=false, MPINC=nope)
if test "$MPINC" = nope; then
AC_EGREP_CPP( GNU_MP,[
***************
*** 122,127 ****
--- 122,128 ----
for i in $dirs; do
if test -r $i/gmp.h; then
MPINC="-I$i"
+ AC_MSG_RESULT(yes)
fi
done
fi
***************
*** 140,145 ****
--- 141,147 ----
fi
AC_SUBST(MPINC)
+ AC_MSG_CHECKING(for libgmp.a)
AC_ARG_WITH(gmp-libdir,[ --with-gmp-libdir GMP Library Dir], MPLIB="-L$withval -lmp -lgmp" search=false, MPLIB=nope)
if test "$MPLIB" = nope; then
if test "$search" = true; then
***************
*** 153,158 ****
--- 155,161 ----
for i in $dirs; do
if test -r $i/libgmp.a; then
MPLIB="-L$i -lmp -lgmp"
+ AC_MSG_RESULT(yes)
fi
done
fi
***************
*** 178,187 ****
if test "$code" = cow; then
if test -r "$srcdir/mkkey.c"; then
! echo " RSA utilities found."
else
echo
! echo Warning RSA utilities not found, turning RSA off.
NORSA="#"
echo Check your favorite ftp site for a blessed client.
echo In case you can not find one contact brmbugs.
--- 181,190 ----
if test "$code" = cow; then
if test -r "$srcdir/mkkey.c"; then
! echo " RSA utilities for cow build found."
else
echo
! echo Warning RSA utilities for cow build not found, turning RSA off.
NORSA="#"
echo Check your favorite ftp site for a blessed client.
echo In case you can not find one contact brmbugs.
***************
*** 189,204 ****
fi
fi
if test "$code" = server; then
if test -r "$srcdir/ntserv/rsa_util.c"; then
! echo " RSA utilities found."
else
! echo
! echo Warning RSA utilities not found, turning RSA off.
NORSA="#"
echo
fi
fi
AC_SUBST(NORSA)
--- 192,210 ----
fi
fi
if test "$code" = server; then
+ AC_MSG_CHECKING(ntserv/rsa_util.c)
if test -r "$srcdir/ntserv/rsa_util.c"; then
! AC_MSG_RESULT(RSA utilities found)
! RSAINC="-I`pwd`/res-rsa"
else
! AC_MSG_RESULT(Warning RSA utilities for server build not found, turning RSA off)
NORSA="#"
echo
fi
fi
+ AC_SUBST(RSAINC)
+
AC_SUBST(NORSA)
***************
*** 337,355 ****
if test "$code" = server; then
! echo searching for netstat and uptime
dirs="/bsd /usr/bsd /etc /bin /usr/bin /usr/etc"
NETSTAT="nice -20 /usr/ucb/netstat -f inet"
for i in $dirs; do
if test -x $i/netstat; then
NETSTAT="nice -20 ${i}/netstat -a"
fi
if test -x $i/uptime; then
AC_DEFINE_UNQUOTED(UPTIME,"${i}/uptime")
fi
done
! AC_DEFINE_UNQUOTED(NETSTAT,"$NETSTAT")
fi
! AC_OUTPUT(system.mk)
--- 343,371 ----
if test "$code" = server; then
! AC_MSG_CHECKING(for netstat)
dirs="/bsd /usr/bsd /etc /bin /usr/bin /usr/etc"
NETSTAT="nice -20 /usr/ucb/netstat -f inet"
for i in $dirs; do
if test -x $i/netstat; then
NETSTAT="nice -20 ${i}/netstat -a"
+ AC_DEFINE_UNQUOTED(NETSTAT,"$NETSTAT")
+ AC_MSG_RESULT(yes)
+ break
fi
+ done
+
+ AC_MSG_CHECKING(for uptime)
+ dirs="/bsd /usr/bsd /etc /bin /usr/bin /usr/etc"
+ for i in $dirs; do
if test -x $i/uptime; then
AC_DEFINE_UNQUOTED(UPTIME,"${i}/uptime")
+ AC_MSG_RESULT(yes)
+ break
fi
done
!
fi
! AC_OUTPUT(system.mk tools/no_geno_timer tools/geno_timer docs/sample_geno_timer_crontab)
*** /usr/local/tmp/Server/Server/system.mk.in Mon Oct 31 17:42:18 1994
--- ../Server/system.mk.in Wed Oct 15 19:23:37 1997
***************
*** 83,89 ****
RSA_FLAGS = @NORSA@ -DRSA
RSA_OBJS = @NORSA@ rsa_key.o rsa_util.o
RSA_SRC = @NORSA@ rsa_key.c rsa_util.c
! RSA_INCS = @MPINC@
RSA_LIBS = @MPLIB@
FLAGS = $(EXTRAFLAGS) $(RSA_FLAGS)
--- 83,89 ----
RSA_FLAGS = @NORSA@ -DRSA
RSA_OBJS = @NORSA@ rsa_key.o rsa_util.o
RSA_SRC = @NORSA@ rsa_key.c rsa_util.c
! RSA_INCS = @MPINC@ # @RSAINC@
RSA_LIBS = @MPLIB@
FLAGS = $(EXTRAFLAGS) $(RSA_FLAGS)
*** /usr/local/tmp/Server/Server/keycomp/data.c Wed Jul 17 05:38:19 1996
--- ../Server/keycomp/data.c Wed Oct 15 18:17:20 1997
***************
*** 1,4 ****
! /* $Log: data.c,v $
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,8 ----
! /* $Log: data.c,v $
! * Revision 1.1 1997/10/15 23:17:20 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/keycomp/data.h Wed Jul 17 05:38:20 1996
--- ../Server/keycomp/data.h Wed Oct 15 18:17:20 1997
***************
*** 1,4 ****
! /* $Log: data.h,v $
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,8 ----
! /* $Log: data.h,v $
! * Revision 1.1 1997/10/15 23:17:20 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/keycomp/defs.h Wed Apr 9 20:59:54 1997
--- ../Server/keycomp/defs.h Tue Oct 28 00:39:55 1997
***************
*** 1,4 ****
! /* $Log: defs.h,v $
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
--- 1,11 ----
! /* $Log: defs.h,v $
! * Revision 1.2 1997/10/28 06:39:55 tanner
! * Changed SURREND to 5 planets.
! *
! * Revision 1.1 1997/10/15 23:17:21 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
***************
*** 87,93 ****
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 4
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
--- 94,100 ----
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 5
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
*** /usr/local/tmp/Server/Server/newstartd/data.c Wed Jul 17 05:38:19 1996
--- ../Server/newstartd/data.c Wed Oct 15 18:17:29 1997
***************
*** 1,4 ****
! /* $Log: data.c,v $
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,8 ----
! /* $Log: data.c,v $
! * Revision 1.1 1997/10/15 23:17:29 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/newstartd/defs.h Wed Apr 9 20:59:54 1997
--- ../Server/newstartd/defs.h Tue Oct 28 00:39:59 1997
***************
*** 1,4 ****
! /* $Log: defs.h,v $
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
--- 1,11 ----
! /* $Log: defs.h,v $
! * Revision 1.2 1997/10/28 06:39:59 tanner
! * Changed SURREND to 5 planets.
! *
! * Revision 1.1 1997/10/15 23:17:30 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
***************
*** 87,93 ****
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 4
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
--- 94,100 ----
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 5
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
*** /usr/local/tmp/Server/Server/ntserv/data.c Wed Jul 17 05:38:19 1996
--- ../Server/ntserv/data.c Wed Oct 15 18:17:33 1997
***************
*** 1,4 ****
! /* $Log: data.c,v $
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,8 ----
! /* $Log: data.c,v $
! * Revision 1.2 1997/10/15 23:17:33 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/ntserv/data.h Wed Jul 17 05:38:20 1996
--- ../Server/ntserv/data.h Wed Oct 15 18:17:35 1997
***************
*** 1,4 ****
! /* $Log: data.h,v $
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,8 ----
! /* $Log: data.h,v $
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/ntserv/defs.h Wed Apr 9 20:59:54 1997
--- ../Server/ntserv/defs.h Tue Oct 28 00:40:01 1997
***************
*** 1,4 ****
! /* $Log: defs.h,v $
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
--- 1,11 ----
! /* $Log: defs.h,v $
! * Revision 1.3 1997/10/28 06:40:01 tanner
! * Changed SURREND to 5 planets.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
***************
*** 87,93 ****
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 4
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
--- 94,100 ----
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 5
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
*** /usr/local/tmp/Server/Server/ntserv/gencmds.c Thu Apr 10 20:20:46 1997
--- ../Server/ntserv/gencmds.c Tue Oct 28 00:40:02 1997
***************
*** 292,298 ****
/* The Votes Passes */
if ( (vcount >= votes[num].minpass)
&& ( ((pcount < (2*vcount)) && (votes[num].tag & C_VC_ALL))
! || ((votes[num].tag & C_VC_TEAM) && (pcount-1 <= vcount)) ))
{
pmessage(sendto, mflag, addr_mess(sendto,mflag),
"The motion %s passes", comm);
--- 292,298 ----
/* The Votes Passes */
if ( (vcount >= votes[num].minpass)
&& ( ((pcount < (2*vcount)) && (votes[num].tag & C_VC_ALL))
! || ((votes[num].tag & C_VC_TEAM) && (pcount/2 + 1 <= vcount)) ))
{
pmessage(sendto, mflag, addr_mess(sendto,mflag),
"The motion %s passes", comm);
***************
*** 310,318 ****
}
else
{
if (votes[num].tag & C_VC_TEAM)
i = pcount - vcount - 1;
! else
i = pcount/2 + 1 - vcount;
if (i < (votes[num].minpass - vcount))
--- 310,319 ----
}
else
{
+ /*
if (votes[num].tag & C_VC_TEAM)
i = pcount - vcount - 1;
! else */
i = pcount/2 + 1 - vcount;
if (i < (votes[num].minpass - vcount))
*** /usr/local/tmp/Server/Server/ntserv/input.c Wed Jul 17 05:38:22 1996
--- ../Server/ntserv/input.c Wed Oct 15 18:17:36 1997
***************
*** 1,4 ****
! /* $Log: input.c,v $
* Revision 1.4 92/03/19 21:34:40 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,8 ----
! /* $Log: input.c,v $
! * Revision 1.2 1997/10/15 23:17:36 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.4 92/03/19 21:34:40 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/ntserv/main.c Wed Jul 17 05:38:22 1996
--- ../Server/ntserv/main.c Sun Nov 2 13:55:36 1997
***************
*** 418,426 ****
struct tm *tmstruct;
int hour;
sprintf(buf, "Welcome to %s, patchlevel %d", serv_version, PATCHLEVEL);
- #ifdef SENDFLAGS
sendMotdLine(buf);
sendMotdLine("Compiler option flags used for this server:");
sendMotdLine(cflags);
sendMotdLine(" ");
--- 418,428 ----
struct tm *tmstruct;
int hour;
+ #ifdef SENDPATCHLEVEL
sprintf(buf, "Welcome to %s, patchlevel %d", serv_version, PATCHLEVEL);
sendMotdLine(buf);
+ #endif
+ #ifdef SENDFLAGS
sendMotdLine("Compiler option flags used for this server:");
sendMotdLine(cflags);
sendMotdLine(" ");
*** /usr/local/tmp/Server/Server/ntserv/packets.h Fri Feb 17 22:10:28 1995
--- ../Server/ntserv/packets.h Wed Oct 15 18:17:37 1997
***************
*** 1,4 ****
! /* $Log: packets.h,v $
* Revision 1.5 92/04/08 10:08:43 terence
* Added UDP v1.0 mods.
*
--- 1,8 ----
! /* $Log: packets.h,v $
! * Revision 1.2 1997/10/15 23:17:37 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.5 92/04/08 10:08:43 terence
* Added UDP v1.0 mods.
*
*** /usr/local/tmp/Server/Server/ntserv/planets.h Thu Jan 26 16:10:03 1995
--- ../Server/ntserv/planets.h Sun Nov 2 13:55:37 1997
***************
*** 16,22 ****
}
*/
! #define START_ARMIES 30
struct planet pdata[MAXPLANETS] = {
{ 0, FED|PLHOME|PLCORE|PLREPAIR|PLFUEL, FED, 20000, 80000, "Earth", 5, START_ARMIES, FED },
--- 16,22 ----
}
*/
! #define START_ARMIES 17
struct planet pdata[MAXPLANETS] = {
{ 0, FED|PLHOME|PLCORE|PLREPAIR|PLFUEL, FED, 20000, 80000, "Earth", 5, START_ARMIES, FED },
*** /usr/local/tmp/Server/Server/ntserv/rsa_util.c Sun Nov 30 16:34:30 1997
--- ../Server/ntserv/rsa_util.c Sun Nov 2 17:19:36 1997
***************
*** 0 ****
--- 1,90 ----
+ #ifndef lint
+ #include <mp.h>
+ #include "defs.h"
+
+ #ifndef u_char
+ #define u_char unsigned char
+ #endif
+
+ /****************************************************************************
+ * Note: libraries are searched in order. This file uses the pow() function
+ * of the libmp library, not the usual one. The rest of netrek does not use
+ * the usual pow() function. Therefore you must specifiy the -lmp library
+ * before the -lm math libary on the compile line (i.e. in the Makefile as
+ * the LIBS definition).
+ */
+
+ /****************************************************************************
+ * these function convert between the unsigned char form (as used by the
+ * netrek RSA scheme) and the MP form.
+ */
+ raw_to_num(out, in, digits)
+ MINT *out;
+ u_char *in;
+ int digits;
+ {
+ int i;
+ MINT *temp, *twofiftysix, *thisval;
+
+ temp = itom(0);
+ twofiftysix = itom(256);
+
+ for (i = 0; i < digits; i++)
+ {
+ thisval = itom(in[digits - i - 1]);
+ mult(temp, twofiftysix, temp);
+ madd(temp, thisval, temp);
+ mfree(thisval);
+ }
+ madd(temp, out, out); /* There is no copy function! */
+ mfree(temp);
+ mfree(twofiftysix);
+ }
+
+ num_to_raw(out, in, digits) /* Destroys in */
+ u_char *out;
+ MINT *in;
+ int digits;
+ {
+ int i;
+ short temp;
+ MINT *zero;
+
+ zero = itom(0);
+
+ for (i = 0; i < digits; i++)
+ {
+ if (!mcmp(in, zero)) /* gnu can't handle 0/256.. bug */
+ temp = 0;
+ else
+ sdiv(in, 256, in, &temp);
+ out[i] = temp & 0xFF;
+ }
+ mfree (zero);
+ }
+
+ /****************************************************************************
+ * The final product. Take in a message, a key, and the global N to mod by,
+ * and do the actual RSA calculation. Return the new stuff.
+ */
+
+ rsa_encode(out, message, key, global, digits)
+ char *out, *message, *key, *global;
+ int digits;
+ {
+ MINT *result, *n_message, *n_key, *n_global;
+ result = itom(0);
+ n_message = itom(0);
+ n_key = itom(0);
+ n_global = itom(0);
+
+
+ raw_to_num(n_global, global, digits);
+ raw_to_num(n_message, message, digits);
+ raw_to_num(n_key, key, digits);
+
+ pow(n_message, n_key, n_global, result);
+
+ num_to_raw(out, result, digits);
+ }
+ #endif /* lint */
*** /usr/local/tmp/Server/Server/ntserv/socket.c Wed Apr 9 20:50:25 1997
--- ../Server/ntserv/socket.c Wed Oct 15 19:23:46 1997
***************
*** 1,4 ****
! /* $Log: socket.c,v $
* Revision 1.8 92/12/10 18:10:20 Nick Trown
*
* Added Clue player mods.
--- 1,11 ----
! /* $Log: socket.c,v $
! * Revision 1.3 1997/10/16 00:23:46 tanner
! * Minor documentation changes and a couple Solaris typecasts.
! *
! * Revision 1.2 1997/10/15 23:17:39 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.8 92/12/10 18:10:20 Nick Trown
*
* Added Clue player mods.
***************
*** 493,499 ****
}
remoteaddr=addr.sin_addr.s_addr;
! if (connect(ns, &addr, sizeof(addr)) < 0) {
ERROR(3,("I cannot connect through port %d\n", port));
close(ns);
return(0);
--- 500,506 ----
}
remoteaddr=addr.sin_addr.s_addr;
! if (connect(ns, (struct sockadd*)&addr, sizeof(addr)) < 0) {
ERROR(3,("I cannot connect through port %d\n", port));
close(ns);
return(0);
*** /usr/local/tmp/Server/Server/ntserv/sysdefaults.c Tue Dec 26 03:19:57 1995
--- ../Server/ntserv/sysdefaults.c Wed Oct 15 18:17:40 1997
***************
*** 1,4 ****
! /* $Log: sysdefaults.c,v $
* Revision 1.3 92/03/19 21:34:34 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,8 ----
! /* $Log: sysdefaults.c,v $
! * Revision 1.2 1997/10/15 23:17:40 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:34 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/ntserv/transwarp.c Mon Jun 19 18:56:35 1995
--- ../Server/ntserv/transwarp.c Wed Oct 15 18:17:42 1997
***************
*** 1,4 ****
! /* $Log$ */
/*
* transwarp.c by isae@IASTATE.EDU
*/
--- 1,8 ----
! /* $Log: transwarp.c,v $
! * Revision 1.2 1997/10/15 23:17:42 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! * */
/*
* transwarp.c by isae@IASTATE.EDU
*/
*** /usr/local/tmp/Server/Server/pledit/data.c Wed Jul 17 05:38:19 1996
--- ../Server/pledit/data.c Wed Oct 15 18:17:46 1997
***************
*** 1,4 ****
! /* $Log: data.c,v $
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.c,v $
! * Revision 1.1 1997/10/15 23:17:46 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:33 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/pledit/data.h Wed Jul 17 05:38:20 1996
--- ../Server/pledit/data.h Wed Oct 15 18:17:47 1997
***************
*** 1,4 ****
! /* $Log: data.h,v $
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.h,v $
! * Revision 1.1 1997/10/15 23:17:47 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/pledit/defs.h Wed Apr 9 20:59:54 1997
--- ../Server/pledit/defs.h Tue Oct 28 00:40:05 1997
***************
*** 1,4 ****
! /* $Log: defs.h,v $
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
--- 1,15 ----
! /* $Log: defs.h,v $
! * Revision 1.2 1997/10/28 06:40:05 tanner
! * Changed SURREND to 5 planets.
! *
! * Revision 1.1 1997/10/15 23:17:47 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
***************
*** 87,93 ****
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 4
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
--- 98,104 ----
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 5
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
*** /usr/local/tmp/Server/Server/robots/data.c Wed Jul 17 05:38:19 1996
--- ../Server/robots/data.c Wed Oct 15 18:17:54 1997
***************
*** 1,4 ****
! /* $Log: data.c,v $
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.c,v $
! * Revision 1.1 1997/10/15 23:17:54 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:33 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/robots/data.h Wed Jul 17 05:38:20 1996
--- ../Server/robots/data.h Wed Oct 15 18:17:55 1997
***************
*** 1,4 ****
! /* $Log: data.h,v $
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.h,v $
! * Revision 1.1 1997/10/15 23:17:55 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/robots/defs.h Wed Apr 9 20:59:54 1997
--- ../Server/robots/defs.h Tue Oct 28 00:40:47 1997
***************
*** 1,4 ****
! /* $Log: defs.h,v $
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
--- 1,15 ----
! /* $Log: defs.h,v $
! * Revision 1.2 1997/10/28 06:40:47 tanner
! * Change SURREND to 5
! *
! * Revision 1.1 1997/10/15 23:17:55 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
***************
*** 87,93 ****
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 4
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
--- 98,104 ----
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 5
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
*** /usr/local/tmp/Server/Server/robots/packets.h Fri Feb 17 22:10:28 1995
--- ../Server/robots/packets.h Wed Oct 15 18:18:03 1997
***************
*** 1,4 ****
! /* $Log: packets.h,v $
* Revision 1.5 92/04/08 10:08:43 terence
* Added UDP v1.0 mods.
*
--- 1,12 ----
! /* $Log: packets.h,v $
! * Revision 1.1 1997/10/15 23:18:03 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:37 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.5 92/04/08 10:08:43 terence
* Added UDP v1.0 mods.
*
*** /usr/local/tmp/Server/Server/robots/planets.h Thu Jan 26 16:10:03 1995
--- ../Server/robots/planets.h Sun Nov 2 13:55:40 1997
***************
*** 16,22 ****
}
*/
! #define START_ARMIES 30
struct planet pdata[MAXPLANETS] = {
{ 0, FED|PLHOME|PLCORE|PLREPAIR|PLFUEL, FED, 20000, 80000, "Earth", 5, START_ARMIES, FED },
--- 16,22 ----
}
*/
! #define START_ARMIES 17
struct planet pdata[MAXPLANETS] = {
{ 0, FED|PLHOME|PLCORE|PLREPAIR|PLFUEL, FED, 20000, 80000, "Earth", 5, START_ARMIES, FED },
*** /usr/local/tmp/Server/Server/robots/sysdefaults.c Tue Dec 26 03:19:57 1995
--- ../Server/robots/sysdefaults.c Wed Oct 15 18:18:12 1997
***************
*** 1,4 ****
! /* $Log: sysdefaults.c,v $
* Revision 1.3 92/03/19 21:34:34 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: sysdefaults.c,v $
! * Revision 1.1 1997/10/15 23:18:12 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:40 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:34 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/sequencer/30 Sat Sep 2 12:59:27 1995
--- ../Server/sequencer/30 Tue Oct 28 00:42:28 1997
***************
*** 21,29 ****
seconds 1
say Game will start in 1 second. ######################################
seconds 1
- balance
reset
- shell tools/planets
seconds 10
say ====================================================================
say === ===
--- 21,27 ----
***************
*** 64,72 ****
say ==== ====
say ====================================================================
say ====================================================================
- shell tools/planets
seconds 10
say Thanks for playing, folks!
continue
! # eject
exit
--- 62,69 ----
say ==== ====
say ====================================================================
say ====================================================================
seconds 10
say Thanks for playing, folks!
continue
! eject
exit
*** /usr/local/tmp/Server/Server/sequencer/Makefile Sat Sep 2 08:58:50 1995
--- ../Server/sequencer/Makefile Sun Nov 16 19:14:35 1997
***************
*** 8,14 ****
# this is for revised ntserv/struct.h
! #OPT = -g
CFLAGS = $(OPT) $(EXTRAINCS) $(DIRS) $(FLAGS)
--- 8,14 ----
# this is for revised ntserv/struct.h
! OPT = -g
CFLAGS = $(OPT) $(EXTRAINCS) $(DIRS) $(FLAGS)
***************
*** 27,33 ****
smessage.o \
strdup.o \
roboshar.o \
! slotmaint.o
# Sequencer Objects
--- 27,33 ----
smessage.o \
strdup.o \
roboshar.o \
! slotmaint.o
# Sequencer Objects
***************
*** 55,61 ****
install: $(EXECS)
! $(INSTALL) $(INSTALLOPTS) sequencer $(LIBDIR)/sequencer
lint: $(SRCS)
lint $(LINTFLAGS) -u $?
--- 55,61 ----
install: $(EXECS)
! $(INSTALL) $(INSTALLOPTS) sequencer $(LIBDIR)/tools/sequencer
lint: $(SRCS)
lint $(LINTFLAGS) -u $?
***************
*** 68,70 ****
--- 68,108 ----
makedepend $(CFLAGS) -f Makefile $(SRCS)
#####
# DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ data.o: ../ntserv/copyright.h ../ntserv/defs.h ../config.h
+ data.o: /usr/include/signal.h /usr/include/sys/feature_tests.h
+ data.o: /usr/include/sys/signal.h /usr/include/sys/unistd.h
+ data.o: /usr/include/string.h /usr/include/sys/types.h
+ data.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h
+ data.o: ../ntserv/struct.h copyright.h ../ntserv/data.h
+ openmem.o: copyright.h /usr/include/stdio.h /usr/include/sys/feature_tests.h
+ openmem.o: /usr/include/sys/va_list.h /usr/include/sys/types.h
+ openmem.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h
+ openmem.o: /usr/include/sys/ipc.h /usr/include/sys/shm.h
+ openmem.o: /usr/include/sys/unistd.h /usr/include/errno.h
+ openmem.o: /usr/include/sys/errno.h /usr/include/pwd.h /usr/include/ctype.h
+ openmem.o: /usr/include/time.h defs.h ../ntserv/copyright.h ../config.h
+ openmem.o: /usr/include/signal.h /usr/include/sys/signal.h
+ openmem.o: /usr/include/string.h /usr/include/unistd.h struct.h data.h
+ commands.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
+ commands.o: /usr/include/sys/va_list.h /usr/include/ctype.h
+ commands.o: /usr/include/string.h /usr/include/time.h /usr/include/signal.h
+ commands.o: /usr/include/sys/signal.h /usr/include/sys/unistd.h defs.h
+ commands.o: ../ntserv/copyright.h ../config.h /usr/include/sys/types.h
+ commands.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h struct.h
+ commands.o: copyright.h data.h
+ smessage.o: copyright.h /usr/include/stdio.h /usr/include/sys/feature_tests.h
+ smessage.o: /usr/include/sys/va_list.h /usr/include/math.h
+ smessage.o: /usr/include/signal.h /usr/include/sys/signal.h
+ smessage.o: /usr/include/sys/unistd.h /usr/include/ctype.h
+ smessage.o: /usr/include/varargs.h defs.h ../ntserv/copyright.h ../config.h
+ smessage.o: /usr/include/string.h /usr/include/sys/types.h
+ smessage.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h struct.h
+ smessage.o: data.h
+ slotmaint.o: copyright2.h /usr/include/stdio.h
+ slotmaint.o: /usr/include/sys/feature_tests.h /usr/include/sys/va_list.h
+ slotmaint.o: /usr/include/sys/types.h /usr/include/sys/isa_defs.h
+ slotmaint.o: /usr/include/sys/machtypes.h defs.h ../ntserv/copyright.h
+ slotmaint.o: ../config.h /usr/include/signal.h /usr/include/sys/signal.h
+ slotmaint.o: /usr/include/sys/unistd.h /usr/include/string.h struct.h
+ slotmaint.o: copyright.h data.h
*** /usr/local/tmp/Server/Server/sequencer/data.c Wed Jul 17 05:38:19 1996
--- ../Server/sequencer/data.c Wed Oct 15 18:18:26 1997
***************
*** 1,4 ****
! /* $Log: data.c,v $
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.c,v $
! * Revision 1.1 1997/10/15 23:18:26 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:33 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/sequencer/data.h Wed Jul 17 05:38:20 1996
--- ../Server/sequencer/data.h Wed Oct 15 18:18:27 1997
***************
*** 1,4 ****
! /* $Log: data.h,v $
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.h,v $
! * Revision 1.1 1997/10/15 23:18:27 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/sequencer/defs.h Wed Apr 9 20:59:54 1997
--- ../Server/sequencer/defs.h Tue Oct 28 00:42:29 1997
***************
*** 1,4 ****
! /* $Log: defs.h,v $
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
--- 1,16 ----
! /* $Log: defs.h,v $
! * Revision 1.2 1997/10/28 06:42:29 tanner
! * Added the TRIPLE_PLANET_MAYHEM to sequencer.c to wrap the do_balance
! * command only if TRIPLE_PLANET_MAYHEM is defined.
! *
! * Revision 1.1 1997/10/15 23:18:28 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
***************
*** 87,93 ****
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 4
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
--- 99,105 ----
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 5
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
*** /usr/local/tmp/Server/Server/sequencer/planets.h Thu Jan 26 16:10:03 1995
--- ../Server/sequencer/planets.h Sun Nov 2 13:55:42 1997
***************
*** 16,22 ****
}
*/
! #define START_ARMIES 30
struct planet pdata[MAXPLANETS] = {
{ 0, FED|PLHOME|PLCORE|PLREPAIR|PLFUEL, FED, 20000, 80000, "Earth", 5, START_ARMIES, FED },
--- 16,22 ----
}
*/
! #define START_ARMIES 17
struct planet pdata[MAXPLANETS] = {
{ 0, FED|PLHOME|PLCORE|PLREPAIR|PLFUEL, FED, 20000, 80000, "Earth", 5, START_ARMIES, FED },
*** /usr/local/tmp/Server/Server/sequencer/sequencer.c Wed Apr 16 07:26:31 1997
--- ../Server/sequencer/sequencer.c Tue Oct 28 00:42:30 1997
***************
*** 309,315 ****
--- 309,317 ----
/* commands which _do_ require the game to be up */
COMMAND ( "say", do_say );
COMMAND ( "nuke", do_nuke );
+ #if defined (TRIPLE_PLANET_MAYHEM)
COMMAND ( "balance", do_balance ); /* see commands.c */
+ #endif
COMMAND ( "reset", do_reset );
COMMAND ( "pause", do_pause );
COMMAND ( "continue", do_continue );
*** /usr/local/tmp/Server/Server/tools/Makefile Thu Jun 12 16:51:47 1997
--- ../Server/tools/Makefile Sun Nov 30 16:44:25 1997
***************
*** 34,42 ****
EXECS = loadchecker mess message newscores planets players scores \
setgalaxy showgalaxy stat trimscores watchmes xtkill \
! mergescores keyman updated fun conq_vert convert sortdb
! all: $(PMAKE) $(EXECS)
clean: rmdependencies
rm -f *.o *.ln
--- 34,42 ----
EXECS = loadchecker mess message newscores planets players scores \
setgalaxy showgalaxy stat trimscores watchmes xtkill \
! mergescores keyman updated fun conq_vert convert sortdb
! all: $(PMAKE) $(EXECS) logrotate
clean: rmdependencies
rm -f *.o *.ln
***************
*** 66,71 ****
--- 66,78 ----
$(INSTALL) $(INSTALLOPTS) fun $(LIBDIR)/tools/fun
$(INSTALL) $(INSTALLOPTS) sortdb $(LIBDIR)/tools/sortdb
$(INSTALL) $(INSTALLOPTS) updated $(LIBDIR)/updated
+ $(INSTALL) $(INSTALLOPTS) geno_timer $(LIBDIR)/tools/geno_timer
+ $(INSTALL) $(INSTALLOPTS) -m644 geno_timer.txt $(LIBDIR)/tools/geno_timer.txt
+ $(INSTALL) $(INSTALLOPTS) no_geno_timer $(LIBDIR)/tools/no_geno_timer
+ $(INSTALL) $(INSTALLOPTS) -m644 no_geno_timer.txt $(LIBDIR)/tools/no_geno_timer.txt
+
+ logrotate::
+ $(MAKE) -C logrotate
sortdb: sortdb.c struct.h defs.h
$(CC) -o $@ $(CFLAGS) sortdb.c
*** /usr/local/tmp/Server/Server/tools/data.c Wed Jul 17 05:38:19 1996
--- ../Server/tools/data.c Wed Oct 15 18:19:11 1997
***************
*** 1,4 ****
! /* $Log: data.c,v $
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.c,v $
! * Revision 1.1 1997/10/15 23:19:11 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:33 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/tools/data.h Wed Jul 17 05:38:20 1996
--- ../Server/tools/data.h Wed Oct 15 18:19:12 1997
***************
*** 1,4 ****
! /* $Log: data.h,v $
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.h,v $
! * Revision 1.1 1997/10/15 23:19:12 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/tools/defs.h Wed Apr 9 20:59:54 1997
--- ../Server/tools/defs.h Tue Oct 28 00:42:45 1997
***************
*** 1,4 ****
! /* $Log: defs.h,v $
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
--- 1,15 ----
! /* $Log: defs.h,v $
! * Revision 1.2 1997/10/28 06:42:45 tanner
! * Change SURREND to 5
! *
! * Revision 1.1 1997/10/15 23:19:13 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
***************
*** 87,93 ****
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 4
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
--- 98,104 ----
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 5
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
*** /usr/local/tmp/Server/Server/docs/CUSTOMIZATION Mon Jul 31 18:25:11 1995
--- ../Server/docs/CUSTOMIZATION Wed Oct 15 19:23:41 1997
***************
*** 282,287 ****
*.ecst.csuchico.edu would include all machines in the .ecst.csuchico.edu
domain.
!
--- 282,292 ----
*.ecst.csuchico.edu would include all machines in the .ecst.csuchico.edu
domain.
+ Under Solaris 2.5.1 the wildcard "*" does not work. If wish to ban
+ all login attempts from rpi.edu, I must have something like this in my
+ .banne file:
! leemy@rpi.edu
+ If I do a leemy@*.rpi.edu the ban does not work. If the "*" wildcard
+ method does not work try this way.
*** /usr/local/tmp/Server/Server/docs/DEBUG.HELP Fri May 6 20:20:38 1994
--- ../Server/docs/DEBUG.HELP Wed Oct 15 19:23:41 1997
***************
*** 58,62 ****
bt - show stack
print <variable> - show value of a variable
-
-
--- 58,60 ----
*** /usr/local/tmp/Server/Server/docs/Makefile Tue Dec 26 02:12:12 1995
--- ../Server/docs/Makefile Sun Nov 16 15:47:10 1997
***************
*** 11,17 ****
include $(CONFIG)
DOCS = sample_features sample_motdclue sample_sysdef sample_motd sample_ports \
! sample_time sample_motdbasep sample_reserved sample_tourn.map
install: $(DOCS)
if [ ! -f $(LIBDIR)/.features ]; then \
--- 11,19 ----
include $(CONFIG)
DOCS = sample_features sample_motdclue sample_sysdef sample_motd sample_ports \
! sample_time sample_motdbasep sample_reserved sample_tourn.map \
! sample_sysdef.geno_timer sample_sysdef.no_geno_timer
!
install: $(DOCS)
if [ ! -f $(LIBDIR)/.features ]; then \
***************
*** 28,33 ****
--- 30,41 ----
fi
if [ ! -f $(LIBDIR)/.sysdef ]; then \
$(INSTALLDATA) sample_sysdef $(LIBDIR)/.sysdef ; \
+ fi
+ if [ ! -f $(LIBDIR)/.sysdef.no_geno_timer ]; then \
+ $(INSTALLDATA) sample_sysdef.no_geno_timer $(LIBDIR)/.sysdef.no_geno_timer ; \
+ fi
+ if [ ! -f $(LIBDIR)/.sysdef.geno_timer ]; then \
+ $(INSTALLDATA) sample_sysdef.geno_timer $(LIBDIR)/.sysdef.geno_timer ; \
fi
if [ ! -f $(LIBDIR)/.motd ]; then \
$(INSTALLDATA) sample_motd $(LIBDIR)/.motd ; \
*** /usr/local/tmp/Server/Server/docs/README Tue Jul 23 20:28:01 1996
--- ../Server/docs/README Sun Nov 2 13:55:19 1997
***************
*** 1,27 ****
** MAIN README FILE FOR SERVER **
! README of 24-Jul-1996
If you have any comments or improvements you would like to offer then please
! email them to vanilla-l@anthrax.ecst.csuchico.edu which is the distribution
! list for the server development team. See the end of this document for how
! to send your changes back.
! NOTE!!! If you need to get RSA working then you will have to get the
res-rsa.tar.Z.crypt file. This contains the RSA specific code. It has to be
encrypted because of US government legality over cryptography getting exported
outside the US. If you are from outside the US then there is a PGP equivalent.
! To get the crypt key please email vanilla-l@anthrax.ecst.csuchico.edu or
! mcp@cs.umd.edu and say that you are a US or Canadian citizen and you will get
! the key.
Do you really need to obtain and install the RSA component? Perhaps not.
If you are setting up a Netrek Server behind a firewall, such that nobody on
! the rest of the Internet will be able to play on the server, you do not need
! to bother with RSA client authentication. The Netrek Server will work fine
without it.
RSA is only really required on the Internet, where you cannot track down and
--- 1,26 ----
** MAIN README FILE FOR SERVER **
! README of $Date: 1997/11/02 19:55:19 $
If you have any comments or improvements you would like to offer then please
! email them to vanilla-l@us.netrek.org which is the distribution list for the
! server development team. See the end of this document for how to send your
! changes back.
! NOTE!!! If you need to get RSA working then you will have to get the
res-rsa.tar.Z.crypt file. This contains the RSA specific code. It has to be
encrypted because of US government legality over cryptography getting exported
outside the US. If you are from outside the US then there is a PGP equivalent.
! To get the crypt key please email vanilla-l@us.netrek.org or mcp@cs.umd.edu and
! say that you are a US or Canadian citizen and you will get the key.
Do you really need to obtain and install the RSA component? Perhaps not.
If you are setting up a Netrek Server behind a firewall, such that nobody on
! the rest of the Internet will be able to play on the server, you do not need to
! bother with RSA client authentication. The Netrek Server will work fine
without it.
RSA is only really required on the Internet, where you cannot track down and
***************
*** 33,42 ****
organisation.
-
-
-
-
Instructions for Building and Setting up the Server (24-Jul-1996)
Edit the file Server/config.h.in to meet your requirements. You may
--- 32,37 ----
***************
*** 249,252 ****
--- 244,266 ----
% configure
% cd $SOURCE
% make patches
+
+ Providing Patches for Solaris 2.5.1 (29-Oct-1997)
+
+ Well, the native /bin/sh for Solaris does not like the if [ ! -L ]
+ check in the make patches rule and make uses /bin/sh this rule fails
+ miserably. I yanked the guts out of the Makefile and put it into a
+ shell script called patches and magic cookie'd it to run /bin/ksh.
+
+ The patches shell script works just like the make patches documented
+ above. For example, assuming you are in the Server directory of your
+ modified version of the server;
+
+ % setenv SOURCE `pwd`
+ % setenv PATCHDIR /tmp
+ % cd $PATCHDIR
+ % tar xf Serverx.yplz.tar
+ % configure
+ % cd $SOURCE
+ % make solaris or ./patches
*** /usr/local/tmp/Server/Server/xsg/data.c Wed Jul 17 05:38:19 1996
--- ../Server/xsg/data.c Wed Oct 15 18:19:31 1997
***************
*** 1,4 ****
! /* $Log: data.c,v $
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.c,v $
! * Revision 1.1 1997/10/15 23:19:31 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:33 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:53 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/xsg/data.h Wed Jul 17 05:38:20 1996
--- ../Server/xsg/data.h Wed Oct 15 18:19:31 1997
***************
*** 1,4 ****
! /* $Log: data.h,v $
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: data.h,v $
! * Revision 1.1 1997/10/15 23:19:31 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:50 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/xsg/defs.h Wed Apr 9 20:59:54 1997
--- ../Server/xsg/defs.h Tue Oct 28 00:42:49 1997
***************
*** 1,4 ****
! /* $Log: defs.h,v $
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
--- 1,15 ----
! /* $Log: defs.h,v $
! * Revision 1.2 1997/10/28 06:42:49 tanner
! * Change SURREND to 5
! *
! * Revision 1.1 1997/10/15 23:19:32 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:35 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.4 92/04/01 15:36:00 terence
* UDP v0.3 mods added
*
***************
*** 87,93 ****
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 4
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
--- 98,104 ----
#define CLOAK_PHASES 7 /* number of drawing phases in a cloak engage/disengage */
#define NUMRANKS 9
! #define SURREND 5
#ifdef SURRENDER_SHORT /* Length of surrender timer in minutes */
#define SURRLENGTH 20 /* Short timer */
*** /usr/local/tmp/Server/Server/xsg/sysdefaults.c Tue Dec 26 03:19:57 1995
--- ../Server/xsg/sysdefaults.c Wed Oct 15 18:19:38 1997
***************
*** 1,4 ****
! /* $Log: sysdefaults.c,v $
* Revision 1.3 92/03/19 21:34:34 terence
* Added UDP mods (version 0.2, 3/17/92)
*
--- 1,12 ----
! /* $Log: sysdefaults.c,v $
! * Revision 1.1 1997/10/15 23:19:38 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
! * Revision 1.2 1997/10/15 23:17:40 tanner
! * Symlinks that did not make it into the project with the import
! * command.
! *
* Revision 1.3 92/03/19 21:34:34 terence
* Added UDP mods (version 0.2, 3/17/92)
*
*** /usr/local/tmp/Server/Server/patches Sun Nov 30 16:35:42 1997
--- ../Server/patches Sun Nov 30 16:50:57 1997
***************
*** 0 ****
--- 1,57 ----
+ #!/bin/ksh
+
+ PATCHDIR=`echo $PATCHDIR`
+ if [ -z $PATCHDIR ]; then
+ echo "Please set the env var PATCHDIR. See docs/README for details."
+ exit 1
+ fi
+
+ if [ ! -x name ]; then
+ echo "I cannot execute name, thus I cannot get the release level."
+ echo "Try setting env var PATCHDIR and SOURCE and type make solaris."
+ echo "If this does not work look at docs/README for details."
+ exit 1
+ fi
+
+ SRC_RELEASE=`name`
+
+ if [ $? -ne 0 ]; then
+ echo "WOAH! name failed! Cannot continue."
+ exit 1
+ fi
+
+ if [ ! -x $PATCHDIR/Server/name ]; then
+ echo "I cannot execute $PATCHDIR/Server/name, thus I cannot get the"
+ echo "release level."
+ echo ""
+ echo "Try setting env var PATCHDIR and SOURCE and type make solaris."
+ echo "If this does not work look at docs/README for details."
+ exit 1
+ fi
+
+ PATCH_RELEASE=`$PATCHDIR/Server/name`
+
+ if [ $? -ne 0 ]; then
+ echo "WOAH! $PATCHDIR/Server/name failed! Cannot continue."
+ exit 1
+ fi
+
+ PATCH=$SRC_RELEASE\-$PATCH_RELEASE
+
+ echo ""
+ echo "Making Server$PATCH.diffs"
+ rm -f Server$PATCH.diffs
+
+ if [ ! -r manifest ]; then
+ echo "I cannot find the manifest file. Are you sure you are in the"
+ echo "SOURCE directory?"
+ exit 1
+ fi
+ for f in `cat manifest` ; do
+ if [ ! -L ../$f ] ; then
+ if [ ! -f $PATCHDIR/$f ] ; then
+ touch $PATCHDIR/$f
+ fi
+ diff -c $PATCHDIR/$f ../$f >> Server$PATCH.diffs
+ fi
+ done
*** /usr/local/tmp/Server/Server/tools/geno_timer.in Sun Nov 30 16:35:43 1997
--- ../Server/tools/geno_timer.in Sun Nov 2 16:58:30 1997
***************
*** 0 ****
--- 1,33 ----
+ #!/bin/bash
+
+ LIBDIR=@libdir@
+
+ if [ ! -x $LIBDIR/tools/sequencer ]; then
+ echo "Cannot execute sequencer"
+ exit 1
+ fi
+
+ if [ ! -r $LIBDIR/tools/geno_timer.txt ]; then
+ echo "Cannot read no_geno_timer.txt"
+ exit 1
+ fi
+
+ $LIBDIR/tools/sequencer < $LIBDIR/tools/geno_timer.txt
+ if [ $? -ne 0 ]; then
+ echo "Sequencer failed"
+ exit 1
+ fi
+
+ if [ ! -r $LIBDIR/.sysdef.geno_timer ]; then
+ echo "Cannot read .sysdef.geno_timer"
+ exit 1
+ fi
+
+ cp $LIBDIR/.sysdef.geno_timer $LIBDIR/.sysdef
+ if [ $? -ne 0 ]; then
+ echo "Failed to copy .sysdef.geno_timer to .sysdef"
+ exit 1
+ fi
+
+ exit 0
+
*** /usr/local/tmp/Server/Server/tools/no_geno_timer.in Sun Nov 30 16:35:43 1997
--- ../Server/tools/no_geno_timer.in Sun Nov 2 16:58:32 1997
***************
*** 0 ****
--- 1,33 ----
+ #!/bin/bash
+
+ LIBDIR=@libdir@
+
+ if [ ! -x $LIBDIR/tools/sequencer ]; then
+ echo "Cannot execute sequencer"
+ exit 1
+ fi
+
+ if [ ! -r $LIBDIR/tools/no_geno_timer.txt ]; then
+ echo "Cannot read no_geno_timer.txt"
+ exit 1
+ fi
+
+ $LIBDIR/tools/sequencer < $LIBDIR/tools/no_geno_timer.txt
+ if [ $? -ne 0 ]; then
+ echo "Sequencer failed"
+ exit 1
+ fi
+
+ if [ ! -r $LIBDIR/.sysdef.no_geno_timer ]; then
+ echo "Cannot read .sysdef.no_geno_timer"
+ exit 1
+ fi
+
+ cp $LIBDIR/.sysdef.no_geno_timer $LIBDIR/.sysdef
+ if [ $? -ne 0 ]; then
+ echo "Failed to copy .sysdef.no_geno_timer to .sysdef"
+ exit 1
+ fi
+
+ exit 0
+
*** /usr/local/tmp/Server/Server/tools/geno_timer.txt Sun Nov 30 16:35:44 1997
--- ../Server/tools/geno_timer.txt Sun Nov 2 14:17:57 1997
***************
*** 0 ****
--- 1,31 ----
+ say Geno Timer Hours Start in 30 Minutes. The sequencer has started.
+ minutes 15
+ say Geno Timer Hours will start in 15 minutes.
+ minutes 10
+ say Geno Timer Hours will start in five minutes.
+ minutes 4
+ say Geno Timer Hours will start in one minute.
+ seconds 30
+ say Geno Timer Hours will start in 30 seconds.
+ seconds 10
+ say Geno Timer Hours will start in 20 seconds.
+ seconds 10
+ say Geno Timer Hours will start in 10 seconds.
+ seconds 5
+ say Geno Timer Hours will start in 5 seconds.
+ seconds 1
+ say Geno Timer Hours will start in 4 seconds.
+ seconds 1
+ say Geno Timer Hours will start in 3 seconds.
+ seconds 1
+ say Geno Timer Hours will start in 2 seconds.
+ seconds 1
+ say Geno Timer Hours will start in 1 second.
+ seconds 1
+ reset
+ say ====================================================================
+ say === ===
+ say === Geno Hours Started ===
+ say === ===
+ say ====================================================================
+ exit
*** /usr/local/tmp/Server/Server/tools/no_geno_timer.txt Sun Nov 30 16:35:44 1997
--- ../Server/tools/no_geno_timer.txt Sun Nov 2 14:18:05 1997
***************
*** 0 ****
--- 1,31 ----
+ say NO Geno Timer Hours Start in 30 Minutes. The sequencer has started.
+ minutes 15
+ say NO Geno Timer Hours will start in 15 minutes.
+ minutes 10
+ say NO Geno Timer Hours will start in five minutes.
+ minutes 4
+ say NO Geno Timer Hours will start in one minute.
+ seconds 30
+ say NO Geno Timer Hours will start in 30 seconds.
+ seconds 10
+ say NO Geno Timer Hours will start in 20 seconds.
+ seconds 10
+ say NO Geno Timer Hours will start in 10 seconds.
+ seconds 5
+ say NO Geno Timer Hours will start in 5 seconds.
+ seconds 1
+ say NO Geno Timer Hours will start in 4 seconds.
+ seconds 1
+ say NO Geno Timer Hours will start in 3 seconds.
+ seconds 1
+ say NO Geno Timer Hours will start in 2 seconds.
+ seconds 1
+ say NO Geno Timer Hours will start in 1 second.
+ seconds 1
+ reset
+ say ====================================================================
+ say === ===
+ say === NO Geno Hours Started ===
+ say === ===
+ say ====================================================================
+ exit
*** /usr/local/tmp/Server/Server/docs/sample_geno_timer_crontab.in Sun Nov 30 16:35:44 1997
--- ../Server/docs/sample_geno_timer_crontab.in Sun Nov 2 16:58:20 1997
***************
*** 0 ****
--- 1,9 ----
+ #
+ # NO geno timer
+ #
+ 30 19 * * * @libdir@/tools/no_geno_timer
+ #
+ # geno timer
+ #
+ 30 07 * * * @libdir@/tools/geno_timer
+
References: