X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: ZILE 2.3.7 (very hard to build, needs weird hacks just to compile) Date: Fri, 17 Jul 2009 04:38:26 -0700 (PDT) Organization: http://groups.google.com Lines: 38 Message-ID: References: <70ca0c3b-f777-47b2-80c8-ee6dccf249eb AT t21g2000yqi DOT googlegroups DOT com> <3404e585-bd5f-47b9-8663-2070bd9d6651 AT b15g2000yqd DOT googlegroups DOT com> <807a4a2c-8d2e-4231-b504-c822c9dba176 AT k20g2000vbp DOT googlegroups DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1247830706 2324 127.0.0.1 (17 Jul 2009 11:38:26 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Fri, 17 Jul 2009 11:38:26 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: c36g2000yqn.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, On Jul 14, 3:13=A0am, Rugxulo wrote: > > djtar -x %F1% > cd zile* > sed -i -e "/-lcurses/s//-lpdcurses/" -e "/mp_cv_curses=3Dno/s/=3Dno/=3Dye= s/" -e "\,\\\\r,s,\\\\,\\," configure "configure" is such a big file that sed will be quite slow editing it. (Actually running "configure" itself is the slowest thing. It really checks too much stuff !!) Hence, it'd be faster to just let it run its course and edit the resulting (small) config.status instead and then manually run: bash -c "./config.status" (to create the various makefiles). Ignore the whole curses hack mentioned above as you can later do "make CURSES_LIB=3D-lpdcurses" instead. > sed -i "\,libgen\.h,s,^,//," src\completion.c This dependency is removed in 2.3.10 pretest (since Gnulib emulates parts of it anyways). I have no idea why fchown-stub.c from Gnulib isn't pulled in for 2.03p2, but I ended up just manually hacking lib/ makefile to append "fchown-stub.o" to the "gl_LIBOBJS =3D" line. (At least one Gnulib maintainer seems to not understand that DOS is still used since 1995. Oh well, guess he's out of the loop.) > echo #if __DJGPP_MINOR__ !=3D 4 >> config.h > echo #define EILSEQ 41 >> config.h > echo #define fchown(a,b,c) >> config.h > echo #endif >> config.h That should probably say "#ifndef EILSEQ" since even iconv.h (licv*b.zip) defines it if necessary. BTW, for "M-x shell-command", 4DOS apparently uses ">&" to redirect stdout and stderr, in case anyone prefers that (hence just change "2>&1" to ">&" I suppose). Untested, but at least that's what the help says.