[Spread-users] autoconf support for Spread!

Theo Schlossnagle jesus@omniti.com
Thu, 20 Sep 2001 17:48:02 -0400


--Apple-Mail-1442160148-3
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	format=flowed;
	charset=us-ascii

I got tired of 12 makefiles in the home dir and editing arch.h every 
time a new platform/architecture came along.

autoconf is a great solution.  You can code the application to a set of 
capabilities instead of a specific platform/arch.

I have added autoconf support for Spread.  It is a _HEFTY_ patch, but 
changes very little of the existing Spread code base.  There are 
obviously dramatic changes in arch.h as you no longer have to detail 
every architecture.

It provides, simple ./configure. (including changing cppflags, ldflags, 
libs, cflags, prefix, sysconfdir, etc.)  This should make packaging a 
lot easier.

It also builds shared libraries on several platforms. :-)

Attached is the patch against the latest CVS.

--
Theo Schlossnagle
1024D/82844984/95FD 30F1 489E 4613 F22E  491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA  3D 90 B9 9F BE 27 24 E7

<Attachment missing>
--Apple-Mail-1442160148-3
Content-Type: multipart/mixed;
	boundary=Apple-Mail-1194759869-4


--Apple-Mail-1194759869-4
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii;
	format=flowed

I got tired of 12 makefiles in the home dir and editing arch.h every 
time a new platform/architecture came along.

autoconf is a great solution.  You can code the application to a set of 
capabilities instead of a specific platform/arch.

I have added autoconf support for Spread.  It is a _HEFTY_ patch, but 
changes very little of the existing Spread code base.  There are 
obviously dramatic changes in arch.h as you no longer have to detail 
every architecture.

It provides, simple ./configure. (including changing cppflags, ldflags, 
libs, cflags, prefix, sysconfdir, etc.)  This should make packaging a 
lot easier.

It also builds shared libraries on several platforms. :-)

Attached is the patch against the latest CVS.

--
Theo Schlossnagle
1024D/82844984/95FD 30F1 489E 4613 F22E  491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA  3D 90 B9 9F BE 27 24 E7


--Apple-Mail-1194759869-4
Content-Disposition: attachment;
	filename="spread.ac.patch"
Content-Type: application/octet-stream;
	name="spread.ac.patch";
	x-unix-mode=0600
Content-Transfer-Encoding: quoted-printable

Common=20subdirectories:=20daemon/CVS=20and=20daemon.ac/CVS=0Adiff=20-uN=20=
daemon/Makefile.in=20daemon.ac/Makefile.in=0A---=20daemon/Makefile.in=09=
Wed=20Dec=2031=2019:00:00=201969=0A+++=20daemon.ac/Makefile.in=09Thu=20=
Sep=2020=2017:29:17=202001=0A@@=20-0,0=20+1,236=20@@=0A+.SUFFIXES:=20.lo=20=
.to=20.tlo=0A+=0A+prefix=3D@prefix@=0A+exec_prefix=3D@exec_prefix@=0A=
+bindir=3D@bindir@=0A+sbindir=3D@sbindir@=0A+libdir=3D@libdir@=0A=
+mandir=3D@mandir@=0A+mansubdir=3D@mansubdir@=0A+sysconfdir=3D@sysconfdir@=
=0A+piddir=3D@piddir@=0A+srcdir=3D@srcdir@=0A+top_srcdir=3D@top_srcdir@=0A=
+=0A+DESTDIR=3D=0A+VPATH=3D@srcdir@=0A+SPREAD_PROGRAM=3D@sbindir@/spread=0A=
+SP_MAJOR_VERSION=3D@SP_MAJOR_VERSION@=0A=
+SP_MINOR_VERSION=3D@SP_MINOR_VERSION@=0A=
+SP_PATCH_VERSION=3D@SP_PATCH_VERSION@=0A=
+VERSION=3D@SP_MAJOR_VERSION@.@SP_MINOR_VERSION@.@SP_PATCH_VERSION@=0A+=0A=
+PATHS=3D=20-DETCDIR=3D\"$(sysconfdir)\"=20\=0A+=20=20=20=20=20=20=20=
-D_PATH_SPREAD_PIDDIR=3D\"$(piddir)\"=0A+=0A+CC=3D@CC@=0A+LD=3D@LD@=0A=
+CFLAGS=3D@CFLAGS@=0A+CPPFLAGS=3D-I.=20-I$(srcdir)=20@CPPFLAGS@=20=
$(PATHS)=20@DEFS@=0A+LDFLAGS=3D@LDFLAGS@=0A+LIBS=3D@LIBS@=0A=
+THLDFLAGS=3D@THLDFLAGS@=0A+THLIBS=3D@THLIBS@=0A+AR=3D@AR@=0A=
+SHCC=3D@SHCC@=0A+SHLD=3D@SHLD@=0A+SHCFLAGS=3D@SHCFLAGS@=0A=
+SHCPPFLAGS=3D@SHCPPFLAGS@=0A+SHLDFLAGS=3D@SHLDFLAGS@=0A+SHLIBS=3D@SHLIBS@=
=0A+RANLIB=3D@RANLIB@=0A+INSTALL=3D@INSTALL@=0A+SOFTLINK=3D@LN_S@=0A=
+PERL=3D@PERL@=0A+ENT=3D@ENT@=0A+EXEEXT=3D@EXEEXT@=0A+=0A=
+TARGETS=3Dspread$(EXEEXT)=20spuser$(EXEEXT)=20spflooder$(EXEEXT)=20=
spmonitor$(EXEEXT)=20sptuser${EXEEXT}=20@LIBSPSO@=20@LIBTSPSO@=0A+=0A=
+LIBSP_OBJS=3D=20alarm.o=20events.o=20memory.o=20sp.o=0A+=0A=
+LIBSP_SHOBJS=3D=20alarm.lo=20events.lo=20memory.lo=20sp.lo=0A+=0A=
+LIBTSP_OBJS=3D=20alarm.to=20events.to=20memory.to=20sp.to=0A+=0A=
+LIBTSP_SHOBJS=3D=20alarm.tlo=20events.tlo=20memory.tlo=20sp.tlo=0A+=0A=
+SPREADOBJS=3D=20spread.o=20protocol.o=20session.o=20groups.o=20alarm.o=20=
events.o=20memory.o=20membership.o=20data_link.o=20network.o=20status.o=20=
log.o=20flow_control.o=20message.o=20lex.yy.o=20y.tab.o=20=
configuration.o=20skiplist.o=20acm.o=20acp-permit.o=20auth-null.o=20=
auth-ip.o=0A+=0A+MONITOROBJS=3D=20monitor.o=20=20alarm.o=20events.o=20=
memory.o=20data_link.o=20lex.yy.o=20y.tab.o=20configuration.o=20=
skiplist.o=20acm.o=0A+=0A+MANPAGES=09=3D=20docs/SP_connect.3.out=20=
docs/SP_disconnect.3.out=20docs/SP_equal_group_ids.3.out=20=
docs/SP_error.3.out=20docs/SP_join.3.out=20docs/SP_leave.3.out=20=
docs/SP_multicast.3.out=20docs/SP_multigroup_multicast.3.out=20=
docs/SP_multigroup_scat_multicast.3.out=20docs/SP_poll.3.out=20=
docs/SP_receive.3.out=20docs/SP_scat_multicast.3.out=20=
docs/SP_scat_receive.3.out=20docs/spread.1.out=0A+MANPAGES_IN=09=3D=20=
docs/SP_connect.3=20docs/SP_disconnect.3=20docs/SP_equal_group_ids.3=20=
docs/SP_error.3=20docs/SP_join.3=20docs/SP_leave.3=20docs/SP_multicast.3=20=
docs/SP_multigroup_multicast.3=20docs/SP_multigroup_scat_multicast.3=20=
docs/SP_poll.3=20docs/SP_receive.3=20docs/SP_scat_multicast.3=20=
docs/SP_scat_receive.3=20docs/spread.1=0A+MANTYPE=09=09=3D=20@MANTYPE@=0A=
+=0A+PATHSUBS=09=3D=20\=0A+=09=
-D/etc/spread.conf=3D$(sysconfdir)/spread.conf=20\=0A+=20=20=20=20=20=20=20=
=20-D/var/run/spread.pid=3D$(piddir)/spread.pid=0A+=0A+FIXPATHSCMD=09=3D=20=
$(PERL)=20$(srcdir)/fixpaths=20$(PATHSUBS)=0A+=0A+all:=20$(CONFIGFILES)=20=
$(MANPAGES)=20$(TARGETS)=0A+=0A+$(SPREADOBJS):=20config.h=0A=
+$(MONITOROBJS):=20config.h=0A+=0A+.c.o:=0A+=09$(CC)=20$(CFLAGS)=20=
$(CPPFLAGS)=20-c=20$<=0A+=0A+.c.to:=0A+=09$(CC)=20$(CFLAGS)=20=
$(CPPFLAGS)=20-D_REENTRANT=20-c=20$*.c=20-o=20$*.to=0A+=0A+.c.lo:=0A+=09=
$(SHCC)=20$(SHCFLAGS)=20$(SHCPPFLAGS)=20-c=20$<=20-o=20$*.lo=0A+=0A=
+.c.tlo:=0A+=09$(SHCC)=20$(SHCFLAGS)=20$(SHCPPFLAGS)=20-D_REENTRANT=20-c=20=
$<=20-o=20$*.tlo=0A+=0A+lex.yy.c:=20=20=20=20=20=20=20config_gram.l=20=
y.tab.c=0A+=09$(LEX)=20config_gram.l=0A+=0A+y.tab.c:=20=20=20=20=20=20=20=
=20config_parse.y=0A+=09$(YACC)=20-d=20config_parse.y=0A+=0A+libsp.a:=20=
$(LIBSP_OBJS)=0A+=09$(AR)=20rv=20$@=20$(LIBSP_OBJS)=0A+=09$(RANLIB)=20$@=0A=
+=0A+none:=09=0A+=09echo=20"Skipping=20shared=20library=20creation."=0A+=0A=
+install-none:=0A+=09echo=20"Skipping=20shared=20library=20=
installation."=0A+=0A+libsp.dylib:=09$(LIBSP_SHOBJS)=0A+=09$(SHLD)=20-o=20=
libsp.$(VERSION).dylib=20$(LIBSP_SHOBJS)=20$(SHLDFLAGS)=20$(SHLIBS)=0A+=09=
$(SOFTLINK)=20libsp.$(VERSION).dylib=20$@=0A+=0A+install-libsp.dylib:=09=
libsp.dylib=0A+=09$(INSTALL)=20-m=200755=20-s=20libsp.$(VERSION).dylib=20=
$(DESTDIR)$(libdir)/libsp.$(VERSION).dylib=0A+=09(cd=20=
$(DESTDIR)$(libdir);=20$(SOFTLINK)=20libsp.$(VERSION).dylib=20=
libsp.dylib)=0A+=0A+libsp.so:=09$(LIBSP_SHOBJS)=0A+=09$(SHLD)=20-o=20$@=20=
$(LIBSP_SHOBJS)=20$(SHLDFLAGS)=20$(SHLIBS)=0A+=0A+install-libsp.so:=09=
libsp.so=0A+=09$(INSTALL)=20-m=200755=20-s=20libsp.so=20=
$(DESTDIR)$(libdir)/libsp.so.$(VERSION)=0A+=09(cd=20$(DESTDIR)$(libdir);=20=
$(SOFTLINK)=20libsp.so.$(VERSION)=20libsp.so)=0A+=0A+libtsp.a:=20=
$(LIBTSP_OBJS)=0A+=09$(AR)=20rv=20$@=20$(LIBTSP_OBJS)=0A+=09$(RANLIB)=20=
$@=0A+=0A+libtsp.dylib:=09$(LIBSP_SHOBJS)=0A+=09$(SHLD)=20-o=20=
libtsp.$(VERSION).dylib=20$(LIBSP_SHOBJS)=20$(SHLDFLAGS)=20$(SHLIBS)=20=
$(THLIBS)=0A+=09$(SOFTLINK)=20libtsp.$(VERSION).dylib=20$@=0A+=0A=
+install-libtsp.dylib:=09libtsp.dylib=0A+=09$(INSTALL)=20-m=200755=20-s=20=
libtsp.$(VERSION).dylib=20$(DESTDIR)$(libdir)/libtsp.$(VERSION).dylib=0A=
+=09(cd=20$(DESTDIR)$(libdir);=20$(SOFTLINK)=20libtsp.$(VERSION).dylib=20=
libtsp.dylib)=0A+=0A+libtsp.so:=09$(LIBTSP_SHOBJS)=0A+=09$(SHLD)=20-o=20=
$@=20$(LIBTSP_SHOBJS)=20$(SHLDFLAGS)=20$(SHLIBS)=20$(THLIBS)=0A+=0A=
+install-libtsp.so:=09libtsp.so=0A+=09$(INSTALL)=20-m=200755=20-s=20=
libtsp.so=20$(DESTDIR)$(libdir)/libtsp.so.$(VERSION)=0A+=09(cd=20=
$(DESTDIR)$(libdir);=20$(SOFTLINK)=20libtsp.so.$(VERSION)=20libtsp.so)=0A=
+=0A+spread$(EXEEXT):=20$(SPREADOBJS)=0A+=09$(LD)=20-o=20$@=20=
$(SPREADOBJS)=20$(LDFLAGS)=20$(LIBS)=0A+=0A+spuser$(EXEEXT):=20libsp.a=09=
user.o=0A+=09$(LD)=20-o=20$@=20user.o=20$(LDFLAGS)=20libsp.a=20$(LIBS)=0A=
+=0A+spflooder$(EXEEXT):=20libsp.a=20flooder.o=0A+=09$(LD)=20-o=20$@=20=
flooder.o=20$(LDFLAGS)=20libsp.a=20$(LIBS)=0A+=0A+spmonitor$(EXEEXT):=20=
$(MONITOROBJS)=0A+=09$(LD)=20-o=20$@=20$(MONITOROBJS)=20$(LDFLAGS)=20=
$(LIBS)=20=0A+=0A+sptuser$(EXEEXT):=20user.to=20libtsp.a=0A+=09$(LD)=20=
$(THLDFLAGS)=20-o=20$@=20user.to=20libtsp.a=20$(LDFLAGS)=20$(LIBS)=20=
$(THLIBS)=0A+=0A+spsimple_user$(EXEEXT):=20simple_user.o=20libsp.a=0A+=09=
$(LD)=20-o=20$@=20simple_user.o=20$(LDFLAGS)=20libsp.a=20$(LIBS)=20=0A+=0A=
+$(MANPAGES):=20$(MANPAGES_IN)=0A+=09if=20test=20"$(MANTYPE)"=20=3D=20=
"cat";=20then=20\=0A+=09=09manpage=3D$(srcdir)/`echo=20$@=20|=20sed=20=
's/\.[1-9]\.out$$/\.0/'`;=20\=0A+=09else=20\=0A+=09=09=
manpage=3D$(srcdir)/`echo=20$@=20|=20sed=20's/\.out$$//'`;=20\=0A+=09fi;=20=
\=0A+=09if=20test=20"$(MANTYPE)"=20=3D=20"man";=20then=20\=0A+=09=09=
$(FIXPATHSCMD)=20$${manpage}=20|=20$(PERL)=20$(srcdir)/mdoc2man.pl=20>=20=
$@;=20\=0A+=09else=20\=0A+=09=09$(FIXPATHSCMD)=20$${manpage}=20>=20$@;=20=
\=0A+=09fi=0A+=0A+clean:=0A+=09rm=20-f=20*.lo=20*.tlo=20*.to=20*.o=20*.a=20=
$(TARGETS)=20spsimple_user=0A+=09rm=20-f=20config.cache=20config.log=20=
*.out=20core=0A+=0A+distclean:=20clean=0A+=09rm=20-f=20Makefile=20=
config.h=20config.status=20*~=20*.dylib=0A+=0A+mrproper:=20distclean=0A+=0A=
+veryclean:=20distclean=0A+=09rm=20-f=20configure=20config.h.in=20*.0=0A=
+=0A+catman-do:=0A+=09@for=20f=20in=20$(MANPAGES_IN)=20;=20do=20\=0A+=09=09=
base=3D`echo=20$$f=20|=20sed=20's/\..*$$//'`=20;=20\=0A+=09=09echo=20=
"$$f=20->=20$$base.0"=20;=20\=0A+=09=09nroff=20-mandoc=20$$f=20|=20cat=20=
-v=20|=20sed=20-e=20's/.\^H//g'=20\=0A+=09=09=09>$$base.0=20;=20\=0A+=09=
done=0A+=0A+distprep:=20catman-do=0A+=09autoreconf=0A+=0A+install:=20=
$(TARGETS)=20install-files=20install-@LIBSPSO@=20install-@LIBTSPSO@=0A+=0A=
+install-files:=0A+=09$(srcdir)/mkinstalldirs=20$(DESTDIR)$(bindir)=0A+=09=
$(srcdir)/mkinstalldirs=20$(DESTDIR)$(sbindir)=0A+=09=
$(srcdir)/mkinstalldirs=20$(DESTDIR)$(mandir)=0A+=09=
$(srcdir)/mkinstalldirs=20$(DESTDIR)$(mandir)/$(mansubdir)1=0A+=09=
$(srcdir)/mkinstalldirs=20$(DESTDIR)$(mandir)/$(mansubdir)3=0A+=09=
$(srcdir)/mkinstalldirs=20$(DESTDIR)$(libdir)=0A+=09$(INSTALL)=20-m=20=
0755=20-s=20spmonitor=20$(DESTDIR)$(bindir)/spmonitor=0A+=09$(INSTALL)=20=
-m=200755=20-s=20spuser=20$(DESTDIR)$(bindir)/spuser=0A+=09$(INSTALL)=20=
-m=200755=20-s=20sptuser=20$(DESTDIR)$(bindir)/sptuser=0A+=09$(INSTALL)=20=
-m=200755=20-s=20spflooder=20$(DESTDIR)$(bindir)/spflooder=0A+=09=
$(INSTALL)=20-m=200755=20-s=20spread=20$(DESTDIR)$(sbindir)/spread=0A+=09=
$(INSTALL)=20-m=20644=20spread.1.out=20=
$(DESTDIR)$(mandir)/$(mansubdir)1/spread.1=0A+=09for=20page=20in=20=
"connect=20disconnect=20qual_group_ids=20error=20join=20leave=20=
multicast=20multigroup_multicast=20multigroup_scat_multicast=20poll=20=
receive=20scat_multicast=20scat_receive"=0A+=09do=0A+=09=20=20$(INSTALL)=20=
-m=20644=20SP_$$(page).3.out=20=
$(DESTDIR)$(mandir)/$(mansubdir)3/SP_$$(page).3=0A+=09if=20[=20!=20-d=20=
$(DESTDIR)$(sysconfdir)=20];=20then=20\=0A+=09=09$(srcdir)/mkinstalldirs=20=
$(DESTDIR)$(sysconfdir);=20\=0A+=09fi=0A+=09if=20[=20!=20-f=20=
$(DESTDIR)$(sysconfdir)/spread.conf=20];=20then=20\=0A+=09=09$(INSTALL)=20=
-m=20644=20spread.conf=20$(DESTDIR)$(sysconfdir)/spread.conf;=20\=0A+=09=
else=20\=0A+=09=09echo=20"$(DESTDIR)$(sysconfdir)/spread.conf=20already=20=
exists,=20install=20will=20not=20overwrite";=20\=0A+=09fi=0A+=0A=
+uninstallall:=09uninstall=0A+=09-rm=20-f=20=
$(DESTDIR)$(sysconfdir)/spread.conf=0A+=09-rmdir=20=
$(DESTDIR)$(sysconfdir)=0A+=09-rmdir=20$(DESTDIR)$(bindir)=0A+=09-rmdir=20=
$(DESTDIR)$(sbindir)=0A+=09-rmdir=20$(DESTDIR)$(mandir)/$(mansubdir)1=0A=
+=09-rmdir=20$(DESTDIR)$(mandir)/$(mansubdir)3=0A+=09-rmdir=20=
$(DESTDIR)$(mandir)=0A+=09-rmdir=20$(DESTDIR)$(libdir)=0A+=0A+uninstall:=20=
=0A+=09-rm=20-f=20$(DESTDIR)$(bindir)/spuser$(EXEEXT)=0A+=09-rm=20-f=20=
$(DESTDIR)$(bindir)/spmonitor$(EXEEXT)=0A+=09-rm=20-f=20=
$(DESTDIR)$(bindir)/spflooder$(EXEEXT)=0A+=09-rm=20-f=20=
$(DESTDIR)$(bindir)/sptuser$(EXEEXT)=0A+=09-rm=20-f=20=
$(DESTDIR)$(sbindir)/spread=0A+=09-rm=20-f=20=
$(DESTDIR)$(mandir)/$(mansubdir)3/SP_*.3=0A+=09-rm=20-f=20=
$(DESTDIR)$(mandir)/$(mansubdir)1/spread.1=0Adiff=20-uN=20=
daemon/acconfig.h=20daemon.ac/acconfig.h=0A---=20daemon/acconfig.h=09Wed=20=
Dec=2031=2019:00:00=201969=0A+++=20daemon.ac/acconfig.h=09Thu=20Sep=2020=20=
15:44:31=202001=0A@@=20-0,0=20+1,84=20@@=0A+/*=20$Id:=20acconfig.h,v=20=
1.110=202001/04/05=2017:15:08=20stevesk=20Exp=20$=20*/=0A+=0A+#ifndef=20=
_CONFIG_H=0A+#define=20_CONFIG_H=0A+=0A+/*=20Generated=20automatically=20=
from=20acconfig.h=20by=20autoheader.=20*/=0A+/*=20Please=20make=20your=20=
changes=20there=20*/=0A+=0A+@TOP@=0A+=0A+/*=20Define=20if=20your=20=
system's=20struct=20sockaddr_un=20has=20a=20sun_len=20member=20*/=0A=
+#undef=20HAVE_SUN_LEN_IN_SOCKADDR_UN=0A+=0A+/*=20Define=20if=20you=20=
system's=20inet_ntoa=20is=20busted=20(e.g.=20Irix=20gcc=20issue)=20*/=0A=
+#undef=20BROKEN_INET_NTOA=0A+=0A+/*=20Define=20if=20your=20system=20=
defines=20sys_errlist[]=20*/=0A+#undef=20HAVE_SYS_ERRLIST=0A+=0A+/*=20=
Define=20if=20your=20system=20defines=20sys_nerr=20*/=0A+#undef=20=
HAVE_SYS_NERR=0A+=0A+/*=20Define=20if=20your=20snprintf=20is=20busted=20=
*/=0A+#undef=20BROKEN_SNPRINTF=0A+=0A+#undef=20HAVE_CYGWIN=0A+=0A+/*=20=
Define=20if=20you=20are=20on=20NeXT=20*/=0A+#undef=20HAVE_NEXT=0A+=0A+/*=20=
Define=20if=20you=20want=20to=20install=20preformatted=20manpages.*/=0A=
+#undef=20MANTYPE=0A+=0A+/*=20struct=20timeval=20*/=0A+#undef=20=
HAVE_STRUCT_TIMEVAL=0A+=0A+/*=20Define=20if=20libc=20defines=20=
__progname=20*/=0A+#undef=20HAVE___PROGNAME=0A+=0A+/*=20Define=20if=20=
your=20libraries=20define=20daemon()=20*/=0A+#undef=20HAVE_DAEMON=0A+=0A=
+/*=20Defined=20if=20in_systm.h=20needs=20to=20be=20included=20with=20=
netinet/ip.h=20(HPUX=20-=20<sigh/>)=20*/=0A+#undef=20NEED_IN_SYSTM_H=0A+=0A=
+/*=20Data=20types=20*/=0A+#undef=20ARCH_WIN95=0A+#undef=20=
ARCH_SCATTER_NONE=0A+#undef=20ARCH_SCATTER_CONTROL=0A+#undef=20=
ARCH_SCATTER_ACCRIGHTS=0A+#undef=20HAVE_SOCKOPT_LEN_T=0A+#undef=20=
HAVE_STRUCT_TIMEZONE=0A+#undef=20HAVE_U_INT=0A+#undef=20HAVE_INTXX_T=0A=
+#undef=20HAVE_U_INTXX_T=0A+#undef=20HAVE_UINTXX_T=0A+#undef=20=
HAVE_INT64_T=0A+#undef=20HAVE_U_INT64_T=0A+#undef=20HAVE_SOCKLEN_T=0A=
+#undef=20HAVE_SIZE_T=0A+#undef=20HAVE_SSIZE_T=0A+#undef=20HAVE_CLOCK_T=0A=
+#undef=20HAVE_MODE_T=0A+#undef=20HAVE_PID_T=0A+#undef=20=
HAVE_SA_FAMILY_T=0A+#undef=20HAVE_STRUCT_SOCKADDR_STORAGE=0A+#undef=20=
HAVE_STRUCT_ADDRINFO=0A+#undef=20HAVE_STRUCT_IN6_ADDR=0A+#undef=20=
HAVE_STRUCT_SOCKADDR_IN6=0A+=0A+/*=20Fields=20in=20struct=20=
sockaddr_storage=20*/=0A+#undef=20HAVE_SS_FAMILY_IN_SS=0A+#undef=20=
HAVE___SS_FAMILY_IN_SS=0A+=0A+/*=20Specify=20location=20of=20spread.pid=20=
*/=0A+#undef=20_PATH_SPREAD_PIDDIR=0A+=0A+@BOTTOM@=0A+=0A+/*=20=
*******************=20Shouldn't=20need=20to=20edit=20below=20this=20line=20=
**************=20*/=0A+=0A+#include=20"defines.h"=0A+=0A+#endif=20/*=20=
_CONFIG_H=20*/=0Adiff=20-uN=20daemon/aclocal.m4=20daemon.ac/aclocal.m4=0A=
---=20daemon/aclocal.m4=09Wed=20Dec=2031=2019:00:00=201969=0A+++=20=
daemon.ac/aclocal.m4=09Thu=20Sep=2020=2016:15:50=202001=0A@@=20-0,0=20=
+1,22=20@@=0A+dnl=20FreeBSD=20-pthread=20check=20-=20Jonathan=20McDowell=20=
<<EMAIL:=20PROTECTED>>=0A+AC_DEFUN(AC_PTHREAD_FREEBSD,=0A=
+[AC_MSG_CHECKING([if=20we=20need=20-pthread=20for=20threads])=0A=
+AC_CACHE_VAL(ac_ldflag_pthread,=0A+[ac_save_LDFLAGS=3D"$LDFLAGS"=0A=
+LDFLAGS=3D"-pthread=20$LDFLAGS"=0A+AC_TRY_LINK(=0A+[=0A+char=20=
pthread_create();=0A+],=0A+pthread_create();,=0A+eval=20=
"ac_ldflag_pthread=3Dyes",=0A+eval=20"ac_ldflag_pthread=3Dno"),=0A=
+LIBS=3D"$ac_save_LDFLAGS"=0A+])=0A+if=20eval=20"test=20\"`echo=20=
$ac_ldflag_pthread`\"=20=3D=20yes";=20then=0A+=09AC_MSG_RESULT(yes)=0A=
+else=0A+=09AC_MSG_RESULT(no)=0A+fi=0A+])=0A+=0Adiff=20-uN=20=
daemon/arch.c=20daemon.ac/arch.c=0A---=20daemon/arch.c=09Tue=20Aug=2021=20=
10:28:21=202001=0A+++=20daemon.ac/arch.c=09Thu=20Sep=2020=2015:44:31=20=
2001=0A@@=20-34,7=20+34,7=20@@=0A=20#include=20"arch.h"=0A=20#include=20=
<stdlib.h>=0A=20=0A-#ifdef=20ARCH_SPARC_SUNOS=0A+#ifndef=20HAVE_STRERROR=0A=
=20/*=20return=20value=20only=20valid=20until=20next=20call=20to=20=
strerror=20*/=0A=20=0A=20char=20=20=20=20*strerror(int=20err)=0Adiff=20=
-uN=20daemon/arch.h=20daemon.ac/arch.h=0A---=20daemon/arch.h=09Sat=20Sep=20=
=201=2009:50:53=202001=0A+++=20daemon.ac/arch.h=09Thu=20Sep=2020=20=
15:46:28=202001=0A@@=20-1,8=20+1,6=20@@=0A=20/*=0A-=20*=20The=20Spread=20=
Toolkit.=0A-=20*=20=20=20=20=20=0A-=20*=20The=20contents=20of=20this=20=
file=20are=20subject=20to=20the=20Spread=20Open-Source=0A-=20*=20=
License,=20Version=201.0=20(the=20``License'');=20you=20may=20not=20use=0A=
+=20*=20The=20contents=20of=20this=20file=20are=20subject=20to=20the=20=
Spread=20Non-Commercial=20=0A+=20*=20License,=20Version=201.3=20(the=20=
``License'');=20you=20may=20not=20use=0A=20=20*=20this=20file=20except=20=
in=20compliance=20with=20the=20License.=20=20You=20may=20obtain=20a=0A=20=
=20*=20copy=20of=20the=20License=20at:=0A=20=20*=0A@@=20-10,17=20+8,22=20=
@@=0A=20=20*=0A=20=20*=20or=20in=20the=20file=20``license.txt''=20found=20=
in=20this=20distribution.=0A=20=20*=0A-=20*=20Software=20distributed=20=
under=20the=20License=20is=20distributed=20on=20an=20AS=20IS=20basis,=20=0A=
-=20*=20WITHOUT=20WARRANTY=20OF=20ANY=20KIND,=20either=20express=20or=20=
implied.=20See=20the=20License=20=0A-=20*=20for=20the=20specific=20=
language=20governing=20rights=20and=20limitations=20under=20the=20=0A-=20=
*=20License.=0A+=20*=20Software=20distributed=20under=20the=20License=20=
is=20distributed=20on=0A+=20*=20an=20AS=20IS=20basis,=20WITHOUT=20=
WARRANTY=20OF=20ANY=20KIND,=0A+=20*=20either=20express=20or=20implied.=20=
See=20the=20License=20for=20the=0A+=20*=20specific=20language=20=
governing=20rights=20and=20limitations=0A+=20*=20under=20the=20License.=0A=
=20=20*=0A-=20*=20The=20Creators=20of=20Spread=20are:=0A-=20*=20=20Yair=20=
Amir,=20Michal=20Miskin-Amir,=20Jonathan=20Stanton.=0A+=20*=20The=20=
Original=20Code=20is:=0A+=20*=20=20=20=20The=20Spread=20Wide=20Area=20=
Group=20Communication=20Toolkit.=0A+=20*=20=20=20=20=20=0A+=20*=20The=20=
Creators=20of=20the=20Original=20Code=20are:=0A+=20*=20=20=20=20Yair=20=
Amir,=20Michal=20Miskin-Amir,=20Jonathan=20Stanton.=0A=20=20*=0A-=20*=20=20=
Copyright=20(C)=201993-2001=20Spread=20Concepts=20LLC=20=
<spread@spreadconcepts.com>=0A+=20*=20=20=20=20Portions=20created=20by=20=
the=20Initial=20Developers=20are=0A+=20*=20=20=20=20Copyright=20(C)=20=
1993-2000=20Spread=20Concepts=20LLC=20<spread@spreadconcepts.com>=0A=20=20=
*=0A-=20*=20=20All=20Rights=20Reserved.=0A+=20*=20=20=20=20All=20Rights=20=
Reserved.=0A=20=20*=0A=20=20*=20Major=20Contributor(s):=0A=20=20*=20=
---------------=0A@@=20-30,10=20+33,12=20@@=0A=20=20*=0A=20=20*/=0A=20=0A=
+=0A=20#ifndef=20INC_ARCH=0A=20#define=20INC_ARCH=0A=20=0A-#include=20=
<limits.h>=0A+#include=20"config.h"=0A+=0A=20/*=0A=20=20*=20Each=20=
record=20in=20this=20file=20represents=20an=20architecture.=0A=20=20*=20=
Each=20record=20contains=20the=20following=20fields:=0A@@=20-49,337=20=
+54,28=20@@=0A=20=20*=20=20=20=20=20=20typedef=20=20=20=20=20=20=20=20=20=
{sys=20dependent=20type}=20sockopt_len_t=0A=20=20*/=0A=20=0A-#ifdef=20=
_AIX=0A-#ifdef=20_IBMR2=0A-#ifdef=20_POWER=0A-#define=20ARCH_POWER_AIX=0A=
-#endif=0A-#endif=0A-#endif=0A-=0A-#ifdef=20__alpha__=0A-#ifdef=20=
__linux__=0A-#define=20ARCH_ALPHA_LINUX=0A-#endif=0A-#endif=20/*=20=
__alpha__=20*/=0A-=0A-#ifdef=20__ia64__=0A-#ifdef=20__linux__=0A-#define=20=
ARCH_IA64_LINUX=0A-#endif=0A-#endif=20/*=20__ia64__=20*/=0A-=0A-#ifdef=20=
__i386__=0A-#ifdef=20__bsdi__=0A-#define=20ARCH_PC_BSDI=0A-#endif=0A-=0A=
-#ifdef=20__FreeBSD__=0A-#if=20__FreeBSD__=20=3D=3D=204=0A-#define=20=
ARCH_PC_FREEBSD4=0A+#ifdef=20WORDS_BIGENDIAN=0A+#define=20=20=20=20=20=20=
=20=20=20ARCH_ENDIAN=20=20=20=20=200x00000000=0A=20#else=0A-#define=20=
ARCH_PC_FREEBSD3=0A-#endif=0A-#endif=0A-=0A-#ifdef=20__linux__=0A=
-#define=20ARCH_PC_LINUX=0A-#endif=0A-=0A-#ifdef=20__svr4__=0A-#define=20=
ARCH_PC_SOLARIS=0A-#endif=0A-#endif=20/*=20__i386__=20*/=0A-=0A-#ifdef=20=
__ppc__=0A-#ifdef=20__APPLE__=0A-#ifdef=20__MACH__=0A-#define=20=
ARCH_PPC_DARWIN=0A-#endif=0A-#endif=0A-#endif=0A-=0A-#ifdef=20__sparc__=0A=
-#ifdef=20__svr4__=0A-#define=20ARCH_SPARC_SOLARIS=0A-#endif=0A-=0A=
-#ifdef=20=20__linux__=0A-#define=20ARCH_SPARC_LINUX=0A-#endif=0A-=0A=
-#ifdef=20=20__sun__=0A-#ifndef=20__svr4__=0A-#define=20ARCH_SPARC_SUNOS=0A=
-#endif=0A-#endif=0A-=0A-#endif=09/*=20__sparc__=20*/=0A-=0A-#ifdef=20=
__sgi=0A-#define=20ARCH_SGI_IRIX=0A-#endif=0A-=0A-#ifdef=20__m68k__=0A-=0A=
-#ifdef=20__NetBSD__=0A-#define=20ARCH_M68K_NETBSD=0A-#endif=0A-=0A=
-#endif=20/*=20__m68k=20*/=0A-=0A-#undef=20=20=20=20=20=20=20=20=20=20=
INTSIZE32=0A-#undef=20=20=20=20=20=20=20=20=20=20INTSIZE64=0A-#undef=20=20=
=20=20=20=20=20=20=20=20INTSIZE16=0A-=0A-=0A-#ifdef=20ARCH_POWER_AIX=0A=
-#define=09=09INTSIZE32=0A-#define=09=09ARCH_SCATTER_CONTROL=0A-#define=09=
=09ARCH_ENDIAN=090x00000000=0A-/*=20Do=20not=20need=20accept,=20=
set/getsockopt=20defines=20*/=0A-#define=20=20=20=20=20=20=20=20=20=
ARCH_SCATTER_SIZE=20=20=20=20=20=20=2064=20/*=20UNKNOWN=20--=20Check=20=
value=20*/=0A-#define=20=20=20=20=20=20=20=20=20HAVE_LRAND48=0A-typedef=20=
=20=20=20=20=20=20=20=20unsigned=20long=20=20sockopt_len_t;=0A-#define=20=
=20=20=20=20=20=20=20=20ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A-#endif=20/*=20=
ARCH_POWER_AIX=20*/=0A-=0A-#ifdef=20ARCH_ALPHA_LINUX=0A-#define=20=20=20=20=
=20=20=20=20=20INTSIZE64=0A-#define=09=09ARCH_SCATTER_CONTROL=20/*=20=
should=20be=20control=20if=20supported=20*/=0A-#define=09=09ARCH_ENDIAN=09=
0x80000080=0A-#define=20=20=20=20=20=20=20=20=20LOC_INLINE=20=20=20=20=20=
=20__inline__=0A-#include=20=20=20=20=20=20=20=20<sys/uio.h>=0A-#define=20=
=20=20=20=20=20=20=20=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=20UIO_MAXIOV=0A=
-#define=20=20=20=20=20=20=20=20=20HAVE_GOOD_VARGS=0A-#define=20=20=20=20=
=20=20=20=20=20HAVE_LRAND48=0A-typedef=20=20=20=20=20=20=20=20=20int=20=20=
=20=20=20sockopt_len_t;=0A-/*=20Already=20defined=20in=20linux=0A-=20=20=20=
typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20socklen_t;=0A-*/=0A=
-/*=20this=20define=20is=20needed=20for=20glibc2.1=20but=20should=20be=20=
turned=20off=20for=20glibc2.0=20and=20earlier.=20*/=0A-#define=20=20=20=20=
=20=20=20=20=20HAVE_STDINT_H=0A-#define=20=20=20=20=20=20=20=20=20=
ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A-#endif=20/*=20ARCH_ALPHA_LINUX=20*/=0A=
-=0A-#ifdef=20ARCH_IA64_LINUX=0A-#define=20=20=20=20=20=20=20=20=20=
INTSIZE64=0A-#define=09=09ARCH_SCATTER_CONTROL=20/*=20should=20be=20=
control=20if=20supported=20*/=0A=20#define=09=09ARCH_ENDIAN=090x80000080=0A=
-#define=20=20=20=20=20=20=20=20=20LOC_INLINE=20=20=20=20=20=20=
__inline__=0A-#include=20=20=20=20=20=20=20=20<sys/uio.h>=0A-#define=20=20=
=20=20=20=20=20=20=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=20UIO_MAXIOV=0A=
-#define=20=20=20=20=20=20=20=20=20HAVE_GOOD_VARGS=0A-#define=20=20=20=20=
=20=20=20=20=20HAVE_LRAND48=0A-typedef=20=20=20=20=20=20=20=20=20int=20=20=
=20=20=20sockopt_len_t;=0A-/*=20Already=20defined=20in=20linux=0A-=20=20=20=
typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20socklen_t;=0A-*/=0A=
-/*=20this=20define=20is=20needed=20for=20glibc2.1=20but=20should=20be=20=
turned=20off=20for=20glibc2.0=20and=20earlier.=20*/=0A-#define=20=20=20=20=
=20=20=20=20=20HAVE_STDINT_H=0A-#define=20=20=20=20=20=20=20=20=20=
ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A-#endif=20/*=20ARCH_ALPHA_LINUX=20*/=0A=
-=0A-#ifdef=20ARCH_PC_BSDI=0A-#define=20=20=20=20=20=20=20=20=20=
INTSIZE32=0A-#define=09=09ARCH_SCATTER_CONTROL=0A-#define=09=09=
ARCH_ENDIAN=090x80000080=0A-#define=20=20=20=20=20=20=20=20=20LOC_INLINE=20=
=20=20=20=20=20__inline__=0A-#include=20=20=20=20=20=20=20=20=
<sys/types.h>=0A-#include=09<sys/uio.h>=0A-#define=20=20=20=20=20=20=20=20=
=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=201024=20/*=20Should=20be=20=
UIO_MAXIOV=20but=20there=20is=20a=20problem=20is=20sys/uio.h=20*/=0A=
-#define=20=20=20=20=20=20=20=20=20HAVE_LRAND48=0A-typedef=20=20=20=20=20=
=20=20=20=20size_t=20=20sockopt_len_t;=0A-/*=20Already=20defined=20in=20=
BSDI=0A-=20=20=20typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20=20=20=
socklen_t;=0A-*/=0A-#define=20=20=20=20=20=20=20=20=20ERR_TIMEDOUT=20=20=20=
=20ETIMEDOUT=0A-#endif=20/*=20ARCH_PC_BSDI=20*/=0A-=0A-#ifdef=20=
ARCH_PC_FREEBSD4=0A-#define=09=09INTSIZE32=0A-#define=09=09=
ARCH_SCATTER_CONTROL=0A-#define=09=09ARCH_ENDIAN=090x80000080=0A-#define=20=
=20=20=20=20=20=20=20=20LOC_INLINE=20=20=20=20=20=20__inline__=0A=
-#include=20=20=20=20=20=20=20=20<sys/types.h>=0A-#include=09<sys/uio.h>=0A=
-#define=20=20=20=20=20=20=20=20=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=20=
1024=20/*=20should=20be=20UIO_MAXIOV=20but=20it=20isn't=20actually=20=
declared=20in=20system=20includes=20*/=0A-#define=20=20=20=20=20=20=20=20=
=20HAVE_GOOD_VARGS=0A-#define=20=20=20=20=20=20=20=20=20HAVE_LRAND48=0A=
-typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20sockopt_len_t;=0A=
-/*=20Already=20defined=20in=20freebsd=204.0=0A-=20=20typedef=20=20=20=20=
=20=20=20=20=20u_int32_t=20=20=20socklen_t;=0A-*/=0A-#define=20=20=20=20=20=
=20=20=20=20ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A-#endif=20/*=20=
ARCH_PC_FREEBSD=20*/=0A-=0A-#ifdef=20ARCH_PC_FREEBSD3=0A-#define=09=09=
INTSIZE32=0A-#define=09=09ARCH_SCATTER_CONTROL=0A-#define=09=09=
ARCH_ENDIAN=090x80000080=0A-#define=20=20=20=20=20=20=20=20=20LOC_INLINE=20=
=20=20=20=20=20__inline__=0A-#include=20=20=20=20=20=20=20=20=
<sys/types.h>=0A-#include=09<sys/uio.h>=0A-#define=20=20=20=20=20=20=20=20=
=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=201024=20/*=20should=20be=20=
UIO_MAXIOV=20but=20it=20isn't=20actually=20declared=20in=20system=20=
includes=20*/=0A-#define=20=20=20=20=20=20=20=20=20HAVE_GOOD_VARGS=0A=
-#define=20=20=20=20=20=20=20=20=20HAVE_LRAND48=0A-typedef=20=20=20=20=20=
=20=20=20=20int=20=20=20=20=20sockopt_len_t;=0A-typedef=20=20=20=20=20=20=
=20=20=20u_int32_t=20=20=20socklen_t;=0A-#define=20=20=20=20=20=20=20=20=20=
ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A-#endif=20/*=20ARCH_PC_FREEBSD3=20*/=0A=
-=0A-#ifdef=20ARCH_PC_LINUX=0A-#define=20=20=20=20=20=20=20=20=20=
INTSIZE32=0A-#define=09=09ARCH_SCATTER_CONTROL=20/*=20should=20be=20=
control=20if=20supported=20*/=0A-#define=09=09ARCH_ENDIAN=090x80000080=0A=
-#define=20=20=20=20=20=20=20=20=20LOC_INLINE=20=20=20=20=20=20=
__inline__=0A-#include=20=20=20=20=20=20=20=20<sys/uio.h>=0A-#define=20=20=
=20=20=20=20=20=20=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=20UIO_MAXIOV=0A=
-#define=20=20=20=20=20=20=20=20=20HAVE_GOOD_VARGS=0A-#define=20=20=20=20=
=20=20=20=20=20HAVE_LRAND48=0A-typedef=20=20=20=20=20=20=20=20=20int=20=20=
=20=20=20sockopt_len_t;=0A-/*=20Already=20defined=20in=20linux=0A-=20=20=20=
typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20socklen_t;=0A-*/=0A=
-/*=20this=20define=20is=20needed=20for=20glibc2.1=20but=20should=20be=20=
turned=20off=20for=20glibc2.0=20and=20earlier.=20*/=0A-#define=20=20=20=20=
=20=20=20=20=20HAVE_STDINT_H=0A-#define=20=20=20=20=20=20=20=20=20=
ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A-#endif=20/*=20ARCH_PC_LINUX=20*/=0A=
+#endif=0A=20=0A-#ifdef=20ARCH_PPC_DARWIN=0A-#define=20=20=20=20=20=20=20=
=20=20INTSIZE32=0A-#define=20=20=20=20=20=20=20=20=20=
ARCH_SCATTER_CONTROL=0A-#define=20=20=20=20=20=20=20=20=20ARCH_ENDIAN=20=20=
=20=20=200x00000000=0A=20#define=20=20=20=20=20=20=20=20=20LOC_INLINE=20=20=
=20=20=20=20__inline__=0A-#include=20=20=20=20=20=20=20=20<sys/types.h>=0A=
-#include=20=20=20=20=20=20=20=20<sys/uio.h>=0A-#define=20=20=20=20=20=20=
=20=20=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=201024=20/*=20Should=20be=20=
UIO_MAXIOV=20when=20defining=20KERNEL=20before=20including=20uio.h=20*/=0A=
-#define=20=20=20=20=20=20=20=20=20HAVE_GOOD_VARGS=0A-typedef=20=20=20=20=
=20=20=20=20=20int=20sockopt_len_t;=0A-typedef=20=20=20=20=20=20=20=20=20=
int=20socklen_t;=0A-#define=20=20=20=20=20=20=20=20=20ERR_TIMEDOUT=20=20=20=
=20ETIMEDOUT=0A-#endif=20=20/*=20ARCH_PPC_DARWIN=20*/=0A-=0A=20=0A=
-#ifdef=20ARCH_PC_SOLARIS=0A-#define=20=20=20=20=20=20=20=20=20INTSIZE32=0A=
-#define=20=20=20=20=20=20=20=20=20ARCH_SCATTER_ACCRIGHTS=0A-#define=20=20=
=20=20=20=20=20=20=20ARCH_ENDIAN=20=20=20=20=200x80000080=0A-#define=20=20=
=20=20=20=20=20=20=20LOC_INLINE=0A-#include=20=20=20=20=20=20=20=20=
<sys/socket.h>=0A+#ifdef=20MSG_MAXIOVLEN=0A=20#define=20=20=20=20=20=20=20=
=20=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=20MSG_MAXIOVLEN=0A-#define=20=20=
=20=20=20=20=20=20=20BSD_COMP=20=0A-#define=20=20=20=20=20=20=20=20=20=
HAVE_LRAND48=0A-typedef=20=20=20=20=20=20=20=20=20size_t=20=20=
sockopt_len_t;=0A-#ifdef=20NEED_SOCKLEN_T=0A-/*=20Already=20defined=20in=20=
solaris=205.7,=20maybe=20needed=20for=20earlier=20versions=20*/=0A-=20=20=
=20typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20socklen_t;=0A=
-#endif=20/*=20NEED_SOCKLEN_T=20*/=0A-/*=20this=20define=20is=20needed=20=
for=20solaris=205.[67]=20but=20maybe=20should=20be=20turned=20off=20for=20=
earlier.=20*/=0A-#define=20=20=20=20=20=20=20=20=20HAVE_SYS_INTTYPES_H=0A=
-#define=20=20=20=20=20=20=20=20=20ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A=
+#else=0A+#define=20=20=20=20=20=20=20=20=20ARCH_SCATTER_SIZE=20=20=20=20=
=20=20=201024=0A=20#endif=0A=20=0A-#ifdef=09ARCH_SPARC_SOLARIS=0A=
-#define=20=20=20=20=20=20=20=20=20INTSIZE32=0A-#define=09=09=
ARCH_SCATTER_ACCRIGHTS=0A-#define=09=09ARCH_ENDIAN=090x00000000=0A=
-#define=20=20=20=20=20=20=20=20=20LOC_INLINE=20=20=20=20=20=20=0A=
-#include=20=20=20=20=20=20=20=20<sys/socket.h>=0A-#define=20=20=20=20=20=
=20=20=20=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=20MSG_MAXIOVLEN=0A=
-#define=20=20=20=20=20=20=20=20=20BSD_COMP=20=0A-#define=20=20=20=20=20=20=
=20=20=20HAVE_LRAND48=0A-typedef=20=20=20=20=20=20=20=20=20size_t=20=20=
sockopt_len_t;=0A-#ifdef=20NEED_SOCKLEN_T=0A-/*=20Already=20defined=20in=20=
solaris=205.7,=20maybe=20needed=20for=20earlier=20versions=20*/=0A-=20=20=
=20typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20socklen_t;=0A=
-#endif=20/*=20NEED_SOCKLEN_T=20*/=0A-#define=20=20=20=20=20=20=20=20=20=
HAVE_SYS_INTTYPES_H=0A-#define=20=20=20=20=20=20=20=20=20ERR_TIMEDOUT=20=20=
=20=20ETIMEDOUT=0A-#endif=20/*=20ARCH_SUN_UNIX=20*/=0A-=0A-#ifdef=20=
ARCH_SPARC_LINUX=0A-#define=20=20=20=20=20=20=20=20=20INTSIZE32=0A=
-#define=09=09ARCH_SCATTER_CONTROL=20/*=20should=20be=20control=20if=20=
supported=20*/=0A-#define=09=09ARCH_ENDIAN=090x00000000=0A-#define=20=20=20=
=20=20=20=20=20=20LOC_INLINE=20=20=20=20=20=20__inline__=0A-#include=20=20=
=20=20=20=20=20=20<sys/uio.h>=0A-#define=20=20=20=20=20=20=20=20=20=
ARCH_SCATTER_SIZE=20=20=20=20=20=20=20UIO_MAXIOV=0A=20#define=20=20=20=20=
=20=20=20=20=20HAVE_GOOD_VARGS=0A-#define=20=20=20=20=20=20=20=20=20=
HAVE_LRAND48=0A-typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20=
sockopt_len_t;=0A-typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20=
socklen_t;=0A-#define=20=20=20=20=20=20=20=20=20ERR_TIMEDOUT=20=20=20=20=
ETIMEDOUT=0A-#endif=20/*=20ARCH_SPARC_LINUX=20*/=0A-=0A-#ifdef=09=
ARCH_SPARC_SUNOS=0A-#define=20=20=20=20=20=20=20=20=20INTSIZE32=0A=
-#define=09=09ARCH_SCATTER_NONE=0A-#define=09=09ARCH_ENDIAN=090x00000000=0A=
-#define=20=20=20=20=20=20=20=20=20LOC_INLINE=20=20=20=20=20=20=0A=
-typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20sockopt_len_t;=0A=
-typedef=20=20=20=20=20=20=20=20=20int=20=20=20=20=20socklen_t;=0A-/*=20=
HACKS=20to=20fix=20OS=20bugs=20*/=0A-#define=20=20=20=20=20=20=20=20=20=
RAND_MAX=20=20=20=20=20=20=20=202147483647=0A-/*=20This=20size=20is=20=
for=20packing=20several=20messages=20into=20one=20packet=20*/=0A-#define=20=
=20=20=20=20=20=20=20=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=2064=0A=
-#define=20=20=20=20=20=20=20=20=20ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A=
-#endif=20/*=20ARCH_SPARC_SUNOS=20*/=0A-=0A-#ifdef=20ARCH_SGI_IRIX=0A=
-#define=20=20=20=20=20=20=20=20=20INTSIZE32=0A-#define=09=09=
ARCH_SCATTER_ACCRIGHTS=0A-#define=09=09ARCH_ENDIAN=090x00000000=0A=
-#define=20=20=20=20=20=20=20=20=20LOC_INLINE=20=20=20=20=20=20=0A-/*=20=
Irix=20only=20appears=20to=20define=20IOV_MAX=20through=20the=20runtime=0A=
-=20*=20function=20'sysconf'=20and=20does=20not=20have=20an=20=
includeable=20variable=0A-=20*=20as=20best=20as=20I=20can=20tell.=20The=20=
man=20page=20says=20all=20irix=20have=20at=0A-=20*=20least=20512=0A-=20=
*/=0A-#define=20=20=20=20=20=20=20=20=20ARCH_SCATTER_SIZE=20=20=20=20=20=20=
=20512=0A-#define=20=20=20=20=20=20=20=20=20HAVE_LRAND48=0A-typedef=20=20=
=20=20=20=20=20=20=20int=20=20=20=20=20sockopt_len_t;=0A-typedef=20=20=20=
=20=20=20=20=20=20int=20=20=20=20=20socklen_t;=0A-#define=20=20=20=20=20=20=
=20=20=20ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A-#endif=20/*=20=
ARCH_SGI_UNIX=20*/=0A=20=0A-#ifdef=20ARCH_M68K_NETBSD=0A-#define=20=20=20=
=20=20=20=20=20=20INTSIZE32=20=20=20=20=20=20=20=0A-#define=20=20=20=20=20=
=20=20=20=20ARCH_SCATTER_CONTROL=0A-#define=20=20=20=20=20=20=20=20=20=
ARCH_ENDIAN=20=20=20=20=200x00000000=0A-#define=20=20=20=20=20=20=20=20=20=
LOC_INLINE=20=20=20=20=20=20__inline__=0A-#include=20=20=20=20=20=20=20=20=
<sys/types.h>=0A-#include=20=20=20=20=20=20=20=20<sys/uio.h>=0A-#define=20=
=20=20=20=20=20=20=20=20ARCH_SCATTER_SIZE=09UIO_MAXIOV=0A-#define=20=20=20=
=20=20=20=20=20=20HAVE_GOOD_VARGS=0A-typedef=20=20=20=20=20=20=20=20=20=
int=20sockopt_len_t;=0A-/*=20Already=20defined=0A-typedef=20=20=20=20=20=20=
=20=20=20int=20socklen_t;=20=20*/=0A+#ifndef=20ERR_TIMEDOUT=0A=20#define=20=
=20=20=20=20=20=20=20=20ERR_TIMEDOUT=20=20=20=20ETIMEDOUT=0A-#endif=20=20=
/*=20ARCH_M68K_NETBSD=20*/=0A-=20=0A-#ifdef=20ARCH_PC_WIN95=20=0A=
-#define=20=20=20=20=20=20=20=20=20INTSIZE32=0A-#define=09=09=
ARCH_SCATTER_NONE=0A-#define=09=09ARCH_ENDIAN=090x80000080=0A-#define=20=20=
=20=20=20=20=20=20=20LOC_INLINE=20=20=20=20=20=20=0A-typedef=20=20=20=20=20=
=20=20=20=20unsigned=20long=20=20=20sockopt_len_t;=0A-typedef=20=20=20=20=
=20=20=20=20=20unsigned=20long=20=20=20socklen_t;=0A-#define=20=20=20=20=20=
=20=20=20=20BADCLOCK=0A-/*=20This=20size=20is=20for=20packing=20several=20=
messages=20into=20one=20packet=20*/=0A-#define=20=20=20=20=20=20=20=20=20=
ARCH_SCATTER_SIZE=20=20=20=20=20=20=2064=0A-#define=20=20=20=20=20=20=20=20=
=20ERR_TIMEDOUT=20=20=20=20EAGAIN=0A-#define=20=20=20=20=20=20=20=20=20=
MAXPATHLEN=20=20=20=20=20=20_MAX_PATH=0A-#define=20=20=20=20=20=20=20=20=20=
snprintf=20=20=20=20=20=20=20=20_snprintf=0A-#define=20=20=20=20=20=20=20=
=20=20alloca=20=20=20=20=20=20=20=20=20=20_alloca=0A-#endif=20/*=20ARCH=20=
*/=0A-=0A-/*=20to=20grab=20UINT32_MAX=20definitions=20if=20they=20exist=20=
*/=0A-#ifdef=20HAVE_STDINT_H=0A-#include=20<stdint.h>=0A=20#endif=0A=
-#ifdef=20HAVE_SYS_INTTYPES_H=0A-#include=20<sys/inttypes.h>=0A+=0A=
+#ifndef=20RAND_MAX=0A+#define=20=20=20=20=20=20=20=20=20RAND_MAX=20=20=20=
=20=20=20=20=202147483647=0A=20#endif=0A=20=0A=20#ifdef=20HAVE_LRAND48=0A=
@@=20-388,45=20+84,23=20@@=0A=20#define=20get_rand=20rand=0A=20#endif=0A=20=
=0A-=0A-=0A-#ifdef=20=20INTSIZE64=0A-=0A-#define=20=09int16=09short=0A=
-#define=09=09int32=09int=0A-#ifndef=20UINT32_MAX=0A-#define=20=20=20=20=20=
=20=20=20=20UINT32_MAX=20=20=20=20=20=20UINT_MAX=0A+#ifndef=20byte=0A=
+#define=20byte=20u_int_8=0A=20#endif=0A-#ifndef=20INT32_MAX=0A-#define=20=
=20=20=20=20=20=20=20=20INT32_MAX=20=20=20=20=20=20=20INT_MAX=0A+#ifndef=20=
int16=0A+#define=20int16=20int16_t=0A=20#endif=0A-#endif=20/*=20=
INTSIZE64=20*/=0A-=0A-#ifdef=20=20INTSIZE32=0A-=0A-#define=20=09int16=09=
short=0A-#define=09=09int32=09int=0A-#ifndef=20UINT32_MAX=0A-#define=20=20=
=20=20=20=20=20=20=20UINT32_MAX=20=20=20=20=20=20UINT_MAX=0A+#ifndef=20=
int16u=0A+#define=20int16u=20u_int16_t=0A=20#endif=0A-#ifndef=20=
INT32_MAX=0A-#define=20=20=20=20=20=20=20=20=20INT32_MAX=20=20=20=20=20=20=
=20INT_MAX=0A+#ifndef=20int32=0A+#define=20int32=20int32_t=0A=20#endif=0A=
-=0A-#endif=20/*=20INTSIZE32=20*/=0A-=0A-#ifdef=20=20INTSIZE16=0A=
-#define=20=09int16=09short=0A-#define=09=09int32=09long=0A-#define=20=20=
=20=20=20=20=20=20=20UINT32_MAX=20=20=20=20=20=20ULONG_MAX=0A-#define=20=20=
=20=20=20=20=20=20=20INT32_MAX=20=20=20=20=20=20=20LONG_MAX=0A+#ifndef=20=
int32u=0A+#define=20int32u=20u_int32_t=0A=20#endif=0A=20=0A-/*=20=0A-=20=
*=20Endian=20:=20big=20and=20little=0A-=20*/=0A-=0A-#define=09=09=
ENDIAN_TYPE=09=090x80000080=0A+#define=20=20=20=20=20=20=20=20=20=
ENDIAN_TYPE=20=20=20=20=20=20=20=20=20=20=20=20=200x80000080=0A=20=0A=20=
#define=09=09Get_endian(=20type=20)=09(=20(type)=20&=20=20ENDIAN_TYPE=20=
)=0A=20#define=09=09Set_endian(=20type=20)=09(=20(=20(type)=20&=20=
~ENDIAN_TYPE=20)|=20ARCH_ENDIAN=20)=0A@@=20-437,9=20+111,7=20@@=0A=20=0A=20=
#define=09=09Flip_int32(=20type=20)=09(=20(=20((type)=20>>24)=20&=20=
0x000000ff)=20|=20(=20((type)=20>>=208)=20&=200x0000ff00)=20|=20(=20=
((type)=20<<=208)=20&=200x00ff0000)=20|=20(=20((type)=20<<24)=20&=20=
0xff000000)=20)=0A=20=0A-/*=0A-=20*=20Network=20definitions=0A-=20*/=0A=
+#define=09=09MAX_PACKET_SIZE=09=091472=20/*1472=20=3D=201536-64=20(of=20=
udp)*/=0A=20=0A=20#define=09=09channel=09=09=09int=0A=20#define=09=09=
mailbox=09=09=09int=0A@@=20-458,11=20+130,12=20@@=0A=20=20*=20General=20=
Useful=20Types=0A=20=20*/=0A=20=0A-typedef=20=20=20=20=20=20=20=20=20=
unsigned=20int32=20=20int32u;=0A-typedef=20=20=20=20=20=20=20=20=20=
unsigned=20int16=20=20int16u;=0A-typedef=20=20=20=20=20=20=20=20=20=
unsigned=20char=20=20=20byte;=0A=20typedef=20=20=20=20=20=20=20=20=20=
short=20=20=20=20=20=20=20=20=20=20=20bool;=0A+#ifndef=20TRUE=0A=20=
#define=20=20=20=20=20=20=20=20=20TRUE=20=20=20=20=20=20=20=20=20=20=20=20=
1=0A+#endif=0A+#ifndef=20FALSE=0A=20#define=20=20=20=20=20=20=20=20=20=
FALSE=20=20=20=20=20=20=20=20=20=20=200=0A+#endif=0A=20=0A=20#endif=09/*=20=
INC_ARCH=20*/=0Adiff=20-uN=20daemon/config.guess=20=
daemon.ac/config.guess=0A---=20daemon/config.guess=09Wed=20Dec=2031=20=
19:00:00=201969=0A+++=20daemon.ac/config.guess=09Thu=20Sep=2020=20=
15:44:31=202001=0A@@=20-0,0=20+1,1371=20@@=0A+#!=20/bin/sh=0A+#=20=
Attempt=20to=20guess=20a=20canonical=20system=20name.=0A+#=20=20=20=
Copyright=20(C)=201992,=201993,=201994,=201995,=201996,=201997,=201998,=20=
1999,=202000,=202001=0A+#=20=20=20Free=20Software=20Foundation,=20Inc.=0A=
+=0A+timestamp=3D'2001-04-20'=0A+=0A+#=20This=20file=20is=20free=20=
software;=20you=20can=20redistribute=20it=20and/or=20modify=20it=0A+#=20=
under=20the=20terms=20of=20the=20GNU=20General=20Public=20License=20as=20=
published=20by=0A+#=20the=20Free=20Software=20Foundation;=20either=20=
version=202=20of=20the=20License,=20or=0A+#=20(at=20your=20option)=20any=20=
later=20version.=0A+#=0A+#=20This=20program=20is=20distributed=20in=20=
the=20hope=20that=20it=20will=20be=20useful,=20but=0A+#=20WITHOUT=20ANY=20=
WARRANTY;=20without=20even=20the=20implied=20warranty=20of=0A+#=20=
MERCHANTABILITY=20or=20FITNESS=20FOR=20A=20PARTICULAR=20PURPOSE.=20=20=
See=20the=20GNU=0A+#=20General=20Public=20License=20for=20more=20=
details.=0A+#=0A+#=20You=20should=20have=20received=20a=20copy=20of=20=
the=20GNU=20General=20Public=20License=0A+#=20along=20with=20this=20=
program;=20if=20not,=20write=20to=20the=20Free=20Software=0A+#=20=
Foundation,=20Inc.,=2059=20Temple=20Place=20-=20Suite=20330,=20Boston,=20=
MA=2002111-1307,=20USA.=0A+#=0A+#=20As=20a=20special=20exception=20to=20=
the=20GNU=20General=20Public=20License,=20if=20you=0A+#=20distribute=20=
this=20file=20as=20part=20of=20a=20program=20that=20contains=20a=0A+#=20=
configuration=20script=20generated=20by=20Autoconf,=20you=20may=20=
include=20it=20under=0A+#=20the=20same=20distribution=20terms=20that=20=
you=20use=20for=20the=20rest=20of=20that=20program.=0A+=0A+#=20Written=20=
by=20Per=20Bothner=20<bothner@cygnus.com>.=0A+#=20Please=20send=20=
patches=20to=20<config-patches@gnu.org>.=0A+#=0A+#=20This=20script=20=
attempts=20to=20guess=20a=20canonical=20system=20name=20similar=20to=0A=
+#=20config.sub.=20=20If=20it=20succeeds,=20it=20prints=20the=20system=20=
name=20on=20stdout,=20and=0A+#=20exits=20with=200.=20=20Otherwise,=20it=20=
exits=20with=201.=0A+#=0A+#=20The=20plan=20is=20that=20this=20can=20be=20=
called=20by=20configure=20scripts=20if=20you=0A+#=20don't=20specify=20an=20=
explicit=20build=20system=20type.=0A+=0A+me=3D`echo=20"$0"=20|=20sed=20=
-e=20's,.*/,,'`=0A+=0A+usage=3D"\=0A+Usage:=20$0=20[OPTION]=0A+=0A=
+Output=20the=20configuration=20name=20of=20the=20system=20\`$me'=20is=20=
run=20on.=0A+=0A+Operation=20modes:=0A+=20=20-h,=20--help=20=20=20=20=20=20=
=20=20=20print=20this=20help,=20then=20exit=0A+=20=20-t,=20--time-stamp=20=
=20=20print=20date=20of=20last=20modification,=20then=20exit=0A+=20=20=
-v,=20--version=20=20=20=20=20=20print=20version=20number,=20then=20exit=0A=
+=0A+Report=20bugs=20and=20patches=20to=20<config-patches@gnu.org>."=0A+=0A=
+version=3D"\=0A+GNU=20config.guess=20($timestamp)=0A+=0A+Originally=20=
written=20by=20Per=20Bothner.=0A+Copyright=20(C)=201992,=2093,=2094,=20=
95,=2096,=2097,=2098,=2099,=202000=0A+Free=20Software=20Foundation,=20=
Inc.=0A+=0A+This=20is=20free=20software;=20see=20the=20source=20for=20=
copying=20conditions.=20=20There=20is=20NO=0A+warranty;=20not=20even=20=
for=20MERCHANTABILITY=20or=20FITNESS=20FOR=20A=20PARTICULAR=20PURPOSE."=0A=
+=0A+help=3D"=0A+Try=20\`$me=20--help'=20for=20more=20information."=0A+=0A=
+#=20Parse=20command=20line=0A+while=20test=20$#=20-gt=200=20;=20do=0A+=20=
=20case=20$1=20in=0A+=20=20=20=20--time-stamp=20|=20--time*=20|=20-t=20)=0A=
+=20=20=20=20=20=20=20echo=20"$timestamp"=20;=20exit=200=20;;=0A+=20=20=20=
=20--version=20|=20-v=20)=0A+=20=20=20=20=20=20=20echo=20"$version"=20;=20=
exit=200=20;;=0A+=20=20=20=20--help=20|=20--h*=20|=20-h=20)=0A+=20=20=20=20=
=20=20=20echo=20"$usage";=20exit=200=20;;=0A+=20=20=20=20--=20)=20=20=20=20=
=20#=20Stop=20option=20processing=0A+=20=20=20=20=20=20=20shift;=20break=20=
;;=0A+=20=20=20=20-=20)=09#=20Use=20stdin=20as=20input.=0A+=20=20=20=20=20=
=20=20break=20;;=0A+=20=20=20=20-*=20)=0A+=20=20=20=20=20=20=20echo=20=
"$me:=20invalid=20option=20$1$help"=20>&2=0A+=20=20=20=20=20=20=20exit=20=
1=20;;=0A+=20=20=20=20*=20)=0A+=20=20=20=20=20=20=20break=20;;=0A+=20=20=
esac=0A+done=0A+=0A+if=20test=20$#=20!=3D=200;=20then=0A+=20=20echo=20=
"$me:=20too=20many=20arguments$help"=20>&2=0A+=20=20exit=201=0A+fi=0A+=0A=
+=0A+dummy=3Ddummy-$$=0A+trap=20'rm=20-f=20$dummy.c=20$dummy.o=20=
$dummy.rel=20$dummy;=20exit=201'=201=202=2015=0A+=0A+#=20CC_FOR_BUILD=20=
--=20compiler=20used=20by=20this=20script.=0A+#=20Historically,=20=
`CC_FOR_BUILD'=20used=20to=20be=20named=20`HOST_CC'.=20We=20still=0A+#=20=
use=20`HOST_CC'=20if=20defined,=20but=20it=20is=20deprecated.=0A+=0A=
+case=20$CC_FOR_BUILD,$HOST_CC,$CC=20in=0A+=20,,)=20=20=20=20echo=20"int=20=
dummy(){}"=20>=20$dummy.c=0A+=09for=20c=20in=20cc=20gcc=20c89=20;=20do=0A=
+=09=20=20($c=20$dummy.c=20-c=20-o=20$dummy.o)=20>/dev/null=202>&1=0A+=09=
=20=20if=20test=20$?=20=3D=200=20;=20then=0A+=09=20=20=20=20=20=
CC_FOR_BUILD=3D"$c";=20break=0A+=09=20=20fi=0A+=09done=0A+=09rm=20-f=20=
$dummy.c=20$dummy.o=20$dummy.rel=0A+=09if=20test=20x"$CC_FOR_BUILD"=20=3D=20=
x=20;=20then=0A+=09=20=20CC_FOR_BUILD=3Dno_compiler_found=0A+=09fi=0A+=09=
;;=0A+=20,,*)=20=20=20CC_FOR_BUILD=3D$CC=20;;=0A+=20,*,*)=20=20=
CC_FOR_BUILD=3D$HOST_CC=20;;=0A+esac=0A+=0A+#=20This=20is=20needed=20to=20=
find=20uname=20on=20a=20Pyramid=20OSx=20when=20run=20in=20the=20BSD=20=
universe.=0A+#=20(ghazi@noc.rutgers.edu=208/24/94.)=0A+if=20(test=20-f=20=
/.attbin/uname)=20>/dev/null=202>&1=20;=20then=0A+=09PATH=3D$PATH:/.attbin=
=20;=20export=20PATH=0A+fi=0A+=0A+UNAME_MACHINE=3D`(uname=20-m)=20=
2>/dev/null`=20||=20UNAME_MACHINE=3Dunknown=0A+UNAME_RELEASE=3D`(uname=20=
-r)=202>/dev/null`=20||=20UNAME_RELEASE=3Dunknown=0A=
+UNAME_SYSTEM=3D`(uname=20-s)=202>/dev/null`=20=20||=20=
UNAME_SYSTEM=3Dunknown=0A+UNAME_VERSION=3D`(uname=20-v)=202>/dev/null`=20=
||=20UNAME_VERSION=3Dunknown=0A+=0A+#=20Note:=20order=20is=20significant=20=
-=20the=20case=20branches=20are=20not=20exclusive.=0A+=0A+case=20=
"${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}"=20=
in=0A+=20=20=20=20*:NetBSD:*:*)=0A+=09#=20Netbsd=20(nbsd)=20targets=20=
should=20(where=20applicable)=20match=20one=20or=0A+=09#=20more=20of=20=
the=20tupples:=20*-*-netbsdelf*,=20*-*-netbsdaout*,=0A+=09#=20=
*-*-netbsdecoff*=20and=20*-*-netbsd*.=20=20For=20targets=20that=20=
recently=0A+=09#=20switched=20to=20ELF,=20*-*-netbsd*=20would=20select=20=
the=20old=0A+=09#=20object=20file=20format.=20=20This=20provides=20both=20=
forward=0A+=09#=20compatibility=20and=20a=20consistent=20mechanism=20for=20=
selecting=20the=0A+=09#=20object=20file=20format.=0A+=09#=20Determine=20=
the=20machine/vendor=20(is=20the=20vendor=20relevant).=0A+=09case=20=
"${UNAME_MACHINE}"=20in=0A+=09=20=20=20=20amiga)=20machine=3Dm68k-unknown=20=
;;=0A+=09=20=20=20=20arm32)=20machine=3Darm-unknown=20;;=0A+=09=20=20=20=20=
atari*)=20machine=3Dm68k-atari=20;;=0A+=09=20=20=20=20sun3*)=20=
machine=3Dm68k-sun=20;;=0A+=09=20=20=20=20mac68k)=20machine=3Dm68k-apple=20=
;;=0A+=09=20=20=20=20macppc)=20machine=3Dpowerpc-apple=20;;=0A+=09=20=20=20=
=20hp3[0-9][05])=20machine=3Dm68k-hp=20;;=0A+=09=20=20=20=20=
ibmrt|romp-ibm)=20machine=3Dromp-ibm=20;;=0A+=09=20=20=20=20*)=20=
machine=3D${UNAME_MACHINE}-unknown=20;;=0A+=09esac=0A+=09#=20The=20=
Operating=20System=20including=20object=20format,=20if=20it=20has=20=
switched=0A+=09#=20to=20ELF=20recently,=20or=20will=20in=20the=20future.=0A=
+=09case=20"${UNAME_MACHINE}"=20in=0A+=09=20=20=20=20=
i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next6=
8k|pc532|sun3*|x68k)=0A+=09=09if=20echo=20__ELF__=20|=20$CC_FOR_BUILD=20=
-E=20-=202>/dev/null=20\=0A+=09=09=09|=20grep=20__ELF__=20>/dev/null=0A+=09=
=09then=0A+=09=09=20=20=20=20#=20Once=20all=20utilities=20can=20be=20=
ECOFF=20(netbsdecoff)=20or=20a.out=20(netbsdaout).=0A+=09=09=20=20=20=20=
#=20Return=20netbsd=20for=20either.=20=20FIX?=0A+=09=09=20=20=20=20=
os=3Dnetbsd=0A+=09=09else=0A+=09=09=20=20=20=20os=3Dnetbsdelf=0A+=09=09=
fi=0A+=09=09;;=0A+=09=20=20=20=20*)=0A+=09=20=20=20=20=20=20=20=20=
os=3Dnetbsd=0A+=09=09;;=0A+=09esac=0A+=09#=20The=20OS=20release=0A+=09=
release=3D`echo=20${UNAME_RELEASE}|sed=20-e=20's/[-_].*/\./'`=0A+=09#=20=
Since=20CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:=0A+=09#=20=
contains=20redundant=20information,=20the=20shorter=20form:=0A+=09#=20=
CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM=20is=20used.=0A+=09echo=20=
"${machine}-${os}${release}"=0A+=09exit=200=20;;=0A+=20=20=20=20=
alpha:OSF1:*:*)=0A+=09if=20test=20$UNAME_RELEASE=20=3D=20"V4.0";=20then=0A=
+=09=09UNAME_RELEASE=3D`/usr/sbin/sizer=20-v=20|=20awk=20'{print=20$3}'`=0A=
+=09fi=0A+=09#=20A=20Vn.n=20version=20is=20a=20released=20version.=0A+=09=
#=20A=20Tn.n=20version=20is=20a=20released=20field=20test=20version.=0A+=09=
#=20A=20Xn.n=20version=20is=20an=20unreleased=20experimental=20=
baselevel.=0A+=09#=201.2=20uses=20"1.2"=20for=20uname=20-r.=0A+=09cat=20=
<<EOF=20>$dummy.s=0A+=09.data=0A+\$Lformat:=0A+=09.byte=20=
37,100,45,37,120,10,0=09#=20"%d-%x\n"=0A+=0A+=09.text=0A+=09.globl=20=
main=0A+=09.align=204=0A+=09.ent=20main=0A+main:=0A+=09.frame=20=
\$30,16,\$26,0=0A+=09ldgp=20\$29,0(\$27)=0A+=09.prologue=201=0A+=09.long=20=
0x47e03d80=20#=20implver=20\$0=0A+=09lda=20\$2,-1=0A+=09.long=20=
0x47e20c21=20#=20amask=20\$2,\$1=0A+=09lda=20\$16,\$Lformat=0A+=09mov=20=
\$0,\$17=0A+=09not=20\$1,\$18=0A+=09jsr=20\$26,printf=0A+=09ldgp=20=
\$29,0(\$26)=0A+=09mov=200,\$16=0A+=09jsr=20\$26,exit=0A+=09.end=20main=0A=
+EOF=0A+=09$CC_FOR_BUILD=20$dummy.s=20-o=20$dummy=202>/dev/null=0A+=09if=20=
test=20"$?"=20=3D=200=20;=20then=0A+=09=09case=20`./$dummy`=20in=0A+=09=09=
=090-0)=0A+=09=09=09=09UNAME_MACHINE=3D"alpha"=0A+=09=09=09=09;;=0A+=09=09=
=091-0)=0A+=09=09=09=09UNAME_MACHINE=3D"alphaev5"=0A+=09=09=09=09;;=0A+=09=
=09=091-1)=0A+=09=09=09=09UNAME_MACHINE=3D"alphaev56"=0A+=09=09=09=09;;=0A=
+=09=09=091-101)=0A+=09=09=09=09UNAME_MACHINE=3D"alphapca56"=0A+=09=09=09=
=09;;=0A+=09=09=092-303)=0A+=09=09=09=09UNAME_MACHINE=3D"alphaev6"=0A+=09=
=09=09=09;;=0A+=09=09=092-307)=0A+=09=09=09=09UNAME_MACHINE=3D"alphaev67"=0A=
+=09=09=09=09;;=0A+=09=09esac=0A+=09fi=0A+=09rm=20-f=20$dummy.s=20$dummy=0A=
+=09echo=20${UNAME_MACHINE}-dec-osf`echo=20${UNAME_RELEASE}=20|=20sed=20=
-e=20's/^[VTX]//'=20|=20tr=20'ABCDEFGHIJKLMNOPQRSTUVWXYZ'=20=
'abcdefghijklmnopqrstuvwxyz'`=0A+=09exit=200=20;;=0A+=20=20=20=20Alpha\=20=
*:Windows_NT*:*)=0A+=09#=20How=20do=20we=20know=20it's=20Interix=20=
rather=20than=20the=20generic=20POSIX=20subsystem?=0A+=09#=20Should=20we=20=
change=20UNAME_MACHINE=20based=20on=20the=20output=20of=20uname=20=
instead=0A+=09#=20of=20the=20specific=20Alpha=20model?=0A+=09echo=20=
alpha-pc-interix=0A+=09exit=200=20;;=0A+=20=20=20=20=
21064:Windows_NT:50:3)=0A+=09echo=20alpha-dec-winnt3.5=0A+=09exit=200=20=
;;=0A+=20=20=20=20Amiga*:UNIX_System_V:4.0:*)=0A+=09echo=20=
m68k-unknown-sysv4=0A+=09exit=200;;=0A+=20=20=20=20amiga:OpenBSD:*:*)=0A=
+=09echo=20m68k-unknown-openbsd${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=
=20=20=20*:[Aa]miga[Oo][Ss]:*:*)=0A+=09echo=20=
${UNAME_MACHINE}-unknown-amigaos=0A+=09exit=200=20;;=0A+=20=20=20=20=
arc64:OpenBSD:*:*)=0A+=09echo=20mips64el-unknown-openbsd${UNAME_RELEASE}=0A=
+=09exit=200=20;;=0A+=20=20=20=20arc:OpenBSD:*:*)=0A+=09echo=20=
mipsel-unknown-openbsd${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
hkmips:OpenBSD:*:*)=0A+=09echo=20mips-unknown-openbsd${UNAME_RELEASE}=0A=
+=09exit=200=20;;=0A+=20=20=20=20pmax:OpenBSD:*:*)=0A+=09echo=20=
mipsel-unknown-openbsd${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
sgi:OpenBSD:*:*)=0A+=09echo=20mips-unknown-openbsd${UNAME_RELEASE}=0A+=09=
exit=200=20;;=0A+=20=20=20=20wgrisc:OpenBSD:*:*)=0A+=09echo=20=
mipsel-unknown-openbsd${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
*:OS/390:*:*)=0A+=09echo=20i370-ibm-openedition=0A+=09exit=200=20;;=0A+=20=
=20=20=20arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)=0A+=09echo=20=
arm-acorn-riscix${UNAME_RELEASE}=0A+=09exit=200;;=0A+=20=20=20=20=
SR2?01:HI-UX/MPP:*:*=20|=20SR8000:HI-UX/MPP:*:*)=0A+=09echo=20=
hppa1.1-hitachi-hiuxmpp=0A+=09exit=200;;=0A+=20=20=20=20=
Pyramid*:OSx*:*:*=20|=20MIS*:OSx*:*:*=20|=20MIS*:SMP_DC-OSx*:*:*)=0A+=09=
#=20akee@wpdis03.wpafb.af.mil=20(Earle=20F.=20Ake)=20contributed=20MIS=20=
and=20NILE.=0A+=09if=20test=20"`(/bin/universe)=202>/dev/null`"=20=3D=20=
att=20;=20then=0A+=09=09echo=20pyramid-pyramid-sysv3=0A+=09else=0A+=09=09=
echo=20pyramid-pyramid-bsd=0A+=09fi=0A+=09exit=200=20;;=0A+=20=20=20=20=
NILE*:*:*:dcosx)=0A+=09echo=20pyramid-pyramid-svr4=0A+=09exit=200=20;;=0A=
+=20=20=20=20sun4H:SunOS:5.*:*)=0A+=09echo=20sparc-hal-solaris2`echo=20=
${UNAME_RELEASE}|sed=20-e=20's/[^.]*//'`=0A+=09exit=200=20;;=0A+=20=20=20=
=20sun4*:SunOS:5.*:*=20|=20tadpole*:SunOS:5.*:*)=0A+=09echo=20=
sparc-sun-solaris2`echo=20${UNAME_RELEASE}|sed=20-e=20's/[^.]*//'`=0A+=09=
exit=200=20;;=0A+=20=20=20=20i86pc:SunOS:5.*:*)=0A+=09echo=20=
i386-pc-solaris2`echo=20${UNAME_RELEASE}|sed=20-e=20's/[^.]*//'`=0A+=09=
exit=200=20;;=0A+=20=20=20=20sun4*:SunOS:6*:*)=0A+=09#=20According=20to=20=
config.sub,=20this=20is=20the=20proper=20way=20to=20canonicalize=0A+=09#=20=
SunOS6.=20=20Hard=20to=20guess=20exactly=20what=20SunOS6=20will=20be=20=
like,=20but=0A+=09#=20it's=20likely=20to=20be=20more=20like=20Solaris=20=
than=20SunOS4.=0A+=09echo=20sparc-sun-solaris3`echo=20=
${UNAME_RELEASE}|sed=20-e=20's/[^.]*//'`=0A+=09exit=200=20;;=0A+=20=20=20=
=20sun4*:SunOS:*:*)=0A+=09case=20"`/usr/bin/arch=20-k`"=20in=0A+=09=20=20=
=20=20Series*|S4*)=0A+=09=09UNAME_RELEASE=3D`uname=20-v`=0A+=09=09;;=0A+=09=
esac=0A+=09#=20Japanese=20Language=20versions=20have=20a=20version=20=
number=20like=20`4.1.3-JL'.=0A+=09echo=20sparc-sun-sunos`echo=20=
${UNAME_RELEASE}|sed=20-e=20's/-/_/'`=0A+=09exit=200=20;;=0A+=20=20=20=20=
sun3*:SunOS:*:*)=0A+=09echo=20m68k-sun-sunos${UNAME_RELEASE}=0A+=09exit=20=
0=20;;=0A+=20=20=20=20sun*:*:4.2BSD:*)=0A+=09UNAME_RELEASE=3D`(head=20-1=20=
/etc/motd=20|=20awk=20'{print=20substr($5,1,3)}')=202>/dev/null`=0A+=09=
test=20"x${UNAME_RELEASE}"=20=3D=20"x"=20&&=20UNAME_RELEASE=3D3=0A+=09=
case=20"`/bin/arch`"=20in=0A+=09=20=20=20=20sun3)=0A+=09=09echo=20=
m68k-sun-sunos${UNAME_RELEASE}=0A+=09=09;;=0A+=09=20=20=20=20sun4)=0A+=09=
=09echo=20sparc-sun-sunos${UNAME_RELEASE}=0A+=09=09;;=0A+=09esac=0A+=09=
exit=200=20;;=0A+=20=20=20=20aushp:SunOS:*:*)=0A+=09echo=20=
sparc-auspex-sunos${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
atari*:OpenBSD:*:*)=0A+=09echo=20m68k-unknown-openbsd${UNAME_RELEASE}=0A=
+=09exit=200=20;;=0A+=20=20=20=20#=20The=20situation=20for=20MiNT=20is=20=
a=20little=20confusing.=20=20The=20machine=20name=0A+=20=20=20=20#=20can=20=
be=20virtually=20everything=20(everything=20which=20is=20not=0A+=20=20=20=
=20#=20"atarist"=20or=20"atariste"=20at=20least=20should=20have=20a=20=
processor=0A+=20=20=20=20#=20>=20m68000).=20=20The=20system=20name=20=
ranges=20from=20"MiNT"=20over=20"FreeMiNT"=0A+=20=20=20=20#=20to=20the=20=
lowercase=20version=20"mint"=20(or=20"freemint").=20=20Finally=0A+=20=20=20=
=20#=20the=20system=20name=20"TOS"=20denotes=20a=20system=20which=20is=20=
actually=20not=0A+=20=20=20=20#=20MiNT.=20=20But=20MiNT=20is=20downward=20=
compatible=20to=20TOS,=20so=20this=20should=0A+=20=20=20=20#=20be=20no=20=
problem.=0A+=20=20=20=20atarist[e]:*MiNT:*:*=20|=20atarist[e]:*mint:*:*=20=
|=20atarist[e]:*TOS:*:*)=0A+=20=20=20=20=20=20=20=20echo=20=
m68k-atari-mint${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
atari*:*MiNT:*:*=20|=20atari*:*mint:*:*=20|=20atarist[e]:*TOS:*:*)=0A+=09=
echo=20m68k-atari-mint${UNAME_RELEASE}=0A+=20=20=20=20=20=20=20=20exit=20=
0=20;;=0A+=20=20=20=20*falcon*:*MiNT:*:*=20|=20*falcon*:*mint:*:*=20|=20=
*falcon*:*TOS:*:*)=0A+=20=20=20=20=20=20=20=20echo=20=
m68k-atari-mint${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
milan*:*MiNT:*:*=20|=20milan*:*mint:*:*=20|=20*milan*:*TOS:*:*)=0A+=20=20=
=20=20=20=20=20=20echo=20m68k-milan-mint${UNAME_RELEASE}=0A+=20=20=20=20=20=
=20=20=20exit=200=20;;=0A+=20=20=20=20hades*:*MiNT:*:*=20|=20=
hades*:*mint:*:*=20|=20*hades*:*TOS:*:*)=0A+=20=20=20=20=20=20=20=20echo=20=
m68k-hades-mint${UNAME_RELEASE}=0A+=20=20=20=20=20=20=20=20exit=200=20;;=0A=
+=20=20=20=20*:*MiNT:*:*=20|=20*:*mint:*:*=20|=20*:*TOS:*:*)=0A+=20=20=20=
=20=20=20=20=20echo=20m68k-unknown-mint${UNAME_RELEASE}=0A+=20=20=20=20=20=
=20=20=20exit=200=20;;=0A+=20=20=20=20sun3*:OpenBSD:*:*)=0A+=09echo=20=
m68k-unknown-openbsd${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
mac68k:OpenBSD:*:*)=0A+=09echo=20m68k-unknown-openbsd${UNAME_RELEASE}=0A=
+=09exit=200=20;;=0A+=20=20=20=20mvme68k:OpenBSD:*:*)=0A+=09echo=20=
m68k-unknown-openbsd${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
mvme88k:OpenBSD:*:*)=0A+=09echo=20m88k-unknown-openbsd${UNAME_RELEASE}=0A=
+=09exit=200=20;;=0A+=20=20=20=20powerpc:machten:*:*)=0A+=09echo=20=
powerpc-apple-machten${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
RISC*:Mach:*:*)=0A+=09echo=20mips-dec-mach_bsd4.3=0A+=09exit=200=20;;=0A=
+=20=20=20=20RISC*:ULTRIX:*:*)=0A+=09echo=20=
mips-dec-ultrix${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
VAX*:ULTRIX*:*:*)=0A+=09echo=20vax-dec-ultrix${UNAME_RELEASE}=0A+=09exit=20=
0=20;;=0A+=20=20=20=202020:CLIX:*:*=20|=202430:CLIX:*:*)=0A+=09echo=20=
clipper-intergraph-clix${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
mips:*:*:UMIPS=20|=20mips:*:*:RISCos)=0A+=09sed=20's/^=09//'=20<<=20EOF=20=
>$dummy.c=0A+#ifdef=20__cplusplus=0A+#include=20<stdio.h>=20=20/*=20for=20=
printf()=20prototype=20*/=0A+=09int=20main=20(int=20argc,=20char=20=
*argv[])=20{=0A+#else=0A+=09int=20main=20(argc,=20argv)=20int=20argc;=20=
char=20*argv[];=20{=0A+#endif=0A+=09#if=20defined=20(host_mips)=20&&=20=
defined=20(MIPSEB)=0A+=09#if=20defined=20(SYSTYPE_SYSV)=0A+=09=20=20=
printf=20("mips-mips-riscos%ssysv\n",=20argv[1]);=20exit=20(0);=0A+=09=
#endif=0A+=09#if=20defined=20(SYSTYPE_SVR4)=0A+=09=20=20printf=20=
("mips-mips-riscos%ssvr4\n",=20argv[1]);=20exit=20(0);=0A+=09#endif=0A+=09=
#if=20defined=20(SYSTYPE_BSD43)=20||=20defined(SYSTYPE_BSD)=0A+=09=20=20=
printf=20("mips-mips-riscos%sbsd\n",=20argv[1]);=20exit=20(0);=0A+=09=
#endif=0A+=09#endif=0A+=09=20=20exit=20(-1);=0A+=09}=0A+EOF=0A+=09=
$CC_FOR_BUILD=20$dummy.c=20-o=20$dummy=20\=0A+=09=20=20&&=20./$dummy=20=
`echo=20"${UNAME_RELEASE}"=20|=20sed=20-n=20's/\([0-9]*\).*/\1/p'`=20\=0A=
+=09=20=20&&=20rm=20-f=20$dummy.c=20$dummy=20&&=20exit=200=0A+=09rm=20-f=20=
$dummy.c=20$dummy=0A+=09echo=20mips-mips-riscos${UNAME_RELEASE}=0A+=09=
exit=200=20;;=0A+=20=20=20=20Motorola:PowerMAX_OS:*:*)=0A+=09echo=20=
powerpc-motorola-powermax=0A+=09exit=200=20;;=0A+=20=20=20=20=
Night_Hawk:Power_UNIX:*:*)=0A+=09echo=20powerpc-harris-powerunix=0A+=09=
exit=200=20;;=0A+=20=20=20=20m88k:CX/UX:7*:*)=0A+=09echo=20=
m88k-harris-cxux7=0A+=09exit=200=20;;=0A+=20=20=20=20m88k:*:4*:R4*)=0A+=09=
echo=20m88k-motorola-sysv4=0A+=09exit=200=20;;=0A+=20=20=20=20=
m88k:*:3*:R3*)=0A+=09echo=20m88k-motorola-sysv3=0A+=09exit=200=20;;=0A+=20=
=20=20=20AViiON:dgux:*:*)=0A+=20=20=20=20=20=20=20=20#=20DG/UX=20returns=20=
AViiON=20for=20all=20architectures=0A+=20=20=20=20=20=20=20=20=
UNAME_PROCESSOR=3D`/usr/bin/uname=20-p`=0A+=09if=20[=20$UNAME_PROCESSOR=20=
=3D=20mc88100=20]=20||=20[=20$UNAME_PROCESSOR=20=3D=20mc88110=20]=0A+=09=
then=0A+=09=20=20=20=20if=20[=20${TARGET_BINARY_INTERFACE}x=20=3D=20=
m88kdguxelfx=20]=20||=20\=0A+=09=20=20=20=20=20=20=20[=20=
${TARGET_BINARY_INTERFACE}x=20=3D=20x=20]=0A+=09=20=20=20=20then=0A+=09=09=
echo=20m88k-dg-dgux${UNAME_RELEASE}=0A+=09=20=20=20=20else=0A+=09=09echo=20=
m88k-dg-dguxbcs${UNAME_RELEASE}=0A+=09=20=20=20=20fi=0A+=09else=0A+=09=20=
=20=20=20echo=20i586-dg-dgux${UNAME_RELEASE}=0A+=09fi=0A+=20=09exit=200=20=
;;=0A+=20=20=20=20M88*:DolphinOS:*:*)=09#=20DolphinOS=20(SVR3)=0A+=09=
echo=20m88k-dolphin-sysv3=0A+=09exit=200=20;;=0A+=20=20=20=20=
M88*:*:R3*:*)=0A+=09#=20Delta=2088k=20system=20running=20SVR3=0A+=09echo=20=
m88k-motorola-sysv3=0A+=09exit=200=20;;=0A+=20=20=20=20XD88*:*:*:*)=20#=20=
Tektronix=20XD88=20system=20running=20UTekV=20(SVR3)=0A+=09echo=20=
m88k-tektronix-sysv3=0A+=09exit=200=20;;=0A+=20=20=20=20=
Tek43[0-9][0-9]:UTek:*:*)=20#=20Tektronix=204300=20system=20running=20=
UTek=20(BSD)=0A+=09echo=20m68k-tektronix-bsd=0A+=09exit=200=20;;=0A+=20=20=
=20=20*:IRIX*:*:*)=0A+=09echo=20mips-sgi-irix`echo=20=
${UNAME_RELEASE}|sed=20-e=20's/-/_/g'`=0A+=09exit=200=20;;=0A+=20=20=20=20=
????????:AIX?:[12].1:2)=20=20=20#=20AIX=202.2.1=20or=20AIX=202.1.1=20is=20=
RT/PC=20AIX.=0A+=09echo=20romp-ibm-aix=20=20=20=20=20=20#=20uname=20-m=20=
gives=20an=208=20hex-code=20CPU=20id=0A+=09exit=200=20;;=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20#=20Note=20that:=20echo=20"'`uname=20-s`'"=20=
gives=20'AIX=20'=0A+=20=20=20=20i*86:AIX:*:*)=0A+=09echo=20i386-ibm-aix=0A=
+=09exit=200=20;;=0A+=20=20=20=20ia64:AIX:*:*)=0A+=09if=20[=20-x=20=
/usr/bin/oslevel=20]=20;=20then=0A+=09=09IBM_REV=3D`/usr/bin/oslevel`=0A=
+=09else=0A+=09=09IBM_REV=3D${UNAME_VERSION}.${UNAME_RELEASE}=0A+=09fi=0A=
+=09echo=20${UNAME_MACHINE}-ibm-aix${IBM_REV}=0A+=09exit=200=20;;=0A+=20=20=
=20=20*:AIX:2:3)=0A+=09if=20grep=20bos325=20/usr/include/stdio.h=20=
>/dev/null=202>&1;=20then=0A+=09=09sed=20's/^=09=09//'=20<<=20EOF=20=
>$dummy.c=0A+=09=09#include=20<sys/systemcfg.h>=0A+=0A+=09=09main()=0A+=09=
=09=09{=0A+=09=09=09if=20(!__power_pc())=0A+=09=09=09=09exit(1);=0A+=09=09=
=09puts("powerpc-ibm-aix3.2.5");=0A+=09=09=09exit(0);=0A+=09=09=09}=0A=
+EOF=0A+=09=09$CC_FOR_BUILD=20$dummy.c=20-o=20$dummy=20&&=20./$dummy=20=
&&=20rm=20-f=20$dummy.c=20$dummy=20&&=20exit=200=0A+=09=09rm=20-f=20=
$dummy.c=20$dummy=0A+=09=09echo=20rs6000-ibm-aix3.2.5=0A+=09elif=20grep=20=
bos324=20/usr/include/stdio.h=20>/dev/null=202>&1;=20then=0A+=09=09echo=20=
rs6000-ibm-aix3.2.4=0A+=09else=0A+=09=09echo=20rs6000-ibm-aix3.2=0A+=09=
fi=0A+=09exit=200=20;;=0A+=20=20=20=20*:AIX:*:[45])=0A+=09=
IBM_CPU_ID=3D`/usr/sbin/lsdev=20-C=20-c=20processor=20-S=20available=20|=20=
head=20-1=20|=20awk=20'{=20print=20$1=20}'`=0A+=09if=20/usr/sbin/lsattr=20=
-El=20${IBM_CPU_ID}=20|=20grep=20'=20POWER'=20>/dev/null=202>&1;=20then=0A=
+=09=09IBM_ARCH=3Drs6000=0A+=09else=0A+=09=09IBM_ARCH=3Dpowerpc=0A+=09fi=0A=
+=09if=20[=20-x=20/usr/bin/oslevel=20]=20;=20then=0A+=09=09=
IBM_REV=3D`/usr/bin/oslevel`=0A+=09else=0A+=09=09=
IBM_REV=3D${UNAME_VERSION}.${UNAME_RELEASE}=0A+=09fi=0A+=09echo=20=
${IBM_ARCH}-ibm-aix${IBM_REV}=0A+=09exit=200=20;;=0A+=20=20=20=20=
*:AIX:*:*)=0A+=09echo=20rs6000-ibm-aix=0A+=09exit=200=20;;=0A+=20=20=20=20=
ibmrt:4.4BSD:*|romp-ibm:BSD:*)=0A+=09echo=20romp-ibm-bsd4.4=0A+=09exit=20=
0=20;;=0A+=20=20=20=20ibmrt:*BSD:*|romp-ibm:BSD:*)=20=20=20=20=20=20=20=20=
=20=20=20=20#=20covers=20RT/PC=20BSD=20and=0A+=09echo=20=
romp-ibm-bsd${UNAME_RELEASE}=20=20=20#=204.3=20with=20uname=20added=20to=0A=
+=09exit=200=20;;=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20#=20report:=20romp-ibm=20BSD=204.3=0A+=20=20=20=20=
*:BOSX:*:*)=0A+=09echo=20rs6000-bull-bosx=0A+=09exit=200=20;;=0A+=20=20=20=
=20DPX/2?00:B.O.S.:*:*)=0A+=09echo=20m68k-bull-sysv3=0A+=09exit=200=20;;=0A=
+=20=20=20=209000/[34]??:4.3bsd:1.*:*)=0A+=09echo=20m68k-hp-bsd=0A+=09=
exit=200=20;;=0A+=20=20=20=20hp300:4.4BSD:*:*=20|=20=
9000/[34]??:4.3bsd:2.*:*)=0A+=09echo=20m68k-hp-bsd4.4=0A+=09exit=200=20=
;;=0A+=20=20=20=209000/[34678]??:HP-UX:*:*)=0A+=09HPUX_REV=3D`echo=20=
${UNAME_RELEASE}|sed=20-e=20's/[^.]*.[0B]*//'`=0A+=09case=20=
"${UNAME_MACHINE}"=20in=0A+=09=20=20=20=209000/31?=20)=20=20=20=20=20=20=20=
=20=20=20=20=20HP_ARCH=3Dm68000=20;;=0A+=09=20=20=20=209000/[34]??=20)=20=
=20=20=20=20=20=20=20=20HP_ARCH=3Dm68k=20;;=0A+=09=20=20=20=20=
9000/[678][0-9][0-9])=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20case=20=
"${HPUX_REV}"=20in=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
11.[0-9][0-9])=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
if=20[=20-x=20/usr/bin/getconf=20];=20then=0A+=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20sc_cpu_version=3D`/usr/bin/getconf=20=
SC_CPU_VERSION=202>/dev/null`=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20sc_kernel_bits=3D`/usr/bin/getconf=20SC_KERNEL_BITS=20=
2>/dev/null`=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20case=20"${sc_cpu_version}"=20in=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20523)=20HP_ARCH=3D"hppa1.0"=20;;=20#=20=
CPU_PA_RISC1_0=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20528)=20HP_ARCH=3D"hppa1.1"=20;;=20#=20CPU_PA_RISC1_1=0A+=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20532)=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20#=20CPU_PA_RISC2_0=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
case=20"${sc_kernel_bits}"=20in=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=2032)=20HP_ARCH=3D"hppa2.0n"=20;;=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=2064)=20HP_ARCH=3D"hppa2.0w"=20;;=0A+=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20esac=20;;=0A+=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20esac=0A+=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20fi=20;;=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20esac=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20[=20=
"${HP_ARCH}"=20=3D=20""=20];=20then=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20sed=20's/^=20=20=20=20=20=20=20=20=20=20=20=20=20=20//'=20<<=20EOF=20=
>$dummy.c=0A+=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20#define=20=
_HPUX_SOURCE=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20#include=20=
<stdlib.h>=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20#include=20=
<unistd.h>=0A+=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20int=20main=20=
()=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20{=0A+=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20#if=20defined(_SC_KERNEL_BITS)=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20long=20bits=20=3D=20=
sysconf(_SC_KERNEL_BITS);=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
#endif=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20long=20=
cpu=20=20=3D=20sysconf=20(_SC_CPU_VERSION);=0A+=0A+=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20switch=20(cpu)=0A+=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=09{=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=09case=20=
CPU_PA_RISC1_0:=20puts=20("hppa1.0");=20break;=0A+=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=09case=20CPU_PA_RISC1_1:=20puts=20("hppa1.1");=20=
break;=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=09case=20=
CPU_PA_RISC2_0:=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20#if=20=
defined(_SC_KERNEL_BITS)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=09=
=20=20=20=20switch=20(bits)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=09=09{=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=09=09case=2064:=20=
puts=20("hppa2.0w");=20break;=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=09=09case=2032:=20puts=20("hppa2.0n");=20break;=0A+=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=09=09default:=20puts=20("hppa2.0");=20break;=0A+=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=09=09}=20break;=0A+=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20#else=20=20/*=20!defined(_SC_KERNEL_BITS)=20=
*/=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=09=20=20=20=20puts=20=
("hppa2.0");=20break;=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
#endif=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=09default:=20puts=20=
("hppa1.0");=20break;=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=09}=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20exit=20(0);=0A+=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20}=0A+EOF=0A+=09(CCOPTS=3D=20=
$CC_FOR_BUILD=20$dummy.c=20-o=20$dummy=202>/dev/null=20)=20&&=20=
HP_ARCH=3D`./$dummy`=0A+=09if=20test=20-z=20"$HP_ARCH";=20then=20=
HP_ARCH=3Dhppa;=20fi=0A+=09rm=20-f=20$dummy.c=20$dummy=0A+=09fi=20;;=0A+=09=
esac=0A+=09echo=20${HP_ARCH}-hp-hpux${HPUX_REV}=0A+=09exit=200=20;;=0A+=20=
=20=20=20ia64:HP-UX:*:*)=0A+=09HPUX_REV=3D`echo=20${UNAME_RELEASE}|sed=20=
-e=20's/[^.]*.[0B]*//'`=0A+=09echo=20ia64-hp-hpux${HPUX_REV}=0A+=09exit=20=
0=20;;=0A+=20=20=20=203050*:HI-UX:*:*)=0A+=09sed=20's/^=09//'=20<<=20EOF=20=
>$dummy.c=0A+=09#include=20<unistd.h>=0A+=09int=0A+=09main=20()=0A+=09{=0A=
+=09=20=20long=20cpu=20=3D=20sysconf=20(_SC_CPU_VERSION);=0A+=09=20=20/*=20=
The=20order=20matters,=20because=20CPU_IS_HP_MC68K=20erroneously=20=
returns=0A+=09=20=20=20=20=20true=20for=20CPU_PA_RISC1_0.=20=20=
CPU_IS_PA_RISC=20returns=20correct=0A+=09=20=20=20=20=20results,=20=
however.=20=20*/=0A+=09=20=20if=20(CPU_IS_PA_RISC=20(cpu))=0A+=09=20=20=20=
=20{=0A+=09=20=20=20=20=20=20switch=20(cpu)=0A+=09=09{=0A+=09=09=20=20=
case=20CPU_PA_RISC1_0:=20puts=20("hppa1.0-hitachi-hiuxwe2");=20break;=0A=
+=09=09=20=20case=20CPU_PA_RISC1_1:=20puts=20=
("hppa1.1-hitachi-hiuxwe2");=20break;=0A+=09=09=20=20case=20=
CPU_PA_RISC2_0:=20puts=20("hppa2.0-hitachi-hiuxwe2");=20break;=0A+=09=09=20=
=20default:=20puts=20("hppa-hitachi-hiuxwe2");=20break;=0A+=09=09}=0A+=09=
=20=20=20=20}=0A+=09=20=20else=20if=20(CPU_IS_HP_MC68K=20(cpu))=0A+=09=20=
=20=20=20puts=20("m68k-hitachi-hiuxwe2");=0A+=09=20=20else=20puts=20=
("unknown-hitachi-hiuxwe2");=0A+=09=20=20exit=20(0);=0A+=09}=0A+EOF=0A+=09=
$CC_FOR_BUILD=20$dummy.c=20-o=20$dummy=20&&=20./$dummy=20&&=20rm=20-f=20=
$dummy.c=20$dummy=20&&=20exit=200=0A+=09rm=20-f=20$dummy.c=20$dummy=0A+=09=
echo=20unknown-hitachi-hiuxwe2=0A+=09exit=200=20;;=0A+=20=20=20=20=
9000/7??:4.3bsd:*:*=20|=209000/8?[79]:4.3bsd:*:*=20)=0A+=09echo=20=
hppa1.1-hp-bsd=0A+=09exit=200=20;;=0A+=20=20=20=209000/8??:4.3bsd:*:*)=0A=
+=09echo=20hppa1.0-hp-bsd=0A+=09exit=200=20;;=0A+=20=20=20=20=
*9??*:MPE/iX:*:*)=0A+=09echo=20hppa1.0-hp-mpeix=0A+=09exit=200=20;;=0A+=20=
=20=20=20hp7??:OSF1:*:*=20|=20hp8?[79]:OSF1:*:*=20)=0A+=09echo=20=
hppa1.1-hp-osf=0A+=09exit=200=20;;=0A+=20=20=20=20hp8??:OSF1:*:*)=0A+=09=
echo=20hppa1.0-hp-osf=0A+=09exit=200=20;;=0A+=20=20=20=20i*86:OSF1:*:*)=0A=
+=09if=20[=20-x=20/usr/sbin/sysversion=20]=20;=20then=0A+=09=20=20=20=20=
echo=20${UNAME_MACHINE}-unknown-osf1mk=0A+=09else=0A+=09=20=20=20=20echo=20=
${UNAME_MACHINE}-unknown-osf1=0A+=09fi=0A+=09exit=200=20;;=0A+=20=20=20=20=
parisc*:Lites*:*:*)=0A+=09echo=20hppa1.1-hp-lites=0A+=09exit=200=20;;=0A=
+=20=20=20=20hppa*:OpenBSD:*:*)=0A+=09echo=20hppa-unknown-openbsd=0A+=09=
exit=200=20;;=0A+=20=20=20=20C1*:ConvexOS:*:*=20|=20=
convex:ConvexOS:C1*:*)=0A+=09echo=20c1-convex-bsd=0A+=20=20=20=20=20=20=20=
=20exit=200=20;;=0A+=20=20=20=20C2*:ConvexOS:*:*=20|=20=
convex:ConvexOS:C2*:*)=0A+=09if=20getsysinfo=20-f=20scalar_acc=0A+=09=
then=20echo=20c32-convex-bsd=0A+=09else=20echo=20c2-convex-bsd=0A+=09fi=0A=
+=20=20=20=20=20=20=20=20exit=200=20;;=0A+=20=20=20=20C34*:ConvexOS:*:*=20=
|=20convex:ConvexOS:C34*:*)=0A+=09echo=20c34-convex-bsd=0A+=20=20=20=20=20=
=20=20=20exit=200=20;;=0A+=20=20=20=20C38*:ConvexOS:*:*=20|=20=
convex:ConvexOS:C38*:*)=0A+=09echo=20c38-convex-bsd=0A+=20=20=20=20=20=20=
=20=20exit=200=20;;=0A+=20=20=20=20C4*:ConvexOS:*:*=20|=20=
convex:ConvexOS:C4*:*)=0A+=09echo=20c4-convex-bsd=0A+=20=20=20=20=20=20=20=
=20exit=200=20;;=0A+=20=20=20=20CRAY*X-MP:*:*:*)=0A+=09echo=20=
xmp-cray-unicos=0A+=20=20=20=20=20=20=20=20exit=200=20;;=0A+=20=20=20=20=
CRAY*Y-MP:*:*:*)=0A+=09echo=20ymp-cray-unicos${UNAME_RELEASE}=0A+=09exit=20=
0=20;;=0A+=20=20=20=20CRAY*[A-Z]90:*:*:*)=0A+=09echo=20=
${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE}=20\=0A+=09|=20sed=20-e=20=
's/CRAY.*\([A-Z]90\)/\1/'=20\=0A+=09=20=20=20=20=20=20-e=20=
y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/=0A+=09exit=200=20=
;;=0A+=20=20=20=20CRAY*TS:*:*:*)=0A+=09echo=20=
t90-cray-unicos${UNAME_RELEASE}=20|=20sed=20-e=20's/\.[^.]*$/.X/'=0A+=09=
exit=200=20;;=0A+=20=20=20=20CRAY*T3D:*:*:*)=0A+=09echo=20=
alpha-cray-unicosmk${UNAME_RELEASE}=20|=20sed=20-e=20's/\.[^.]*$/.X/'=0A=
+=09exit=200=20;;=0A+=20=20=20=20CRAY*T3E:*:*:*)=0A+=09echo=20=
alphaev5-cray-unicosmk${UNAME_RELEASE}=20|=20sed=20-e=20's/\.[^.]*$/.X/'=0A=
+=09exit=200=20;;=0A+=20=20=20=20CRAY*SV1:*:*:*)=0A+=09echo=20=
sv1-cray-unicos${UNAME_RELEASE}=20|=20sed=20-e=20's/\.[^.]*$/.X/'=0A+=09=
exit=200=20;;=0A+=20=20=20=20CRAY-2:*:*:*)=0A+=09echo=20=
cray2-cray-unicos=0A+=20=20=20=20=20=20=20=20exit=200=20;;=0A+=20=20=20=20=
F30[01]:UNIX_System_V:*:*=20|=20F700:UNIX_System_V:*:*)=0A+=09=
FUJITSU_PROC=3D`uname=20-m=20|=20tr=20'ABCDEFGHIJKLMNOPQRSTUVWXYZ'=20=
'abcdefghijklmnopqrstuvwxyz'`=0A+=20=20=20=20=20=20=20=20=
FUJITSU_SYS=3D`uname=20-p=20|=20tr=20'ABCDEFGHIJKLMNOPQRSTUVWXYZ'=20=
'abcdefghijklmnopqrstuvwxyz'=20|=20sed=20-e=20's/\///'`=0A+=20=20=20=20=20=
=20=20=20FUJITSU_REL=3D`echo=20${UNAME_RELEASE}=20|=20sed=20-e=20's/=20=
/_/'`=0A+=20=20=20=20=20=20=20=20echo=20=
"${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"=0A+=20=20=20=20=20=
=20=20=20exit=200=20;;=0A+=20=20=20=20hp300:OpenBSD:*:*)=0A+=09echo=20=
m68k-unknown-openbsd${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
i*86:BSD/386:*:*=20|=20i*86:BSD/OS:*:*=20|=20*:Ascend\=20=
Embedded/OS:*:*)=0A+=09echo=20${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}=0A=
+=09exit=200=20;;=0A+=20=20=20=20sparc*:BSD/OS:*:*)=0A+=09echo=20=
sparc-unknown-bsdi${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
*:BSD/OS:*:*)=0A+=09echo=20${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}=0A=
+=09exit=200=20;;=0A+=20=20=20=20*:FreeBSD:*:*)=0A+=09echo=20=
${UNAME_MACHINE}-unknown-freebsd`echo=20${UNAME_RELEASE}|sed=20-e=20=
's/[-(].*//'`=0A+=09exit=200=20;;=0A+=20=20=20=20*:OpenBSD:*:*)=0A+=09=
echo=20${UNAME_MACHINE}-unknown-openbsd`echo=20${UNAME_RELEASE}|sed=20-e=20=
's/[-_].*/\./'`=0A+=09exit=200=20;;=0A+=20=20=20=20i*:CYGWIN*:*)=0A+=09=
echo=20${UNAME_MACHINE}-pc-cygwin=0A+=09exit=200=20;;=0A+=20=20=20=20=
i*:MINGW*:*)=0A+=09echo=20${UNAME_MACHINE}-pc-mingw32=0A+=09exit=200=20=
;;=0A+=20=20=20=20i*:PW*:*)=0A+=09echo=20${UNAME_MACHINE}-pc-pw32=0A+=09=
exit=200=20;;=0A+=20=20=20=20i*:Windows_NT*:*=20|=20=
Pentium*:Windows_NT*:*)=0A+=09#=20How=20do=20we=20know=20it's=20Interix=20=
rather=20than=20the=20generic=20POSIX=20subsystem?=0A+=09#=20It=20also=20=
conflicts=20with=20pre-2.0=20versions=20of=20AT&T=20UWIN.=20Should=20we=0A=
+=09#=20UNAME_MACHINE=20based=20on=20the=20output=20of=20uname=20instead=20=
of=20i386?=0A+=09echo=20i386-pc-interix=0A+=09exit=200=20;;=0A+=20=20=20=20=
i*:UWIN*:*)=0A+=09echo=20${UNAME_MACHINE}-pc-uwin=0A+=09exit=200=20;;=0A=
+=20=20=20=20p*:CYGWIN*:*)=0A+=09echo=20powerpcle-unknown-cygwin=0A+=09=
exit=200=20;;=0A+=20=20=20=20prep*:SunOS:5.*:*)=0A+=09echo=20=
powerpcle-unknown-solaris2`echo=20${UNAME_RELEASE}|sed=20-e=20=
's/[^.]*//'`=0A+=09exit=200=20;;=0A+=20=20=20=20*:GNU:*:*)=0A+=09echo=20=
`echo=20${UNAME_MACHINE}|sed=20-e=20's,[-/].*$,,'`-unknown-gnu`echo=20=
${UNAME_RELEASE}|sed=20-e=20's,/.*$,,'`=0A+=09exit=200=20;;=0A+=20=20=20=20=
i*86:Minix:*:*)=0A+=09echo=20${UNAME_MACHINE}-pc-minix=0A+=09exit=200=20=
;;=0A+=20=20=20=20arm*:Linux:*:*)=0A+=09echo=20=
${UNAME_MACHINE}-unknown-linux-gnu=0A+=09exit=200=20;;=0A+=20=20=20=20=
ia64:Linux:*:*)=0A+=09echo=20${UNAME_MACHINE}-unknown-linux=0A+=09exit=20=
0=20;;=0A+=20=20=20=20m68*:Linux:*:*)=0A+=09echo=20=
${UNAME_MACHINE}-unknown-linux-gnu=0A+=09exit=200=20;;=0A+=20=20=20=20=
mips:Linux:*:*)=0A+=09cat=20>$dummy.c=20<<EOF=0A+#ifdef=20__cplusplus=0A=
+#include=20<stdio.h>=20=20/*=20for=20printf()=20prototype=20*/=0A+int=20=
main=20(int=20argc,=20char=20*argv[])=20{=0A+#else=0A+int=20main=20=
(argc,=20argv)=20int=20argc;=20char=20*argv[];=20{=0A+#endif=0A+#ifdef=20=
__MIPSEB__=0A+=20=20printf=20("%s-unknown-linux-gnu\n",=20argv[1]);=0A=
+#endif=0A+#ifdef=20__MIPSEL__=0A+=20=20printf=20=
("%sel-unknown-linux-gnu\n",=20argv[1]);=0A+#endif=0A+=20=20return=200;=0A=
+}=0A+EOF=0A+=09$CC_FOR_BUILD=20$dummy.c=20-o=20$dummy=202>/dev/null=20=
&&=20./$dummy=20"${UNAME_MACHINE}"=20&&=20rm=20-f=20$dummy.c=20$dummy=20=
&&=20exit=200=0A+=09rm=20-f=20$dummy.c=20$dummy=0A+=09;;=0A+=20=20=20=20=
ppc:Linux:*:*)=0A+=09#=20Determine=20Lib=20Version=0A+=09cat=20>$dummy.c=20=
<<EOF=0A+#include=20<features.h>=0A+#if=20defined(__GLIBC__)=0A+extern=20=
char=20__libc_version[];=0A+extern=20char=20__libc_release[];=0A+#endif=0A=
+main(argc,=20argv)=0A+=20=20=20=20=20int=20argc;=0A+=20=20=20=20=20char=20=
*argv[];=0A+{=0A+#if=20defined(__GLIBC__)=0A+=20=20printf("%s=20%s\n",=20=
__libc_version,=20__libc_release);=0A+#else=0A+=20=20=
printf("unknown\n");=0A+#endif=0A+=20=20return=200;=0A+}=0A+EOF=0A+=09=
LIBC=3D""=0A+=09$CC_FOR_BUILD=20$dummy.c=20-o=20$dummy=202>/dev/null=0A+=09=
if=20test=20"$?"=20=3D=200=20;=20then=0A+=09=09./$dummy=20|=20grep=20=
1\.99=20>=20/dev/null=0A+=09=09if=20test=20"$?"=20=3D=200=20;=20then=20=
LIBC=3D"libc1"=20;=20fi=0A+=09fi=0A+=09rm=20-f=20$dummy.c=20$dummy=0A+=09=
echo=20powerpc-unknown-linux-gnu${LIBC}=0A+=09exit=200=20;;=0A+=20=20=20=20=
alpha:Linux:*:*)=0A+=09cat=20<<EOF=20>$dummy.s=0A+=09=20=20.data=0A+=09=20=
=20\$Lformat:=0A+=09=09.byte=2037,100,45,37,120,10,0=09#=20"%d-%x\n"=0A+=09=
=20=20=20.text=0A+=09=09.globl=20main=0A+=09=09.align=204=0A+=09=09.ent=20=
main=0A+=09=20=20=20=20main:=0A+=09=09.frame=20\$30,16,\$26,0=0A+=09=09=
ldgp=20\$29,0(\$27)=0A+=09=09.prologue=201=0A+=09=09.long=200x47e03d80=20=
#=20implver=20\$0=0A+=09=09lda=20\$2,-1=0A+=09=09.long=200x47e20c21=20#=20=
amask=20\$2,\$1=0A+=09=09lda=20\$16,\$Lformat=0A+=09=09mov=20\$0,\$17=0A=
+=09=09not=20\$1,\$18=0A+=09=09jsr=20\$26,printf=0A+=09=09ldgp=20=
\$29,0(\$26)=0A+=09=09mov=200,\$16=0A+=09=09jsr=20\$26,exit=0A+=09=09=
.end=20main=0A+EOF=0A+=09LIBC=3D""=0A+=09$CC_FOR_BUILD=20$dummy.s=20-o=20=
$dummy=202>/dev/null=0A+=09if=20test=20"$?"=20=3D=200=20;=20then=0A+=09=09=
case=20`./$dummy`=20in=0A+=09=090-0)=09UNAME_MACHINE=3D"alpha"=20;;=0A+=09=
=091-0)=09UNAME_MACHINE=3D"alphaev5"=20;;=0A+=09=091-1)=20=20=20=20=
UNAME_MACHINE=3D"alphaev56"=20;;=0A+=09=091-101)=09=
UNAME_MACHINE=3D"alphapca56"=20;;=0A+=09=092-303)=09=
UNAME_MACHINE=3D"alphaev6"=20;;=0A+=09=092-307)=09=
UNAME_MACHINE=3D"alphaev67"=20;;=0A+=09=09esac=0A+=09=09objdump=20=
--private-headers=20$dummy=20|=20\=0A+=09=09=20=20grep=20ld.so.1=20>=20=
/dev/null=0A+=09=09if=20test=20"$?"=20=3D=200=20;=20then=0A+=09=09=09=
LIBC=3D"libc1"=0A+=09=09fi=0A+=09fi=0A+=09rm=20-f=20$dummy.s=20$dummy=0A=
+=09echo=20${UNAME_MACHINE}-unknown-linux-gnu${LIBC}=0A+=09exit=200=20;;=0A=
+=20=20=20=20parisc:Linux:*:*=20|=20hppa:Linux:*:*)=0A+=09#=20Look=20for=20=
CPU=20level=0A+=09case=20`grep=20'^cpu[^a-z]*:'=20/proc/cpuinfo=20=
2>/dev/null=20|=20cut=20-d'=20'=20-f2`=20in=0A+=09=20=20PA7*)=20echo=20=
hppa1.1-unknown-linux-gnu=20;;=0A+=09=20=20PA8*)=20echo=20=
hppa2.0-unknown-linux-gnu=20;;=0A+=09=20=20*)=20=20=20=20echo=20=
hppa-unknown-linux-gnu=20;;=0A+=09esac=0A+=09exit=200=20;;=0A+=20=20=20=20=
parisc64:Linux:*:*=20|=20hppa64:Linux:*:*)=0A+=09echo=20=
hppa64-unknown-linux-gnu=0A+=09exit=200=20;;=0A+=20=20=20=20=
s390:Linux:*:*=20|=20s390x:Linux:*:*)=0A+=09echo=20=
${UNAME_MACHINE}-ibm-linux=0A+=09exit=200=20;;=0A+=20=20=20=20=
sh*:Linux:*:*)=0A+=09echo=20${UNAME_MACHINE}-unknown-linux-gnu=0A+=09=
exit=200=20;;=0A+=20=20=20=20sparc:Linux:*:*=20|=20sparc64:Linux:*:*)=0A=
+=09echo=20${UNAME_MACHINE}-unknown-linux-gnu=0A+=09exit=200=20;;=0A+=20=20=
=20=20x86_64:Linux:*:*)=0A+=09echo=20x86_64-unknown-linux-gnu=0A+=09exit=20=
0=20;;=0A+=20=20=20=20i*86:Linux:*:*)=0A+=09#=20The=20BFD=20linker=20=
knows=20what=20the=20default=20object=20file=20format=20is,=20so=0A+=09#=20=
first=20see=20if=20it=20will=20tell=20us.=20cd=20to=20the=20root=20=
directory=20to=20prevent=0A+=09#=20problems=20with=20other=20programs=20=
or=20directories=20called=20`ld'=20in=20the=20path.=0A+=09=
ld_supported_emulations=3D`cd=20/;=20ld=20--help=202>&1=20\=0A+=09=09=09=20=
|=20sed=20-ne=20'/supported=20emulations:/!d=0A+=09=09=09=09=20=20=20=20=
s/[=20=09][=20=09]*/=20/g=0A+=09=09=09=09=20=20=20=20s/.*supported=20=
emulations:=20*//=0A+=09=09=09=09=20=20=20=20s/=20.*//=0A+=09=09=09=09=20=
=20=20=20p'`=0A+=20=20=20=20=20=20=20=20case=20=
"$ld_supported_emulations"=20in=0A+=09=20=20i*86linux)=0A+=09=09echo=20=
"${UNAME_MACHINE}-pc-linux-gnuaout"=0A+=09=09exit=200=0A+=09=09;;=0A+=09=20=
=20elf_i*86)=0A+=09=09TENTATIVE=3D"${UNAME_MACHINE}-pc-linux-gnu"=0A+=09=09=
;;=0A+=09=20=20i*86coff)=0A+=09=09echo=20=
"${UNAME_MACHINE}-pc-linux-gnucoff"=0A+=09=09exit=200=0A+=09=09;;=0A+=09=
esac=0A+=09#=20Either=20a=20pre-BFD=20a.out=20linker=20(linux-gnuoldld)=0A=
+=09#=20or=20one=20that=20does=20not=20give=20us=20useful=20--help.=0A+=09=
#=20GCC=20wants=20to=20distinguish=20between=20linux-gnuoldld=20and=20=
linux-gnuaout.=0A+=09#=20If=20ld=20does=20not=20provide=20*any*=20=
"supported=20emulations:"=0A+=09#=20that=20means=20it=20is=20gnuoldld.=0A=
+=09test=20-z=20"$ld_supported_emulations"=20&&=20echo=20=
"${UNAME_MACHINE}-pc-linux-gnuoldld"=20&&=20exit=200=0A+=09case=20=
"${UNAME_MACHINE}"=20in=0A+=09i*86)=0A+=09=20=20VENDOR=3Dpc;=0A+=09=20=20=
;;=0A+=09*)=0A+=09=20=20VENDOR=3Dunknown;=0A+=09=20=20;;=0A+=09esac=0A+=09=
#=20Determine=20whether=20the=20default=20compiler=20is=20a.out=20or=20=
elf=0A+=09cat=20>$dummy.c=20<<EOF=0A+#include=20<features.h>=0A+#ifdef=20=
__cplusplus=0A+#include=20<stdio.h>=20=20/*=20for=20printf()=20prototype=20=
*/=0A+=09int=20main=20(int=20argc,=20char=20*argv[])=20{=0A+#else=0A+=09=
int=20main=20(argc,=20argv)=20int=20argc;=20char=20*argv[];=20{=0A=
+#endif=0A+#ifdef=20__ELF__=0A+#=20ifdef=20__GLIBC__=0A+#=20=20if=20=
__GLIBC__=20>=3D=202=0A+=20=20=20=20printf=20=
("%s-${VENDOR}-linux-gnu\n",=20argv[1]);=0A+#=20=20else=0A+=20=20=20=20=
printf=20("%s-${VENDOR}-linux-gnulibc1\n",=20argv[1]);=0A+#=20=20endif=0A=
+#=20else=0A+=20=20=20printf=20("%s-${VENDOR}-linux-gnulibc1\n",=20=
argv[1]);=0A+#=20endif=0A+#else=0A+=20=20printf=20=
("%s-${VENDOR}-linux-gnuaout\n",=20argv[1]);=0A+#endif=0A+=20=20return=20=
0;=0A+}=0A+EOF=0A+=09$CC_FOR_BUILD=20$dummy.c=20-o=20$dummy=20=
2>/dev/null=20&&=20./$dummy=20"${UNAME_MACHINE}"=20&&=20rm=20-f=20=
$dummy.c=20$dummy=20&&=20exit=200=0A+=09rm=20-f=20$dummy.c=20$dummy=0A+=09=
test=20x"${TENTATIVE}"=20!=3D=20x=20&&=20echo=20"${TENTATIVE}"=20&&=20=
exit=200=0A+=09;;=0A+#=20ptx=204.0=20does=20uname=20-s=20correctly,=20=
with=20DYNIX/ptx=20in=20there.=20=20earlier=20versions=0A+#=20are=20=
messed=20up=20and=20put=20the=20nodename=20in=20both=20sysname=20and=20=
nodename.=0A+=20=20=20=20i*86:DYNIX/ptx:4*:*)=0A+=09echo=20=
i386-sequent-sysv4=0A+=09exit=200=20;;=0A+=20=20=20=20=
i*86:UNIX_SV:4.2MP:2.*)=0A+=20=20=20=20=20=20=20=20#=20Unixware=20is=20=
an=20offshoot=20of=20SVR4,=20but=20it=20has=20its=20own=20version=0A+=20=20=
=20=20=20=20=20=20#=20number=20series=20starting=20with=202...=0A+=20=20=20=
=20=20=20=20=20#=20I=20am=20not=20positive=20that=20other=20SVR4=20=
systems=20won't=20match=20this,=0A+=09#=20I=20just=20have=20to=20hope.=20=
=20--=20rms.=0A+=20=20=20=20=20=20=20=20#=20Use=20sysv4.2uw...=20so=20=
that=20sysv4*=20matches=20it.=0A+=09echo=20=
${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}=0A+=09exit=200=20;;=0A+=20=20=
=20=20i*86:*:4.*:*=20|=20i*86:SYSTEM_V:4.*:*)=0A+=09UNAME_REL=3D`echo=20=
${UNAME_RELEASE}=20|=20sed=20's/\/MP$//'`=0A+=09if=20grep=20Novell=20=
/usr/include/link.h=20>/dev/null=202>/dev/null;=20then=0A+=09=09echo=20=
${UNAME_MACHINE}-univel-sysv${UNAME_REL}=0A+=09else=0A+=09=09echo=20=
${UNAME_MACHINE}-pc-sysv${UNAME_REL}=0A+=09fi=0A+=09exit=200=20;;=0A+=20=20=
=20=20i*86:*:5:7*)=0A+=20=20=20=20=20=20=20=20#=20Fixed=20at=20(any)=20=
Pentium=20or=20better=0A+=20=20=20=20=20=20=20=20UNAME_MACHINE=3Di586=0A=
+=20=20=20=20=20=20=20=20if=20[=20${UNAME_SYSTEM}=20=3D=20"UnixWare"=20]=20=
;=20then=0A+=09=20=20=20=20echo=20=
${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}=0A+=09else=0A=
+=09=20=20=20=20echo=20${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}=0A+=09fi=0A=
+=09exit=200=20;;=0A+=20=20=20=20i*86:*:3.2:*)=0A+=09if=20test=20-f=20=
/usr/options/cb.name;=20then=0A+=09=09UNAME_REL=3D`sed=20-n=20=
's/.*Version=20//p'=20</usr/options/cb.name`=0A+=09=09echo=20=
${UNAME_MACHINE}-pc-isc$UNAME_REL=0A+=09elif=20/bin/uname=20-X=20=
2>/dev/null=20>/dev/null=20;=20then=0A+=09=09UNAME_REL=3D`(/bin/uname=20=
-X|egrep=20Release|sed=20-e=20's/.*=3D=20//')`=0A+=09=09(/bin/uname=20=
-X|egrep=20i80486=20>/dev/null)=20&&=20UNAME_MACHINE=3Di486=0A+=09=09=
(/bin/uname=20-X|egrep=20'^Machine.*Pentium'=20>/dev/null)=20\=0A+=09=09=09=
&&=20UNAME_MACHINE=3Di586=0A+=09=09(/bin/uname=20-X|egrep=20=
'^Machine.*Pent=20?II'=20>/dev/null)=20\=0A+=09=09=09&&=20=
UNAME_MACHINE=3Di686=0A+=09=09(/bin/uname=20-X|egrep=20=
'^Machine.*Pentium=20Pro'=20>/dev/null)=20\=0A+=09=09=09&&=20=
UNAME_MACHINE=3Di686=0A+=09=09echo=20${UNAME_MACHINE}-pc-sco$UNAME_REL=0A=
+=09else=0A+=09=09echo=20${UNAME_MACHINE}-pc-sysv32=0A+=09fi=0A+=09exit=20=
0=20;;=0A+=20=20=20=20i*86:*DOS:*:*)=0A+=09echo=20=
${UNAME_MACHINE}-pc-msdosdjgpp=0A+=09exit=200=20;;=0A+=20=20=20=20=
pc:*:*:*)=0A+=09#=20Left=20here=20for=20compatibility:=0A+=20=20=20=20=20=
=20=20=20#=20uname=20-m=20prints=20for=20DJGPP=20always=20'pc',=20but=20=
it=20prints=20nothing=20about=0A+=20=20=20=20=20=20=20=20#=20the=20=
processor,=20so=20we=20play=20safe=20by=20assuming=20i386.=0A+=09echo=20=
i386-pc-msdosdjgpp=0A+=20=20=20=20=20=20=20=20exit=200=20;;=0A+=20=20=20=20=
Intel:Mach:3*:*)=0A+=09echo=20i386-pc-mach3=0A+=09exit=200=20;;=0A+=20=20=
=20=20paragon:*:*:*)=0A+=09echo=20i860-intel-osf1=0A+=09exit=200=20;;=0A=
+=20=20=20=20i860:*:4.*:*)=20#=20i860-SVR4=0A+=09if=20grep=20Stardent=20=
/usr/include/sys/uadmin.h=20>/dev/null=202>&1=20;=20then=0A+=09=20=20=
echo=20i860-stardent-sysv${UNAME_RELEASE}=20#=20Stardent=20Vistra=20=
i860-SVR4=0A+=09else=20#=20Add=20other=20i860-SVR4=20vendors=20below=20=
as=20they=20are=20discovered.=0A+=09=20=20echo=20=
i860-unknown-sysv${UNAME_RELEASE}=20=20#=20Unknown=20i860-SVR4=0A+=09fi=0A=
+=09exit=200=20;;=0A+=20=20=20=20mini*:CTIX:SYS*5:*)=0A+=09#=20=
"miniframe"=0A+=09echo=20m68010-convergent-sysv=0A+=09exit=200=20;;=0A+=20=
=20=20=20M68*:*:R3V[567]*:*)=0A+=09test=20-r=20/sysV68=20&&=20echo=20=
'm68k-motorola-sysv'=20&&=20exit=200=20;;=0A+=20=20=20=20=
3[34]??:*:4.0:3.0=20|=203[34]??A:*:4.0:3.0=20|=203[34]??,*:*:4.0:3.0=20|=20=
4850:*:4.0:3.0)=0A+=09OS_REL=3D''=0A+=09test=20-r=20/etc/.relid=20\=0A+=09=
&&=20OS_REL=3D.`sed=20-n=20's/[^=20]*=20[^=20]*=20\([0-9][0-9]\).*/\1/p'=20=
<=20/etc/.relid`=0A+=09/bin/uname=20-p=202>/dev/null=20|=20grep=2086=20=
>/dev/null=20\=0A+=09=20=20&&=20echo=20i486-ncr-sysv4.3${OS_REL}=20&&=20=
exit=200=0A+=09/bin/uname=20-p=202>/dev/null=20|=20/bin/grep=20entium=20=
>/dev/null=20\=0A+=09=20=20&&=20echo=20i586-ncr-sysv4.3${OS_REL}=20&&=20=
exit=200=20;;=0A+=20=20=20=203[34]??:*:4.0:*=20|=203[34]??,*:*:4.0:*)=0A=
+=20=20=20=20=20=20=20=20/bin/uname=20-p=202>/dev/null=20|=20grep=2086=20=
>/dev/null=20\=0A+=20=20=20=20=20=20=20=20=20=20&&=20echo=20=
i486-ncr-sysv4=20&&=20exit=200=20;;=0A+=20=20=20=20m68*:LynxOS:2.*:*=20|=20=
m68*:LynxOS:3.0*:*)=0A+=09echo=20m68k-unknown-lynxos${UNAME_RELEASE}=0A+=09=
exit=200=20;;=0A+=20=20=20=20mc68030:UNIX_System_V:4.*:*)=0A+=09echo=20=
m68k-atari-sysv4=0A+=09exit=200=20;;=0A+=20=20=20=20i*86:LynxOS:2.*:*=20=
|=20i*86:LynxOS:3.[01]*:*=20|=20i*86:LynxOS:4.0*:*)=0A+=09echo=20=
i386-unknown-lynxos${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
TSUNAMI:LynxOS:2.*:*)=0A+=09echo=20sparc-unknown-lynxos${UNAME_RELEASE}=0A=
+=09exit=200=20;;=0A+=20=20=20=20rs6000:LynxOS:2.*:*)=0A+=09echo=20=
rs6000-unknown-lynxos${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
PowerPC:LynxOS:2.*:*=20|=20PowerPC:LynxOS:3.[01]*:*=20|=20=
PowerPC:LynxOS:4.0*:*)=0A+=09echo=20=
powerpc-unknown-lynxos${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
SM[BE]S:UNIX_SV:*:*)=0A+=09echo=20mips-dde-sysv${UNAME_RELEASE}=0A+=09=
exit=200=20;;=0A+=20=20=20=20RM*:ReliantUNIX-*:*:*)=0A+=09echo=20=
mips-sni-sysv4=0A+=09exit=200=20;;=0A+=20=20=20=20RM*:SINIX-*:*:*)=0A+=09=
echo=20mips-sni-sysv4=0A+=09exit=200=20;;=0A+=20=20=20=20*:SINIX-*:*:*)=0A=
+=09if=20uname=20-p=202>/dev/null=20>/dev/null=20;=20then=0A+=09=09=
UNAME_MACHINE=3D`(uname=20-p)=202>/dev/null`=0A+=09=09echo=20=
${UNAME_MACHINE}-sni-sysv4=0A+=09else=0A+=09=09echo=20ns32k-sni-sysv=0A+=09=
fi=0A+=09exit=200=20;;=0A+=20=20=20=20PENTIUM:CPunix:4.0*:*)=20#=20=
Unisys=20`ClearPath=20HMP=20IX=204000'=20SVR4/MP=20effort=0A+=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20#=20=
says=20<Richard.M.Bartel@ccMail.Census.GOV>=0A+=20=20=20=20=20=20=20=20=
echo=20i586-unisys-sysv4=0A+=20=20=20=20=20=20=20=20exit=200=20;;=0A+=20=20=
=20=20*:UNIX_System_V:4*:FTX*)=0A+=09#=20=46rom=20Gerald=20Hewes=20=
<hewes@openmarket.com>.=0A+=09#=20How=20about=20differentiating=20=
between=20stratus=20architectures?=20-djm=0A+=09echo=20=
hppa1.1-stratus-sysv4=0A+=09exit=200=20;;=0A+=20=20=20=20*:*:*:FTX*)=0A+=09=
#=20=46rom=20seanf@swdc.stratus.com.=0A+=09echo=20i860-stratus-sysv4=0A+=09=
exit=200=20;;=0A+=20=20=20=20mc68*:A/UX:*:*)=0A+=09echo=20=
m68k-apple-aux${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
news*:NEWS-OS:6*:*)=0A+=09echo=20mips-sony-newsos6=0A+=09exit=200=20;;=0A=
+=20=20=20=20R[34]000:*System_V*:*:*=20|=20R4000:UNIX_SYSV:*:*=20|=20=
R*000:UNIX_SV:*:*)=0A+=09if=20[=20-d=20/usr/nec=20];=20then=0A+=09=20=20=20=
=20=20=20=20=20echo=20mips-nec-sysv${UNAME_RELEASE}=0A+=09else=0A+=09=20=20=
=20=20=20=20=20=20echo=20mips-unknown-sysv${UNAME_RELEASE}=0A+=09fi=0A+=20=
=20=20=20=20=20=20=20exit=200=20;;=0A+=20=20=20=20BeBox:BeOS:*:*)=09#=20=
BeOS=20running=20on=20hardware=20made=20by=20Be,=20PPC=20only.=0A+=09=
echo=20powerpc-be-beos=0A+=09exit=200=20;;=0A+=20=20=20=20=
BeMac:BeOS:*:*)=09#=20BeOS=20running=20on=20Mac=20or=20Mac=20clone,=20=
PPC=20only.=0A+=09echo=20powerpc-apple-beos=0A+=09exit=200=20;;=0A+=20=20=
=20=20BePC:BeOS:*:*)=09#=20BeOS=20running=20on=20Intel=20PC=20=
compatible.=0A+=09echo=20i586-pc-beos=0A+=09exit=200=20;;=0A+=20=20=20=20=
SX-4:SUPER-UX:*:*)=0A+=09echo=20sx4-nec-superux${UNAME_RELEASE}=0A+=09=
exit=200=20;;=0A+=20=20=20=20SX-5:SUPER-UX:*:*)=0A+=09echo=20=
sx5-nec-superux${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
Power*:Rhapsody:*:*)=0A+=09echo=20powerpc-apple-rhapsody${UNAME_RELEASE}=0A=
+=09exit=200=20;;=0A+=20=20=20=20*:Rhapsody:*:*)=0A+=09echo=20=
${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=
=20=20=20*:Darwin:*:*)=0A+=09echo=20`uname=20=
-p`-apple-darwin${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
*:procnto*:*:*=20|=20*:QNX:[0123456789]*:*)=0A+=09if=20test=20=
"${UNAME_MACHINE}"=20=3D=20"x86pc";=20then=0A+=09=09UNAME_MACHINE=3Dpc=0A=
+=09fi=0A+=09echo=20`uname=20-p`-${UNAME_MACHINE}-nto-qnx=0A+=09exit=200=20=
;;=0A+=20=20=20=20*:QNX:*:4*)=0A+=09echo=20i386-pc-qnx=0A+=09exit=200=20=
;;=0A+=20=20=20=20NSR-[KW]:NONSTOP_KERNEL:*:*)=0A+=09echo=20=
nsr-tandem-nsk${UNAME_RELEASE}=0A+=09exit=200=20;;=0A+=20=20=20=20=
*:NonStop-UX:*:*)=0A+=09echo=20mips-compaq-nonstopux=0A+=09exit=200=20;;=0A=
+=20=20=20=20BS2000:POSIX*:*:*)=0A+=09echo=20bs2000-siemens-sysv=0A+=09=
exit=200=20;;=0A+=20=20=20=20DS/*:UNIX_System_V:*:*)=0A+=09echo=20=
${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}=0A+=09exit=200=20;;=0A=
+=20=20=20=20*:Plan9:*:*)=0A+=09#=20"uname=20-m"=20is=20not=20=
consistent,=20so=20use=20$cputype=20instead.=20386=0A+=09#=20is=20=
converted=20to=20i386=20for=20consistency=20with=20other=20x86=0A+=09#=20=
operating=20systems.=0A+=09if=20test=20"$cputype"=20=3D=20"386";=20then=0A=
+=09=20=20=20=20UNAME_MACHINE=3Di386=0A+=09else=0A+=09=20=20=20=20=
UNAME_MACHINE=3D"$cputype"=0A+=09fi=0A+=09echo=20=
${UNAME_MACHINE}-unknown-plan9=0A+=09exit=200=20;;=0A+=20=20=20=20=
i*86:OS/2:*:*)=0A+=09#=20If=20we=20were=20able=20to=20find=20`uname',=20=
then=20EMX=20Unix=20compatibility=0A+=09#=20is=20probably=20installed.=0A=
+=09echo=20${UNAME_MACHINE}-pc-os2-emx=0A+=09exit=200=20;;=0A+=20=20=20=20=
*:TOPS-10:*:*)=0A+=09echo=20pdp10-unknown-tops10=0A+=09exit=200=20;;=0A+=20=
=20=20=20*:TENEX:*:*)=0A+=09echo=20pdp10-unknown-tenex=0A+=09exit=200=20=
;;=0A+=20=20=20=20KS10:TOPS-20:*:*=20|=20KL10:TOPS-20:*:*=20|=20=
TYPE4:TOPS-20:*:*)=0A+=09echo=20pdp10-dec-tops20=0A+=09exit=200=20;;=0A+=20=
=20=20=20XKL-1:TOPS-20:*:*=20|=20TYPE5:TOPS-20:*:*)=0A+=09echo=20=
pdp10-xkl-tops20=0A+=09exit=200=20;;=0A+=20=20=20=20*:TOPS-20:*:*)=0A+=09=
echo=20pdp10-unknown-tops20=0A+=09exit=200=20;;=0A+=20=20=20=20=
*:ITS:*:*)=0A+=09echo=20pdp10-unknown-its=0A+=09exit=200=20;;=0A+esac=0A=
+=0A+#echo=20'(No=20uname=20command=20or=20uname=20output=20not=20=
recognized.)'=201>&2=0A+#echo=20=
"${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}"=20=
1>&2=0A+=0A+cat=20>$dummy.c=20<<EOF=0A+#ifdef=20_SEQUENT_=0A+#=20include=20=
<sys/types.h>=0A+#=20include=20<sys/utsname.h>=0A+#endif=0A+main=20()=0A=
+{=0A+#if=20defined=20(sony)=0A+#if=20defined=20(MIPSEB)=0A+=20=20/*=20=
BFD=20wants=20"bsd"=20instead=20of=20"newsos".=20=20Perhaps=20BFD=20=
should=20be=20changed,=0A+=20=20=20=20=20I=20don't=20know....=20=20*/=0A=
+=20=20printf=20("mips-sony-bsd\n");=20exit=20(0);=0A+#else=0A+#include=20=
<sys/param.h>=0A+=20=20printf=20("m68k-sony-newsos%s\n",=0A+#ifdef=20=
NEWSOS4=0A+=20=20=20=20=20=20=20=20=20=20"4"=0A+#else=0A+=09=20=20""=0A=
+#endif=0A+=20=20=20=20=20=20=20=20=20);=20exit=20(0);=0A+#endif=0A=
+#endif=0A+=0A+#if=20defined=20(__arm)=20&&=20defined=20(__acorn)=20&&=20=
defined=20(__unix)=0A+=20=20printf=20("arm-acorn-riscix");=20exit=20(0);=0A=
+#endif=0A+=0A+#if=20defined=20(hp300)=20&&=20!defined=20(hpux)=0A+=20=20=
printf=20("m68k-hp-bsd\n");=20exit=20(0);=0A+#endif=0A+=0A+#if=20defined=20=
(NeXT)=0A+#if=20!defined=20(__ARCHITECTURE__)=0A+#define=20=
__ARCHITECTURE__=20"m68k"=0A+#endif=0A+=20=20int=20version;=0A+=20=20=
version=3D`(hostinfo=20|=20sed=20-n=20's/.*NeXT=20Mach=20=
\([0-9]*\).*/\1/p')=202>/dev/null`;=0A+=20=20if=20(version=20<=204)=0A+=20=
=20=20=20printf=20("%s-next-nextstep%d\n",=20__ARCHITECTURE__,=20=
version);=0A+=20=20else=0A+=20=20=20=20printf=20("%s-next-openstep%d\n",=20=
__ARCHITECTURE__,=20version);=0A+=20=20exit=20(0);=0A+#endif=0A+=0A+#if=20=
defined=20(MULTIMAX)=20||=20defined=20(n16)=0A+#if=20defined=20(UMAXV)=0A=
+=20=20printf=20("ns32k-encore-sysv\n");=20exit=20(0);=0A+#else=0A+#if=20=
defined=20(CMU)=0A+=20=20printf=20("ns32k-encore-mach\n");=20exit=20(0);=0A=
+#else=0A+=20=20printf=20("ns32k-encore-bsd\n");=20exit=20(0);=0A+#endif=0A=
+#endif=0A+#endif=0A+=0A+#if=20defined=20(__386BSD__)=0A+=20=20printf=20=
("i386-pc-bsd\n");=20exit=20(0);=0A+#endif=0A+=0A+#if=20defined=20=
(sequent)=0A+#if=20defined=20(i386)=0A+=20=20printf=20=
("i386-sequent-dynix\n");=20exit=20(0);=0A+#endif=0A+#if=20defined=20=
(ns32000)=0A+=20=20printf=20("ns32k-sequent-dynix\n");=20exit=20(0);=0A=
+#endif=0A+#endif=0A+=0A+#if=20defined=20(_SEQUENT_)=0A+=20=20=20=20=
struct=20utsname=20un;=0A+=0A+=20=20=20=20uname(&un);=0A+=0A+=20=20=20=20=
if=20(strncmp(un.version,=20"V2",=202)=20=3D=3D=200)=20{=0A+=09printf=20=
("i386-sequent-ptx2\n");=20exit=20(0);=0A+=20=20=20=20}=0A+=20=20=20=20=
if=20(strncmp(un.version,=20"V1",=202)=20=3D=3D=200)=20{=20/*=20XXX=20is=20=
V1=20correct?=20*/=0A+=09printf=20("i386-sequent-ptx1\n");=20exit=20(0);=0A=
+=20=20=20=20}=0A+=20=20=20=20printf=20("i386-sequent-ptx\n");=20exit=20=
(0);=0A+=0A+#endif=0A+=0A+#if=20defined=20(vax)=0A+#=20if=20!defined=20=
(ultrix)=0A+#=20=20include=20<sys/param.h>=0A+#=20=20if=20defined=20=
(BSD)=0A+#=20=20=20if=20BSD=20=3D=3D=2043=0A+=20=20=20=20=20=20printf=20=
("vax-dec-bsd4.3\n");=20exit=20(0);=0A+#=20=20=20else=0A+#=20=20=20=20if=20=
BSD=20=3D=3D=20199006=0A+=20=20=20=20=20=20printf=20=
("vax-dec-bsd4.3reno\n");=20exit=20(0);=0A+#=20=20=20=20else=0A+=20=20=20=
=20=20=20printf=20("vax-dec-bsd\n");=20exit=20(0);=0A+#=20=20=20=20endif=0A=
+#=20=20=20endif=0A+#=20=20else=0A+=20=20=20=20printf=20=
("vax-dec-bsd\n");=20exit=20(0);=0A+#=20=20endif=0A+#=20else=0A+=20=20=20=
=20printf=20("vax-dec-ultrix\n");=20exit=20(0);=0A+#=20endif=0A+#endif=0A=
+=0A+#if=20defined=20(alliant)=20&&=20defined=20(i860)=0A+=20=20printf=20=
("i860-alliant-bsd\n");=20exit=20(0);=0A+#endif=0A+=0A+=20=20exit=20(1);=0A=
+}=0A+EOF=0A+=0A+$CC_FOR_BUILD=20$dummy.c=20-o=20$dummy=202>/dev/null=20=
&&=20./$dummy=20&&=20rm=20-f=20$dummy.c=20$dummy=20&&=20exit=200=0A+rm=20=
-f=20$dummy.c=20$dummy=0A+=0A+#=20Apollos=20put=20the=20system=20type=20=
in=20the=20environment.=0A+=0A+test=20-d=20/usr/apollo=20&&=20{=20echo=20=
${ISP}-apollo-${SYSTYPE};=20exit=200;=20}=0A+=0A+#=20Convex=20versions=20=
that=20predate=20uname=20can=20use=20getsysinfo(1)=0A+=0A+if=20[=20-x=20=
/usr/convex/getsysinfo=20]=0A+then=0A+=20=20=20=20case=20`getsysinfo=20=
-f=20cpu_type`=20in=0A+=20=20=20=20c1*)=0A+=09echo=20c1-convex-bsd=0A+=09=
exit=200=20;;=0A+=20=20=20=20c2*)=0A+=09if=20getsysinfo=20-f=20=
scalar_acc=0A+=09then=20echo=20c32-convex-bsd=0A+=09else=20echo=20=
c2-convex-bsd=0A+=09fi=0A+=09exit=200=20;;=0A+=20=20=20=20c34*)=0A+=09=
echo=20c34-convex-bsd=0A+=09exit=200=20;;=0A+=20=20=20=20c38*)=0A+=09=
echo=20c38-convex-bsd=0A+=09exit=200=20;;=0A+=20=20=20=20c4*)=0A+=09echo=20=
c4-convex-bsd=0A+=09exit=200=20;;=0A+=20=20=20=20esac=0A+fi=0A+=0A+cat=20=
>&2=20<<EOF=0A+$0:=20unable=20to=20guess=20system=20type=0A+=0A+This=20=
script,=20last=20modified=20$timestamp,=20has=20failed=20to=20recognize=0A=
+the=20operating=20system=20you=20are=20using.=20It=20is=20advised=20=
that=20you=0A+download=20the=20most=20up=20to=20date=20version=20of=20=
the=20config=20scripts=20from=0A+=0A+=20=20=20=20=
ftp://ftp.gnu.org/pub/gnu/config/=0A+=0A+If=20the=20version=20you=20run=20=
($0)=20is=20already=20up=20to=20date,=20please=0A+send=20the=20following=20=
data=20and=20any=20information=20you=20think=20might=20be=0A+pertinent=20=
to=20<config-patches@gnu.org>=20in=20order=20to=20provide=20the=20needed=0A=
+information=20to=20handle=20your=20system.=0A+=0A+config.guess=20=
timestamp=20=3D=20$timestamp=0A+=0A+uname=20-m=20=3D=20`(uname=20-m)=20=
2>/dev/null=20||=20echo=20unknown`=0A+uname=20-r=20=3D=20`(uname=20-r)=20=
2>/dev/null=20||=20echo=20unknown`=0A+uname=20-s=20=3D=20`(uname=20-s)=20=
2>/dev/null=20||=20echo=20unknown`=0A+uname=20-v=20=3D=20`(uname=20-v)=20=
2>/dev/null=20||=20echo=20unknown`=0A+=0A+/usr/bin/uname=20-p=20=3D=20=
`(/usr/bin/uname=20-p)=202>/dev/null`=0A+/bin/uname=20-X=20=20=20=20=20=3D=
=20`(/bin/uname=20-X)=202>/dev/null`=0A+=0A+hostinfo=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=3D=20`(hostinfo)=202>/dev/null`=0A=
+/bin/universe=20=20=20=20=20=20=20=20=20=20=3D=20`(/bin/universe)=20=
2>/dev/null`=0A+/usr/bin/arch=20-k=20=20=20=20=20=20=20=3D=20=
`(/usr/bin/arch=20-k)=202>/dev/null`=0A+/bin/arch=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=3D=20`(/bin/arch)=202>/dev/null`=0A+/usr/bin/oslevel=20=
=20=20=20=20=20=20=3D=20`(/usr/bin/oslevel)=202>/dev/null`=0A=
+/usr/convex/getsysinfo=20=3D=20`(/usr/convex/getsysinfo)=202>/dev/null`=0A=
+=0A+UNAME_MACHINE=20=3D=20${UNAME_MACHINE}=0A+UNAME_RELEASE=20=3D=20=
${UNAME_RELEASE}=0A+UNAME_SYSTEM=20=20=3D=20${UNAME_SYSTEM}=0A=
+UNAME_VERSION=20=3D=20${UNAME_VERSION}=0A+EOF=0A+=0A+exit=201=0A+=0A+#=20=
Local=20variables:=0A+#=20eval:=20(add-hook=20'write-file-hooks=20=
'time-stamp)=0A+#=20time-stamp-start:=20"timestamp=3D'"=0A+#=20=
time-stamp-format:=20"%:y-%02m-%02d"=0A+#=20time-stamp-end:=20"'"=0A+#=20=
End:=0Adiff=20-uN=20daemon/config.h.in=20daemon.ac/config.h.in=0A---=20=
daemon/config.h.in=09Wed=20Dec=2031=2019:00:00=201969=0A+++=20=
daemon.ac/config.h.in=09Thu=20Sep=2020=2017:01:42=202001=0A@@=20-0,0=20=
+1,234=20@@=0A+/*=20config.h.in.=20=20Generated=20automatically=20from=20=
configure.in=20by=20autoheader.=20=20*/=0A+/*=20$Id:=20acconfig.h,v=20=
1.110=202001/04/05=2017:15:08=20stevesk=20Exp=20$=20*/=0A+=0A+#ifndef=20=
_CONFIG_H=0A+#define=20_CONFIG_H=0A+=0A+/*=20Generated=20automatically=20=
from=20acconfig.h=20by=20autoheader.=20*/=0A+/*=20Please=20make=20your=20=
changes=20there=20*/=0A+=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
strftime=20function.=20=20*/=0A+#undef=20HAVE_STRFTIME=0A+=0A+/*=20=
Define=20as=20__inline=20if=20that's=20what=20the=20C=20compiler=20calls=20=
it.=20=20*/=0A+#undef=20inline=0A+=0A+/*=20Define=20if=20your=20=
processor=20stores=20words=20with=20the=20most=20significant=0A+=20=20=20=
byte=20first=20(like=20Motorola=20and=20SPARC,=20unlike=20Intel=20and=20=
VAX).=20=20*/=0A+#undef=20WORDS_BIGENDIAN=0A+=0A+/*=20Define=20if=20your=20=
system's=20struct=20sockaddr_un=20has=20a=20sun_len=20member=20*/=0A=
+#undef=20HAVE_SUN_LEN_IN_SOCKADDR_UN=0A+=0A+/*=20Define=20if=20your=20=
system=20defines=20sys_errlist[]=20*/=0A+#undef=20HAVE_SYS_ERRLIST=0A+=0A=
+/*=20Define=20if=20your=20system=20defines=20sys_nerr=20*/=0A+#undef=20=
HAVE_SYS_NERR=0A+=0A+/*=20Define=20if=20your=20snprintf=20is=20busted=20=
*/=0A+#undef=20BROKEN_SNPRINTF=0A+=0A+/*=20struct=20timeval=20*/=0A=
+#undef=20HAVE_STRUCT_TIMEVAL=0A+=0A+/*=20Define=20if=20libc=20defines=20=
__progname=20*/=0A+#undef=20HAVE___PROGNAME=0A+=0A+/*=20Data=20types=20=
*/=0A+#undef=20ARCH_WIN95=0A+#undef=20ARCH_SCATTER_NONE=0A+#undef=20=
ARCH_SCATTER_CONTROL=0A+#undef=20ARCH_SCATTER_ACCRIGHTS=0A+#undef=20=
HAVE_SOCKOPT_LEN_T=0A+#undef=20HAVE_STRUCT_TIMEZONE=0A+#undef=20=
HAVE_U_INT=0A+#undef=20HAVE_INTXX_T=0A+#undef=20HAVE_U_INTXX_T=0A+#undef=20=
HAVE_UINTXX_T=0A+#undef=20HAVE_INT64_T=0A+#undef=20HAVE_U_INT64_T=0A=
+#undef=20HAVE_SOCKLEN_T=0A+#undef=20HAVE_SIZE_T=0A+#undef=20=
HAVE_SSIZE_T=0A+#undef=20HAVE_CLOCK_T=0A+#undef=20HAVE_MODE_T=0A+#undef=20=
HAVE_PID_T=0A+#undef=20HAVE_SA_FAMILY_T=0A+#undef=20=
HAVE_STRUCT_SOCKADDR_STORAGE=0A+#undef=20HAVE_STRUCT_ADDRINFO=0A+#undef=20=
HAVE_STRUCT_IN6_ADDR=0A+#undef=20HAVE_STRUCT_SOCKADDR_IN6=0A+=0A+/*=20=
Fields=20in=20struct=20sockaddr_storage=20*/=0A+#undef=20=
HAVE_SS_FAMILY_IN_SS=0A+#undef=20HAVE___SS_FAMILY_IN_SS=0A+=0A+/*=20=
Specify=20location=20of=20spread.pid=20*/=0A+#undef=20=
_PATH_SPREAD_PIDDIR=0A+=0A+/*=20The=20number=20of=20bytes=20in=20a=20=
char.=20=20*/=0A+#undef=20SIZEOF_CHAR=0A+=0A+/*=20The=20number=20of=20=
bytes=20in=20a=20int.=20=20*/=0A+#undef=20SIZEOF_INT=0A+=0A+/*=20The=20=
number=20of=20bytes=20in=20a=20long=20int.=20=20*/=0A+#undef=20=
SIZEOF_LONG_INT=0A+=0A+/*=20The=20number=20of=20bytes=20in=20a=20long=20=
long=20int.=20=20*/=0A+#undef=20SIZEOF_LONG_LONG_INT=0A+=0A+/*=20The=20=
number=20of=20bytes=20in=20a=20short=20int.=20=20*/=0A+#undef=20=
SIZEOF_SHORT_INT=0A+=0A+/*=20Define=20if=20you=20have=20the=20bcopy=20=
function.=20=20*/=0A+#undef=20HAVE_BCOPY=0A+=0A+/*=20Define=20if=20you=20=
have=20the=20gettimeofday=20function.=20=20*/=0A+#undef=20=
HAVE_GETTIMEOFDAY=0A+=0A+/*=20Define=20if=20you=20have=20the=20inet_aton=20=
function.=20=20*/=0A+#undef=20HAVE_INET_ATON=0A+=0A+/*=20Define=20if=20=
you=20have=20the=20inet_ntoa=20function.=20=20*/=0A+#undef=20=
HAVE_INET_NTOA=0A+=0A+/*=20Define=20if=20you=20have=20the=20inet_ntop=20=
function.=20=20*/=0A+#undef=20HAVE_INET_NTOP=0A+=0A+/*=20Define=20if=20=
you=20have=20the=20lrand48=20function.=20=20*/=0A+#undef=20HAVE_LRAND48=0A=
+=0A+/*=20Define=20if=20you=20have=20the=20memmove=20function.=20=20*/=0A=
+#undef=20HAVE_MEMMOVE=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
setsid=20function.=20=20*/=0A+#undef=20HAVE_SETSID=0A+=0A+/*=20Define=20=
if=20you=20have=20the=20snprintf=20function.=20=20*/=0A+#undef=20=
HAVE_SNPRINTF=0A+=0A+/*=20Define=20if=20you=20have=20the=20strerror=20=
function.=20=20*/=0A+#undef=20HAVE_STRERROR=0A+=0A+/*=20Define=20if=20=
you=20have=20the=20time=20function.=20=20*/=0A+#undef=20HAVE_TIME=0A+=0A=
+/*=20Define=20if=20you=20have=20the=20<arpa/inet.h>=20header=20file.=20=20=
*/=0A+#undef=20HAVE_ARPA_INET_H=0A+=0A+/*=20Define=20if=20you=20have=20=
the=20<assert.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_ASSERT_H=0A+=0A=
+/*=20Define=20if=20you=20have=20the=20<errno.h>=20header=20file.=20=20=
*/=0A+#undef=20HAVE_ERRNO_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<grp.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_GRP_H=0A+=0A+/*=20=
Define=20if=20you=20have=20the=20<limits.h>=20header=20file.=20=20*/=0A=
+#undef=20HAVE_LIMITS_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<netdb.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_NETDB_H=0A+=0A+/*=20=
Define=20if=20you=20have=20the=20<netinet/in.h>=20header=20file.=20=20*/=0A=
+#undef=20HAVE_NETINET_IN_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<netinet/tcp.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_NETINET_TCP_H=0A=
+=0A+/*=20Define=20if=20you=20have=20the=20<process.h>=20header=20file.=20=
=20*/=0A+#undef=20HAVE_PROCESS_H=0A+=0A+/*=20Define=20if=20you=20have=20=
the=20<pthread.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_PTHREAD_H=0A=
+=0A+/*=20Define=20if=20you=20have=20the=20<pwd.h>=20header=20file.=20=20=
*/=0A+#undef=20HAVE_PWD_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<signal.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_SIGNAL_H=0A+=0A+/*=20=
Define=20if=20you=20have=20the=20<stdarg.h>=20header=20file.=20=20*/=0A=
+#undef=20HAVE_STDARG_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<stdint.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_STDINT_H=0A+=0A+/*=20=
Define=20if=20you=20have=20the=20<stdio.h>=20header=20file.=20=20*/=0A=
+#undef=20HAVE_STDIO_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<stdlib.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_STDLIB_H=0A+=0A+/*=20=
Define=20if=20you=20have=20the=20<string.h>=20header=20file.=20=20*/=0A=
+#undef=20HAVE_STRING_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<sys/inttypes.h>=20header=20file.=20=20*/=0A+#undef=20=
HAVE_SYS_INTTYPES_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<sys/ioctl.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_SYS_IOCTL_H=0A+=0A=
+/*=20Define=20if=20you=20have=20the=20<sys/param.h>=20header=20file.=20=20=
*/=0A+#undef=20HAVE_SYS_PARAM_H=0A+=0A+/*=20Define=20if=20you=20have=20=
the=20<sys/socket.h>=20header=20file.=20=20*/=0A+#undef=20=
HAVE_SYS_SOCKET_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<sys/stat.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_SYS_STAT_H=0A+=0A=
+/*=20Define=20if=20you=20have=20the=20<sys/time.h>=20header=20file.=20=20=
*/=0A+#undef=20HAVE_SYS_TIME_H=0A+=0A+/*=20Define=20if=20you=20have=20=
the=20<sys/timeb.h>=20header=20file.=20=20*/=0A+#undef=20=
HAVE_SYS_TIMEB_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<sys/types.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_SYS_TYPES_H=0A+=0A=
+/*=20Define=20if=20you=20have=20the=20<sys/uio.h>=20header=20file.=20=20=
*/=0A+#undef=20HAVE_SYS_UIO_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<sys/un.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_SYS_UN_H=0A+=0A+/*=20=
Define=20if=20you=20have=20the=20<sys/filio.h>=20header=20file.=20=20*/=0A=
+#undef=20HAVE_SYS_FILIO_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<time.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_TIME_H=0A+=0A+/*=20=
Define=20if=20you=20have=20the=20<unistd.h>=20header=20file.=20=20*/=0A=
+#undef=20HAVE_UNISTD_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
<windows.h>=20header=20file.=20=20*/=0A+#undef=20HAVE_WINDOWS_H=0A+=0A=
+/*=20Define=20if=20you=20have=20the=20<winsock.h>=20header=20file.=20=20=
*/=0A+#undef=20HAVE_WINSOCK_H=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
nsl=20library=20(-lnsl).=20=20*/=0A+#undef=20HAVE_LIBNSL=0A+=0A+/*=20=
Define=20if=20you=20have=20the=20posix4=20library=20(-lposix4).=20=20*/=0A=
+#undef=20HAVE_LIBPOSIX4=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
pthread=20library=20(-lpthread).=20=20*/=0A+#undef=20HAVE_LIBPTHREAD=0A+=0A=
+/*=20Define=20if=20you=20have=20the=20socket=20library=20(-lsocket).=20=20=
*/=0A+#undef=20HAVE_LIBSOCKET=0A+=0A+/*=20Define=20if=20you=20have=20the=20=
thread=20library=20(-lthread).=20=20*/=0A+#undef=20HAVE_LIBTHREAD=0A+=0A=
+/*=20*******************=20Shouldn't=20need=20to=20edit=20below=20this=20=
line=20**************=20*/=0A+=0A+#include=20"defines.h"=0A+=0A+#endif=20=
/*=20_CONFIG_H=20*/=0Adiff=20-uN=20daemon/config.sub=20=
daemon.ac/config.sub=0A---=20daemon/config.sub=09Wed=20Dec=2031=20=
19:00:00=201969=0A+++=20daemon.ac/config.sub=09Thu=20Sep=2020=2015:44:31=20=
2001=0A@@=20-0,0=20+1,1362=20@@=0A+#!=20/bin/sh=0A+#=20Configuration=20=
validation=20subroutine=20script.=0A+#=20=20=20Copyright=20(C)=201992,=20=
1993,=201994,=201995,=201996,=201997,=201998,=201999,=202000,=202001=0A=
+#=20=20=20Free=20Software=20Foundation,=20Inc.=0A+=0A=
+timestamp=3D'2001-04-20'=0A+=0A+#=20This=20file=20is=20(in=20principle)=20=
common=20to=20ALL=20GNU=20software.=0A+#=20The=20presence=20of=20a=20=
machine=20in=20this=20file=20suggests=20that=20SOME=20GNU=20software=0A=
+#=20can=20handle=20that=20machine.=20=20It=20does=20not=20imply=20ALL=20=
GNU=20software=20can.=0A+#=0A+#=20This=20file=20is=20free=20software;=20=
you=20can=20redistribute=20it=20and/or=20modify=0A+#=20it=20under=20the=20=
terms=20of=20the=20GNU=20General=20Public=20License=20as=20published=20=
by=0A+#=20the=20Free=20Software=20Foundation;=20either=20version=202=20=
of=20the=20License,=20or=0A+#=20(at=20your=20option)=20any=20later=20=
version.=0A+#=0A+#=20This=20program=20is=20distributed=20in=20the=20hope=20=
that=20it=20will=20be=20useful,=0A+#=20but=20WITHOUT=20ANY=20WARRANTY;=20=
without=20even=20the=20implied=20warranty=20of=0A+#=20MERCHANTABILITY=20=
or=20FITNESS=20FOR=20A=20PARTICULAR=20PURPOSE.=20=20See=20the=0A+#=20GNU=20=
General=20Public=20License=20for=20more=20details.=0A+#=0A+#=20You=20=
should=20have=20received=20a=20copy=20of=20the=20GNU=20General=20Public=20=
License=0A+#=20along=20with=20this=20program;=20if=20not,=20write=20to=20=
the=20Free=20Software=0A+#=20Foundation,=20Inc.,=2059=20Temple=20Place=20=
-=20Suite=20330,=0A+#=20Boston,=20MA=2002111-1307,=20USA.=0A+=0A+#=20As=20=
a=20special=20exception=20to=20the=20GNU=20General=20Public=20License,=20=
if=20you=0A+#=20distribute=20this=20file=20as=20part=20of=20a=20program=20=
that=20contains=20a=0A+#=20configuration=20script=20generated=20by=20=
Autoconf,=20you=20may=20include=20it=20under=0A+#=20the=20same=20=
distribution=20terms=20that=20you=20use=20for=20the=20rest=20of=20that=20=
program.=0A+=0A+#=20Please=20send=20patches=20to=20=
<config-patches@gnu.org>.=0A+#=0A+#=20Configuration=20subroutine=20to=20=
validate=20and=20canonicalize=20a=20configuration=20type.=0A+#=20Supply=20=
the=20specified=20configuration=20type=20as=20an=20argument.=0A+#=20If=20=
it=20is=20invalid,=20we=20print=20an=20error=20message=20on=20stderr=20=
and=20exit=20with=20code=201.=0A+#=20Otherwise,=20we=20print=20the=20=
canonical=20config=20type=20on=20stdout=20and=20succeed.=0A+=0A+#=20This=20=
file=20is=20supposed=20to=20be=20the=20same=20for=20all=20GNU=20packages=0A=
+#=20and=20recognize=20all=20the=20CPU=20types,=20system=20types=20and=20=
aliases=0A+#=20that=20are=20meaningful=20with=20*any*=20GNU=20software.=0A=
+#=20Each=20package=20is=20responsible=20for=20reporting=20which=20valid=20=
configurations=0A+#=20it=20does=20not=20support.=20=20The=20user=20=
should=20be=20able=20to=20distinguish=0A+#=20a=20failure=20to=20support=20=
a=20valid=20configuration=20from=20a=20meaningless=0A+#=20configuration.=0A=
+=0A+#=20The=20goal=20of=20this=20file=20is=20to=20map=20all=20the=20=
various=20variations=20of=20a=20given=0A+#=20machine=20specification=20=
into=20a=20single=20specification=20in=20the=20form:=0A+#=09=
CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM=0A+#=20or=20in=20some=20cases,=20=
the=20newer=20four-part=20form:=0A+#=09=
CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM=0A+#=20It=20is=20wrong=20=
to=20echo=20any=20other=20type=20of=20specification.=0A+=0A+me=3D`echo=20=
"$0"=20|=20sed=20-e=20's,.*/,,'`=0A+=0A+usage=3D"\=0A+Usage:=20$0=20=
[OPTION]=20CPU-MFR-OPSYS=0A+=20=20=20=20=20=20=20$0=20[OPTION]=20ALIAS=0A=
+=0A+Canonicalize=20a=20configuration=20name.=0A+=0A+Operation=20modes:=0A=
+=20=20-h,=20--help=20=20=20=20=20=20=20=20=20print=20this=20help,=20=
then=20exit=0A+=20=20-t,=20--time-stamp=20=20=20print=20date=20of=20last=20=
modification,=20then=20exit=0A+=20=20-v,=20--version=20=20=20=20=20=20=
print=20version=20number,=20then=20exit=0A+=0A+Report=20bugs=20and=20=
patches=20to=20<config-patches@gnu.org>."=0A+=0A+version=3D"\=0A+GNU=20=
config.sub=20($timestamp)=0A+=0A+Copyright=20(C)=201992,=201993,=201994,=20=
1995,=201996,=201997,=201998,=201999,=202000,=202001=0A+Free=20Software=20=
Foundation,=20Inc.=0A+=0A+This=20is=20free=20software;=20see=20the=20=
source=20for=20copying=20conditions.=20=20There=20is=20NO=0A+warranty;=20=
not=20even=20for=20MERCHANTABILITY=20or=20FITNESS=20FOR=20A=20PARTICULAR=20=
PURPOSE."=0A+=0A+help=3D"=0A+Try=20\`$me=20--help'=20for=20more=20=
information."=0A+=0A+#=20Parse=20command=20line=0A+while=20test=20$#=20=
-gt=200=20;=20do=0A+=20=20case=20$1=20in=0A+=20=20=20=20--time-stamp=20|=20=
--time*=20|=20-t=20)=0A+=20=20=20=20=20=20=20echo=20"$timestamp"=20;=20=
exit=200=20;;=0A+=20=20=20=20--version=20|=20-v=20)=0A+=20=20=20=20=20=20=
=20echo=20"$version"=20;=20exit=200=20;;=0A+=20=20=20=20--help=20|=20=
--h*=20|=20-h=20)=0A+=20=20=20=20=20=20=20echo=20"$usage";=20exit=200=20=
;;=0A+=20=20=20=20--=20)=20=20=20=20=20#=20Stop=20option=20processing=0A=
+=20=20=20=20=20=20=20shift;=20break=20;;=0A+=20=20=20=20-=20)=09#=20Use=20=
stdin=20as=20input.=0A+=20=20=20=20=20=20=20break=20;;=0A+=20=20=20=20-*=20=
)=0A+=20=20=20=20=20=20=20echo=20"$me:=20invalid=20option=20$1$help"=0A+=20=
=20=20=20=20=20=20exit=201=20;;=0A+=0A+=20=20=20=20*local*)=0A+=20=20=20=20=
=20=20=20#=20First=20pass=20through=20any=20local=20machine=20types.=0A+=20=
=20=20=20=20=20=20echo=20$1=0A+=20=20=20=20=20=20=20exit=200;;=0A+=0A+=20=
=20=20=20*=20)=0A+=20=20=20=20=20=20=20break=20;;=0A+=20=20esac=0A+done=0A=
+=0A+case=20$#=20in=0A+=200)=20echo=20"$me:=20missing=20argument$help"=20=
>&2=0A+=20=20=20=20exit=201;;=0A+=201)=20;;=0A+=20*)=20echo=20"$me:=20=
too=20many=20arguments$help"=20>&2=0A+=20=20=20=20exit=201;;=0A+esac=0A+=0A=
+#=20Separate=20what=20the=20user=20gave=20into=20CPU-COMPANY=20and=20OS=20=
or=20KERNEL-OS=20(if=20any).=0A+#=20Here=20we=20must=20recognize=20all=20=
the=20valid=20KERNEL-OS=20combinations.=0A+maybe_os=3D`echo=20$1=20|=20=
sed=20's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`=0A+case=20$maybe_os=20in=0A+=20=20=
nto-qnx*=20|=20linux-gnu*=20|=20storm-chaos*=20|=20os2-emx*)=0A+=20=20=20=
=20os=3D-$maybe_os=0A+=20=20=20=20basic_machine=3D`echo=20$1=20|=20sed=20=
's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`=0A+=20=20=20=20;;=0A+=20=20*)=0A+=20=20=
=20=20basic_machine=3D`echo=20$1=20|=20sed=20's/-[^-]*$//'`=0A+=20=20=20=20=
if=20[=20$basic_machine=20!=3D=20$1=20]=0A+=20=20=20=20then=20os=3D`echo=20=
$1=20|=20sed=20's/.*-/-/'`=0A+=20=20=20=20else=20os=3D;=20fi=0A+=20=20=20=
=20;;=0A+esac=0A+=0A+###=20Let's=20recognize=20common=20machines=20as=20=
not=20being=20operating=20systems=20so=0A+###=20that=20things=20like=20=
config.sub=20decstation-3100=20work.=20=20We=20also=0A+###=20recognize=20=
some=20manufacturers=20as=20not=20being=20operating=20systems,=20so=20we=0A=
+###=20can=20provide=20default=20operating=20systems=20below.=0A+case=20=
$os=20in=0A+=09-sun*os*)=0A+=09=09#=20Prevent=20following=20clause=20=
from=20handling=20this=20invalid=20input.=0A+=09=09;;=0A+=09-dec*=20|=20=
-mips*=20|=20-sequent*=20|=20-encore*=20|=20-pc532*=20|=20-sgi*=20|=20=
-sony*=20|=20\=0A+=09-att*=20|=20-7300*=20|=20-3300*=20|=20-delta*=20|=20=
-motorola*=20|=20-sun[234]*=20|=20\=0A+=09-unicom*=20|=20-ibm*=20|=20=
-next=20|=20-hp=20|=20-isi*=20|=20-apollo=20|=20-altos*=20|=20\=0A+=09=
-convergent*=20|=20-ncr*=20|=20-news=20|=20-32*=20|=20-3600*=20|=20=
-3100*=20|=20-hitachi*=20|\=0A+=09-c[123]*=20|=20-convex*=20|=20-sun=20|=20=
-crds=20|=20-omron*=20|=20-dg=20|=20-ultra=20|=20-tti*=20|=20\=0A+=09=
-harris=20|=20-dolphin=20|=20-highlevel=20|=20-gould=20|=20-cbm=20|=20=
-ns=20|=20-masscomp=20|=20\=0A+=09-apple=20|=20-axis)=0A+=09=09os=3D=0A+=09=
=09basic_machine=3D$1=0A+=09=09;;=0A+=09-sim=20|=20-cisco=20|=20-oki=20|=20=
-wec=20|=20-winbond)=0A+=09=09os=3D=0A+=09=09basic_machine=3D$1=0A+=09=09=
;;=0A+=09-scout)=0A+=09=09;;=0A+=09-wrs)=0A+=09=09os=3D-vxworks=0A+=09=09=
basic_machine=3D$1=0A+=09=09;;=0A+=09-hiux*)=0A+=09=09os=3D-hiuxwe2=0A+=09=
=09;;=0A+=09-sco5)=0A+=09=09os=3D-sco3.2v5=0A+=09=09basic_machine=3D`echo=20=
$1=20|=20sed=20-e=20's/86-.*/86-pc/'`=0A+=09=09;;=0A+=09-sco4)=0A+=09=09=
os=3D-sco3.2v4=0A+=09=09basic_machine=3D`echo=20$1=20|=20sed=20-e=20=
's/86-.*/86-pc/'`=0A+=09=09;;=0A+=09-sco3.2.[4-9]*)=0A+=09=09os=3D`echo=20=
$os=20|=20sed=20-e=20's/sco3.2./sco3.2v/'`=0A+=09=09basic_machine=3D`echo=20=
$1=20|=20sed=20-e=20's/86-.*/86-pc/'`=0A+=09=09;;=0A+=09-sco3.2v[4-9]*)=0A=
+=09=09#=20Don't=20forget=20version=20if=20it=20is=203.2v4=20or=20newer.=0A=
+=09=09basic_machine=3D`echo=20$1=20|=20sed=20-e=20's/86-.*/86-pc/'`=0A+=09=
=09;;=0A+=09-sco*)=0A+=09=09os=3D-sco3.2v2=0A+=09=09basic_machine=3D`echo=20=
$1=20|=20sed=20-e=20's/86-.*/86-pc/'`=0A+=09=09;;=0A+=09-udk*)=0A+=09=09=
basic_machine=3D`echo=20$1=20|=20sed=20-e=20's/86-.*/86-pc/'`=0A+=09=09=
;;=0A+=09-isc)=0A+=09=09os=3D-isc2.2=0A+=09=09basic_machine=3D`echo=20$1=20=
|=20sed=20-e=20's/86-.*/86-pc/'`=0A+=09=09;;=0A+=09-clix*)=0A+=09=09=
basic_machine=3Dclipper-intergraph=0A+=09=09;;=0A+=09-isc*)=0A+=09=09=
basic_machine=3D`echo=20$1=20|=20sed=20-e=20's/86-.*/86-pc/'`=0A+=09=09=
;;=0A+=09-lynx*)=0A+=09=09os=3D-lynxos=0A+=09=09;;=0A+=09-ptx*)=0A+=09=09=
basic_machine=3D`echo=20$1=20|=20sed=20-e=20's/86-.*/86-sequent/'`=0A+=09=
=09;;=0A+=09-windowsnt*)=0A+=09=09os=3D`echo=20$os=20|=20sed=20-e=20=
's/windowsnt/winnt/'`=0A+=09=09;;=0A+=09-psos*)=0A+=09=09os=3D-psos=0A+=09=
=09;;=0A+=09-mint=20|=20-mint[0-9]*)=0A+=09=09basic_machine=3Dm68k-atari=0A=
+=09=09os=3D-mint=0A+=09=09;;=0A+esac=0A+=0A+#=20Decode=20aliases=20for=20=
certain=20CPU-COMPANY=20combinations.=0A+case=20$basic_machine=20in=0A+=09=
#=20Recognize=20the=20basic=20CPU=20types=20without=20company=20name.=0A=
+=09#=20Some=20are=20omitted=20here=20because=20they=20have=20special=20=
meanings=20below.=0A+=09tahoe=20|=20i860=20|=20ia64=20|=20m32r=20|=20=
m68k=20|=20m68000=20|=20m88k=20|=20ns32k=20|=20arc=20\=0A+=09=20=20=20=20=
=20=20=20=20|=20arm=20|=20arme[lb]=20|=20arm[bl]e=20|=20armv[2345]=20|=20=
armv[345][lb]=20|=20strongarm=20|=20xscale=20\=0A+=09=09|=20pyramid=20|=20=
mn10200=20|=20mn10300=20|=20tron=20|=20a29k=20\=0A+=09=09|=20580=20|=20=
i960=20|=20h8300=20\=0A+=09=09|=20x86=20|=20ppcbe=20|=20mipsbe=20|=20=
mipsle=20|=20shbe=20|=20shle=20\=0A+=09=09|=20hppa=20|=20hppa1.0=20|=20=
hppa1.1=20|=20hppa2.0=20|=20hppa2.0w=20|=20hppa2.0n=20\=0A+=09=09|=20=
hppa64=20\=0A+=09=09|=20alpha=20|=20alphaev[4-8]=20|=20alphaev56=20|=20=
alphapca5[67]=20\=0A+=09=09|=20alphaev6[78]=20\=0A+=09=09|=20we32k=20|=20=
ns16k=20|=20clipper=20|=20i370=20|=20sh=20|=20sh[34]=20\=0A+=09=09|=20=
powerpc=20|=20powerpcle=20\=0A+=09=09|=201750a=20|=20dsp16xx=20|=20pdp10=20=
|=20pdp11=20\=0A+=09=09|=20mips16=20|=20mips64=20|=20mipsel=20|=20=
mips64el=20\=0A+=09=09|=20mips64orion=20|=20mips64orionel=20|=20mipstx39=20=
|=20mipstx39el=20\=0A+=09=09|=20mips64vr4300=20|=20mips64vr4300el=20|=20=
mips64vr4100=20|=20mips64vr4100el=20\=0A+=09=09|=20mips64vr5000=20|=20=
miprs64vr5000el=20|=20mcore=20|=20s390=20|=20s390x=20\=0A+=09=09|=20=
sparc=20|=20sparclet=20|=20sparclite=20|=20sparc64=20|=20sparcv9=20|=20=
sparcv9b=20\=0A+=09=09|=20v850=20|=20c4x=20\=0A+=09=09|=20thumb=20|=20=
d10v=20|=20d30v=20|=20fr30=20|=20avr=20|=20openrisc=20|=20tic80=20\=0A+=09=
=09|=20pj=20|=20pjl=20|=20h8500)=0A+=09=09=
basic_machine=3D$basic_machine-unknown=0A+=09=09;;=0A+=09m6811=20|=20=
m68hc11=20|=20m6812=20|=20m68hc12)=0A+=09=09#=20Motorola=2068HC11/12.=0A=
+=09=09basic_machine=3D$basic_machine-unknown=0A+=09=09os=3D-none=0A+=09=09=
;;=0A+=09m88110=20|=20m680[12346]0=20|=20m683?2=20|=20m68360=20|=20m5200=20=
|=20z8k=20|=20v70=20|=20w65)=0A+=09=09;;=0A+=0A+=09#=20We=20use=20`pc'=20=
rather=20than=20`unknown'=0A+=09#=20because=20(1)=20that's=20what=20they=20=
normally=20are,=20and=0A+=09#=20(2)=20the=20word=20"unknown"=20tends=20=
to=20confuse=20beginning=20users.=0A+=09i*86=20|=20x86_64)=0A+=09=20=20=
basic_machine=3D$basic_machine-pc=0A+=09=20=20;;=0A+=09#=20Object=20if=20=
more=20than=20one=20company=20name=20word.=0A+=09*-*-*)=0A+=09=09echo=20=
Invalid=20configuration=20\`$1\':=20machine=20\`$basic_machine\'=20not=20=
recognized=201>&2=0A+=09=09exit=201=0A+=09=09;;=0A+=09#=20Recognize=20=
the=20basic=20CPU=20types=20with=20company=20name.=0A+=09#=20FIXME:=20=
clean=20up=20the=20formatting=20here.=0A+=09vax-*=20|=20tahoe-*=20|=20=
i*86-*=20|=20i860-*=20|=20ia64-*=20|=20m32r-*=20|=20m68k-*=20|=20=
m68000-*=20\=0A+=09=20=20=20=20=20=20|=20m88k-*=20|=20sparc-*=20|=20=
ns32k-*=20|=20fx80-*=20|=20arc-*=20|=20c[123]*=20\=0A+=09=20=20=20=20=20=20=
|=20arm-*=20=20|=20armbe-*=20|=20armle-*=20|=20armv*-*=20|=20strongarm-*=20=
|=20xscale-*=20\=0A+=09=20=20=20=20=20=20|=20mips-*=20|=20pyramid-*=20|=20=
tron-*=20|=20a29k-*=20|=20romp-*=20|=20rs6000-*=20\=0A+=09=20=20=20=20=20=
=20|=20power-*=20|=20none-*=20|=20580-*=20|=20cray2-*=20|=20h8300-*=20|=20=
h8500-*=20|=20i960-*=20\=0A+=09=20=20=20=20=20=20|=20xmp-*=20|=20ymp-*=20=
\=0A+=09=20=20=20=20=20=20|=20x86-*=20|=20ppcbe-*=20|=20mipsbe-*=20|=20=
mipsle-*=20|=20shbe-*=20|=20shle-*=20\=0A+=09=20=20=20=20=20=20|=20=
hppa-*=20|=20hppa1.0-*=20|=20hppa1.1-*=20|=20hppa2.0-*=20|=20hppa2.0w-*=20=
\=0A+=09=20=20=20=20=20=20|=20hppa2.0n-*=20|=20hppa64-*=20\=0A+=09=20=20=20=
=20=20=20|=20alpha-*=20|=20alphaev[4-8]-*=20|=20alphaev56-*=20|=20=
alphapca5[67]-*=20\=0A+=09=20=20=20=20=20=20|=20alphaev6[78]-*=20\=0A+=09=
=20=20=20=20=20=20|=20we32k-*=20|=20cydra-*=20|=20ns16k-*=20|=20pn-*=20|=20=
np1-*=20|=20xps100-*=20\=0A+=09=20=20=20=20=20=20|=20clipper-*=20|=20=
orion-*=20\=0A+=09=20=20=20=20=20=20|=20sparclite-*=20|=20pdp10-*=20|=20=
pdp11-*=20|=20sh-*=20|=20powerpc-*=20|=20powerpcle-*=20\=0A+=09=20=20=20=20=
=20=20|=20sparc64-*=20|=20sparcv9-*=20|=20sparcv9b-*=20|=20sparc86x-*=20=
\=0A+=09=20=20=20=20=20=20|=20mips16-*=20|=20mips64-*=20|=20mipsel-*=20\=0A=
+=09=20=20=20=20=20=20|=20mips64el-*=20|=20mips64orion-*=20|=20=
mips64orionel-*=20\=0A+=09=20=20=20=20=20=20|=20mips64vr4100-*=20|=20=
mips64vr4100el-*=20|=20mips64vr4300-*=20|=20mips64vr4300el-*=20\=0A+=09=20=
=20=20=20=20=20|=20mipstx39-*=20|=20mipstx39el-*=20|=20mcore-*=20\=0A+=09=
=20=20=20=20=20=20|=20f30[01]-*=20|=20f700-*=20|=20s390-*=20|=20s390x-*=20=
|=20sv1-*=20|=20t3e-*=20\=0A+=09=20=20=20=20=20=20|=20[cjt]90-*=20\=0A+=09=
=20=20=20=20=20=20|=20m88110-*=20|=20m680[01234]0-*=20|=20m683?2-*=20|=20=
m68360-*=20|=20z8k-*=20|=20d10v-*=20\=0A+=09=20=20=20=20=20=20|=20=
thumb-*=20|=20v850-*=20|=20d30v-*=20|=20tic30-*=20|=20tic80-*=20|=20=
c30-*=20|=20fr30-*=20\=0A+=09=20=20=20=20=20=20|=20bs2000-*=20|=20=
tic54x-*=20|=20c54x-*=20|=20x86_64-*=20|=20pj-*=20|=20pjl-*)=0A+=09=09;;=0A=
+=09#=20Recognize=20the=20various=20machine=20names=20and=20aliases=20=
which=20stand=0A+=09#=20for=20a=20CPU=20type=20and=20a=20company=20and=20=
sometimes=20even=20an=20OS.=0A+=09386bsd)=0A+=09=09=
basic_machine=3Di386-unknown=0A+=09=09os=3D-bsd=0A+=09=09;;=0A+=093b1=20=
|=207300=20|=207300-att=20|=20att-7300=20|=20pc7300=20|=20safari=20|=20=
unixpc)=0A+=09=09basic_machine=3Dm68000-att=0A+=09=09;;=0A+=093b*)=0A+=09=
=09basic_machine=3Dwe32k-att=0A+=09=09;;=0A+=09a29khif)=0A+=09=09=
basic_machine=3Da29k-amd=0A+=09=09os=3D-udi=0A+=09=09;;=0A+=09adobe68k)=0A=
+=09=09basic_machine=3Dm68010-adobe=0A+=09=09os=3D-scout=0A+=09=09;;=0A+=09=
alliant=20|=20fx80)=0A+=09=09basic_machine=3Dfx80-alliant=0A+=09=09;;=0A=
+=09altos=20|=20altos3068)=0A+=09=09basic_machine=3Dm68k-altos=0A+=09=09=
;;=0A+=09am29k)=0A+=09=09basic_machine=3Da29k-none=0A+=09=09os=3D-bsd=0A=
+=09=09;;=0A+=09amdahl)=0A+=09=09basic_machine=3D580-amdahl=0A+=09=09=
os=3D-sysv=0A+=09=09;;=0A+=09amiga=20|=20amiga-*)=0A+=09=09=
basic_machine=3Dm68k-unknown=0A+=09=09;;=0A+=09amigaos=20|=20amigados)=0A=
+=09=09basic_machine=3Dm68k-unknown=0A+=09=09os=3D-amigaos=0A+=09=09;;=0A=
+=09amigaunix=20|=20amix)=0A+=09=09basic_machine=3Dm68k-unknown=0A+=09=09=
os=3D-sysv4=0A+=09=09;;=0A+=09apollo68)=0A+=09=09=
basic_machine=3Dm68k-apollo=0A+=09=09os=3D-sysv=0A+=09=09;;=0A+=09=
apollo68bsd)=0A+=09=09basic_machine=3Dm68k-apollo=0A+=09=09os=3D-bsd=0A+=09=
=09;;=0A+=09aux)=0A+=09=09basic_machine=3Dm68k-apple=0A+=09=09os=3D-aux=0A=
+=09=09;;=0A+=09balance)=0A+=09=09basic_machine=3Dns32k-sequent=0A+=09=09=
os=3D-dynix=0A+=09=09;;=0A+=09convex-c1)=0A+=09=09=
basic_machine=3Dc1-convex=0A+=09=09os=3D-bsd=0A+=09=09;;=0A+=09=
convex-c2)=0A+=09=09basic_machine=3Dc2-convex=0A+=09=09os=3D-bsd=0A+=09=09=
;;=0A+=09convex-c32)=0A+=09=09basic_machine=3Dc32-convex=0A+=09=09=
os=3D-bsd=0A+=09=09;;=0A+=09convex-c34)=0A+=09=09=
basic_machine=3Dc34-convex=0A+=09=09os=3D-bsd=0A+=09=09;;=0A+=09=
convex-c38)=0A+=09=09basic_machine=3Dc38-convex=0A+=09=09os=3D-bsd=0A+=09=
=09;;=0A+=09cray=20|=20ymp)=0A+=09=09basic_machine=3Dymp-cray=0A+=09=09=
os=3D-unicos=0A+=09=09;;=0A+=09cray2)=0A+=09=09basic_machine=3Dcray2-cray=0A=
+=09=09os=3D-unicos=0A+=09=09;;=0A+=09[cjt]90)=0A+=09=09=
basic_machine=3D${basic_machine}-cray=0A+=09=09os=3D-unicos=0A+=09=09;;=0A=
+=09crds=20|=20unos)=0A+=09=09basic_machine=3Dm68k-crds=0A+=09=09;;=0A+=09=
cris=20|=20cris-*=20|=20etrax*)=0A+=09=09basic_machine=3Dcris-axis=0A+=09=
=09;;=0A+=09da30=20|=20da30-*)=0A+=09=09basic_machine=3Dm68k-da30=0A+=09=09=
;;=0A+=09decstation=20|=20decstation-3100=20|=20pmax=20|=20pmax-*=20|=20=
pmin=20|=20dec3100=20|=20decstatn)=0A+=09=09basic_machine=3Dmips-dec=0A+=09=
=09;;=0A+=09delta=20|=203300=20|=20motorola-3300=20|=20motorola-delta=20=
\=0A+=09=20=20=20=20=20=20|=203300-motorola=20|=20delta-motorola)=0A+=09=09=
basic_machine=3Dm68k-motorola=0A+=09=09;;=0A+=09delta88)=0A+=09=09=
basic_machine=3Dm88k-motorola=0A+=09=09os=3D-sysv3=0A+=09=09;;=0A+=09=
dpx20=20|=20dpx20-*)=0A+=09=09basic_machine=3Drs6000-bull=0A+=09=09=
os=3D-bosx=0A+=09=09;;=0A+=09dpx2*=20|=20dpx2*-bull)=0A+=09=09=
basic_machine=3Dm68k-bull=0A+=09=09os=3D-sysv3=0A+=09=09;;=0A+=09=
ebmon29k)=0A+=09=09basic_machine=3Da29k-amd=0A+=09=09os=3D-ebmon=0A+=09=09=
;;=0A+=09elxsi)=0A+=09=09basic_machine=3Delxsi-elxsi=0A+=09=09os=3D-bsd=0A=
+=09=09;;=0A+=09encore=20|=20umax=20|=20mmax)=0A+=09=09=
basic_machine=3Dns32k-encore=0A+=09=09;;=0A+=09es1800=20|=20OSE68k=20|=20=
ose68k=20|=20ose=20|=20OSE)=0A+=09=09basic_machine=3Dm68k-ericsson=0A+=09=
=09os=3D-ose=0A+=09=09;;=0A+=09fx2800)=0A+=09=09=
basic_machine=3Di860-alliant=0A+=09=09;;=0A+=09genix)=0A+=09=09=
basic_machine=3Dns32k-ns=0A+=09=09;;=0A+=09gmicro)=0A+=09=09=
basic_machine=3Dtron-gmicro=0A+=09=09os=3D-sysv=0A+=09=09;;=0A+=09go32)=0A=
+=09=09basic_machine=3Di386-pc=0A+=09=09os=3D-go32=0A+=09=09;;=0A+=09=
h3050r*=20|=20hiux*)=0A+=09=09basic_machine=3Dhppa1.1-hitachi=0A+=09=09=
os=3D-hiuxwe2=0A+=09=09;;=0A+=09h8300hms)=0A+=09=09=
basic_machine=3Dh8300-hitachi=0A+=09=09os=3D-hms=0A+=09=09;;=0A+=09=
h8300xray)=0A+=09=09basic_machine=3Dh8300-hitachi=0A+=09=09os=3D-xray=0A=
+=09=09;;=0A+=09h8500hms)=0A+=09=09basic_machine=3Dh8500-hitachi=0A+=09=09=
os=3D-hms=0A+=09=09;;=0A+=09harris)=0A+=09=09basic_machine=3Dm88k-harris=0A=
+=09=09os=3D-sysv3=0A+=09=09;;=0A+=09hp300-*)=0A+=09=09=
basic_machine=3Dm68k-hp=0A+=09=09;;=0A+=09hp300bsd)=0A+=09=09=
basic_machine=3Dm68k-hp=0A+=09=09os=3D-bsd=0A+=09=09;;=0A+=09hp300hpux)=0A=
+=09=09basic_machine=3Dm68k-hp=0A+=09=09os=3D-hpux=0A+=09=09;;=0A+=09=
hp3k9[0-9][0-9]=20|=20hp9[0-9][0-9])=0A+=09=09basic_machine=3Dhppa1.0-hp=0A=
+=09=09;;=0A+=09hp9k2[0-9][0-9]=20|=20hp9k31[0-9])=0A+=09=09=
basic_machine=3Dm68000-hp=0A+=09=09;;=0A+=09hp9k3[2-9][0-9])=0A+=09=09=
basic_machine=3Dm68k-hp=0A+=09=09;;=0A+=09hp9k6[0-9][0-9]=20|=20=
hp6[0-9][0-9])=0A+=09=09basic_machine=3Dhppa1.0-hp=0A+=09=09;;=0A+=09=
hp9k7[0-79][0-9]=20|=20hp7[0-79][0-9])=0A+=09=09basic_machine=3Dhppa1.1-hp=
=0A+=09=09;;=0A+=09hp9k78[0-9]=20|=20hp78[0-9])=0A+=09=09#=20FIXME:=20=
really=20hppa2.0-hp=0A+=09=09basic_machine=3Dhppa1.1-hp=0A+=09=09;;=0A+=09=
hp9k8[67]1=20|=20hp8[67]1=20|=20hp9k80[24]=20|=20hp80[24]=20|=20=
hp9k8[78]9=20|=20hp8[78]9=20|=20hp9k893=20|=20hp893)=0A+=09=09#=20FIXME:=20=
really=20hppa2.0-hp=0A+=09=09basic_machine=3Dhppa1.1-hp=0A+=09=09;;=0A+=09=
hp9k8[0-9][13679]=20|=20hp8[0-9][13679])=0A+=09=09=
basic_machine=3Dhppa1.1-hp=0A+=09=09;;=0A+=09hp9k8[0-9][0-9]=20|=20=
hp8[0-9][0-9])=0A+=09=09basic_machine=3Dhppa1.0-hp=0A+=09=09;;=0A+=09=
hppa-next)=0A+=09=09os=3D-nextstep3=0A+=09=09;;=0A+=09hppaosf)=0A+=09=09=
basic_machine=3Dhppa1.1-hp=0A+=09=09os=3D-osf=0A+=09=09;;=0A+=09hppro)=0A=
+=09=09basic_machine=3Dhppa1.1-hp=0A+=09=09os=3D-proelf=0A+=09=09;;=0A+=09=
i370-ibm*=20|=20ibm*)=0A+=09=09basic_machine=3Di370-ibm=0A+=09=09;;=0A+#=20=
I'm=20not=20sure=20what=20"Sysv32"=20means.=20=20Should=20this=20be=20=
sysv3.2?=0A+=09i*86v32)=0A+=09=09basic_machine=3D`echo=20$1=20|=20sed=20=
-e=20's/86.*/86-pc/'`=0A+=09=09os=3D-sysv32=0A+=09=09;;=0A+=09i*86v4*)=0A=
+=09=09basic_machine=3D`echo=20$1=20|=20sed=20-e=20's/86.*/86-pc/'`=0A+=09=
=09os=3D-sysv4=0A+=09=09;;=0A+=09i*86v)=0A+=09=09basic_machine=3D`echo=20=
$1=20|=20sed=20-e=20's/86.*/86-pc/'`=0A+=09=09os=3D-sysv=0A+=09=09;;=0A+=09=
i*86sol2)=0A+=09=09basic_machine=3D`echo=20$1=20|=20sed=20-e=20=
's/86.*/86-pc/'`=0A+=09=09os=3D-solaris2=0A+=09=09;;=0A+=09i386mach)=0A+=09=
=09basic_machine=3Di386-mach=0A+=09=09os=3D-mach=0A+=09=09;;=0A+=09=
i386-vsta=20|=20vsta)=0A+=09=09basic_machine=3Di386-unknown=0A+=09=09=
os=3D-vsta=0A+=09=09;;=0A+=09iris=20|=20iris4d)=0A+=09=09=
basic_machine=3Dmips-sgi=0A+=09=09case=20$os=20in=0A+=09=09=20=20=20=20=
-irix*)=0A+=09=09=09;;=0A+=09=09=20=20=20=20*)=0A+=09=09=09os=3D-irix4=0A=
+=09=09=09;;=0A+=09=09esac=0A+=09=09;;=0A+=09isi68=20|=20isi)=0A+=09=09=
basic_machine=3Dm68k-isi=0A+=09=09os=3D-sysv=0A+=09=09;;=0A+=09=
m88k-omron*)=0A+=09=09basic_machine=3Dm88k-omron=0A+=09=09;;=0A+=09=
magnum=20|=20m3230)=0A+=09=09basic_machine=3Dmips-mips=0A+=09=09os=3D-sysv=
=0A+=09=09;;=0A+=09merlin)=0A+=09=09basic_machine=3Dns32k-utek=0A+=09=09=
os=3D-sysv=0A+=09=09;;=0A+=09mingw32)=0A+=09=09basic_machine=3Di386-pc=0A=
+=09=09os=3D-mingw32=0A+=09=09;;=0A+=09miniframe)=0A+=09=09=
basic_machine=3Dm68000-convergent=0A+=09=09;;=0A+=09*mint=20|=20=
-mint[0-9]*=20|=20*MiNT=20|=20*MiNT[0-9]*)=0A+=09=09=
basic_machine=3Dm68k-atari=0A+=09=09os=3D-mint=0A+=09=09;;=0A+=09=
mipsel*-linux*)=0A+=09=09basic_machine=3Dmipsel-unknown=0A+=09=09=
os=3D-linux-gnu=0A+=09=09;;=0A+=09mips*-linux*)=0A+=09=09=
basic_machine=3Dmips-unknown=0A+=09=09os=3D-linux-gnu=0A+=09=09;;=0A+=09=
mips3*-*)=0A+=09=09basic_machine=3D`echo=20$basic_machine=20|=20sed=20-e=20=
's/mips3/mips64/'`=0A+=09=09;;=0A+=09mips3*)=0A+=09=09=
basic_machine=3D`echo=20$basic_machine=20|=20sed=20-e=20=
's/mips3/mips64/'`-unknown=0A+=09=09;;=0A+=09mmix*)=0A+=09=09=
basic_machine=3Dmmix-knuth=0A+=09=09os=3D-mmixware=0A+=09=09;;=0A+=09=
monitor)=0A+=09=09basic_machine=3Dm68k-rom68k=0A+=09=09os=3D-coff=0A+=09=09=
;;=0A+=09msdos)=0A+=09=09basic_machine=3Di386-pc=0A+=09=09os=3D-msdos=0A=
+=09=09;;=0A+=09mvs)=0A+=09=09basic_machine=3Di370-ibm=0A+=09=09os=3D-mvs=0A=
+=09=09;;=0A+=09ncr3000)=0A+=09=09basic_machine=3Di486-ncr=0A+=09=09=
os=3D-sysv4=0A+=09=09;;=0A+=09netbsd386)=0A+=09=09=
basic_machine=3Di386-unknown=0A+=09=09os=3D-netbsd=0A+=09=09;;=0A+=09=
netwinder)=0A+=09=09basic_machine=3Darmv4l-rebel=0A+=09=09os=3D-linux=0A=
+=09=09;;=0A+=09news=20|=20news700=20|=20news800=20|=20news900)=0A+=09=09=
basic_machine=3Dm68k-sony=0A+=09=09os=3D-newsos=0A+=09=09;;=0A+=09=
news1000)=0A+=09=09basic_machine=3Dm68030-sony=0A+=09=09os=3D-newsos=0A+=09=
=09;;=0A+=09news-3600=20|=20risc-news)=0A+=09=09basic_machine=3Dmips-sony=0A=
+=09=09os=3D-newsos=0A+=09=09;;=0A+=09necv70)=0A+=09=09=
basic_machine=3Dv70-nec=0A+=09=09os=3D-sysv=0A+=09=09;;=0A+=09next=20|=20=
m*-next=20)=0A+=09=09basic_machine=3Dm68k-next=0A+=09=09case=20$os=20in=0A=
+=09=09=20=20=20=20-nextstep*=20)=0A+=09=09=09;;=0A+=09=09=20=20=20=20=
-ns2*)=0A+=09=09=20=20=20=20=20=20os=3D-nextstep2=0A+=09=09=09;;=0A+=09=09=
=20=20=20=20*)=0A+=09=09=20=20=20=20=20=20os=3D-nextstep3=0A+=09=09=09;;=0A=
+=09=09esac=0A+=09=09;;=0A+=09nh3000)=0A+=09=09basic_machine=3Dm68k-harris=
=0A+=09=09os=3D-cxux=0A+=09=09;;=0A+=09nh[45]000)=0A+=09=09=
basic_machine=3Dm88k-harris=0A+=09=09os=3D-cxux=0A+=09=09;;=0A+=09=
nindy960)=0A+=09=09basic_machine=3Di960-intel=0A+=09=09os=3D-nindy=0A+=09=
=09;;=0A+=09mon960)=0A+=09=09basic_machine=3Di960-intel=0A+=09=09=
os=3D-mon960=0A+=09=09;;=0A+=09nonstopux)=0A+=09=09=
basic_machine=3Dmips-compaq=0A+=09=09os=3D-nonstopux=0A+=09=09;;=0A+=09=
np1)=0A+=09=09basic_machine=3Dnp1-gould=0A+=09=09;;=0A+=09nsr-tandem)=0A=
+=09=09basic_machine=3Dnsr-tandem=0A+=09=09;;=0A+=09op50n-*=20|=20=
op60c-*)=0A+=09=09basic_machine=3Dhppa1.1-oki=0A+=09=09os=3D-proelf=0A+=09=
=09;;=0A+=09OSE68000=20|=20ose68000)=0A+=09=09=
basic_machine=3Dm68000-ericsson=0A+=09=09os=3D-ose=0A+=09=09;;=0A+=09=
os68k)=0A+=09=09basic_machine=3Dm68k-none=0A+=09=09os=3D-os68k=0A+=09=09=
;;=0A+=09pa-hitachi)=0A+=09=09basic_machine=3Dhppa1.1-hitachi=0A+=09=09=
os=3D-hiuxwe2=0A+=09=09;;=0A+=09paragon)=0A+=09=09=
basic_machine=3Di860-intel=0A+=09=09os=3D-osf=0A+=09=09;;=0A+=09pbd)=0A+=09=
=09basic_machine=3Dsparc-tti=0A+=09=09;;=0A+=09pbb)=0A+=09=09=
basic_machine=3Dm68k-tti=0A+=09=09;;=0A+=20=20=20=20=20=20=20=20pc532=20=
|=20pc532-*)=0A+=09=09basic_machine=3Dns32k-pc532=0A+=09=09;;=0A+=09=
pentium=20|=20p5=20|=20k5=20|=20k6=20|=20nexgen)=0A+=09=09=
basic_machine=3Di586-pc=0A+=09=09;;=0A+=09pentiumpro=20|=20p6=20|=206x86=20=
|=20athlon)=0A+=09=09basic_machine=3Di686-pc=0A+=09=09;;=0A+=09pentiumii=20=
|=20pentium2)=0A+=09=09basic_machine=3Di686-pc=0A+=09=09;;=0A+=09=
pentium-*=20|=20p5-*=20|=20k5-*=20|=20k6-*=20|=20nexgen-*)=0A+=09=09=
basic_machine=3Di586-`echo=20$basic_machine=20|=20sed=20's/^[^-]*-//'`=0A=
+=09=09;;=0A+=09pentiumpro-*=20|=20p6-*=20|=206x86-*=20|=20athlon-*)=0A+=09=
=09basic_machine=3Di686-`echo=20$basic_machine=20|=20sed=20=
's/^[^-]*-//'`=0A+=09=09;;=0A+=09pentiumii-*=20|=20pentium2-*)=0A+=09=09=
basic_machine=3Di686-`echo=20$basic_machine=20|=20sed=20's/^[^-]*-//'`=0A=
+=09=09;;=0A+=09pn)=0A+=09=09basic_machine=3Dpn-gould=0A+=09=09;;=0A+=09=
power)=09basic_machine=3Dpower-ibm=0A+=09=09;;=0A+=09ppc)=09=
basic_machine=3Dpowerpc-unknown=0A+=09=20=20=20=20=20=20=20=20;;=0A+=09=
ppc-*)=09basic_machine=3Dpowerpc-`echo=20$basic_machine=20|=20sed=20=
's/^[^-]*-//'`=0A+=09=09;;=0A+=09ppcle=20|=20powerpclittle=20|=20ppc-le=20=
|=20powerpc-little)=0A+=09=09basic_machine=3Dpowerpcle-unknown=0A+=09=20=20=
=20=20=20=20=20=20;;=0A+=09ppcle-*=20|=20powerpclittle-*)=0A+=09=09=
basic_machine=3Dpowerpcle-`echo=20$basic_machine=20|=20sed=20=
's/^[^-]*-//'`=0A+=09=09;;=0A+=09ps2)=0A+=09=09basic_machine=3Di386-ibm=0A=
+=09=09;;=0A+=09pw32)=0A+=09=09basic_machine=3Di586-unknown=0A+=09=09=
os=3D-pw32=0A+=09=09;;=0A+=09rom68k)=0A+=09=09basic_machine=3Dm68k-rom68k=0A=
+=09=09os=3D-coff=0A+=09=09;;=0A+=09rm[46]00)=0A+=09=09=
basic_machine=3Dmips-siemens=0A+=09=09;;=0A+=09rtpc=20|=20rtpc-*)=0A+=09=09=
basic_machine=3Dromp-ibm=0A+=09=09;;=0A+=09sa29200)=0A+=09=09=
basic_machine=3Da29k-amd=0A+=09=09os=3D-udi=0A+=09=09;;=0A+=09sequent)=0A=
+=09=09basic_machine=3Di386-sequent=0A+=09=09;;=0A+=09sh)=0A+=09=09=
basic_machine=3Dsh-hitachi=0A+=09=09os=3D-hms=0A+=09=09;;=0A+=09=
sparclite-wrs)=0A+=09=09basic_machine=3Dsparclite-wrs=0A+=09=09=
os=3D-vxworks=0A+=09=09;;=0A+=09sps7)=0A+=09=09basic_machine=3Dm68k-bull=0A=
+=09=09os=3D-sysv2=0A+=09=09;;=0A+=09spur)=0A+=09=09=
basic_machine=3Dspur-unknown=0A+=09=09;;=0A+=09st2000)=0A+=09=09=
basic_machine=3Dm68k-tandem=0A+=09=09;;=0A+=09stratus)=0A+=09=09=
basic_machine=3Di860-stratus=0A+=09=09os=3D-sysv4=0A+=09=09;;=0A+=09=
sun2)=0A+=09=09basic_machine=3Dm68000-sun=0A+=09=09;;=0A+=09sun2os3)=0A+=09=
=09basic_machine=3Dm68000-sun=0A+=09=09os=3D-sunos3=0A+=09=09;;=0A+=09=
sun2os4)=0A+=09=09basic_machine=3Dm68000-sun=0A+=09=09os=3D-sunos4=0A+=09=
=09;;=0A+=09sun3os3)=0A+=09=09basic_machine=3Dm68k-sun=0A+=09=09=
os=3D-sunos3=0A+=09=09;;=0A+=09sun3os4)=0A+=09=09basic_machine=3Dm68k-sun=0A=
+=09=09os=3D-sunos4=0A+=09=09;;=0A+=09sun4os3)=0A+=09=09=
basic_machine=3Dsparc-sun=0A+=09=09os=3D-sunos3=0A+=09=09;;=0A+=09=
sun4os4)=0A+=09=09basic_machine=3Dsparc-sun=0A+=09=09os=3D-sunos4=0A+=09=09=
;;=0A+=09sun4sol2)=0A+=09=09basic_machine=3Dsparc-sun=0A+=09=09=
os=3D-solaris2=0A+=09=09;;=0A+=09sun3=20|=20sun3-*)=0A+=09=09=
basic_machine=3Dm68k-sun=0A+=09=09;;=0A+=09sun4)=0A+=09=09=
basic_machine=3Dsparc-sun=0A+=09=09;;=0A+=09sun386=20|=20sun386i=20|=20=
roadrunner)=0A+=09=09basic_machine=3Di386-sun=0A+=09=09;;=0A+=09sv1)=0A+=09=
=09basic_machine=3Dsv1-cray=0A+=09=09os=3D-unicos=0A+=09=09;;=0A+=09=
symmetry)=0A+=09=09basic_machine=3Di386-sequent=0A+=09=09os=3D-dynix=0A+=09=
=09;;=0A+=09t3e)=0A+=09=09basic_machine=3Dt3e-cray=0A+=09=09os=3D-unicos=0A=
+=09=09;;=0A+=09tic54x=20|=20c54x*)=0A+=09=09=
basic_machine=3Dtic54x-unknown=0A+=09=09os=3D-coff=0A+=09=09;;=0A+=09=
tx39)=0A+=09=09basic_machine=3Dmipstx39-unknown=0A+=09=09;;=0A+=09=
tx39el)=0A+=09=09basic_machine=3Dmipstx39el-unknown=0A+=09=09;;=0A+=09=
tower=20|=20tower-32)=0A+=09=09basic_machine=3Dm68k-ncr=0A+=09=09;;=0A+=09=
udi29k)=0A+=09=09basic_machine=3Da29k-amd=0A+=09=09os=3D-udi=0A+=09=09;;=0A=
+=09ultra3)=0A+=09=09basic_machine=3Da29k-nyu=0A+=09=09os=3D-sym1=0A+=09=09=
;;=0A+=09v810=20|=20necv810)=0A+=09=09basic_machine=3Dv810-nec=0A+=09=09=
os=3D-none=0A+=09=09;;=0A+=09vaxv)=0A+=09=09basic_machine=3Dvax-dec=0A+=09=
=09os=3D-sysv=0A+=09=09;;=0A+=09vms)=0A+=09=09basic_machine=3Dvax-dec=0A=
+=09=09os=3D-vms=0A+=09=09;;=0A+=09vpp*|vx|vx-*)=0A+=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20basic_machine=3Df301-fujitsu=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20;;=0A+=09vxworks960)=0A+=09=09=
basic_machine=3Di960-wrs=0A+=09=09os=3D-vxworks=0A+=09=09;;=0A+=09=
vxworks68)=0A+=09=09basic_machine=3Dm68k-wrs=0A+=09=09os=3D-vxworks=0A+=09=
=09;;=0A+=09vxworks29k)=0A+=09=09basic_machine=3Da29k-wrs=0A+=09=09=
os=3D-vxworks=0A+=09=09;;=0A+=09w65*)=0A+=09=09basic_machine=3Dw65-wdc=0A=
+=09=09os=3D-none=0A+=09=09;;=0A+=09w89k-*)=0A+=09=09=
basic_machine=3Dhppa1.1-winbond=0A+=09=09os=3D-proelf=0A+=09=09;;=0A+=09=
xmp)=0A+=09=09basic_machine=3Dxmp-cray=0A+=09=09os=3D-unicos=0A+=09=09;;=0A=
+=20=20=20=20=20=20=20=20xps=20|=20xps100)=0A+=09=09=
basic_machine=3Dxps100-honeywell=0A+=09=09;;=0A+=09z8k-*-coff)=0A+=09=09=
basic_machine=3Dz8k-unknown=0A+=09=09os=3D-sim=0A+=09=09;;=0A+=09none)=0A=
+=09=09basic_machine=3Dnone-none=0A+=09=09os=3D-none=0A+=09=09;;=0A+=0A=
+#=20Here=20we=20handle=20the=20default=20manufacturer=20of=20certain=20=
CPU=20types.=20=20It=20is=20in=0A+#=20some=20cases=20the=20only=20=
manufacturer,=20in=20others,=20it=20is=20the=20most=20popular.=0A+=09=
w89k)=0A+=09=09basic_machine=3Dhppa1.1-winbond=0A+=09=09;;=0A+=09op50n)=0A=
+=09=09basic_machine=3Dhppa1.1-oki=0A+=09=09;;=0A+=09op60c)=0A+=09=09=
basic_machine=3Dhppa1.1-oki=0A+=09=09;;=0A+=09mips)=0A+=09=09if=20[=20=
x$os=20=3D=20x-linux-gnu=20];=20then=0A+=09=09=09=
basic_machine=3Dmips-unknown=0A+=09=09else=0A+=09=09=09=
basic_machine=3Dmips-mips=0A+=09=09fi=0A+=09=09;;=0A+=09romp)=0A+=09=09=
basic_machine=3Dromp-ibm=0A+=09=09;;=0A+=09rs6000)=0A+=09=09=
basic_machine=3Drs6000-ibm=0A+=09=09;;=0A+=09vax)=0A+=09=09=
basic_machine=3Dvax-dec=0A+=09=09;;=0A+=09pdp10)=0A+=09=09#=20there=20=
are=20many=20clones,=20so=20DEC=20is=20not=20a=20safe=20bet=0A+=09=09=
basic_machine=3Dpdp10-unknown=0A+=09=09;;=0A+=09pdp11)=0A+=09=09=
basic_machine=3Dpdp11-dec=0A+=09=09;;=0A+=09we32k)=0A+=09=09=
basic_machine=3Dwe32k-att=0A+=09=09;;=0A+=09sh3=20|=20sh4)=0A+=09=09=
basic_machine=3Dsh-unknown=0A+=09=09;;=0A+=09sparc=20|=20sparcv9=20|=20=
sparcv9b)=0A+=09=09basic_machine=3Dsparc-sun=0A+=09=09;;=0A+=20=20=20=20=20=
=20=20=20cydra)=0A+=09=09basic_machine=3Dcydra-cydrome=0A+=09=09;;=0A+=09=
orion)=0A+=09=09basic_machine=3Dorion-highlevel=0A+=09=09;;=0A+=09=
orion105)=0A+=09=09basic_machine=3Dclipper-highlevel=0A+=09=09;;=0A+=09=
mac=20|=20mpw=20|=20mac-mpw)=0A+=09=09basic_machine=3Dm68k-apple=0A+=09=09=
;;=0A+=09pmac=20|=20pmac-mpw)=0A+=09=09basic_machine=3Dpowerpc-apple=0A+=09=
=09;;=0A+=09c4x*)=0A+=09=09basic_machine=3Dc4x-none=0A+=09=09os=3D-coff=0A=
+=09=09;;=0A+=09*-unknown)=0A+=09=09#=20Make=20sure=20to=20match=20an=20=
already-canonicalized=20machine=20name.=0A+=09=09;;=0A+=09*)=0A+=09=09=
echo=20Invalid=20configuration=20\`$1\':=20machine=20\`$basic_machine\'=20=
not=20recognized=201>&2=0A+=09=09exit=201=0A+=09=09;;=0A+esac=0A+=0A+#=20=
Here=20we=20canonicalize=20certain=20aliases=20for=20manufacturers.=0A=
+case=20$basic_machine=20in=0A+=09*-digital*)=0A+=09=09=
basic_machine=3D`echo=20$basic_machine=20|=20sed=20's/digital.*/dec/'`=0A=
+=09=09;;=0A+=09*-commodore*)=0A+=09=09basic_machine=3D`echo=20=
$basic_machine=20|=20sed=20's/commodore.*/cbm/'`=0A+=09=09;;=0A+=09*)=0A=
+=09=09;;=0A+esac=0A+=0A+#=20Decode=20manufacturer-specific=20aliases=20=
for=20certain=20operating=20systems.=0A+=0A+if=20[=20x"$os"=20!=3D=20x""=20=
]=0A+then=0A+case=20$os=20in=0A+=20=20=20=20=20=20=20=20#=20First=20=
match=20some=20system=20type=20aliases=0A+=20=20=20=20=20=20=20=20#=20=
that=20might=20get=20confused=20with=20valid=20system=20types.=0A+=09#=20=
-solaris*=20is=20a=20basic=20system=20type,=20with=20this=20one=20=
exception.=0A+=09-solaris1=20|=20-solaris1.*)=0A+=09=09os=3D`echo=20$os=20=
|=20sed=20-e=20's|solaris1|sunos4|'`=0A+=09=09;;=0A+=09-solaris)=0A+=09=09=
os=3D-solaris2=0A+=09=09;;=0A+=09-svr4*)=0A+=09=09os=3D-sysv4=0A+=09=09=
;;=0A+=09-unixware*)=0A+=09=09os=3D-sysv4.2uw=0A+=09=09;;=0A+=09=
-gnu/linux*)=0A+=09=09os=3D`echo=20$os=20|=20sed=20-e=20=
's|gnu/linux|linux-gnu|'`=0A+=09=09;;=0A+=09#=20First=20accept=20the=20=
basic=20system=20types.=0A+=09#=20The=20portable=20systems=20comes=20=
first.=0A+=09#=20Each=20alternative=20MUST=20END=20IN=20A=20*,=20to=20=
match=20a=20version=20number.=0A+=09#=20-sysv*=20is=20not=20here=20=
because=20it=20comes=20later,=20after=20sysvr4.=0A+=09-gnu*=20|=20-bsd*=20=
|=20-mach*=20|=20-minix*=20|=20-genix*=20|=20-ultrix*=20|=20-irix*=20\=0A=
+=09=20=20=20=20=20=20|=20-*vms*=20|=20-sco*=20|=20-esix*=20|=20-isc*=20=
|=20-aix*=20|=20-sunos=20|=20-sunos[34]*\=0A+=09=20=20=20=20=20=20|=20=
-hpux*=20|=20-unos*=20|=20-osf*=20|=20-luna*=20|=20-dgux*=20|=20=
-solaris*=20|=20-sym*=20\=0A+=09=20=20=20=20=20=20|=20-amigaos*=20|=20=
-amigados*=20|=20-msdos*=20|=20-newsos*=20|=20-unicos*=20|=20-aof*=20\=0A=
+=09=20=20=20=20=20=20|=20-aos*=20\=0A+=09=20=20=20=20=20=20|=20-nindy*=20=
|=20-vxsim*=20|=20-vxworks*=20|=20-ebmon*=20|=20-hms*=20|=20-mvs*=20\=0A=
+=09=20=20=20=20=20=20|=20-clix*=20|=20-riscos*=20|=20-uniplus*=20|=20=
-iris*=20|=20-rtu*=20|=20-xenix*=20\=0A+=09=20=20=20=20=20=20|=20-hiux*=20=
|=20-386bsd*=20|=20-netbsd*=20|=20-openbsd*=20|=20-freebsd*=20|=20=
-riscix*=20\=0A+=09=20=20=20=20=20=20|=20-lynxos*=20|=20-bosx*=20|=20=
-nextstep*=20|=20-cxux*=20|=20-aout*=20|=20-elf*=20|=20-oabi*=20\=0A+=09=20=
=20=20=20=20=20|=20-ptx*=20|=20-coff*=20|=20-ecoff*=20|=20-winnt*=20|=20=
-domain*=20|=20-vsta*=20\=0A+=09=20=20=20=20=20=20|=20-udi*=20|=20-eabi*=20=
|=20-lites*=20|=20-ieee*=20|=20-go32*=20|=20-aux*=20\=0A+=09=20=20=20=20=20=
=20|=20-cygwin*=20|=20-pe*=20|=20-psos*=20|=20-moss*=20|=20-proelf*=20|=20=
-rtems*=20\=0A+=09=20=20=20=20=20=20|=20-mingw32*=20|=20-linux-gnu*=20|=20=
-uxpv*=20|=20-beos*=20|=20-mpeix*=20|=20-udk*=20\=0A+=09=20=20=20=20=20=20=
|=20-interix*=20|=20-uwin*=20|=20-rhapsody*=20|=20-darwin*=20|=20=
-opened*=20\=0A+=09=20=20=20=20=20=20|=20-openstep*=20|=20-oskit*=20|=20=
-conix*=20|=20-pw32*=20|=20-nonstopux*=20\=0A+=09=20=20=20=20=20=20|=20=
-storm-chaos*=20|=20-tops10*=20|=20-tenex*=20|=20-tops20*=20|=20-its*=20=
|=20-os2*)=0A+=09#=20Remember,=20each=20alternative=20MUST=20END=20IN=20=
*,=20to=20match=20a=20version=20number.=0A+=09=09;;=0A+=09-qnx*)=0A+=09=09=
case=20$basic_machine=20in=0A+=09=09=20=20=20=20x86-*=20|=20i*86-*)=0A+=09=
=09=09;;=0A+=09=09=20=20=20=20*)=0A+=09=09=09os=3D-nto$os=0A+=09=09=09;;=0A=
+=09=09esac=0A+=09=09;;=0A+=09-nto*)=0A+=09=09os=3D-nto-qnx=0A+=09=09;;=0A=
+=09-sim=20|=20-es1800*=20|=20-hms*=20|=20-xray=20|=20-os68k*=20|=20=
-none*=20|=20-v88r*=20\=0A+=09=20=20=20=20=20=20|=20-windows*=20|=20-osx=20=
|=20-abug=20|=20-netware*=20|=20-os9*=20|=20-beos*=20\=0A+=09=20=20=20=20=
=20=20|=20-macos*=20|=20-mpw*=20|=20-magic*=20|=20-mmixware*=20|=20=
-mon960*=20|=20-lnews*)=0A+=09=09;;=0A+=09-mac*)=0A+=09=09os=3D`echo=20=
$os=20|=20sed=20-e=20's|mac|macos|'`=0A+=09=09;;=0A+=09-linux*)=0A+=09=09=
os=3D`echo=20$os=20|=20sed=20-e=20's|linux|linux-gnu|'`=0A+=09=09;;=0A+=09=
-sunos5*)=0A+=09=09os=3D`echo=20$os=20|=20sed=20-e=20=
's|sunos5|solaris2|'`=0A+=09=09;;=0A+=09-sunos6*)=0A+=09=09os=3D`echo=20=
$os=20|=20sed=20-e=20's|sunos6|solaris3|'`=0A+=09=09;;=0A+=09-opened*)=0A=
+=09=09os=3D-openedition=0A+=09=09;;=0A+=09-wince*)=0A+=09=09os=3D-wince=0A=
+=09=09;;=0A+=09-osfrose*)=0A+=09=09os=3D-osfrose=0A+=09=09;;=0A+=09=
-osf*)=0A+=09=09os=3D-osf=0A+=09=09;;=0A+=09-utek*)=0A+=09=09os=3D-bsd=0A=
+=09=09;;=0A+=09-dynix*)=0A+=09=09os=3D-bsd=0A+=09=09;;=0A+=09-acis*)=0A=
+=09=09os=3D-aos=0A+=09=09;;=0A+=09-386bsd)=0A+=09=09os=3D-bsd=0A+=09=09=
;;=0A+=09-ctix*=20|=20-uts*)=0A+=09=09os=3D-sysv=0A+=09=09;;=0A+=09-ns2=20=
)=0A+=09=20=20=20=20=20=20=20=20os=3D-nextstep2=0A+=09=09;;=0A+=09-nsk*)=0A=
+=09=09os=3D-nsk=0A+=09=09;;=0A+=09#=20Preserve=20the=20version=20number=20=
of=20sinix5.=0A+=09-sinix5.*)=0A+=09=09os=3D`echo=20$os=20|=20sed=20-e=20=
's|sinix|sysv|'`=0A+=09=09;;=0A+=09-sinix*)=0A+=09=09os=3D-sysv4=0A+=09=09=
;;=0A+=09-triton*)=0A+=09=09os=3D-sysv3=0A+=09=09;;=0A+=09-oss*)=0A+=09=09=
os=3D-sysv3=0A+=09=09;;=0A+=09-svr4)=0A+=09=09os=3D-sysv4=0A+=09=09;;=0A=
+=09-svr3)=0A+=09=09os=3D-sysv3=0A+=09=09;;=0A+=09-sysvr4)=0A+=09=09=
os=3D-sysv4=0A+=09=09;;=0A+=09#=20This=20must=20come=20after=20-sysvr4.=0A=
+=09-sysv*)=0A+=09=09;;=0A+=09-ose*)=0A+=09=09os=3D-ose=0A+=09=09;;=0A+=09=
-es1800*)=0A+=09=09os=3D-ose=0A+=09=09;;=0A+=09-xenix)=0A+=09=09=
os=3D-xenix=0A+=09=09;;=0A+=20=20=20=20=20=20=20=20-*mint=20|=20=
-mint[0-9]*=20|=20-*MiNT=20|=20-MiNT[0-9]*)=0A+=09=20=20=20=20=20=20=20=20=
os=3D-mint=0A+=09=09;;=0A+=09-none)=0A+=09=09;;=0A+=09*)=0A+=09=09#=20=
Get=20rid=20of=20the=20`-'=20at=20the=20beginning=20of=20$os.=0A+=09=09=
os=3D`echo=20$os=20|=20sed=20's/[^-]*-//'`=0A+=09=09echo=20Invalid=20=
configuration=20\`$1\':=20system=20\`$os\'=20not=20recognized=201>&2=0A+=09=
=09exit=201=0A+=09=09;;=0A+esac=0A+else=0A+=0A+#=20Here=20we=20handle=20=
the=20default=20operating=20systems=20that=20come=20with=20various=20=
machines.=0A+#=20The=20value=20should=20be=20what=20the=20vendor=20=
currently=20ships=20out=20the=20door=20with=20their=0A+#=20machine=20or=20=
put=20another=20way,=20the=20most=20popular=20os=20provided=20with=20the=20=
machine.=0A+=0A+#=20Note=20that=20if=20you're=20going=20to=20try=20to=20=
match=20"-MANUFACTURER"=20here=20(say,=0A+#=20"-sun"),=20then=20you=20=
have=20to=20tell=20the=20case=20statement=20up=20towards=20the=20top=0A=
+#=20that=20MANUFACTURER=20isn't=20an=20operating=20system.=20=20=
Otherwise,=20code=20above=0A+#=20will=20signal=20an=20error=20saying=20=
that=20MANUFACTURER=20isn't=20an=20operating=0A+#=20system,=20and=20=
we'll=20never=20get=20to=20this=20point.=0A+=0A+case=20$basic_machine=20=
in=0A+=09*-acorn)=0A+=09=09os=3D-riscix1.2=0A+=09=09;;=0A+=09arm*-rebel)=0A=
+=09=09os=3D-linux=0A+=09=09;;=0A+=09arm*-semi)=0A+=09=09os=3D-aout=0A+=09=
=09;;=0A+=09pdp10-*)=0A+=09=09os=3D-tops20=0A+=09=09;;=0A+=20=20=20=20=20=
=20=20=20pdp11-*)=0A+=09=09os=3D-none=0A+=09=09;;=0A+=09*-dec=20|=20=
vax-*)=0A+=09=09os=3D-ultrix4.2=0A+=09=09;;=0A+=09m68*-apollo)=0A+=09=09=
os=3D-domain=0A+=09=09;;=0A+=09i386-sun)=0A+=09=09os=3D-sunos4.0.2=0A+=09=
=09;;=0A+=09m68000-sun)=0A+=09=09os=3D-sunos3=0A+=09=09#=20This=20also=20=
exists=20in=20the=20configure=20program,=20but=20was=20not=20the=0A+=09=09=
#=20default.=0A+=09=09#=20os=3D-sunos4=0A+=09=09;;=0A+=09m68*-cisco)=0A+=09=
=09os=3D-aout=0A+=09=09;;=0A+=09mips*-cisco)=0A+=09=09os=3D-elf=0A+=09=09=
;;=0A+=09mips*-*)=0A+=09=09os=3D-elf=0A+=09=09;;=0A+=09*-tti)=09#=20must=20=
be=20before=20sparc=20entry=20or=20we=20get=20the=20wrong=20os.=0A+=09=09=
os=3D-sysv3=0A+=09=09;;=0A+=09sparc-*=20|=20*-sun)=0A+=09=09=
os=3D-sunos4.1.1=0A+=09=09;;=0A+=09*-be)=0A+=09=09os=3D-beos=0A+=09=09;;=0A=
+=09*-ibm)=0A+=09=09os=3D-aix=0A+=09=09;;=0A+=09*-wec)=0A+=09=09=
os=3D-proelf=0A+=09=09;;=0A+=09*-winbond)=0A+=09=09os=3D-proelf=0A+=09=09=
;;=0A+=09*-oki)=0A+=09=09os=3D-proelf=0A+=09=09;;=0A+=09*-hp)=0A+=09=09=
os=3D-hpux=0A+=09=09;;=0A+=09*-hitachi)=0A+=09=09os=3D-hiux=0A+=09=09;;=0A=
+=09i860-*=20|=20*-att=20|=20*-ncr=20|=20*-altos=20|=20*-motorola=20|=20=
*-convergent)=0A+=09=09os=3D-sysv=0A+=09=09;;=0A+=09*-cbm)=0A+=09=09=
os=3D-amigaos=0A+=09=09;;=0A+=09*-dg)=0A+=09=09os=3D-dgux=0A+=09=09;;=0A=
+=09*-dolphin)=0A+=09=09os=3D-sysv3=0A+=09=09;;=0A+=09m68k-ccur)=0A+=09=09=
os=3D-rtu=0A+=09=09;;=0A+=09m88k-omron*)=0A+=09=09os=3D-luna=0A+=09=09;;=0A=
+=09*-next=20)=0A+=09=09os=3D-nextstep=0A+=09=09;;=0A+=09*-sequent)=0A+=09=
=09os=3D-ptx=0A+=09=09;;=0A+=09*-crds)=0A+=09=09os=3D-unos=0A+=09=09;;=0A=
+=09*-ns)=0A+=09=09os=3D-genix=0A+=09=09;;=0A+=09i370-*)=0A+=09=09=
os=3D-mvs=0A+=09=09;;=0A+=09*-next)=0A+=09=09os=3D-nextstep3=0A+=09=09;;=0A=
+=20=20=20=20=20=20=20=20*-gould)=0A+=09=09os=3D-sysv=0A+=09=09;;=0A+=20=20=
=20=20=20=20=20=20*-highlevel)=0A+=09=09os=3D-bsd=0A+=09=09;;=0A+=09=
*-encore)=0A+=09=09os=3D-bsd=0A+=09=09;;=0A+=20=20=20=20=20=20=20=20=
*-sgi)=0A+=09=09os=3D-irix=0A+=09=09;;=0A+=20=20=20=20=20=20=20=20=
*-siemens)=0A+=09=09os=3D-sysv4=0A+=09=09;;=0A+=09*-masscomp)=0A+=09=09=
os=3D-rtu=0A+=09=09;;=0A+=09f30[01]-fujitsu=20|=20f700-fujitsu)=0A+=09=09=
os=3D-uxpv=0A+=09=09;;=0A+=09*-rom68k)=0A+=09=09os=3D-coff=0A+=09=09;;=0A=
+=09*-*bug)=0A+=09=09os=3D-coff=0A+=09=09;;=0A+=09*-apple)=0A+=09=09=
os=3D-macos=0A+=09=09;;=0A+=09*-atari*)=0A+=09=09os=3D-mint=0A+=09=09;;=0A=
+=09*)=0A+=09=09os=3D-none=0A+=09=09;;=0A+esac=0A+fi=0A+=0A+#=20Here=20=
we=20handle=20the=20case=20where=20we=20know=20the=20os,=20and=20the=20=
CPU=20type,=20but=20not=20the=0A+#=20manufacturer.=20=20We=20pick=20the=20=
logical=20manufacturer.=0A+vendor=3Dunknown=0A+case=20$basic_machine=20=
in=0A+=09*-unknown)=0A+=09=09case=20$os=20in=0A+=09=09=09-riscix*)=0A+=09=
=09=09=09vendor=3Dacorn=0A+=09=09=09=09;;=0A+=09=09=09-sunos*)=0A+=09=09=09=
=09vendor=3Dsun=0A+=09=09=09=09;;=0A+=09=09=09-aix*)=0A+=09=09=09=09=
vendor=3Dibm=0A+=09=09=09=09;;=0A+=09=09=09-beos*)=0A+=09=09=09=09=
vendor=3Dbe=0A+=09=09=09=09;;=0A+=09=09=09-hpux*)=0A+=09=09=09=09=
vendor=3Dhp=0A+=09=09=09=09;;=0A+=09=09=09-mpeix*)=0A+=09=09=09=09=
vendor=3Dhp=0A+=09=09=09=09;;=0A+=09=09=09-hiux*)=0A+=09=09=09=09=
vendor=3Dhitachi=0A+=09=09=09=09;;=0A+=09=09=09-unos*)=0A+=09=09=09=09=
vendor=3Dcrds=0A+=09=09=09=09;;=0A+=09=09=09-dgux*)=0A+=09=09=09=09=
vendor=3Ddg=0A+=09=09=09=09;;=0A+=09=09=09-luna*)=0A+=09=09=09=09=
vendor=3Domron=0A+=09=09=09=09;;=0A+=09=09=09-genix*)=0A+=09=09=09=09=
vendor=3Dns=0A+=09=09=09=09;;=0A+=09=09=09-mvs*=20|=20-opened*)=0A+=09=09=
=09=09vendor=3Dibm=0A+=09=09=09=09;;=0A+=09=09=09-ptx*)=0A+=09=09=09=09=
vendor=3Dsequent=0A+=09=09=09=09;;=0A+=09=09=09-vxsim*=20|=20-vxworks*)=0A=
+=09=09=09=09vendor=3Dwrs=0A+=09=09=09=09;;=0A+=09=09=09-aux*)=0A+=09=09=09=
=09vendor=3Dapple=0A+=09=09=09=09;;=0A+=09=09=09-hms*)=0A+=09=09=09=09=
vendor=3Dhitachi=0A+=09=09=09=09;;=0A+=09=09=09-mpw*=20|=20-macos*)=0A+=09=
=09=09=09vendor=3Dapple=0A+=09=09=09=09;;=0A+=09=09=09-*mint=20|=20=
-mint[0-9]*=20|=20-*MiNT=20|=20-MiNT[0-9]*)=0A+=09=09=09=09vendor=3Datari=0A=
+=09=09=09=09;;=0A+=09=09esac=0A+=09=09basic_machine=3D`echo=20=
$basic_machine=20|=20sed=20"s/unknown/$vendor/"`=0A+=09=09;;=0A+esac=0A+=0A=
+echo=20$basic_machine$os=0A+exit=200=0A+=0A+#=20Local=20variables:=0A+#=20=
eval:=20(add-hook=20'write-file-hooks=20'time-stamp)=0A+#=20=
time-stamp-start:=20"timestamp=3D'"=0A+#=20time-stamp-format:=20=
"%:y-%02m-%02d"=0A+#=20time-stamp-end:=20"'"=0A+#=20End:=0Adiff=20-uN=20=
daemon/configuration.c=20daemon.ac/configuration.c=0A---=20=
daemon/configuration.c=09Tue=20Aug=2021=2010:28:21=202001=0A+++=20=
daemon.ac/configuration.c=09Thu=20Sep=2020=2015:44:31=202001=0A@@=20=
-113,8=20+113,8=20@@=0A=20=09=09if=20(NULL=20!=3D=20(yyin=20=3D=20=
fopen("./spread.conf",=20"r"))=20)=0A=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20Alarm(=20PRINT,=20"Conf_init:=20=
using=20file:=20./spread.conf\n");=0A=20=09if=20(yyin=20=3D=3D=20NULL)=0A=
-=09=09if=20(NULL=20!=3D=20(yyin=20=3D=20fopen("/etc/spread.conf",=20=
"r"))=20)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20Alarm(=20PRINT,=20"Conf_init:=20using=20file:=20=
/etc/spread.conf\n");=0A+=09=09if=20(NULL=20!=3D=20(yyin=20=3D=20=
fopen(ETCDIR=20"/spread.conf",=20"r"))=20)=0A+=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20Alarm(=20PRINT,=20=
"Conf_init:=20using=20file:=20"=20ETCDIR=20"/spread.conf\n");=0A=20=09if=20=
(yyin=20=3D=3D=20NULL)=0A=20=09=09Alarm(=20EXIT,=20"Conf_init:=20error=20=
opening=20config=20file=20%s\n",=0A=20=09=09=09file_name);=0Adiff=20-uN=20=
daemon/configure.in=20daemon.ac/configure.in=0A---=20daemon/configure.in=09=
Wed=20Dec=2031=2019:00:00=201969=0A+++=20daemon.ac/configure.in=09Thu=20=
Sep=2020=2017:03:46=202001=0A@@=20-0,0=20+1,709=20@@=0A=
+AC_INIT(spread.c)=0A+=0A+AC_CONFIG_HEADER(config.h)=0A+AC_PROG_CC=0A=
+AC_CANONICAL_HOST=0A+AC_C_BIGENDIAN=0A+=0A+#=20Checks=20for=20programs.=0A=
+AC_PROG_CPP=0A+AC_PROG_RANLIB=0A+AC_PROG_INSTALL=0A+AC_PROG_LN_S=0A=
+AC_PROG_YACC=0A+AC_PROG_LEX=0A+AC_PATH_PROG(AR,=20ar)=0A=
+AC_PATH_PROGS(PERL,=20perl5=20perl)=0A+AC_SUBST(PERL)=0A+=0A+if=20test=20=
-z=20"$AR"=20;=20then=0A+=09AC_MSG_ERROR([***=20'ar'=20missing,=20please=20=
install=20or=20fix=20your=20\$PATH=20***])=0A+fi=0A+=0A+if=20test=20-z=20=
"$LD"=20;=20then=0A+=09LD=3D$CC=0A+fi=0A+AC_SUBST(LD)=0A+=09=0A+#=20C=20=
Compiler=20features=0A+AC_C_INLINE=0A+if=20test=20"$GCC"=20=3D=20"yes";=20=
then=20=0A+=09CFLAGS=3D"$CFLAGS=20-Wall"=0A+fi=0A+=0A+#=20Allow=20user=20=
to=20specify=20flags=0A+AC_ARG_WITH(cflags,=0A+=09[=20=20--with-cflags=20=
=20=20=20=20=20=20=20=20=20=20Specify=20additional=20flags=20to=20pass=20=
to=20compiler],=0A+=09[=0A+=09=09if=20test=20"x$withval"=20!=3D=20"xno"=20=
;=20then=0A+=09=09=09CFLAGS=3D"$CFLAGS=20$withval"=0A+=09=09fi=0A+=09]=09=
=0A+)=0A+AC_ARG_WITH(cppflags,=0A+=09[=20=20--with-cppflags=20=20=20=20=20=
=20=20=20=20Specify=20additional=20flags=20to=20pass=20to=20=
preprocessor]=20,=0A+=09[=0A+=09=09if=20test=20"x$withval"=20!=3D=20=
"xno";=20then=0A+=09=09=09CPPFLAGS=3D"$CPPFLAGS=20$withval"=0A+=09=09fi=0A=
+=09]=0A+)=0A+AC_ARG_WITH(ldflags,=0A+=09[=20=20--with-ldflags=20=20=20=20=
=20=20=20=20=20=20Specify=20additional=20flags=20to=20pass=20to=20=
linker],=0A+=09[=0A+=09=09if=20test=20"x$withval"=20!=3D=20"xno"=20;=20=
then=0A+=09=09=09LDFLAGS=3D"$LDFLAGS=20$withval"=0A+=09=09fi=0A+=09]=09=0A=
+)=0A+AC_ARG_WITH(libs,=0A+=09[=20=20--with-libs=20=20=20=20=20=20=20=20=20=
=20=20=20=20Specify=20additional=20libraries=20to=20link=20with],=0A+=09=
[=0A+=09=09if=20test=20"x$withval"=20!=3D=20"xno"=20;=20then=0A+=09=09=09=
LIBS=3D"$LIBS=20$withval"=0A+=09=09fi=0A+=09]=09=0A+)=0A+=0A+#=20Checks=20=
for=20libraries.=0A+=20OLDLDFLAGS=3D$LDFLAGS=0A+=20LDFLAGS=3D=0A=
+AC_PTHREAD_FREEBSD=0A+=20THLDFLAGS=3D$LDFLAGS=0A+AC_SUBST(THLDFLAGS)=0A=
+=20LDFLAGS=3D$OLDLDFLAGS=0A+=0A+=20OLDLIBS=3D$LIBS=0A+=20LIBS=3D=0A=
+AC_CHECK_LIB(pthread,=20pthread_create,=20,=20)=0A+AC_CHECK_LIB(thread,=20=
thr_create,=20,=20)=0A+AC_CHECK_LIB(posix4,=20sem_wait,=20,=20)=0A+=20=
THLIBS=3D$LIBS=0A+AC_SUBST(THLIBS)=0A+=20LIBS=3D$OLDLIBS=0A+=0A=
+AC_CHECK_LIB(nsl,=20gethostbyaddr,=20,=20)=0A+AC_CHECK_LIB(socket,=20=
socket,=20,=20)=0A+=0A+AC_FUNC_STRFTIME=0A+=0A+#=20Checks=20for=20header=20=
files.=0A+AC_CHECK_HEADERS(arpa/inet.h=20assert.h=20errno.h=20grp.h=20=
limits.h=20netdb.h=20netinet/in.h=20netinet/tcp.h=20process.h=20=
pthread.h=20pwd.h=20signal.h=20stdarg.h=20stdint.h=20stdio.h=20stdlib.h=20=
string.h=20sys/inttypes.h=20sys/ioctl.h=20sys/param.h=20sys/socket.h=20=
sys/stat.h=20sys/time.h=20sys/timeb.h=20sys/types.h=20sys/uio.h=20=
sys/un.h=20sys/filio.h=20time.h=20unistd.h=20windows.h=20winsock.h)=0A+=0A=
+dnl=20=20=20=20Checks=20for=20library=20functions.=0A=
+AC_CHECK_FUNCS(bcopy=20inet_aton=20inet_ntoa=20inet_ntop=20memmove=20=
setsid=20snprintf=20strerror=20lrand48)=0A+dnl=20=20=20=20Checks=20for=20=
time=20functions=0A+AC_CHECK_FUNCS(gettimeofday=20time)=0A+=0A+#=20Check=20=
for=20broken=20snprintf=0A+if=20test=20"x$ac_cv_func_snprintf"=20=3D=20=
"xyes"=20;=20then=0A+=09AC_MSG_CHECKING([whether=20snprintf=20correctly=20=
terminates=20long=20strings])=0A+=09AC_TRY_RUN(=0A+=09=09[=0A+#include=20=
<stdio.h>=0A+int=20main(void){char=20=
b[5];snprintf(b,5,"123456789");return(b[4]!=3D'\0');}=0A+=09=09],=0A+=09=09=
[AC_MSG_RESULT(yes)],=20=0A+=09=09[=0A+=09=09=09AC_MSG_RESULT(no)=0A+=09=09=
=09AC_DEFINE(BROKEN_SNPRINTF)=0A+=09=09=09AC_MSG_WARN([******=20Your=20=
snprintf()=20function=20is=20broken,=20complain=20to=20your=20vendor])=0A=
+=09=09]=0A+=09)=0A+fi=0A+=0A+#=20Cheap=20hack=20to=20ensure=20NEWS-OS=20=
libraries=20are=20arranged=20right.=0A+if=20test=20!=20-z=20"$SONY"=20;=20=
then=0A+=20=20LIBS=3D"$LIBS=20-liberty";=0A+fi=0A+=0A+#=20Checks=20for=20=
data=20types=0A+AC_CHECK_SIZEOF(char,=201)=0A+AC_CHECK_SIZEOF(short=20=
int,=202)=0A+AC_CHECK_SIZEOF(int,=204)=0A+AC_CHECK_SIZEOF(long=20int,=20=
4)=0A+AC_CHECK_SIZEOF(long=20long=20int,=208)=0A+=0A+#=20More=20checks=20=
for=20data=20types=0A+AC_CACHE_CHECK([for=20windows=20arch],=20=
ac_cv_arch_win,=20[=0A+=09AC_TRY_COMPILE(=0A+=09=09[=20#include=20=
<process.h>=20],=0A+=09=09[=20CRITICAL_SECTION=20mutex;=20=
InitializeCriticalSection(mutex);=20],=0A+=09=09[=20ac_cv_arch_win=3D"yes"=
=20],=0A+=09=09[=20ac_cv_arch_win=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_arch_win"=20=3D=20"xyes"=20;=20then=0A+=09AC_DEFINE(ARCH_WIN95)=0A=
+fi=0A+=0A+AC_CACHE_CHECK([for=20struct=20timezone=20type],=20=
ac_cv_have_struct_timezone,=20[=0A+=09AC_TRY_COMPILE(=0A+=09=09[=20=
#include=20<time.h>=0A+=09=09=20=20#include=20<sys/types.h>=20],=20=0A+=09=
=09[=20struct=20timezone=20opt;=20],=0A+=09=09[=20=
ac_cv_have_struct_timezone=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_struct_timezone=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_struct_timezone"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_STRUCT_TIMEZONE)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20=
struct=20sockopt_len_t=20type],=20ac_cv_have_sockopt_len_t,=20[=0A+=09=
AC_TRY_COMPILE(=0A+=09=09[=20#include=20<sys/types.h>=0A+=09=09=20=20=
#include=20<sys/socket.h>=20],=20=0A+=09=09[=20static=20sockopt_len_t=20=
opt;=20opt=3D0;=20],=0A+=09=09[=20ac_cv_have_sockopt_len_t=3D"yes"=20],=0A=
+=09=09[=20ac_cv_have_sockopt_len_t=3D"no"=20]=0A+=09)=0A+])=0A+if=20=
test=20"x$ac_cv_have_sockopt_len_t"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_SOCKOPT_LEN_T)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20struct=20=
msghdr=20type],=20ac_cv_have_struct_msghdr,=20[=0A+=09AC_TRY_COMPILE(=0A=
+=09=09[=20#include=20<sys/types.h>=0A+=09=09=20=20#include=20=
<sys/socket.h>=20],=20=0A+=09=09[=20static=20=20struct=20=20msghdr=20=
msg;=20msg.msg_namelen=20=3D=201;=20],=20=0A+=09=09[=20=
ac_cv_have_struct_msghdr=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_struct_msghdr=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_struct_msghdr"=20=3D=20"xno"=20;=20then=0A+=09=
AC_DEFINE(ARCH_SCATTER_NONE)=0A+else=0A+=20=20have_scatter=3D"no"=0A+=20=20=
AC_CACHE_CHECK([for=20struct=20msghdr=20control],=20=
ac_cv_have_struct_msghdr_ctl,=20[=0A+=20=20=20=20=20=20=20=20=
AC_TRY_COMPILE(=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20[=20=
#include=20<sys/types.h>=0A+=09=09=20=20#include=20<sys/socket.h>=20],=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20[=20static=20=20struct=20=
=20msghdr=20msg;=20msg.msg_controllen=20=3D=200;=20],=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20[=20ac_cv_have_struct_msghdr_ctl=3D"yes"=20=
],=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20[=20=
ac_cv_have_struct_msghdr_ctl=3D"no"=20]=0A+=20=20=20=20=20=20=20=20)=0A+=20=
=20])=0A+=20=20if=20test=20"x$ac_cv_have_struct_msghdr_ctl"=20=3D=20=
"xyes"=20;=20then=0A+=09AC_DEFINE(ARCH_SCATTER_CONTROL)=0A+=09=
have_scatter=3D"yes"=0A+=20=20fi=0A+=20=20AC_CACHE_CHECK([for=20struct=20=
msghdr=20accrights],=20ac_cv_have_struct_msghdr_acc,=20[=0A+=20=20=20=20=20=
=20=20=20AC_TRY_COMPILE(=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20[=20#include=20<sys/types.h>=0A+=09=09=20=20#include=20<sys/socket.h>=20=
],=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20[=20static=20=20=
struct=20=20msghdr=20msg;=20msg.msg_accrightslen=20=3D=200;=20],=0A+=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20[=20=
ac_cv_have_struct_msghdr_acc=3D"yes"=20],=0A+=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20[=20ac_cv_have_struct_msghdr_acc=3D"no"=20]=0A+=20=20=20=
=20=20=20=20=20)=0A+=20=20])=0A+=20=20if=20test=20=
"x$ac_cv_have_struct_msghdr_acc"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(ARCH_SCATTER_ACCRIGHTS)=0A+=09have_scatter=3D"yes"=0A+=20=20fi=0A=
+=20=20if=20test=20"x$have_scatter"=20=3D=20"xno"=20;=20then=0A+=20=20=20=
=20=20=20=20=20AC_MSG_ERROR([***=20cannot=20determine=20which=20scatter=20=
type=20to=20use=20***])=0A+=20=20fi=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20=
u_int=20type],=20ac_cv_have_u_int,=20[=0A+=09AC_TRY_COMPILE(=0A+=09=09[=20=
#include=20<sys/types.h>=20],=20=0A+=09=09[=20u_int=20a;=20a=20=3D=20=
1;],=20=0A+=09=09[=20ac_cv_have_u_int=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_u_int=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_u_int"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_U_INT)=0A+=09have_u_int=3D1=0A+fi=0A+=0A=
+AC_CACHE_CHECK([for=20intXX_t=20types],=20ac_cv_have_intxx_t,=20[=0A+=09=
AC_TRY_COMPILE(=0A+=09=09[=20#include=20<sys/types.h>=20],=20=0A+=09=09[=20=
int8_t=20a;=20int16_t=20b;=20int32_t=20c;=20a=20=3D=20b=20=3D=20c=20=3D=20=
1;],=20=0A+=09=09[=20ac_cv_have_intxx_t=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_intxx_t=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_intxx_t"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_INTXX_T)=0A+=09have_intxx_t=3D1=0A+fi=0A+=09=0A=
+AC_CACHE_CHECK([for=20int64_t=20type],=20ac_cv_have_int64_t,=20[=0A+=09=
AC_TRY_COMPILE(=0A+=09=09[=20#include=20<sys/types.h>=20],=20=0A+=09=09[=20=
int64_t=20a;=20a=20=3D=201;],=20=0A+=09=09[=20ac_cv_have_int64_t=3D"yes"=20=
],=0A+=09=09[=20ac_cv_have_int64_t=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_int64_t"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_INT64_T)=0A+=09have_int64_t=3D1=0A+fi=0A+=09=0A=
+AC_CACHE_CHECK([for=20u_intXX_t=20types],=20ac_cv_have_u_intxx_t,=20[=0A=
+=09AC_TRY_COMPILE(=0A+=09=09[=20#include=20<sys/types.h>=20],=20=0A+=09=09=
[=20u_int8_t=20a;=20u_int16_t=20b;=20u_int32_t=20c;=20a=20=3D=20b=20=3D=20=
c=20=3D=201;],=20=0A+=09=09[=20ac_cv_have_u_intxx_t=3D"yes"=20],=0A+=09=09=
[=20ac_cv_have_u_intxx_t=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_u_intxx_t"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_U_INTXX_T)=0A+=09have_u_intxx_t=3D1=0A+fi=0A+=0A=
+AC_CACHE_CHECK([for=20u_int64_t=20types],=20ac_cv_have_u_int64_t,=20[=0A=
+=09AC_TRY_COMPILE(=0A+=09=09[=20#include=20<sys/types.h>=20],=20=0A+=09=09=
[=20u_int64_t=20a;=20a=20=3D=201;],=20=0A+=09=09[=20=
ac_cv_have_u_int64_t=3D"yes"=20],=0A+=09=09[=20ac_cv_have_u_int64_t=3D"no"=
=20]=0A+=09)=0A+])=0A+if=20test=20"x$ac_cv_have_u_int64_t"=20=3D=20=
"xyes"=20;=20then=0A+=09AC_DEFINE(HAVE_U_INT64_T)=0A+=09have_u_int64_t=3D1=
=0A+fi=0A+=0A+if=20(test=20-z=20"$have_u_intxx_t"=20||=20test=20-z=20=
"$have_intxx_t"=20&&=20\=0A+=20=20=20=20=20=20=20=20=20=20=20test=20=
"x$ac_cv_header_sys_bitypes_h"=20=3D=20"xyes")=0A+then=0A+=09=
AC_MSG_CHECKING([for=20intXX_t=20and=20u_intXX_t=20types=20in=20=
sys/bitypes.h])=0A+=09AC_TRY_COMPILE(=0A+=09=09[=0A+#include=20=
<sys/bitypes.h>=0A+=09=09],=20=0A+=09=09[=0A+=09=09=09int8_t=20a;=20=
int16_t=20b;=20int32_t=20c;=0A+=09=09=09u_int8_t=20e;=20u_int16_t=20f;=20=
u_int32_t=20g;=0A+=09=09=09a=20=3D=20b=20=3D=20c=20=3D=20e=20=3D=20f=20=3D=
=20g=20=3D=201;=0A+=09=09],=20=0A+=09=09[=0A+=09=09=09=
AC_DEFINE(HAVE_U_INTXX_T)=0A+=09=09=09AC_DEFINE(HAVE_INTXX_T)=0A+=09=09=09=
AC_MSG_RESULT(yes)=0A+=09=09],=0A+=09=09[AC_MSG_RESULT(no)]=0A+=09)=20=0A=
+fi=0A+=0A+if=20test=20-z=20"$have_u_intxx_t"=20;=20then=0A+=09=
AC_CACHE_CHECK([for=20uintXX_t=20types],=20ac_cv_have_uintxx_t,=20[=0A+=09=
=09AC_TRY_COMPILE(=0A+=09=09=09[=0A+#include=20<sys/types.h>=0A+=09=09=09=
],=20=0A+=09=09=09[=20uint8_t=20a;=20uint16_t=20b;=20uint32_t=20c;=20a=20=
=3D=20b=20=3D=20c=20=3D=201;=20],=20=0A+=09=09=09[=20=
ac_cv_have_uintxx_t=3D"yes"=20],=0A+=09=09=09[=20=
ac_cv_have_uintxx_t=3D"no"=20]=0A+=09=09)=0A+=09])=0A+=09if=20test=20=
"x$ac_cv_have_uintxx_t"=20=3D=20"xyes"=20;=20then=0A+=09=09=
AC_DEFINE(HAVE_UINTXX_T)=0A+=09fi=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20=
socklen_t],=20ac_cv_have_socklen_t,=20[=0A+=09AC_TRY_COMPILE(=0A+=09=09[=0A=
+#include=20<sys/types.h>=0A+#include=20<sys/socket.h>=0A+=09=09],=0A+=09=
=09[socklen_t=20foo;=20foo=20=3D=201235;],=0A+=09=09[=20=
ac_cv_have_socklen_t=3D"yes"=20],=0A+=09=09[=20ac_cv_have_socklen_t=3D"no"=
=20]=0A+=09)=0A+])=0A+if=20test=20"x$ac_cv_have_socklen_t"=20=3D=20=
"xyes"=20;=20then=0A+=09AC_DEFINE(HAVE_SOCKLEN_T)=0A+fi=0A+=0A=
+AC_CACHE_CHECK([for=20size_t],=20ac_cv_have_size_t,=20[=0A+=09=
AC_TRY_COMPILE(=0A+=09=09[=0A+#include=20<sys/types.h>=0A+=09=09],=0A+=09=
=09[=20size_t=20foo;=20foo=20=3D=201235;=20],=0A+=09=09[=20=
ac_cv_have_size_t=3D"yes"=20],=0A+=09=09[=20ac_cv_have_size_t=3D"no"=20]=0A=
+=09)=0A+])=0A+if=20test=20"x$ac_cv_have_size_t"=20=3D=20"xyes"=20;=20=
then=0A+=09AC_DEFINE(HAVE_SIZE_T)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20=
ssize_t],=20ac_cv_have_ssize_t,=20[=0A+=09AC_TRY_COMPILE(=0A+=09=09[=0A=
+#include=20<sys/types.h>=0A+=09=09],=0A+=09=09[=20ssize_t=20foo;=20foo=20=
=3D=201235;=20],=0A+=09=09[=20ac_cv_have_ssize_t=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_ssize_t=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_ssize_t"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_SSIZE_T)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20clock_t],=20=
ac_cv_have_clock_t,=20[=0A+=09AC_TRY_COMPILE(=0A+=09=09[=0A+#include=20=
<time.h>=0A+=09=09],=0A+=09=09[=20clock_t=20foo;=20foo=20=3D=201235;=20=
],=0A+=09=09[=20ac_cv_have_clock_t=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_clock_t=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_clock_t"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_CLOCK_T)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20sa_family_t],=20=
ac_cv_have_sa_family_t,=20[=0A+=09AC_TRY_COMPILE(=0A+=09=09[=0A+#include=20=
<sys/types.h>=0A+#include=20<sys/socket.h>=0A+=09=09],=0A+=09=09[=20=
sa_family_t=20foo;=20foo=20=3D=201235;=20],=0A+=09=09[=20=
ac_cv_have_sa_family_t=3D"yes"=20],=0A+=09=09[=20AC_TRY_COMPILE(=0A+=09=09=
=20=20[=0A+#include=20<sys/types.h>=0A+#include=20<sys/socket.h>=0A=
+#include=20<netinet/in.h>=0A+=09=09],=0A+=09=09[=20sa_family_t=20foo;=20=
foo=20=3D=201235;=20],=0A+=09=09[=20ac_cv_have_sa_family_t=3D"yes"=20],=0A=
+=0A+=09=09[=20ac_cv_have_sa_family_t=3D"no"=20]=0A+=09)]=0A+=09)=0A+])=0A=
+if=20test=20"x$ac_cv_have_sa_family_t"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_SA_FAMILY_T)=0A+fi=0A+=0A+=0A+AC_CACHE_CHECK([for=20=
struct=20sockaddr_storage],=20ac_cv_have_struct_sockaddr_storage,=20[=0A=
+=09AC_TRY_COMPILE(=0A+=09=09[=0A+#include=20<sys/types.h>=0A+#include=20=
<sys/socket.h>=0A+=09=09],=0A+=09=09[=20struct=20sockaddr_storage=20s;=20=
],=0A+=09=09[=20ac_cv_have_struct_sockaddr_storage=3D"yes"=20],=0A+=09=09=
[=20ac_cv_have_struct_sockaddr_storage=3D"no"=20]=0A+=09)=0A+])=0A+if=20=
test=20"x$ac_cv_have_struct_sockaddr_storage"=20=3D=20"xyes"=20;=20then=0A=
+=09AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)=0A+fi=0A+=0A=
+AC_CACHE_CHECK([for=20struct=20sockaddr_in6],=20=
ac_cv_have_struct_sockaddr_in6,=20[=0A+=09AC_TRY_COMPILE(=0A+=09=09[=0A=
+#include=20<sys/types.h>=0A+#include=20<netinet/in.h>=0A+=09=09],=0A+=09=
=09[=20struct=20sockaddr_in6=20s;=20s.sin6_family=20=3D=200;=20],=0A+=09=09=
[=20ac_cv_have_struct_sockaddr_in6=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_struct_sockaddr_in6=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_struct_sockaddr_in6"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20=
struct=20in6_addr],=20ac_cv_have_struct_in6_addr,=20[=0A+=09=
AC_TRY_COMPILE(=0A+=09=09[=0A+#include=20<sys/types.h>=0A+#include=20=
<netinet/in.h>=0A+=09=09],=0A+=09=09[=20struct=20in6_addr=20s;=20=
s.s6_addr[0]=20=3D=200;=20],=0A+=09=09[=20=
ac_cv_have_struct_in6_addr=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_struct_in6_addr=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_struct_in6_addr"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_STRUCT_IN6_ADDR)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20=
struct=20addrinfo],=20ac_cv_have_struct_addrinfo,=20[=0A+=09=
AC_TRY_COMPILE(=0A+=09=09[=0A+#include=20<sys/types.h>=0A+#include=20=
<sys/socket.h>=0A+#include=20<netdb.h>=0A+=09=09],=0A+=09=09[=20struct=20=
addrinfo=20s;=20s.ai_flags=20=3D=20AI_PASSIVE;=20],=0A+=09=09[=20=
ac_cv_have_struct_addrinfo=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_struct_addrinfo=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_struct_addrinfo"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_STRUCT_ADDRINFO)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20=
struct=20timeval],=20ac_cv_have_struct_timeval,=20[=0A+=09=
AC_TRY_COMPILE(=0A+=09=09[=20#include=20<sys/time.h>=20],=20=0A+=09=09[=20=
struct=20timeval=20tv;=20tv.tv_sec=20=3D=201;],=20=0A+=09=09[=20=
ac_cv_have_struct_timeval=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_struct_timeval=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_struct_timeval"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_STRUCT_TIMEVAL)=0A+=09have_struct_timeval=3D1=0A+fi=0A+=0A=
+AC_CACHE_CHECK([for=20sun_len=20field=20in=20struct=20sockaddr_un],=0A+=09=
=09ac_cv_have_sun_len_in_struct_sockaddr_un,=20[=0A+=09AC_TRY_COMPILE(=0A=
+=09=09[=0A+#include=20<sys/types.h>=0A+#include=20<sys/socket.h>=0A+=09=09=
],=0A+=09=09[=20struct=20sockaddr_un=20s;=20s.sun_len=20=3D=201;=20],=0A=
+=09=09[=20ac_cv_have_sun_len_in_struct_sockaddr_un=3D"yes"=20],=0A+=09=09=
[=20ac_cv_have_sun_len_in_struct_sockaddr_un=3D"no"=20],=0A+=09)=0A+])=0A=
+if=20test=20"x$ac_cv_have_sun_len_in_struct_sockaddr_un"=20=3D=20"xyes"=20=
;=20then=0A+=09AC_DEFINE(HAVE_SUN_LEN_IN_SOCKADDR_UN)=0A+fi=0A+=0A=
+AC_CACHE_CHECK([for=20ss_family=20field=20in=20struct=20=
sockaddr_storage],=0A+=09=09ac_cv_have_ss_family_in_struct_ss,=20[=0A+=09=
AC_TRY_COMPILE(=0A+=09=09[=0A+#include=20<sys/types.h>=0A+#include=20=
<sys/socket.h>=0A+=09=09],=0A+=09=09[=20struct=20sockaddr_storage=20s;=20=
s.ss_family=20=3D=201;=20],=0A+=09=09[=20=
ac_cv_have_ss_family_in_struct_ss=3D"yes"=20],=0A+=09=09[=20=
ac_cv_have_ss_family_in_struct_ss=3D"no"=20],=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_have_ss_family_in_struct_ss"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_SS_FAMILY_IN_SS)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20=
__ss_family=20field=20in=20struct=20sockaddr_storage],=0A+=09=09=
ac_cv_have___ss_family_in_struct_ss,=20[=0A+=09AC_TRY_COMPILE(=0A+=09=09=
[=0A+#include=20<sys/types.h>=0A+#include=20<sys/socket.h>=0A+=09=09],=0A=
+=09=09[=20struct=20sockaddr_storage=20s;=20s.__ss_family=20=3D=201;=20=
],=0A+=09=09[=20ac_cv_have___ss_family_in_struct_ss=3D"yes"=20],=0A+=09=09=
[=20ac_cv_have___ss_family_in_struct_ss=3D"no"=20]=0A+=09)=0A+])=0A+if=20=
test=20"x$ac_cv_have___ss_family_in_struct_ss"=20=3D=20"xyes"=20;=20then=0A=
+=09AC_DEFINE(HAVE___SS_FAMILY_IN_SS)=0A+fi=0A+=0A+AC_CACHE_CHECK([for=20=
pid_t],=20ac_cv_have_pid_t,=20[=0A+=20=20=20=20=20=20=20=20=
AC_TRY_COMPILE(=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20[=0A=
+#include=20<sys/types.h>=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20],=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20[=20pid_t=20=
foo;=20foo=20=3D=201235;=20],=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20[=20ac_cv_have_pid_t=3D"yes"=20],=0A+=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20[=20ac_cv_have_pid_t=3D"no"=20]=0A+=20=20=20=20=20=20=20=
=20)=0A+])=0A+if=20test=20"x$ac_cv_have_pid_t"=20=3D=20"xyes"=20;=20then=0A=
+=20=20=20=20=20=20=20=20AC_DEFINE(HAVE_PID_T)=0A+fi=0A+=0A=
+AC_CACHE_CHECK([if=20libc=20defines=20__progname],=20=
ac_cv_libc_defines___progname,=20[=0A+=09AC_TRY_LINK([],=20=0A+=09=09[=20=
extern=20char=20*__progname;=20printf("%s",=20__progname);=20],=20=0A+=09=
=09[=20ac_cv_libc_defines___progname=3D"yes"=20],=0A+=09=09[=20=
ac_cv_libc_defines___progname=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_libc_defines___progname"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE___PROGNAME)=0A+fi=0A+=0A+=0A+AC_CACHE_CHECK([if=20libc=20=
defines=20sys_errlist],=20ac_cv_libc_defines_sys_errlist,=20[=0A+=09=
AC_TRY_LINK([],=20=0A+=09=09[=20extern=20const=20char=20*const=20=
sys_errlist[];=20printf("%s",=20sys_errlist[0]);],=20=0A+=09=09[=20=
ac_cv_libc_defines_sys_errlist=3D"yes"=20],=0A+=09=09[=20=
ac_cv_libc_defines_sys_errlist=3D"no"=20]=0A+=09)=0A+])=0A+if=20test=20=
"x$ac_cv_libc_defines_sys_errlist"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_SYS_ERRLIST)=0A+fi=0A+=0A+=0A+AC_CACHE_CHECK([if=20libc=20=
defines=20sys_nerr],=20ac_cv_libc_defines_sys_nerr,=20[=0A+=09=
AC_TRY_LINK([],=20=0A+=09=09[=20extern=20int=20sys_nerr;=20printf("%i",=20=
sys_nerr);],=20=0A+=09=09[=20ac_cv_libc_defines_sys_nerr=3D"yes"=20],=0A=
+=09=09[=20ac_cv_libc_defines_sys_nerr=3D"no"=20]=0A+=09)=0A+])=0A+if=20=
test=20"x$ac_cv_libc_defines_sys_nerr"=20=3D=20"xyes"=20;=20then=0A+=09=
AC_DEFINE(HAVE_SYS_NERR)=0A+fi=0A+=0A+for=20i=20in=20`grep=20=
"SP_....._VERSION"=20spread_params.h=20|=20sed=20-e=20's/#define//g'=20=
-e=20's/[=20=09]//g'=20-e=20's/VERSION/VERSION=3D/g;'`=0A+do=0A+=20=20=
eval=20$i=0A+done=0A+AC_MSG_CHECKING([Check=20Spread's=20major=20=
version])=0A+AC_MSG_RESULT($SP_MAJOR_VERSION)=0A=
+AC_SUBST(SP_MAJOR_VERSION)=0A+AC_MSG_CHECKING([Check=20Spread's=20minor=20=
version])=0A+AC_MSG_RESULT($SP_MINOR_VERSION)=0A=
+AC_SUBST(SP_MINOR_VERSION)=0A+AC_MSG_CHECKING([Check=20Spread's=20patch=20=
version])=0A+AC_MSG_RESULT($SP_PATCH_VERSION)=0A=
+AC_SUBST(SP_PATCH_VERSION)=0A+=0A+#=20Options=20from=20here=20on.=20=
Some=20of=20these=20are=20preset=20by=20platform=20above=0A+=0A=
+AC_ARG_WITH(catman,=0A+=09[=20=20--with-mantype=3Dman|cat|doc=20=20Set=20=
man=20page=20type],=0A+=09[=0A+=09=09case=20"$withval"=20in=0A+=09=09=
man|cat|doc)=0A+=09=09=09MANTYPE=3D$withval=0A+=09=09=09;;=0A+=09=09*)=0A=
+=09=09=09AC_MSG_ERROR(invalid=20man=20type:=20$withval)=0A+=09=09=09;;=0A=
+=09=09esac=0A+=09]=0A+)=0A+if=20test=20-z=20"$MANTYPE";=20then=0A+=09=
AC_PATH_PROGS(NROFF,=20nroff=20awf,=20/bin/false,=20/usr/bin:/usr/ucb)=0A=
+=09if=20${NROFF}=20-mdoc=20${srcdir}/docs/spread.8=20>/dev/null=202>&1;=20=
then=0A+=09=09MANTYPE=3Ddoc=0A+=09elif=20${NROFF}=20-man=20=
${srcdir}/docs/spread.8=20>/dev/null=202>&1;=20then=0A+=09=09MANTYPE=3Dman=
=0A+=09else=0A+=09=09MANTYPE=3Dcat=0A+=09fi=0A+fi=0A+AC_SUBST(MANTYPE)=0A=
+if=20test=20"$MANTYPE"=20=3D=20"doc";=20then=0A+=09mansubdir=3Dman;=0A=
+else=0A+=09mansubdir=3D$MANTYPE;=0A+fi=0A+AC_SUBST(mansubdir)=0A+=0A+#=20=
Where=20to=20place=20spread.pid=0A+piddir=3D/var/run=0A=
+AC_ARG_WITH(pid-dir,=0A+=09[=20=20--with-pid-dir=3DPATH=20=20=20=20=20=
Specify=20location=20of=20spread.pid=20file],=0A+=09[=0A+=09=09if=20test=20=
"x$withval"=20!=3D=20"xno"=20;=20then=09=0A+=09=09=09piddir=3D$withval=0A=
+=09=09fi=0A+=09]=0A+)=0A+=0A+#=20make=20sure=20the=20directory=20exists=0A=
+if=20test=20!=20-d=20$piddir=20;=20then=09=0A+=09piddir=3D`eval=20echo=20=
${sysconfdir}`=0A+=09case=20$piddir=20in=0A+=20=09=09NONE/*)=20=
piddir=3D`echo=20$piddir=20|=20sed=20"s~NONE~$ac_default_prefix~"`=20;;=0A=
+=09esac=0A+fi=0A+=0A+AC_DEFINE_UNQUOTED(_PATH_SPREAD_PIDDIR,=20=
"$piddir")=0A+AC_SUBST(piddir)=0A+=0A+AC_EXEEXT=0A+=0A+LIBSPSO=3Dnone=0A=
+LIBTSPSO=3Dnone=0A+case=20"$host"=20in=0A+*-*-darwin*)=0A+=09SHCC=3D$CC=0A=
+=09SHCFLAGS=3D"$CFLAGS=20-fPIC"=0A+=09SHCPPFLAGS=3D"$CPPFLAGS"=0A+=09=
SHLD=3D"$CC=20-dynamiclib"=0A+=09SHLDFLAGS=3D"$SHLDFLAGS=20$LDFLAGS"=0A+=09=
SHLIBS=3D$LIBS=09=0A+=09LIBSPSO=3D"libsp.dylib"=0A+=09=
LIBTSPSO=3D"libtsp.dylib"=0A+=20=20=20=20=20=20=20=20;;=0A+*-*-*)=0A+=09=
SHCC=3D$CC=0A+=09SHCFLAGS=3D"$CFLAGS=20-fPIC"=0A+=09=
SHCPPFLAGS=3D"$CPPFLAGS"=0A+=09SHLD=3D"$CC=20-shared"=0A+=09=
SHLDFLAGS=3D"$SHLDFLAGS=20$LDFLAGS"=0A+=09SHLIBS=3D$LIBS=0A+=09=
LIBSPSO=3D"libsp.so"=0A+=09LIBTSPSO=3D"libtsp.so"=0A+=09;;=0A+esac=0A+=0A=
+AC_SUBST(SHCC)=0A+AC_SUBST(SHCFLAGS)=0A+AC_SUBST(SHCPPFLAGS)=0A=
+AC_SUBST(SHLD)=0A+AC_SUBST(SHLDFLAGS)=0A+AC_SUBST(SHLIBS)=0A=
+AC_SUBST(LIBSPSO)=0A+AC_SUBST(LIBTSPSO)=0A+=0A+AC_OUTPUT(Makefile)=0A+=0A=
+#=20Print=20summary=20of=20options=0A+=0A+#=20Someone=20please=20show=20=
me=20a=20better=20way=20:)=0A+A=3D`eval=20echo=20${prefix}`=20;=20=
A=3D`eval=20echo=20${A}`=0A+B=3D`eval=20echo=20${bindir}`=20;=20B=3D`eval=20=
echo=20${B}`=0A+C=3D`eval=20echo=20${sbindir}`=20;=20C=3D`eval=20echo=20=
${C}`=0A+D=3D`eval=20echo=20${sysconfdir}`=20;=20D=3D`eval=20echo=20=
${D}`=0A+E=3D`eval=20echo=20${libdir}`=20;=20E=3D`eval=20echo=20${E}`=0A=
+F=3D`eval=20echo=20${mandir}/${mansubdir}X`=20;=20F=3D`eval=20echo=20=
${F}`=0A+G=3D`eval=20echo=20${piddir}`=20;=20G=3D`eval=20echo=20${G}`=0A=
+H=3D`eval=20echo=20${LIBSPSO}`;=20H=3D`eval=20echo=20${H}`=0A+I=3D`eval=20=
echo=20${LIBTSPSO}`;=20I=3D`eval=20echo=20${I}`=0A+=0A+echo=20""=0A+echo=20=
"Spread=20has=20been=20configured=20with=20the=20following=20options:"=0A=
+echo=20"=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
User=20binaries:=20$B"=0A+echo=20"=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20System=20binaries:=20$C"=0A+echo=20"=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20Configuration=20files:=20$D"=0A+echo=20"=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20User=20libraries:=20$E"=0A=
+echo=20"=20=20=20=20=20=20=20=20=20=20=20=20Shared=20Spread=20LIbrary:=20=
$H"=0A+echo=20"Shared=20Thread-safe=20Spread=20LIbrary:=20$I"=0A+echo=20=
"=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20Manual=20=
pages:=20$F"=0A+echo=20"=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20PID=20file:=20$G"=0A+echo=20"=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20Manpage=20format:=20$MANTYPE"=0A+=0A=
+echo=20""=0A+=0A+echo=20"=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
Host:=20${host}"=0A+echo=20"=20=20=20=20=20=20=20=20=20=20Compiler:=20=
${CC}"=0A+echo=20"=20=20=20=20Compiler=20flags:=20${CFLAGS}"=0A+echo=20=
"Preprocessor=20flags:=20${CPPFLAGS}"=0A+echo=20"=20=20=20=20=20=20=
Linker=20flags:=20${LDFLAGS}"=0A+echo=20"=20=20=20=20=20=20=20=20=20=
Libraries:=20${LIBS}"=0A+=0A+echo=20""=0A+=0Adiff=20-uN=20=
daemon/data_link.c=20daemon.ac/data_link.c=0A---=20daemon/data_link.c=09=
Thu=20Aug=2030=2023:06:49=202001=0A+++=20daemon.ac/data_link.c=09Thu=20=
Sep=2020=2015:44:31=202001=0A@@=20-77,7=20+77,7=20@@=0A=20=20=20=20=20=20=
=20=20=20=20=20=20=20=09=09Alarm(=20EXIT,=20"DL_init_channel:=20=
setsockopt=20error=20for=20port=20%d\n",port);=0A=20=09=09Alarm(=20=
DATA_LINK,=20"DL_init_channel:=20setsockopt=20for=20send=20and=20=
broadcast=20went=20ok\n");=0A=20=0A-#ifndef=09ARCH_SPARC_SUNOS=09/*=20no=20=
support=20for=20IP=20multicast=20in=20old=20SunOS=20*/=0A+#ifdef=09=
IP_MUTLICAST_TTL=0A=20=09=09/*=20###=20Isn't=20this=20for=20sending???=20=
*/=0A=20=09=09ttl_val=20=3D=201;=0A=20=20=20=20=20=20=20=20=20=09if=20=
(setsockopt(chan,=20IPPROTO_IP,=20IP_MULTICAST_TTL,=20(void=20=
*)&ttl_val,=20=0A@@=20-86,7=20+86,7=20@@=0A=20=09=09=09Alarm(=20=
DATA_LINK,=20"DL_init_channel:=20problem=20in=20setsockopt=20of=20=
multicast=20ttl=20%d=20-=20ignore=20in=20WinNT=20or=20Win95\n",=20=
ttl_val=20);=0A=20=09=09}=0A=20=09=09Alarm(=20DATA_LINK,=20=
"DL_init_channel:=20setting=20Mcast=20TTL=20to=20%d\n",ttl_val);=0A=
-#endif=09/*=20ARCH_SPARC_SUNOS=20*/=0A+#endif=0A=20=09}=0A=20=0A=20=09=
if=20(=20channel_type=20&=20RECV_CHANNEL=20)=0A@@=20-113,7=20+113,7=20@@=0A=
=20=09=09i4=20=3D=20=20mcast_address=20&=200x000000ff;=0A=20=09=09if(=20=
i1=20>=3D224=20&&=20i1=20<=20240=20)=0A=20=09=09{=0A-#ifndef=20=
ARCH_SPARC_SUNOS=09/*=20no=20support=20for=20IP=20multicast=20in=20old=20=
SunOS=20*/=0A+#ifdef=20IP_MUTLICAST_TTL=0A=20=09=09=09struct=20ip_mreq=09=
mreq;=0A=20=0A=20=09=09=09mreq.imr_multiaddr.s_addr=20=3D=20htonl(=20=
mcast_address=20);=0A@@=20-128,9=20+128,9=20@@=0A=20=09=09=09}=0A=20=0A=20=
=09=09=09Alarm(=20DATA_LINK,=20"DL_init_channel:=20Joining=20multicast=20=
address=20%d.%d.%d.%d=20went=20ok\n",i1,i2,i3,i4);=0A-#else=09/*=20=
ARCH_SPARC_SUNOS=20*/=0A+#else=09/*=20No=20multicast=20support=20*/=0A=20=
=09=09=09Alarm(=20EXIT,=20"DL_init_channel:=20Old=20SunOS=20architecture=20=
does=20not=20support=20IP=20multicast:=20%d.%d.%d.%d\n",i1,i2,i3,i4);=0A=
-#endif=09/*=20ARCH_SPARC_SUNOS=20*/=0A+#endif=0A=20=09=09}=0A=20=09}=0A=20=
=0Adiff=20-uN=20daemon/defines.h=20daemon.ac/defines.h=0A---=20=
daemon/defines.h=09Wed=20Dec=2031=2019:00:00=201969=0A+++=20=
daemon.ac/defines.h=09Thu=20Sep=2020=2017:00:44=202001=0A@@=20-0,0=20=
+1,254=20@@=0A+#ifndef=20_DEFINES_H=0A+#define=20_DEFINES_H=0A+=0A=
+#ifdef=20HAVE_STDLIB_H=0A+#include=20<stdlib.h>=0A+#endif=0A+#include=20=
<sys/types.h>=0A+#include=20<sys/socket.h>=0A+#include=20<sys/param.h>=0A=
+#include=20<netinet/in_systm.h>=0A+#include=20<netinet/in.h>=0A=
+#include=20<netinet/ip.h>=0A+#ifdef=20HAVE_SYS_UN_H=0A+#=20include=20=
<sys/un.h>=0A+#endif=0A+#ifdef=20HAVE_SYS_BITYPES_H=0A+#=20include=20=
<sys/bitypes.h>=0A+#endif=0A+#ifdef=20HAVE_LIMITS_H=0A+#=20include=20=
<limits.h>=0A+#endif=0A+#ifdef=20HAVE_SYS_TIME_H=0A+#=20include=20=
<sys/time.h>=0A+#endif=0A+#ifdef=20HAVE_SYS_CDEFS_H=0A+#=20include=20=
<sys/cdefs.h>=20/*=20For=20__P()=20*/=0A+#endif=0A+#ifdef=20=
HAVE_SYS_SYSMACROS_H=0A+#=20include=20<sys/sysmacros.h>=20/*=20For=20=
MIN,=20MAX,=20etc=20*/=0A+#endif=0A+#ifdef=20HAVE_SYS_STAT_H=0A+#=20=
include=20<sys/stat.h>=20/*=20For=20S_*=20constants=20and=20macros=20*/=0A=
+#endif=0A+#ifdef=20HAVE_NEXT=0A+#=20=20include=20<libc.h>=0A+#endif=0A+=0A=
+#include=20<unistd.h>=0A+#include=20<termios.h>=0A+#include=20<fcntl.h>=0A=
+=0A+#ifdef=20HAVE_SYS_FILIO_H=0A+#include=20<sys/filio.h>=0A+#endif=0A+=0A=
+#ifndef=20MAXPATHLEN=0A+#=20ifdef=20PATH_MAX=0A+#=20=20define=20=
MAXPATHLEN=20PATH_MAX=0A+#=20else=20/*=20PATH_MAX=20*/=0A+#=20=20define=20=
MAXPATHLEN=2064=20/*=20Should=20be=20safe=20*/=0A+#=20endif=20/*=20=
PATH_MAX=20*/=0A+#endif=20/*=20MAXPATHLEN=20*/=0A+=0A+#ifndef=20=
STDIN_FILENO=0A+#=20define=20STDIN_FILENO=20=20=20=200=0A+#endif=0A=
+#ifndef=20STDOUT_FILENO=0A+#=20define=20STDOUT_FILENO=20=20=201=0A=
+#endif=0A+#ifndef=20STDERR_FILENO=0A+#=20define=20STDERR_FILENO=20=20=20=
2=0A+#endif=0A+=0A+#ifndef=20O_NONBLOCK=09/*=20Non=20Blocking=20Open=20=
*/=0A+#=20define=20O_NONBLOCK=20=20=20=20=20=2000004=0A+#endif=0A+=0A+/*=20=
Types=20*/=0A+=0A+/*=20If=20sys/types.h=20does=20not=20supply=20intXX_t,=20=
supply=20them=20ourselves=20*/=0A+/*=20(or=20die=20trying)=20*/=0A+=0A=
+#ifndef=20HAVE_SOCKOPT_LEN_T=0A+typedef=20int=20sockopt_len_t;=0A=
+#endif=0A+=0A+#ifndef=20HAVE_U_INT=0A+typedef=20unsigned=20int=20u_int;=0A=
+#endif=0A+=0A+#ifndef=20HAVE_INTXX_T=0A+#=20if=20(SIZEOF_CHAR=20=3D=3D=20=
1)=0A+typedef=20char=20int8_t;=0A+#=20else=0A+#=20=20error=20"8=20bit=20=
int=20type=20not=20found."=0A+#=20endif=0A+#=20if=20(SIZEOF_SHORT_INT=20=
=3D=3D=202)=0A+typedef=20short=20int=20int16_t;=0A+#=20else=0A+#=20=20=
ifdef=20_CRAY=0A+typedef=20long=20=20int16_t;=0A+#=20=20else=0A+#=20=20=20=
error=20"16=20bit=20int=20type=20not=20found."=0A+#=20=20endif=20/*=20=
_CRAY=20*/=0A+#=20endif=0A+#=20if=20(SIZEOF_INT=20=3D=3D=204)=0A+typedef=20=
int=20int32_t;=0A+#=20else=0A+#=20=20ifdef=20_CRAY=0A+typedef=20long=20=20=
int32_t;=0A+#=20=20else=0A+#=20=20=20error=20"32=20bit=20int=20type=20=
not=20found."=0A+#=20=20endif=20/*=20_CRAY=20*/=0A+#=20endif=0A+#endif=0A=
+=0A+/*=20If=20sys/types.h=20does=20not=20supply=20u_intXX_t,=20supply=20=
them=20ourselves=20*/=0A+#ifndef=20HAVE_U_INTXX_T=0A+#=20ifdef=20=
HAVE_UINTXX_T=0A+typedef=20uint8_t=20u_int8_t;=0A+typedef=20uint16_t=20=
u_int16_t;=0A+typedef=20uint32_t=20u_int32_t;=0A+#=20define=20=
HAVE_U_INTXX_T=201=0A+#=20else=0A+#=20=20if=20(SIZEOF_CHAR=20=3D=3D=201)=0A=
+typedef=20unsigned=20char=20u_int8_t;=0A+#=20=20else=0A+#=20=20=20error=20=
"8=20bit=20int=20type=20not=20found."=0A+#=20=20endif=0A+#=20=20if=20=
(SIZEOF_SHORT_INT=20=3D=3D=202)=0A+typedef=20unsigned=20short=20int=20=
u_int16_t;=0A+#=20=20else=0A+#=20=20=20ifdef=20_CRAY=0A+typedef=20=
unsigned=20long=20=20u_int16_t;=0A+#=20=20=20else=0A+#=20=20=20=20error=20=
"16=20bit=20int=20type=20not=20found."=0A+#=20=20=20endif=0A+#=20=20=
endif=0A+#=20=20if=20(SIZEOF_INT=20=3D=3D=204)=0A+typedef=20unsigned=20=
int=20u_int32_t;=0A+#=20=20else=0A+#=20=20=20ifdef=20_CRAY=0A+typedef=20=
unsigned=20long=20=20u_int32_t;=0A+#=20=20=20else=0A+#=20=20=20=20error=20=
"32=20bit=20int=20type=20not=20found."=0A+#=20=20=20endif=0A+#=20=20=
endif=0A+#=20endif=0A+#endif=0A+=0A+/*=2064-bit=20types=20*/=0A+#ifndef=20=
HAVE_INT64_T=0A+#=20if=20(SIZEOF_LONG_INT=20=3D=3D=208)=0A+typedef=20=
long=20int=20int64_t;=0A+#=20=20=20define=20HAVE_INT64_T=201=0A+#=20else=0A=
+#=20=20if=20(SIZEOF_LONG_LONG_INT=20=3D=3D=208)=0A+typedef=20long=20=
long=20int=20int64_t;=0A+#=20=20=20define=20HAVE_INT64_T=201=0A+#=20=20=20=
define=20HAVE_LONG_LONG_INT=0A+#=20=20endif=0A+#=20endif=0A+#endif=0A=
+#ifndef=20HAVE_U_INT64_T=0A+#=20if=20(SIZEOF_LONG_INT=20=3D=3D=208)=0A=
+typedef=20unsigned=20long=20int=20u_int64_t;=0A+#=20=20=20define=20=
HAVE_U_INT64_T=201=0A+#=20else=0A+#=20=20if=20(SIZEOF_LONG_LONG_INT=20=3D=3D=
=208)=0A+typedef=20unsigned=20long=20long=20int=20u_int64_t;=0A+#=20=20=20=
define=20HAVE_U_INT64_T=201=0A+#=20=20endif=0A+#=20endif=0A+#endif=0A+=0A=
+#ifndef=20HAVE_SOCKLEN_T=0A+typedef=20unsigned=20int=20socklen_t;=0A+#=20=
define=20HAVE_SOCKLEN_T=0A+#endif=20/*=20HAVE_SOCKLEN_T=20*/=0A+=0A=
+#ifndef=20HAVE_SIZE_T=0A+typedef=20unsigned=20int=20size_t;=0A+#=20=
define=20HAVE_SIZE_T=0A+#endif=20/*=20HAVE_SIZE_T=20*/=0A+=0A+#ifndef=20=
HAVE_SSIZE_T=0A+typedef=20int=20ssize_t;=0A+#=20define=20HAVE_SSIZE_T=0A=
+#endif=20/*=20HAVE_SSIZE_T=20*/=0A+=0A+#ifndef=20HAVE_CLOCK_T=0A=
+typedef=20long=20clock_t;=0A+#=20define=20HAVE_CLOCK_T=0A+#endif=20/*=20=
HAVE_CLOCK_T=20*/=0A+=0A+#ifndef=20HAVE_SA_FAMILY_T=0A+typedef=20int=20=
sa_family_t;=0A+#=20define=20HAVE_SA_FAMILY_T=0A+#endif=20/*=20=
HAVE_SA_FAMILY_T=20*/=0A+=0A+#ifndef=20HAVE_PID_T=0A+typedef=20int=20=
pid_t;=0A+#=20define=20HAVE_PID_T=0A+#endif=20/*=20HAVE_PID_T=20*/=0A+=0A=
+#if=20!defined(HAVE_SS_FAMILY_IN_SS)=20&&=20=
defined(HAVE___SS_FAMILY_IN_SS)=0A+#=20define=20ss_family=20__ss_family=0A=
+#endif=20/*=20!defined(HAVE_SS_FAMILY_IN_SS)=20&&=20=
defined(HAVE_SA_FAMILY_IN_SS)=20*/=0A+=0A+#ifndef=20HAVE_SYS_UN_H=0A=
+struct=09sockaddr_un=20{=0A+=09short=09sun_family;=09=09/*=20AF_UNIX=20=
*/=0A+=09char=09sun_path[108];=09=09/*=20path=20name=20(gag)=20*/=0A+};=0A=
+#endif=20/*=20HAVE_SYS_UN_H=20*/=0A+=0A+/*=20Macros=20*/=0A+=0A+#ifndef=20=
MAX=0A+#=20define=20MAX(a,b)=20(((a)>(b))?(a):(b))=0A+#=20define=20=
MIN(a,b)=20(((a)<(b))?(a):(b))=0A+#endif=0A+=0A+#ifndef=20roundup=0A+#=20=
define=20roundup(x,=20y)=20=20=20((((x)+((y)-1))/(y))*(y))=0A+#endif=0A+=0A=
+#ifndef=20timersub=0A+#define=20timersub(a,=20b,=20result)=09=09=09=09=09=
\=0A+=20=20=20do=20{=09=09=09=09=09=09=09=09\=0A+=20=20=20=20=20=20=
(result)->tv_sec=20=3D=20(a)->tv_sec=20-=20(b)->tv_sec;=09=09\=0A+=20=20=20=
=20=20=20(result)->tv_usec=20=3D=20(a)->tv_usec=20-=20(b)->tv_usec;=09=09=
\=0A+=20=20=20=20=20=20if=20((result)->tv_usec=20<=200)=20{=09=09=09=09\=0A=
+=09=20--(result)->tv_sec;=09=09=09=09=09\=0A+=09=20(result)->tv_usec=20=
+=3D=201000000;=09=09=09=09\=0A+=20=20=20=20=20=20}=09=09=09=09=09=09=09=09=
\=0A+=20=20=20}=20while=20(0)=0A+#endif=0A+=0A+#ifndef=20__P=0A+#=20=
define=20__P(x)=20x=0A+#endif=0A+=0A+#if=20!defined(__GNUC__)=20||=20=
(__GNUC__=20<=202)=0A+#=20define=20__attribute__(x)=0A+#endif=20/*=20=
!defined(__GNUC__)=20||=20(__GNUC__=20<=202)=20*/=0A+=0A+#ifndef=20=
SUN_LEN=0A+#define=20SUN_LEN(su)=20\=0A+=09(sizeof(*(su))=20-=20=
sizeof((su)->sun_path)=20+=20strlen((su)->sun_path))=0A+#endif=20/*=20=
SUN_LEN=20*/=0A+=0A+#if=20!defined(HAVE_MEMMOVE)=20&&=20=
defined(HAVE_BCOPY)=0A+#=20define=20memmove(s1,=20s2,=20n)=20bcopy((s2),=20=
(s1),=20(n))=0A+#endif=20/*=20!defined(HAVE_MEMMOVE)=20&&=20=
defined(HAVE_BCOPY)=20*/=0A+=0A+/*=20which=20type=20of=20time=20to=20=
use?=20(api.c)=20*/=0A+#ifdef=20HAVE_SYS_TIME_H=0A+#=20=20define=20=
USE_TIMEVAL=0A+#endif=0A+=0A+/**=20end=20of=20login=20recorder=20=
definitions=20*/=0A+=0A+#endif=20/*=20_DEFINES_H=20*/=0ACommon=20=
subdirectories:=20daemon/docs=20and=20daemon.ac/docs=0Adiff=20-uN=20=
daemon/events.c=20daemon.ac/events.c=0A---=20daemon/events.c=09Thu=20Aug=20=
30=2023:06:49=202001=0A+++=20daemon.ac/events.c=09Thu=20Sep=2020=20=
15:48:21=202001=0A@@=20-119,11=20+119,7=20@@=0A=20=0A=20#ifndef=09=
ARCH_PC_WIN95=0A=20=0A-#if=20=20=20defined(ARCH_PC_LINUX)=20||=20=
defined(ARCH_ALPHA_LINUX)=0A-=20=20=20=20=20=20=20=20/*=20used=20to=20be=20=
=0A-=20=20=20=20=20=20=20=20=20*=20#if=20=20=20defined(ARCH_PC_LINUX)=20=
||=20defined(ARCH_PC_BSDI)=0A-=20=20=20=20=20=20=20=20=20*=20but=20bsdi=20=
started=20complaining=20about=20not=20finding=20dummy_tz=20type=0A-=20=20=
=20=20=20=20=20=20=20*/=0A+#if=20HAVE_STRUCT_TIMEZONE=0A=20=20=20=20=20=20=
=20=20=20struct=20timezone=20dummy_tz;=0A=20#else=0A=20=09sp_time=09=09=
dummy_tz;=0Adiff=20-uN=20daemon/fixpaths=20daemon.ac/fixpaths=0A---=20=
daemon/fixpaths=09Wed=20Dec=2031=2019:00:00=201969=0A+++=20=
daemon.ac/fixpaths=09Thu=20Sep=2020=2015:44:31=202001=0A@@=20-0,0=20=
+1,43=20@@=0A+#!/usr/bin/perl=20-w=0A+#=0A+#=20fixpaths=20=20-=20=
substitute=20makefile=20variables=20into=20text=20files=0A+=0A+=0A=
+$usage=20=3D=20"Usage:=20$0=20[-Dstring=3Dreplacement]=20[[infile]=20=
...]\n";=0A+=0A+if=20(!defined(@ARGV))=20{=20die=20("$usage");=20}=0A+=0A=
+#=20read=20in=20the=20command=20line=20and=20get=20some=20definitions=0A=
+while=20($_=3D$ARGV[0],=20/^-/)=20{=0A+=20=20if=20(/^-D/)=20{=0A+=20=20=20=
=20#=20definition=0A+=20=20=20=20shift(@ARGV);=0A+=20=20=20=20if=20(=20=
/-D(.*)=3D(.*)/=20)=20{=0A+=20=20=20=20=20=20$def{"$1"}=3D$2;=0A+=20=20=20=
=20}=20else=20{=0A+=20=20=20=20=20=20die=20("$usage$0:=20error=20in=20=
command=20line=20arguments.\n");=0A+=20=20=20=20}=0A+=20=20}=20else=20{=0A=
+=20=20=20=20@cmd=20=3D=20split(//,=20$ARGV[0]);=20$opt=20=3D=20$cmd[1];=0A=
+=20=20=20=20die=20("$usage$0:=20unknown=20option=20'-$opt'\n");=0A+=20=20=
}=0A+}=20#=20while=20parsing=20arguments=0A+=0A+if=20(!defined(%def))=20=
{=0A+=20=20die=20("$0:=20nothing=20to=20do=20-=20no=20substitutions=20=
listed!\n");=0A+}=0A+=0A+for=20$f=20(@ARGV)=20{=0A+=0A+=20=20$f=20=3D~=20=
/(.*\/)*(.*)$/;=0A+=0A+=20=20open(IN,=20"<$f")=20=20=20=20=20=20=20=20=20=
=20||=20die=20("$0:=20input=20file=20$f=20missing!\n");=0A+=20=20while=20=
(<IN>)=20{=0A+=20=20=20=20for=20$s=20(keys(%def))=20{=0A+=20=20=20=20=20=20=
s#$s#$def{$s}#;=0A+=20=20=20=20}=20#=20for=20$s=0A+=20=20=20=20print;=0A=
+=20=20}=20#=20while=20<IN>=0A+}=20#=20for=20$f=0A+=0A+exit=200;=0Adiff=20=
-uN=20daemon/install-sh=20daemon.ac/install-sh=0A---=20daemon/install-sh=09=
Wed=20Dec=2031=2019:00:00=201969=0A+++=20daemon.ac/install-sh=09Thu=20=
Sep=2020=2015:44:31=202001=0A@@=20-0,0=20+1,251=20@@=0A+#!/bin/sh=0A+#=0A=
+#=20install=20-=20install=20a=20program,=20script,=20or=20datafile=0A+#=20=
This=20comes=20from=20X11R5=20(mit/util/scripts/install.sh).=0A+#=0A+#=20=
Copyright=201991=20by=20the=20Massachusetts=20Institute=20of=20=
Technology=0A+#=0A+#=20Permission=20to=20use,=20copy,=20modify,=20=
distribute,=20and=20sell=20this=20software=20and=20its=0A+#=20=
documentation=20for=20any=20purpose=20is=20hereby=20granted=20without=20=
fee,=20provided=20that=0A+#=20the=20above=20copyright=20notice=20appear=20=
in=20all=20copies=20and=20that=20both=20that=0A+#=20copyright=20notice=20=
and=20this=20permission=20notice=20appear=20in=20supporting=0A+#=20=
documentation,=20and=20that=20the=20name=20of=20M.I.T.=20not=20be=20used=20=
in=20advertising=20or=0A+#=20publicity=20pertaining=20to=20distribution=20=
of=20the=20software=20without=20specific,=0A+#=20written=20prior=20=
permission.=20=20M.I.T.=20makes=20no=20representations=20about=20the=0A=
+#=20suitability=20of=20this=20software=20for=20any=20purpose.=20=20It=20=
is=20provided=20"as=20is"=0A+#=20without=20express=20or=20implied=20=
warranty.=0A+#=0A+#=20Calling=20this=20script=20install-sh=20is=20=
preferred=20over=20install.sh,=20to=20prevent=0A+#=20`make'=20implicit=20=
rules=20from=20creating=20a=20file=20called=20install=20from=20it=0A+#=20=
when=20there=20is=20no=20Makefile.=0A+#=0A+#=20This=20script=20is=20=
compatible=20with=20the=20BSD=20install=20script,=20but=20was=20written=0A=
+#=20from=20scratch.=20=20It=20can=20only=20install=20one=20file=20at=20=
a=20time,=20a=20restriction=0A+#=20shared=20with=20many=20OS's=20install=20=
programs.=0A+=0A+=0A+#=20set=20DOITPROG=20to=20echo=20to=20test=20this=20=
script=0A+=0A+#=20Don't=20use=20:-=20since=204.3BSD=20and=20earlier=20=
shells=20don't=20like=20it.=0A+doit=3D"${DOITPROG-}"=0A+=0A+=0A+#=20put=20=
in=20absolute=20paths=20if=20you=20don't=20have=20them=20in=20your=20=
path;=20or=20use=20env.=20vars.=0A+=0A+mvprog=3D"${MVPROG-mv}"=0A=
+cpprog=3D"${CPPROG-cp}"=0A+chmodprog=3D"${CHMODPROG-chmod}"=0A=
+chownprog=3D"${CHOWNPROG-chown}"=0A+chgrpprog=3D"${CHGRPPROG-chgrp}"=0A=
+stripprog=3D"${STRIPPROG-strip}"=0A+rmprog=3D"${RMPROG-rm}"=0A=
+mkdirprog=3D"${MKDIRPROG-mkdir}"=0A+=0A+transformbasename=3D""=0A=
+transform_arg=3D""=0A+instcmd=3D"$mvprog"=0A+chmodcmd=3D"$chmodprog=20=
0755"=0A+chowncmd=3D""=0A+chgrpcmd=3D""=0A+stripcmd=3D""=0A=
+rmcmd=3D"$rmprog=20-f"=0A+mvcmd=3D"$mvprog"=0A+src=3D""=0A+dst=3D""=0A=
+dir_arg=3D""=0A+=0A+while=20[=20x"$1"=20!=3D=20x=20];=20do=0A+=20=20=20=20=
case=20$1=20in=0A+=09-c)=20instcmd=3D"$cpprog"=0A+=09=20=20=20=20shift=0A=
+=09=20=20=20=20continue;;=0A+=0A+=09-d)=20dir_arg=3Dtrue=0A+=09=20=20=20=
=20shift=0A+=09=20=20=20=20continue;;=0A+=0A+=09-m)=20=
chmodcmd=3D"$chmodprog=20$2"=0A+=09=20=20=20=20shift=0A+=09=20=20=20=20=
shift=0A+=09=20=20=20=20continue;;=0A+=0A+=09-o)=20chowncmd=3D"$chownprog=20=
$2"=0A+=09=20=20=20=20shift=0A+=09=20=20=20=20shift=0A+=09=20=20=20=20=
continue;;=0A+=0A+=09-g)=20chgrpcmd=3D"$chgrpprog=20$2"=0A+=09=20=20=20=20=
shift=0A+=09=20=20=20=20shift=0A+=09=20=20=20=20continue;;=0A+=0A+=09-s)=20=
stripcmd=3D"$stripprog"=0A+=09=20=20=20=20shift=0A+=09=20=20=20=20=
continue;;=0A+=0A+=09-t=3D*)=20transformarg=3D`echo=20$1=20|=20sed=20=
's/-t=3D//'`=0A+=09=20=20=20=20shift=0A+=09=20=20=20=20continue;;=0A+=0A=
+=09-b=3D*)=20transformbasename=3D`echo=20$1=20|=20sed=20's/-b=3D//'`=0A=
+=09=20=20=20=20shift=0A+=09=20=20=20=20continue;;=0A+=0A+=09*)=20=20if=20=
[=20x"$src"=20=3D=20x=20]=0A+=09=20=20=20=20then=0A+=09=09src=3D$1=0A+=09=
=20=20=20=20else=0A+=09=09#=20this=20colon=20is=20to=20work=20around=20a=20=
386BSD=20/bin/sh=20bug=0A+=09=09:=0A+=09=09dst=3D$1=0A+=09=20=20=20=20fi=0A=
+=09=20=20=20=20shift=0A+=09=20=20=20=20continue;;=0A+=20=20=20=20esac=0A=
+done=0A+=0A+if=20[=20x"$src"=20=3D=20x=20]=0A+then=0A+=09echo=20=
"install:=09no=20input=20file=20specified"=0A+=09exit=201=0A+else=0A+=09=
true=0A+fi=0A+=0A+if=20[=20x"$dir_arg"=20!=3D=20x=20];=20then=0A+=09=
dst=3D$src=0A+=09src=3D""=0A+=09=0A+=09if=20[=20-d=20$dst=20];=20then=0A=
+=09=09instcmd=3D:=0A+=09=09chmodcmd=3D""=0A+=09else=0A+=09=09=
instcmd=3Dmkdir=0A+=09fi=0A+else=0A+=0A+#=20Waiting=20for=20this=20to=20=
be=20detected=20by=20the=20"$instcmd=20$src=20$dsttmp"=20command=0A+#=20=
might=20cause=20directories=20to=20be=20created,=20which=20would=20be=20=
especially=20bad=20=0A+#=20if=20$src=20(and=20thus=20$dsttmp)=20contains=20=
'*'.=0A+=0A+=09if=20[=20-f=20$src=20-o=20-d=20$src=20]=0A+=09then=0A+=09=09=
true=0A+=09else=0A+=09=09echo=20"install:=20=20$src=20does=20not=20=
exist"=0A+=09=09exit=201=0A+=09fi=0A+=09=0A+=09if=20[=20x"$dst"=20=3D=20=
x=20]=0A+=09then=0A+=09=09echo=20"install:=09no=20destination=20=
specified"=0A+=09=09exit=201=0A+=09else=0A+=09=09true=0A+=09fi=0A+=0A+#=20=
If=20destination=20is=20a=20directory,=20append=20the=20input=20=
filename;=20if=20your=20system=0A+#=20does=20not=20like=20double=20=
slashes=20in=20filenames,=20you=20may=20need=20to=20add=20some=20logic=0A=
+=0A+=09if=20[=20-d=20$dst=20]=0A+=09then=0A+=09=09dst=3D"$dst"/`basename=20=
$src`=0A+=09else=0A+=09=09true=0A+=09fi=0A+fi=0A+=0A+##=20this=20sed=20=
command=20emulates=20the=20dirname=20command=0A+dstdir=3D`echo=20$dst=20=
|=20sed=20-e=20's,[^/]*$,,;s,/$,,;s,^$,.,'`=0A+=0A+#=20Make=20sure=20=
that=20the=20destination=20directory=20exists.=0A+#=20=20this=20part=20=
is=20taken=20from=20Noah=20Friedman's=20mkinstalldirs=20script=0A+=0A+#=20=
Skip=20lots=20of=20stat=20calls=20in=20the=20usual=20case.=0A+if=20[=20!=20=
-d=20"$dstdir"=20];=20then=0A+defaultIFS=3D'=09=0A+'=0A=
+IFS=3D"${IFS-${defaultIFS}}"=0A+=0A+oIFS=3D"${IFS}"=0A+#=20Some=20sh's=20=
can't=20handle=20IFS=3D/=20for=20some=20reason.=0A+IFS=3D'%'=0A+set=20-=20=
`echo=20${dstdir}=20|=20sed=20-e=20's@/@%@g'=20-e=20's@^%@/@'`=0A=
+IFS=3D"${oIFS}"=0A+=0A+pathcomp=3D''=0A+=0A+while=20[=20$#=20-ne=200=20=
]=20;=20do=0A+=09pathcomp=3D"${pathcomp}${1}"=0A+=09shift=0A+=0A+=09if=20=
[=20!=20-d=20"${pathcomp}"=20]=20;=0A+=20=20=20=20=20=20=20=20then=0A+=09=
=09$mkdirprog=20"${pathcomp}"=0A+=09else=0A+=09=09true=0A+=09fi=0A+=0A+=09=
pathcomp=3D"${pathcomp}/"=0A+done=0A+fi=0A+=0A+if=20[=20x"$dir_arg"=20!=3D=
=20x=20]=0A+then=0A+=09$doit=20$instcmd=20$dst=20&&=0A+=0A+=09if=20[=20=
x"$chowncmd"=20!=3D=20x=20];=20then=20$doit=20$chowncmd=20$dst;=20else=20=
true=20;=20fi=20&&=0A+=09if=20[=20x"$chgrpcmd"=20!=3D=20x=20];=20then=20=
$doit=20$chgrpcmd=20$dst;=20else=20true=20;=20fi=20&&=0A+=09if=20[=20=
x"$stripcmd"=20!=3D=20x=20];=20then=20$doit=20$stripcmd=20$dst;=20else=20=
true=20;=20fi=20&&=0A+=09if=20[=20x"$chmodcmd"=20!=3D=20x=20];=20then=20=
$doit=20$chmodcmd=20$dst;=20else=20true=20;=20fi=0A+else=0A+=0A+#=20If=20=
we're=20going=20to=20rename=20the=20final=20executable,=20determine=20=
the=20name=20now.=0A+=0A+=09if=20[=20x"$transformarg"=20=3D=20x=20]=20=0A=
+=09then=0A+=09=09dstfile=3D`basename=20$dst`=0A+=09else=0A+=09=09=
dstfile=3D`basename=20$dst=20$transformbasename=20|=20=0A+=09=09=09sed=20=
$transformarg`$transformbasename=0A+=09fi=0A+=0A+#=20don't=20allow=20the=20=
sed=20command=20to=20completely=20eliminate=20the=20filename=0A+=0A+=09=
if=20[=20x"$dstfile"=20=3D=20x=20]=20=0A+=09then=0A+=09=09=
dstfile=3D`basename=20$dst`=0A+=09else=0A+=09=09true=0A+=09fi=0A+=0A+#=20=
Make=20a=20temp=20file=20name=20in=20the=20proper=20directory.=0A+=0A+=09=
dsttmp=3D$dstdir/#inst.$$#=0A+=0A+#=20Move=20or=20copy=20the=20file=20=
name=20to=20the=20temp=20name=0A+=0A+=09$doit=20$instcmd=20$src=20=
$dsttmp=20&&=0A+=0A+=09trap=20"rm=20-f=20${dsttmp}"=200=20&&=0A+=0A+#=20=
and=20set=20any=20options;=20do=20chmod=20last=20to=20preserve=20setuid=20=
bits=0A+=0A+#=20If=20any=20of=20these=20fail,=20we=20abort=20the=20whole=20=
thing.=20=20If=20we=20want=20to=0A+#=20ignore=20errors=20from=20any=20of=20=
these,=20just=20make=20sure=20not=20to=20ignore=0A+#=20errors=20from=20=
the=20above=20"$doit=20$instcmd=20$src=20$dsttmp"=20command.=0A+=0A+=09=
if=20[=20x"$chowncmd"=20!=3D=20x=20];=20then=20$doit=20$chowncmd=20=
$dsttmp;=20else=20true;fi=20&&=0A+=09if=20[=20x"$chgrpcmd"=20!=3D=20x=20=
];=20then=20$doit=20$chgrpcmd=20$dsttmp;=20else=20true;fi=20&&=0A+=09if=20=
[=20x"$stripcmd"=20!=3D=20x=20];=20then=20$doit=20$stripcmd=20$dsttmp;=20=
else=20true;fi=20&&=0A+=09if=20[=20x"$chmodcmd"=20!=3D=20x=20];=20then=20=
$doit=20$chmodcmd=20$dsttmp;=20else=20true;fi=20&&=0A+=0A+#=20Now=20=
rename=20the=20file=20to=20the=20real=20destination.=0A+=0A+=09$doit=20=
$rmcmd=20-f=20$dstdir/$dstfile=20&&=0A+=09$doit=20$mvcmd=20$dsttmp=20=
$dstdir/$dstfile=20=0A+=0A+fi=20&&=0A+=0A+=0A+exit=200=0Adiff=20-uN=20=
daemon/mdoc2man.pl=20daemon.ac/mdoc2man.pl=0A---=20daemon/mdoc2man.pl=09=
Wed=20Dec=2031=2019:00:00=201969=0A+++=20daemon.ac/mdoc2man.pl=09Thu=20=
Sep=2020=2016:58:46=202001=0A@@=20-0,0=20+1,364=20@@=0A+#!/usr/bin/perl=0A=
+###=0A+###=20Quick=20usage:=20=20mdoc2man.pl=20<=20mdoc_manpage.8=20>=20=
man_manpage.8=0A+###=0A+###=0A+###=20=20Copyright=20(c)=202001=20=
University=20of=20Illinois=20Board=20of=20Trustees=0A+###=20=20Copyright=20=
(c)=202001=20Mark=20D.=20Roth=0A+###=20=20All=20rights=20reserved.=0A=
+###=20=0A+###=20=20Redistribution=20and=20use=20in=20source=20and=20=
binary=20forms,=20with=20or=20without=0A+###=20=20modification,=20are=20=
permitted=20provided=20that=20the=20following=20conditions=0A+###=20=20=
are=20met:=0A+###=20=201.=20Redistributions=20of=20source=20code=20must=20=
retain=20the=20above=20copyright=0A+###=20=20=20=20=20notice,=20this=20=
list=20of=20conditions=20and=20the=20following=20disclaimer.=0A+###=20=20=
2.=20Redistributions=20in=20binary=20form=20must=20reproduce=20the=20=
above=20copyright=0A+###=20=20=20=20=20notice,=20this=20list=20of=20=
conditions=20and=20the=20following=20disclaimer=20in=20the=0A+###=20=20=20=
=20=20documentation=20and/or=20other=20materials=20provided=20with=20the=20=
distribution.=0A+###=20=203.=20All=20advertising=20materials=20=
mentioning=20features=20or=20use=20of=20this=20software=0A+###=20=20=20=20=
=20must=20display=20the=20following=20acknowledgement:=0A+###=20=20=20=20=
=20This=20product=20includes=20software=20developed=20by=20the=20=
University=20of=0A+###=20=20=20=20=20Illinois=20at=20Urbana,=20and=20=
their=20contributors.=0A+###=20=204.=20The=20University=20nor=20the=20=
names=20of=20their=0A+###=20=20=20=20=20contributors=20may=20be=20used=20=
to=20endorse=20or=20promote=20products=20derived=20from=0A+###=20=20=20=20=
=20this=20software=20without=20specific=20prior=20written=20permission.=0A=
+###=20=0A+###=20=20THIS=20SOFTWARE=20IS=20PROVIDED=20BY=20THE=20=
TRUSTEES=20AND=20CONTRIBUTORS=20``AS=20IS''=20AND=0A+###=20=20ANY=20=
EXPRESS=20OR=20IMPLIED=20WARRANTIES,=20INCLUDING,=20BUT=20NOT=20LIMITED=20=
TO,=20THE=0A+###=20=20IMPLIED=20WARRANTIES=20OF=20MERCHANTABILITY=20AND=20=
FITNESS=20FOR=20A=20PARTICULAR=20PURPOSE=0A+###=20=20ARE=20DISCLAIMED.=20=
=20IN=20NO=20EVENT=20SHALL=20THE=20TRUSTEES=20OR=20CONTRIBUTORS=20BE=20=
LIABLE=0A+###=20=20FOR=20ANY=20DIRECT,=20INDIRECT,=20INCIDENTAL,=20=
SPECIAL,=20EXEMPLARY,=20OR=20CONSEQUENTIAL=0A+###=20=20DAMAGES=20=
(INCLUDING,=20BUT=20NOT=20LIMITED=20TO,=20PROCUREMENT=20OF=20SUBSTITUTE=20=
GOODS=0A+###=20=20OR=20SERVICES;=20LOSS=20OF=20USE,=20DATA,=20OR=20=
PROFITS;=20OR=20BUSINESS=20INTERRUPTION)=0A+###=20=20HOWEVER=20CAUSED=20=
AND=20ON=20ANY=20THEORY=20OF=20LIABILITY,=20WHETHER=20IN=20CONTRACT,=20=
STRICT=0A+###=20=20LIABILITY,=20OR=20TORT=20(INCLUDING=20NEGLIGENCE=20OR=20=
OTHERWISE)=20ARISING=20IN=20ANY=20WAY=0A+###=20=20OUT=20OF=20THE=20USE=20=
OF=20THIS=20SOFTWARE,=20EVEN=20IF=20ADVISED=20OF=20THE=20POSSIBILITY=20=
OF=0A+###=20=20SUCH=20DAMAGE.=0A+###=0A+=0A+use=20strict;=0A+=0A+my=20=
($name,=20$date,=20$id);=0A+my=20($line);=0A+my=20($optlist,=20$nospace,=20=
$enum,=20$synopsis);=0A+=0A+=0A+$optlist=20=3D=200;=09=09###=201=20=3D=20=
bullet,=202=20=3D=20enum,=203=20=3D=20tag=0A+$nospace=20=3D=200;=0A=
+$synopsis=20=3D=200;=0A+=0A+while=20($line=20=3D=20<STDIN>)=0A+{=0A+=09=
if=20($line=20!~=20/^\./)=0A+=09{=0A+=09=09print=20$line;=0A+=09=09next;=0A=
+=09}=0A+=0A+=09$line=20=3D~=20s/^\.//;=0A+=0A+=09next=0A+=09=09if=20=
($line=20=3D~=20m/\\"/);=0A+=0A+=09$line=20=3D=20ParseMacro($line);=0A+=09=
print($line)=0A+=09=09if=20(defined=20$line);=0A+}=0A+=0A+=0A+=0A+sub=20=
ParseMacro=20#=20($line)=0A+{=0A+=09my=20($line)=20=3D=20@_;=0A+=09my=20=
(@words,=20$retval,=20$option,=20$parens,=20$arg);=0A+=0A+=09@words=20=3D=20=
split(/\s+/,=20$line);=0A+=09$retval=20=3D=20'';=0A+=09$option=20=3D=20=
0;=0A+=09$parens=20=3D=200;=0A+=09$arg=20=3D=200;=0A+=0A+#=09=
print('@words=20=3D=20',=20scalar(@words),=20':=20',=20join('=20',=20=
@words),=20"\n");=0A+=0A+=09while=20($_=20=3D=20shift=20@words)=0A+=09{=0A=
+#=09=09print=20"WORD:=20$_\n";=0A+=0A+=09=09next=0A+=09=09=09if=20=
(/^(Li|Pf|X[oc])$/);=0A+=0A+=09=09if=20(/^Ns/)=0A+=09=09{=0A+=09=09=09=
$nospace=20=3D=201=0A+=09=09=09=09if=20(!=20$nospace);=0A+=09=09=09=
$retval=20=3D~=20s/=20$//;=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20=
(/^No/)=0A+=09=09{=0A+=09=09=09$retval=20=3D~=20s/=20$//;=0A+=09=09=09=
$retval=20.=3D=20shift=20@words;=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09=
if=20(/^Dq$/)=20{=0A+=09=09=09$retval=20.=3D=20'``'=20.=20(shift=20=
@words)=20.=20'\'\'';=0A+=09=09=09$nospace=20=3D=201=0A+=09=09=09=09if=20=
(!=20$nospace=20&&=20$words[0]=20=3D~=20m/^[\.,]/);=0A+=09=09=09next;=0A=
+=09=09}=0A+=0A+=09=09if=20(/^(Sq|Ql)$/)=20{=0A+=09=09=09$retval=20.=3D=20=
'`'=20.=20(shift=20@words)=20.=20'\'';=0A+=09=09=09$nospace=20=3D=201=0A=
+=09=09=09=09if=20(!=20$nospace=20&&=20$words[0]=20=3D~=20m/^[\.,]/);=0A=
+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09$retval=20.=3D=20'=20'=0A+=09=09=09=
if=20(!=20$nospace=20&&=20$retval=20ne=20''=20&&=20$retval=20!~=20m/[\n=20=
]$/);=0A+=09=09$nospace=20=3D=200=0A+=09=09=09if=20($nospace=20=3D=3D=20=
1);=0A+=0A+=09=09if=20(/^Dd$/)=20{=0A+=09=09=09$date=20=3D=20join('=20',=20=
@words);=0A+=09=09=09return=20undef;=0A+=09=09}=0A+=0A+=09=09if=20=
(/^Dt$/)=20{=0A+=09=09=09$id=20=3D=20join('=20',=20@words);=0A+=09=09=09=
return=20undef;=0A+=09=09}=0A+=0A+=09=09if=20(/^Os$/)=20{=0A+=09=09=09=
$retval=20.=3D=20'.TH=20'=0A+=09=09=09=09.=20$id=0A+=09=09=09=09.=20"=20=
\"$date\"=20\""=0A+=09=09=09=09.=20join('=20',=20@words)=0A+=09=09=09=09=
.=20"\"";=0A+=09=09=09last;=0A+=09=09}=0A+=0A+=09=09if=20(/^Sh$/)=20{=0A=
+=09=09=09$retval=20.=3D=20'.SH';=0A+=09=09=09if=20($words[0]=20eq=20=
'SYNOPSIS')=0A+=09=09=09{=0A+=09=09=09=09$synopsis=20=3D=201;=0A+=09=09=09=
}=0A+=09=09=09else=0A+=09=09=09{=0A+=09=09=09=09$synopsis=20=3D=200;=0A+=09=
=09=09}=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20(/^Xr$/)=20{=0A+=09=
=09=09$retval=20.=3D=20'\\fB'=20.=20(shift=20@words)=20.=0A+=09=09=09=09=
'\\fR('=20.=20(shift=20@words)=20.=20')'=0A+=09=09=09=09.=20(shift=20=
@words);=0A+=09=09=09last;=0A+=09=09}=0A+=0A+=09=09if=20(/^Nm$/)=20{=0A+=09=
=09=09$name=20=3D=20shift=20@words=0A+=09=09=09=09if=20(@words=20>=200);=0A=
+=09=09=09$retval=20.=3D=20".br\n"=0A+=09=09=09=09if=20($synopsis);=0A+=09=
=09=09$retval=20.=3D=20"\\fB$name\\fR";=0A+=09=09=09$nospace=20=3D=201=0A=
+=09=09=09=09if=20(!=20$nospace=20&&=20$words[0]=20=3D~=20m/^[\.,]/);=0A=
+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20(/^Nd$/)=20{=0A+=09=09=09=
$retval=20.=3D=20'\\-';=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20=
(/^Fl$/)=20{=0A+=09=09=09$retval=20.=3D=20'\\fB\\-'=20.=20(shift=20=
@words)=20.=20'\\fR';=0A+=09=09=09$nospace=20=3D=201=0A+=09=09=09=09if=20=
(!=20$nospace=20&&=20$words[0]=20=3D~=20m/^[\.,]/);=0A+=09=09=09next;=0A=
+=09=09}=0A+=0A+=09=09if=20(/^Ar$/)=20{=0A+=09=09=09$retval=20.=3D=20=
'\\fI';=0A+=09=09=09if=20(!=20defined=20$words[0])=0A+=09=09=09{=0A+=09=09=
=09=09$retval=20.=3D=20'file=20...\\fR';=0A+=09=09=09}=0A+=09=09=09$arg=20=
=3D=201;=0A+=09=09=09$nospace=20=3D=201=0A+=09=09=09=09if=20(!=20=
$nospace);=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20(/^Cm$/)=20{=0A=
+=09=09=09$retval=20.=3D=20'\\fB'=20.=20(shift=20@words)=20.=20'\\fR';=0A=
+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20(/^Op$/)=20{=0A+=09=09=09=
$option=20=3D=201;=0A+=09=09=09$nospace=20=3D=201=0A+=09=09=09=09if=20(!=20=
$nospace);=0A+=09=09=09$retval=20.=3D=20'[';=0A+=09=09=09next;=0A+=09=09=
}=0A+=0A+=09=09if=20(/^Oo$/)=20{=0A+=09=09=09$retval=20.=3D=20"[\\c\n";=0A=
+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20(/^Oc$/)=20{=0A+=09=09=09=
$retval=20.=3D=20']';=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20=
(/^Pp$/)=20{=0A+=09=09=09if=20($optlist)=20{=0A+=09=09=09=09$retval=20.=3D=
=20"\n";=0A+=09=09=09}=20else=20{=0A+=09=09=09=09$retval=20.=3D=20'.LP';=0A=
+=09=09=09}=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20(/^Ss$/)=20{=0A=
+=09=09=09$retval=20.=3D=20'.SS';=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=
=09if=20(/^Pa$/=20&&=20!=20$option)=20{=0A+=09=09=09$retval=20.=3D=20=
'\\fI';=0A+=09=09=09$retval=20.=3D=20'\\&'=0A+=09=09=09=09if=20=
($words[0]=20=3D~=20m/^\./);=0A+=09=09=09$retval=20.=3D=20(shift=20=
@words)=20.=20'\\fR';=0A+=09=09=09$nospace=20=3D=201=0A+=09=09=09=09if=20=
(!=20$nospace=20&&=20$words[0]=20=3D~=20m/^[\.,]/);=0A+=09=09=09next;=0A=
+=09=09}=0A+=0A+=09=09if=20(/^Dv$/)=20{=0A+=09=09=09$retval=20.=3D=20=
'.BR';=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20(/^(Em|Ev)$/)=20{=0A=
+=09=09=09$retval=20.=3D=20'.IR';=0A+=09=09=09next;=0A+=09=09}=0A+=0A+=09=
=09if=20(/^Pq$/)=20{=0A+=09=09=09$retval=20.=3D=20'(';=0A+=09=09=09=
$nospace=20=3D=201;=0A+=09=09=09$parens=20=3D=201;=0A+=09=09=09next;=0A+=09=
=09}=0A+=0A+=09=09if=20(/^(S[xy])$/)=20{=0A+=09=09=09$retval=20.=3D=20=
'.B=20'=20.=20join('=20',=20@words);=0A+=09=09=09last;=0A+=09=09}=0A+=0A=
+=09=09if=20(/^Ic$/)=0A+=09=09{=0A+=09=09=09$retval=20.=3D=20'\\fB';=0A+=09=
=09=09while=20(defined=20$words[0]=0A+=09=09=09=09&&=20$words[0]=20!~=20=
m/^[\.,]/)=0A+=09=09=09{=0A+=09=09=09=09$retval=20.=3D=20shift=20@words;=0A=
+=09=09=09=09$retval=20.=3D=20'=20'=0A+=09=09=09=09=09if=20(!=20=
$nospace);=0A+=09=09=09}=0A+=09=09=09$retval=20=3D~=20s/=20$//;=0A+=09=09=
=09$retval=20.=3D=20'\\fR';=0A+=09=09=09$retval=20.=3D=20shift=20@words=0A=
+=09=09=09=09if=20(defined=20$words[0]);=0A+=09=09=09last;=0A+=09=09}=0A=
+=0A+=09=09if=20(/^Bl$/)=20{=0A+=09=09=09if=20($words[0]=20eq=20=
'-bullet')=20{=0A+=09=09=09=09$optlist=20=3D=201;=0A+=09=09=09}=20elsif=20=
($words[0]=20eq=20'-enum')=20{=0A+=09=09=09=09$optlist=20=3D=202;=0A+=09=09=
=09=09$enum=20=3D=200;=0A+=09=09=09}=20elsif=20($words[0]=20eq=20'-tag')=20=
{=0A+=09=09=09=09$optlist=20=3D=203;=0A+=09=09=09}=0A+=09=09=09last;=0A+=09=
=09}=0A+=0A+=09=09if=20(/^El$/)=20{=0A+=09=09=09$optlist=20=3D=200;=0A+=09=
=09=09next;=0A+=09=09}=0A+=0A+=09=09if=20($optlist=20&&=20/^It$/)=20{=0A=
+=09=09=09if=20($optlist=20=3D=3D=201)=20{=0A+=09=09=09=09#=20bullets=0A=
+=09=09=09=09$retval=20.=3D=20'.IP=20\\(bu';=0A+=09=09=09=09next;=0A+=09=09=
=09}=0A+=0A+=09=09=09if=20($optlist=20=3D=3D=202)=20{=0A+=09=09=09=09#=20=
enum=0A+=09=09=09=09$retval=20.=3D=20'.IP=20'=20.=20(++$enum)=20.=20'.';=0A=
+=09=09=09=09next;=0A+=09=09=09}=0A+=0A+=09=09=09if=20($optlist=20=3D=3D=20=
3)=20{=0A+=09=09=09=09#=20tags=0A+=09=09=09=09$retval=20.=3D=20".TP\n";=0A=
+=09=09=09=09if=20($words[0]=20=3D~=20m/^(Pa|Ev)$/)=0A+=09=09=09=09{=0A+=09=
=09=09=09=09shift=20@words;=0A+=09=09=09=09=09$retval=20.=3D=20'.B';=0A+=09=
=09=09=09}=0A+=09=09=09=09next;=0A+=09=09=09}=0A+=0A+=09=09=09next;=0A+=09=
=09}=0A+=0A+=09=09if=20(/^Sm$/)=20{=0A+=09=09=09if=20($words[0]=20eq=20=
'off')=20{=0A+=09=09=09=09$nospace=20=3D=202;=0A+=09=09=09}=20elsif=20=
($words[0]=20eq=20'on')=20{=0A+=09=09=09=09$retval=20.=3D=20"\n";=0A+=09=09=
=09=09$nospace=20=3D=200;=0A+=09=09=09}=0A+=09=09=09shift=20@words;=0A+=09=
=09=09next;=0A+=09=09}=0A+=0A+=09=09$retval=20.=3D=20"$_";=0A+=09}=0A+=0A=
+=09return=20undef=0A+=09=09if=20($retval=20eq=20'.');=0A+=0A+=09$retval=20=
=3D~=20s/^\.([^a-zA-Z])/$1/;=0A+=09$retval=20=3D~=20s/=20$//;=0A+=0A+=09=
$retval=20.=3D=20')'=0A+=09=09if=20($parens=20=3D=3D=201);=0A+=0A+=09=
$retval=20.=3D=20']'=0A+=09=09if=20($option=20=3D=3D=201);=0A+=0A+=09=
$retval=20.=3D=20'\\fR'=0A+=09=09if=20($arg);=0A+=0A+=09$retval=20.=3D=20=
'\\c'=0A+=09=09if=20($nospace=20&&=20$retval=20ne=20''=20&&=20$retval=20=
!~=20m/\n$/);=0A+=0A+=09$retval=20.=3D=20"\n"=0A+=09=09if=20($retval=20=
ne=20''=20&&=20$retval=20!~=20m/\n$/);=0A+=0A+=09return=20$retval;=0A+}=0A=
diff=20-uN=20daemon/memory.c=20daemon.ac/memory.c=0A---=20=
daemon/memory.c=09Tue=20Aug=2021=2010:28:21=202001=0A+++=20=
daemon.ac/memory.c=09Thu=20Sep=2020=2015:54:00=202001=0A@@=20-80,7=20=
+80,7=20@@=0A=20=20=20=20=20=20=20=20=20int32u=20=20=20obj_type;=0A=20=20=
=20=20=20=20=20=20=20size_t=20=20=20block_len;=0A=20}=20mem_header;=0A=
-#define=20MEM_SIZE=20=3D=20sizeof(mem_header);=0A+#define=20MEM_SIZE=20=
sizeof(mem_header)=0A=20=0A=20/*=20NOTE:=20Only=20num_obj_inpool=20is=20=
updated=20when=20debugging=20is=20turned=20off=0A=20=20*=20(i.e.=20=
define=20NDEBUG)=20it=20is=20NECESSARY=20to=20track=20buffer=20pool=20=
size=0A@@=20-195,23=20+195,11=20@@=0A=20=20*=20by=20casting=20to=20(char=20=
*)=20we=20avoid=20the=20requirement=20that=20it=20be=20called=20with=20=
void=20*.=20=0A=20=20*/=0A=20=0A-/*=20OBSOLETE=20COMMENT!=20Size=20might=20=
not=20be=208.=0A-=20*=0A-=20*=20MUST=20BE=20CALLED=20WITH=20A=20VOID=20*=20=
pointer.=20=20OTHERWISE=20NASTY=20MEMORY=20CORRUPTION=20OCCURS!!!=0A-=20=
*=20The=20value=208=20is=20used=20here=20because=20obj=20is=20a=20void=20=
*=20so=20it=20is=20assumed=20to=20point=20to=20an=0A-=20*=20array=20of=20=
chars=20(don't=20ask=20me=20why=20but=20it=20makes=20some=20sense)=0A-=20=
*=20thus=20we=20subtract=208=20chars=20(8=20*=201=20byte=20chars=20=3D=20=
8=20bytes)=0A-=20*=20which=20is=20the=20size=20of=20the=20header=0A+/*=20=
MUST=20BE=20CALLED=20WITH=20A=20VOID=20*=20pointer.=20=20OTHERWISE=20=
NASTY=20MEMORY=20CORRUPTION=20OCCURS!!!=0A+=20*=20The=20value=20MEM_SIZE=20=
is=20defined=20above=20to=20be=20the=20size=20of=20the=20header.=0A+=20*=20=
Cast=20to=20char=20*=20and=20subtract=20MEM_SIZE=20bytes=20as=20that=20=
is=20what=20sizeof=20counts.=0A=20=20*/=0A-#ifdef=20ARCH_PC_WIN95=20=0A=
-#=20=20=20=20=20=20=20define=20mem_header_ptr(obj)=20=20=20=20=20=20(=20=
(mem_header=20*)=20(((char=20*)obj)=20-=20sizeof(mem_header)=20)=20)=0A=
-#else=0A-#ifdef=20ARCH_SGI_IRIX=20=0A-#=20=20=20=20=20=20=20define=20=
mem_header_ptr(obj)=20=20=20=20=20=20(=20(mem_header=20*)=20(((char=20=
*)obj)=20-=20sizeof(mem_header)=20)=20)=0A-#else=0A-#=20=20=20=20=20=20=20=
define=20mem_header_ptr(obj)=20=20=20=20=20=20=20=20=20(=20(mem_header=20=
*)=20(((char=20*)obj)=20-=20sizeof(mem_header)=20)=20)=20=0A-#endif=20/*=20=
ARCH_SGI_IRIX=20*/=0A-#endif=20/*=20ARCH_PC_WIN95=20*/=0A+#define=20=
mem_header_ptr(obj)=20=20=20(=20(mem_header=20*)=20(((char=20*)obj)=20-=20=
MEM_SIZE=20)=20)=0A=20=0A=20void=20=20=20=20Mem_init_status()=0A=20{=0A=
diff=20-uN=20daemon/mkinstalldirs=20daemon.ac/mkinstalldirs=0A---=20=
daemon/mkinstalldirs=09Wed=20Dec=2031=2019:00:00=201969=0A+++=20=
daemon.ac/mkinstalldirs=09Thu=20Sep=2020=2015:44:31=202001=0A@@=20-0,0=20=
+1,40=20@@=0A+#!=20/bin/sh=0A+#=20mkinstalldirs=20---=20make=20directory=20=
hierarchy=0A+#=20Author:=20Noah=20Friedman=20<friedman@prep.ai.mit.edu>=0A=
+#=20Created:=201993-05-16=0A+#=20Public=20domain=0A+=0A+#=20$Id:=20=
mkinstalldirs,v=201.1=202000/05/20=2005:33:45=20damien=20Exp=20$=0A+=0A=
+errstatus=3D0=0A+=0A+for=20file=0A+do=0A+=20=20=20set=20fnord=20`echo=20=
":$file"=20|=20sed=20-ne=20's/^:\//#/;s/^://;s/\//=20/g;s/^#/\//;p'`=0A+=20=
=20=20shift=0A+=0A+=20=20=20pathcomp=3D=0A+=20=20=20for=20d=0A+=20=20=20=
do=0A+=20=20=20=20=20pathcomp=3D"$pathcomp$d"=0A+=20=20=20=20=20case=20=
"$pathcomp"=20in=0A+=20=20=20=20=20=20=20-*=20)=20pathcomp=3D./$pathcomp=20=
;;=0A+=20=20=20=20=20esac=0A+=0A+=20=20=20=20=20if=20test=20!=20-d=20=
"$pathcomp";=20then=0A+=20=20=20=20=20=20=20=20echo=20"mkdir=20=
$pathcomp"=0A+=0A+=20=20=20=20=20=20=20=20mkdir=20"$pathcomp"=20||=20=
lasterr=3D$?=0A+=0A+=20=20=20=20=20=20=20=20if=20test=20!=20-d=20=
"$pathcomp";=20then=0A+=20=20=09=20=20errstatus=3D$lasterr=0A+=20=20=20=20=
=20=20=20=20fi=0A+=20=20=20=20=20fi=0A+=0A+=20=20=20=20=20=
pathcomp=3D"$pathcomp/"=0A+=20=20=20done=0A+done=0A+=0A+exit=20=
$errstatus=0A+=0A+#=20mkinstalldirs=20ends=20here=0Adiff=20-uN=20=
daemon/session.c=20daemon.ac/session.c=0A---=20daemon/session.c=09Wed=20=
Aug=2022=2013:41:13=202001=0A+++=20daemon.ac/session.c=09Thu=20Sep=2020=20=
15:44:56=202001=0A@@=20-46,7=20+46,7=20@@=0A=20#include=20<sys/socket.h>=0A=
=20#include=20<sys/stat.h>=0A=20=0A-#ifdef=20=20ARCH_SPARC_SOLARIS=0A=
+#ifdef=20HAVE_SYS_UIO_H=0A=20#include=20<sys/uio.h>=0A=20#endif=0A=20=0A=
@@=20-372,12=20+372,6=20@@=0A=20=0A=20=09for(=20i=3D10;=20i=20<=3D=20=
200;=20i+=3D5=20)=0A=20=09{=0A-#ifdef=20ARCH_PC_LINUX=0A-/*=09###=20Bug=20=
in=20Linux=202.0.0=20-=20inet=20STREAM=20sockets=20=0A-=0A-=20=20=20=20=20=
=20=20=20if(=20domain=20=3D=3D=20AF_INET=20&&=20i=20>=2030=20)=20break;=20=
*/=0A-=0A-#endif=20/*=20ARCH_PC_LINUX=20*/=0A=20=09=20=20=20=20on=20=3D=20=
1024*i;=0A=20=09=20=20=20=20onlen=20=3D=20sizeof(on);=0A=20=0Adiff=20-uN=20=
daemon/sp.c=20daemon.ac/sp.c=0A---=20daemon/sp.c=09Wed=20Aug=2022=20=
13:44:24=202001=0A+++=20daemon.ac/sp.c=09Thu=20Sep=2020=2015:44:31=20=
2001=0A@@=20-430,13=20+430,6=20@@=0A=20=09=09for(=20i=3D10;=20i=20<=3D=20=
200;=20i+=3D5=20)=0A=20=09=09{=0A=20=0A-#ifdef=20ARCH_PC_LINUX=0A-/*=09=
###=20Bug=20in=20Linux=202.0.0=20-=20inet=20STREAM=20sockets=20=0A-=0A-=09=
if(=20i=20>=2030=20)=20break;=20*/=0A-=0A-#endif=20/*=20ARCH_PC_LINUX=20=
*/=0A-=0A=20=09=09=20=20=20=20on=20=3D=201024*i;=0A=20=0A=20=09=09=20=20=20=
=20ret=20=3D=20setsockopt(=20s,=20SOL_SOCKET,=20SO_SNDBUF,=20(void=20=
*)&on,=204);=0A=

--Apple-Mail-1194759869-4--

--Apple-Mail-1442160148-3--