https://github.com/kristapsdz/oconfigure
configuration script for portable, OpenBSD-oriented systems
https://github.com/kristapsdz/oconfigure
c compatibility configuration openbsd portable
Last synced: 10 days ago
JSON representation
configuration script for portable, OpenBSD-oriented systems
- Host: GitHub
- URL: https://github.com/kristapsdz/oconfigure
- Owner: kristapsdz
- License: isc
- Created: 2017-06-30T08:24:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-31T06:05:26.000Z (12 months ago)
- Last Synced: 2025-03-31T06:27:21.955Z (12 months ago)
- Topics: c, compatibility, configuration, openbsd, portable
- Language: C
- Homepage:
- Size: 946 KB
- Stars: 49
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Synopsis
This is a configuration system for writing portable C systems
with [OpenBSD](https://www.openbsd.org)-compatible features and functions.
To use:
1. copy
[configure](https://raw.githubusercontent.com/kristapsdz/oconfigure/master/configure),
[compats.c](https://raw.githubusercontent.com/kristapsdz/oconfigure/master/compats.c),
and
[tests.c](https://raw.githubusercontent.com/kristapsdz/oconfigure/master/tests.c)
into your source tree, or grab files from a cloned repository or
downloaded release
2. run `./configure` to create *Makefile.configure* and *config.h*
3. `include Makefile.configure` at the top of your Makefile (BSD or GNU
make) and add *compats.c* to be linked into your binary or library
4. reference compatibility functions by adding `#include "config.h"` as
the first inclusion in your sources
See the [main website](https://kristaps.bsd.lv/oconfigure) for details.