Add autotools build system (static-only, C17)

configure.ac enforces C17 and Linux/x86_64, refuses in-tree configure; Makefile.am builds libc.a plus crt0.o; the driver Makefile dispatches out-of-tree builds into bin/release (-O2) and bin/debug (-O0 -g).

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
2026-08-30 04:09:45 -04:00
co-authored by Sisyphus
parent 6768ec36e7
commit 228ed097f0
4 changed files with 196 additions and 0 deletions
Executable
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
# autogen.sh — regenerate all autotools machinery.
#
# Usage: ./autogen.sh (then: make release / make debug / make bench)
#
# Never run ./configure at the repository root — use the driver Makefile
# targets instead, which configure out-of-tree into bin/{release,debug}.
set -e
cd "$(dirname "$0")"
autoreconf -i -f -v
echo
echo "autotools machinery regenerated."
echo "next: make release (bin/release/, CFLAGS='-O2')"
echo " make debug (bin/debug/, CFLAGS='-O0 -g')"
echo " make bench (benchmarks against the release build)"
echo " make check (smoke tests)"