oksh-noxz

[fork] Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).
git clone https://noxz.tech/git/oksh-noxz.git
oksh-noxz

commit: d479454c901181b1f4114b9876dd38c523cdd7d9
parent: 446bd9583794d7ffbfb593cfa9b3788dfb1be514
author: Brian Callahan <bcallah@openbsd.org>
date:   Sun, 14 Feb 2021 22:40:07 -0500
Add more compilers to check in configure.
CompCert on OpenBSD requires extra flags. Detect and add.
MCVS/Entries60++++++++++----------
ACVS/Entries.Log2+
Mconfigure8++-
3 files changed, 39 insertions(+), 31 deletions(-)
diff --git a/CVS/Entries b/CVS/Entries
@@ -13,34 +13,34 @@
 /eval.c/1.66/Result of merge//
 /misc.c/1.76/Result of merge//
 /vi.c/1.57/Sat Oct 31 00:41:35 2020//
-/CONTRIBUTORS/1.11/Sun Nov  1 14:26:15 2020//
-/LEGAL/1.2/Sun Nov  1 14:26:15 2020//
-/Makefile/1.39/Sun Nov  1 15:42:33 2020//
-/NOTES/1.16/Sun Nov  1 14:26:15 2020//
-/PROJECTS/1.9/Sun Nov  1 14:26:15 2020//
-/README/1.16/Sun Nov  1 15:42:33 2020//
-/alloc.c/1.19/Sun Nov  1 14:26:15 2020//
-/c_ksh.c/1.62/Sun Nov  1 14:26:15 2020//
-/c_sh.c/1.64/Sun Nov  1 14:26:15 2020//
-/c_test.h/1.4/Sun Nov  1 14:26:15 2020//
-/c_ulimit.c/1.29/Sun Nov  1 14:26:15 2020//
-/edit.h/1.12/Sun Nov  1 14:26:15 2020//
-/expand.h/1.15/Sun Nov  1 14:26:15 2020//
-/expr.c/1.34/Sun Nov  1 14:26:15 2020//
-/jobs.c/1.62/Sun Nov  1 14:26:15 2020//
-/ksh.1/1.210/Sun Nov  1 14:26:15 2020//
-/lex.c/1.78/Sun Nov  1 14:26:15 2020//
-/lex.h/1.21/Sun Nov  1 14:26:15 2020//
-/mail.c/1.27/Sun Nov  1 14:26:15 2020//
-/path.c/1.23/Sun Nov  1 14:26:15 2020//
-/sh.1/1.152/Sun Nov  1 14:26:15 2020//
-/shf.c/1.34/Sun Nov  1 14:26:15 2020//
-/shf.h/1.8/Sun Nov  1 14:26:15 2020//
-/syn.c/1.39/Sun Nov  1 14:26:15 2020//
-/table.c/1.25/Sun Nov  1 14:26:15 2020//
-/table.h/1.15/Sun Nov  1 14:26:15 2020//
-/tree.c/1.34/Sun Nov  1 14:26:15 2020//
-/tree.h/1.12/Sun Nov  1 14:26:15 2020//
-/tty.h/1.6/Sun Nov  1 14:26:15 2020//
-/version.c/1.12/Sun Nov  1 14:26:15 2020//
+/CONTRIBUTORS/1.11/Wed Feb 10 02:59:56 2021//
+/LEGAL/1.2/Wed Feb 10 02:59:56 2021//
+/Makefile/1.39/Wed Feb 10 03:00:14 2021//
+/NOTES/1.16/Wed Feb 10 02:59:56 2021//
+/PROJECTS/1.9/Wed Feb 10 02:59:56 2021//
+/README/1.16/Wed Feb 10 03:00:14 2021//
+/alloc.c/1.19/Wed Feb 10 02:59:56 2021//
+/c_ksh.c/1.62/Wed Feb 10 02:59:56 2021//
+/c_sh.c/1.64/Wed Feb 10 02:59:56 2021//
+/c_test.h/1.4/Wed Feb 10 02:59:56 2021//
+/c_ulimit.c/1.29/Wed Feb 10 02:59:56 2021//
+/edit.h/1.12/Wed Feb 10 02:59:56 2021//
+/expand.h/1.15/Wed Feb 10 02:59:56 2021//
+/expr.c/1.34/Wed Feb 10 02:59:56 2021//
+/jobs.c/1.62/Wed Feb 10 02:59:56 2021//
+/ksh.1/1.210/Wed Feb 10 02:59:56 2021//
+/lex.c/1.78/Wed Feb 10 02:59:56 2021//
+/lex.h/1.21/Wed Feb 10 02:59:56 2021//
+/mail.c/1.27/Wed Feb 10 02:59:56 2021//
+/path.c/1.23/Wed Feb 10 02:59:56 2021//
+/sh.1/1.152/Wed Feb 10 02:59:56 2021//
+/shf.c/1.34/Wed Feb 10 02:59:56 2021//
+/shf.h/1.8/Wed Feb 10 02:59:56 2021//
+/syn.c/1.39/Wed Feb 10 02:59:56 2021//
+/table.c/1.25/Wed Feb 10 02:59:56 2021//
+/table.h/1.15/Wed Feb 10 02:59:56 2021//
+/tree.c/1.34/Wed Feb 10 02:59:56 2021//
+/tree.h/1.12/Wed Feb 10 02:59:56 2021//
+/tty.h/1.6/Wed Feb 10 02:59:56 2021//
+/version.c/1.12/Wed Feb 10 02:59:56 2021//
 D
diff --git a/CVS/Entries.Log b/CVS/Entries.Log
@@ -0,0 +1,2 @@
+A D/tests////
+R D/tests////
diff --git a/configure b/configure
@@ -154,7 +154,7 @@ EOF
     fi
   fi
 
-  for compiler in cc clang pcc xlc gcc ; do
+  for compiler in cc clang pcc tcc lacc cparser ccomp xlc gcc ; do
 cat << EOF > conftest.c
 int main(void){return 0;}
 EOF
@@ -969,6 +969,12 @@ case "x$os" in
   "xNetBSD")
     cflags="$cflags -D_OPENBSD_SOURCE"
     ;;
+  "xOpenBSD")
+    if [ "x$cc" = "xccomp" ] ; then
+      cflags="$cflags -D_ANSI_LIBRARY"
+      ldflags="$ldflags -Wl,-nopie"
+    fi
+    ;;
   "xAIX"|"xOS400")
     cflags="$cflags -D_ALL_SOURCE"
     ldflags="-lbsd"