tg
cdac7b7d65
clean up our own junk
2007-09-09 18:21:52 +00:00
tg
fe65f616e4
some have u_int but not uint32_t
2007-09-09 12:02:38 +00:00
tg
6f30f395bf
-std=foo can’t be made fatal even with -Werror, live with it
2007-09-09 11:55:44 +00:00
tg
b06d40f8f2
autoscan for uint32_t et al. if <stdint.h> not present
...
this un-special-cases PW32 and should help OSF/1
2007-09-09 11:04:30 +00:00
tg
a1afc4e0a7
gcc 2.8.1 (on Digital Taugtnix a.k.a. alpha-dec-osf4.0d) makes -std=foo
...
failures a warning only
2007-09-09 10:49:20 +00:00
tg
6c47b381c2
testing with the Heirloom sh found this… d’oh
2007-09-07 21:58:40 +00:00
tg
499327f7b8
add “set -o arc4random”, RTFM for details
2007-08-12 13:42:23 +00:00
tg
496b8f4dc3
• new way of checking for mknod & friends, due to tcc vs glibc weirdness
...
• bump vsn for the code restructuring
2007-07-31 11:11:25 +00:00
tg
809c1446b2
some steps towards building with tcc
2007-07-31 10:42:15 +00:00
tg
9884efef00
• implement some (not yet tested) kludges for tcc
...
• define $CPP internally
2007-07-31 10:17:52 +00:00
tg
735ec12dfd
• TenDRA (testsuite pass)
...
• Fabrice Bellard’s tcc (not supported yet, may follow later)
reminded by tarzeau (Gürkan Sengün)
2007-07-31 10:04:46 +00:00
tg
3e5b234965
these are actually cool people, I think
2007-07-26 22:38:31 +00:00
tg
7374f12176
some more not-so working platforms
...
can't extend the working ones better since my UWIN decided to break
after MSVC++ Expreß seems to have “upgraded” some libraries… *sigh*
2007-07-24 21:54:46 +00:00
tg
b20e5a90ce
initial support for PW32, not quite working yet (same issues as Minix 3 and Plan 9, I think)
2007-07-24 21:47:14 +00:00
tg
748d09122a
de-experimental AIX
2007-07-22 13:47:10 +00:00
tg
a1433b7122
• Build.sh: always prepend well-known signal names, so that some signals
...
will not come up weirdly (e.g. on AIX: SIGSAK (SIGMAX?), SIGIO (SIGAIO?),
SIGURG (SIGIOINT?)), and add a few more while here
• check.t, sh.h: bump
2007-07-22 13:46:15 +00:00
tg
979406bba7
• support IBM xlC on AIX
...
• fix all bugs it could find ☺
2007-07-22 13:34:52 +00:00
tg
211ecedf4e
• move __GNUC__ test quite to the bottom, since I fear other compilers,
...
such as icc, define it too
• provide a Rebuild.sh skipping the mirtoconf checks – devel only!
2007-07-22 13:08:54 +00:00
tg
29d4125e3c
switch $CC default from gcc to cc, as we support most native compilers now,
...
and – with Daniel's words – das ist doch kein Rumgeleenockse hier!
2007-07-17 19:41:26 +00:00
tg
823f5c2a17
hopefully fix large file stuff for real
2007-07-09 11:19:55 +00:00
tg
888740cf66
fix what happens after we check for -D_FILE_OFFSET_BITS=64 – actually
...
use it. discovered in debian 29.6-2 by hondza via IRC, thanks a lot!
2007-07-04 14:53:19 +00:00
tg
77e27b9656
fix temp files not being cleaned up correctly
2007-07-01 21:59:10 +00:00
tg
3ef434d378
fix NOWARN stuff
2007-07-01 21:52:20 +00:00
tg
f948c13a78
• fix display problem
...
• add <libutil.h> if it exists – revoke(2) on UWIN
• add <stdlib.h> for NULL in test of mmap(2)
• regen CPPFLAGS for MirBSD native builds
2007-07-01 21:47:08 +00:00
tg
7004525fcc
• add support for the Borland C++ Builder (on UWIN)
...
• add support for the Digital Mars compiler (on UWIN)
• clean up
• describe new build targets and that UWIN sucks
• bump vsn
2007-07-01 21:27:03 +00:00
tg
320b95ea4f
• ugh, CR-LF line endings
...
• reduce number of temp files used
2007-07-01 19:24:11 +00:00
tg
36188c60be
coerce this into running on UWIN - or rather sort of. Ugly.
2007-07-01 19:04:53 +00:00
tg
af1aa9655f
MSC improvements
2007-07-01 18:00:18 +00:00
tg
2f734698d3
• mirtoconf if MS C security checks work (with our C library)
...
• simplify "-Wc," ./. "-X " ./. "-Yc," separation
2007-07-01 17:22:07 +00:00
tg
74c0adf312
mirtoconf for mmap(2), UWIN doesn't have it
2007-07-01 17:19:15 +00:00
tg
f84505395a
some vendors' cc(1) doesn't support -E from stdin like cpp(1)
2007-07-01 16:57:00 +00:00
tg
69f7683156
• enable UWIN as operating environment
...
• cover for differences in UWIN's and Interix' cc(1) wrapper
• AT&T tr(1) is defective, just skip + and - chars
2007-07-01 16:47:05 +00:00
tg
cf6137238c
• fix AIX variant of large files
...
• use DOWARN semantically correct
• support the Microsoft® C Compiler
• on Interix, disable msc's security checks, as it relies on
library functions not provided by Interix' libc (XXX mirtoconf this)
2007-07-01 15:45:58 +00:00
tg
cf29aa83c5
oops (quoting)
2007-06-30 22:02:50 +00:00
tg
b97fd7f401
optimise, fix quoting, modularise even more
2007-06-30 21:34:23 +00:00
tg
126eb43ab3
improve wording and remove a dead check
2007-06-30 21:01:42 +00:00
tg
1336e9f1bb
modularise, optimise, upgrade coding style(9), display nicer
2007-06-30 20:57:55 +00:00
tg
0cc45784ca
nuke $tcbo (unused)
2007-06-30 20:04:23 +00:00
tg
360c956b10
make HAVE_CPP_DD a 0/1/undef mirtoconf value like the others
...
XXX maybe generalise the logic from there and ac_testn
XXX offer the user to give list of known signal names (and NSIG? or ignore?)
2007-06-30 19:58:51 +00:00
tg
af5c570143
• bugfix – "printf %d '(1)'" is a syntax error too, enhance character class
...
• speed up – I don't worry about embedded control characters in the source,
as jupp(1) handles these just fine [http://mirbsd.de/jupp ]
2007-06-30 19:48:04 +00:00
tg
265e82757f
kludge for intel's c(rap) compiler
2007-06-23 20:51:21 +00:00
tg
4fef868b6d
solve the ugly warnings, be more consistent, allow __attribute__ to depend
...
on compiler option features, etc.
2007-06-21 16:11:37 +00:00
tg
f738b28b3b
this solves
...
| HP-UX td193 B.11.31 U ia64 2909796781 unlimited-user license
| cc: HP C/aC++ B3910B A.06.14 [Feb 22 2007]
| ld: 92453-07 linker ld HP Itanium(R) B.12.43 IPF/IPF
| Total failed: 1 (as expected)
| Total passed: 220
except for an ugly warning
2007-06-21 15:53:14 +00:00
tg
bf503a1fa0
make this build with
...
| cpp.ansi: HP92453-01 B.11.31.01 HP C Preprocessor (ANSI)
| ccom: HP92453-01 B.11.X.36086-36089-36092.GP HP C Compiler
| /usr/ccs/bin/ld: 92453-07 linker linker ld B.11.60 070209
on
| mirbsd@td191:~/mksh $ uname -a
| HP-UX td191 B.11.31 U 9000/800 3397116299 unlimited-user license
resulting in
| Total failed: 1 (as expected)
| Total passed: 220
so I suppose it's no longer experimental on HP-UX… it also works on/with
| HP-UX td192 B.11.11 U 9000/800 1839940656 unlimited-user license
| gcc version 3.4.2
| Can't locate POSIX.pm in @INC…
and
| HP-UX td192 B.11.11 U 9000/800 1839940656 unlimited-user license
| cpp.ansi: HP92453-01 B.11.X.35175-35176.GP HP C Preprocessor (ANSI)
| ccom: HP92453-01 B.11.X.36086-36089-36092.GP HP C Compiler
| /usr/ccs/bin/ld: 92453-07 linker linker ld B.11.60 070209
and
| HP-UX td176 B.11.23 U ia64 1928826293 unlimited-user license
| Reading specs from /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/specs
| Total failed: 1 (as expected)
| Total passed: 219
still work to do for HP C on IA64
2007-06-21 15:43:33 +00:00
tg
17b7a28ac8
• check.t: add some FPOSIX regression tests (1 still fails)
...
• all: remove vi editing mode #if defined(MKSH_SMALL) || defined(MKSH_NOVI)
saves 12608 byts on i386
• check.t: add $0 quoting
2007-06-15 21:55:20 +00:00
tg
f9b33dffea
from my change in debian mksh-29.6-2: if arc4random exists, use it
2007-06-10 17:06:07 +00:00
tg
eb47c62e8d
fix -xO2 to environment addition, discovered by cnuke@
2007-06-09 22:06:55 +00:00
tg
bf671f42fa
don't use __extension__, cought by sunpro on linux
2007-06-09 22:01:42 +00:00
tg
ffd63798f3
ugh… (no comment)
2007-06-06 23:25:28 +00:00
tg
dd4b823c07
oops
2007-06-06 22:03:24 +00:00
tg
799a89e9cf
remove support for $CPP, just use $CC -E (-) instead consistently
2007-06-06 21:59:38 +00:00
tg
7c76e5752d
part 1 of the icc support diff (experimental, untested)
...
icc sucks…
2007-06-06 21:56:12 +00:00
tg
5dfde5c670
first part of the Intel C Compiler (Linux) shaddap
...
| tglaser@hephaistos:~ $ /usr/local/intel/cc/9.1.042/bin/icc -V
| Intel(R) C Compiler for 32-bit applications, Version 9.1 Build 20060706Z Package ID: l_cc_c_9.1.042
this one is muuuuch too verbose IMHO, _and_ it #defines __GNUC__ (eek)
2007-06-06 21:36:29 +00:00
tg
e74e6fae7e
even if Solaris 10 still doesn't have the mdoc libraries, don't make it
...
impossible to, e.g. by setenv NROFF, create catman pages on it
2007-06-05 23:10:51 +00:00
tg
91431e4cf6
with this, we don't need the special list of pre-known signal names
...
any more either, and can make use of code sharing between detection
of sys_siglist and sys_signame (and the underscored variants); nuke
the now-useless signames.c file too (merge struct into histrap.c)
2007-06-05 21:47:49 +00:00
tg
5835e7d3aa
HAVE_PERSISTENT_HISTORY is req'd in CPPFLAGS, oops
2007-06-05 21:17:05 +00:00
tg
ae4a7272e7
even without cpp -dD scan for a number of common signal names
...
enables “kill -TERM 1” on solaris with the SUNpro 5.8 compiler
2007-06-05 21:10:52 +00:00
tg
7e4a39b11c
ignore any whitespace between preprocessor output tokens
2007-06-05 20:57:46 +00:00
tg
dbdda6f14e
sort the signals list; this has the effect to, on Solaris, prefer
...
SIGABRT to SIGIOT (good), SIGCHLD to SIGCLD (necessary and reason),
SIGIO to SIGPOLL (the former also exists on mirbsd so okay); changes
on other OSes should be monitored by porters
2007-06-05 20:18:54 +00:00
tg
7c2efd083e
shortcut
2007-06-05 20:01:26 +00:00
tg
63c31c43e3
fix for the SUNpro 8 on yofuh's E420:
...
cc: Sun C 5.8 Patch 121015-04 2007/01/10
2007-06-05 19:48:47 +00:00
tg
487eff541d
ugh, echo -n is NOT portable…
2007-06-05 19:39:20 +00:00
tg
6e1bfd6e4b
When compiling native MirOS BSD binaries with SUNpro 12 (don't look like a
...
car only slower, yes this is possible, and the resulting binary passes the
testsuite just fine), the definition of __RCSID() in <sys/cdefs.h> expands
to something with __attribute__((used)), which triggers a warning, because
__attribute__ in general is supported but the used attribute isn't. Thusly
always use our own strings and get rid of the MULTI_RCSID test (introduced
because __RCSID() on Darwin is inferiour).
Maybe we should fix <sys/cdefs.h> too? #ifdef __SUNPRO_C helps here.
2007-06-04 21:27:53 +00:00
tg
0926a6d182
remove the .o files too
2007-06-04 21:15:27 +00:00
tg
33038853cb
glibc headers with SUNpro make this test pass incorrectly
2007-06-04 20:26:47 +00:00
tg
76f015e2ab
use our includes first
2007-06-04 20:22:08 +00:00
tg
11312995b4
do not compile all files at once any more; collect .o files in $curdir rather
2007-06-04 20:14:34 +00:00
tg
f104e7c9f9
work around “a fucking bug in the fuckin' optimiser” (hi Александр)
2007-06-04 20:00:50 +00:00
tg
c55dcc364b
we don't need to check for -fno-tree-vrp any longer either
2007-06-03 17:29:29 +00:00
tg
ffa0764e19
first stage of adaption to SUNpro CC (Sun Studio 12, to be released on next
...
Monday, running under Linuxulator) ☻
2007-05-31 21:25:25 +00:00
tg
60893dd663
by packager request from gecko2, add option -Q which makes the
...
post-build a little bit more quiet
2007-05-28 13:47:09 +00:00
tg
2beb60ebf3
for R30, don't check for confstr() declaration any more
...
it was #if solaris'd in R28, and the system I have access
on does declare it now (still Solaris 8)
this can be put back if anyone complains, of course.
2007-05-24 23:07:19 +00:00
tg
49760de778
fix detection of f̲u̲n̲c̲t̲i̲o̲n̲ prototypes which, in contrast to d̲a̲t̲a̲ prototypes,
...
don't give an error if they're missing
2007-05-24 09:22:58 +00:00
tg
5f61b50a90
we only require strcasestr if setlocale() is used at the moment
2007-05-02 20:02:07 +00:00
tg
9e708d91b8
mksh R30 will no longer build a statically linked shell by default;
...
does not try, nor provide any means; user has to use LDFLAGS instead.
2007-04-30 19:50:09 +00:00
tg
8ca51f5ff3
retain Build.sh path for test.sh (e.g. if /bin/ed != /usr/xpg4/bin/ed – on
...
Solaris some tools are weird, I recommend to prefix /usr/xpg4/bin to $PATH
even for dot.mkshrc because /usr/bin/id sucks, /usr/xpg4/bin/id works…)
2007-04-30 19:18:37 +00:00
tg
8d1ede2697
do not “-fwhole-program --combine” since it at least breaks FORTIFY_SOURCE
...
on SuSE and causes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=408850
so I'll assume it's a gcc bug
thanks to Pascal “loki” Bleser (yaloki), darix, Martin Zobel-Helas, Steve
Langasek (vorlon) for tracking this bug down in two different instances
2007-04-30 19:12:18 +00:00
tg
7a775ab0cf
some wording and #if 0 cleanup
2007-04-24 10:44:58 +00:00
tg
1a0b51b697
• arc4random, arc4random_push: use our own protos to check
...
XXX u_int32_t is not ISO C99, but seems to work well enough
XXX if it fails anywhere, we'll see in the build logs
XXX apple doesn't have the standard uint32_t and API doesn't specify it
• sys_siglist_defn: rename to sys_siglist_decl as we're really checking
for the declaration in the headers; change wording to “check if … does
not need to be declared” since we don't need to declare if we don't use
• scan for arc4random, arc4random_push, confstr declarations too
• sh.h: confstr declaration is no longer #ifdef __sun__; sort
2007-04-24 10:42:02 +00:00
tg
2cf5695f69
• mention HP-UX, AIX success
...
• mention Darwin failure in R29c, fix in -current
• also clean up core dump file
• on HP-UX 11i v2, <stdint.h> requires <stdarg.h> because it pulls in
a <wchar.h> generated from gcc's fixincludes… dunno, but it works…
• HP-UX 11i v2 on ia64 only works with -mlp64; the default seems to be
-milp32 which generates SIGBUS due to misalignment (due to optimisation?)
-> in theory, HP-UX works on both PA-RISC and IA64 in R29c
-> R29c doesn't contain support for AIX or Mac OSX though…
2007-04-23 22:33:20 +00:00
tg
c3d8ca7f82
fix multi-rcsid test broken in 100462D18E37B6B8D16
2007-04-23 21:36:02 +00:00
tg
eb6e4d4bbb
fix case matching
2007-04-23 21:31:58 +00:00
tg
03488df380
clean up used files better
2007-04-23 21:15:44 +00:00
tg
c4826b28b8
possibly fix the last issue on AIX: NSIG is (63 +1)
2007-04-23 20:57:50 +00:00
tg
615a7794a6
AIX has sys_siglist[] but doesn't define it anywhere, so add a means to
...
scan for defns and use it here; bug reported by Kurt Telep
2007-04-23 20:37:16 +00:00
tg
24f650213a
according to Kurt Telep, AIX _does_ require -lcrypt, and, when using
...
it, apps are expected to export certain symbols; thanks for the help
2007-04-23 20:17:58 +00:00
tg
d38897a75d
when we're starting to talk sensible default values, begin here:
...
if $LIBS is empty (i.e. not " " or so), use "-lcrypt" on Interix
AIX seems to require some too…
2007-04-23 14:06:47 +00:00
tg
ec4dea6cfa
$ uname -a; (gcc -v) 2>&1 | tail -1; echo $KSH_VERSION
...
HP-UX td192 B.11.11 U 9000/800 1839940656 unlimited-user license
gcc version 3.4.2
@(#)MIRBSD KSH R29 2007/04/17
it apparently works, but there's no POSIX.pm, and the backspace
key acts as abort key (probably all things that can be fixed)
2007-04-23 12:13:03 +00:00
tg
4c9511e7a4
• strlcpy.c: remove superfluous rcs ids in comments
...
• Build.sh: NetBSD® gives an ignorable link-time warning in mirtoconf
• Build.sh: GNU (HURD) and GNU/kFreeBSD are no longer experimental, I think
2007-04-23 11:33:26 +00:00
tg
67addd064f
support crazy ones that still haven't gotten rid of zsh
2007-04-01 01:48:31 +00:00
tg
e867a4c669
mirtoconf for large file support vars, requested by bsiegert@
2007-03-19 22:58:19 +00:00
tg
b08848c7ff
• improve description why we use -fno-tree-vrp; this is thanks
...
to http://blog.fefe.de/?ts=bb2654d4 by the way
• simplify a.out / a.exe distinguishation
2007-03-10 19:19:12 +00:00
tg
219bc99362
check for -fno-tree-vrp (existence and if it is required to würg around a gcc 4.1.1 bug)
2007-03-10 18:51:59 +00:00
tg
95eaf0c9bb
try to add -fstack-protector-all – it's in gcc 4.1+, so why not…
2007-03-10 17:29:53 +00:00
tg
e0e432347b
Minix 3 has no S_ISSOCK (probably not even UNIX® domain sockets)
...
and lacks other things (rlimit stuff), so it won't make it today
2007-03-04 05:14:10 +00:00
tg
95632ee53b
better tr, better descr
2007-03-04 05:03:57 +00:00
tg
2e11e89d8b
• _NSIG seems to be more standard than NSIG (non-POSIX)
...
• allow off-by-one (sigmax eq NSIG not NSIG-1)
2007-03-04 04:53:06 +00:00
tg
67ff737230
some tr(1) are more weird than others
2007-03-04 04:52:28 +00:00
tg
2cbd686fc4
cppflags for Minix 3
2007-03-04 04:45:36 +00:00
tg
0a20bb8dd4
• Minix 3 doesn't have <sys/mman.h>
...
• Some OSes might need <stdint.h> for int32_t (Minix 3 with GCC)
2007-03-04 04:36:45 +00:00