Find the changes that were done to GNU wget files for getting it build properly on MPE/iX below (except for the lengthy diffs for the ./configure script that was re-generated for MPE/iX using the GNU autoconf version for MPE/iX). The diffs are in GNU diff -u format, readable by GNU patch. (If you are not familiar with GNU diff -u, focus your attention to lines starting with - and + signs to see the modifications). Except for the usual adjustments to config.guess, config.sub and install-sh, there was one source code change to disable a call to setsockopt() with SO_REUSEADDR that does not exist on MPE/iX. Aren't this quite a small number adjustments? Posix/iX is nice! Index: config.guess =================================================================== RCS file: /IX/WGET2/cvs/wget/config.guess$v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -r1.1.1.1 -r1.1.1.2 --- config.guess 1998/12/27 20:12:05 1.1.1.1 +++ config.guess 1998/12/27 20:21:50 1.1.1.2 @@ -277,6 +277,9 @@ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; + *:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; 3050*:HI-UX:*:*) sed 's/^ //' << EOF >dummy.c #include Index: config.sub =================================================================== RCS file: /IX/WGET2/cvs/wget/config.sub$v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -r1.1.1.1 -r1.1.1.2 --- config.sub 1998/12/27 20:12:05 1.1.1.1 +++ config.sub 1998/12/27 20:21:54 1.1.1.2 @@ -689,7 +689,7 @@ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -linux-gnu* | -uxpv*) + | -linux-gnu* | -uxpv* | -mpeix*) # Remember, each alternative MUST END IN *, to match a version number. ;; -linux*) Index: install-sh =================================================================== RCS file: /IX/WGET2/cvs/wget/install-sh$v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -r1.1.1.1 -r1.1.1.2 --- install-sh 1998/12/27 20:12:06 1.1.1.1 +++ install-sh 1998/12/27 20:21:57 1.1.1.2 @@ -220,7 +220,7 @@ # Make a temp file name in the proper directory. - dsttmp=$dstdir/#inst.$$# + dsttmp=$dstdir/_inst.$$_ # Move or copy the file name to the temp name Index: connect.c =================================================================== RCS file: /IX/WGET2/cvs/wget/src/connect.c$v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -r1.1.1.1 -r1.1.1.2 --- connect.c 1998/12/27 20:12:14 1.1.1.1 +++ connect.c 1998/12/27 20:41:08 1.1.1.2 @@ -115,9 +115,11 @@ addr = (struct sockaddr *) &srv; if ((msock = socket (AF_INET, SOCK_STREAM, 0)) < 0) return CONSOCKERR; +#ifndef mpeix if (setsockopt (msock, SOL_SOCKET, SO_REUSEADDR, (char *)&optval, sizeof (optval)) < 0) return CONSOCKERR; +#endif srv.sin_family = AF_INET; srv.sin_addr.s_addr = htonl (INADDR_ANY); srv.sin_port = htons (*port);