summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-10-31 18:02:40 -0400
committermidipix <writeonce@midipix.org>2015-10-31 18:02:40 -0400
commit8d38abc054d048f89dadd92c993d2febafeece8e (patch)
treec5d08a4144e257183d65f96fe00bd12a2cb16d85
parent12e9b94fdf448938cf24678a64312428d356b05b (diff)
downloaddalist-8d38abc054d048f89dadd92c993d2febafeece8e.tar.bz2
dalist-8d38abc054d048f89dadd92c993d2febafeece8e.tar.xz
build system: configure: usage(): initial documentation.
-rw-r--r--config.usage77
-rwxr-xr-xconfigure6
2 files changed, 83 insertions, 0 deletions
diff --git a/config.usage b/config.usage
new file mode 100644
index 0000000..2175510
--- /dev/null
+++ b/config.usage
@@ -0,0 +1,77 @@
+configure: a skinny configuration script.
+
+supported switches:
+-------------------
+ --help
+
+ --prefix
+ --bindir
+ --libdir
+ --includedir
+ --syslibdir
+ --mandir
+ --libexecdir
+
+ --build
+ --host
+ --target
+ --arch
+ --toolchain
+ --sysroot
+ --cross-compile
+ --shell
+ --debug
+
+
+supported variables:
+--------------------
+ PREFIX
+ BINDIR
+ LIBDIR
+ INCLUDEDIR
+ LIBDIR
+ MANDIR
+ DOCDIR
+ LIBEXECDIR
+
+ CC
+ CPP
+ CXX
+
+ BUILD
+ HOST
+ TARGET
+ ARCH
+ TOOLCHAIN
+ SYSROOT
+ CROSS_COMPILE
+ SHELL
+
+ CFLAGS
+ CFLAGS_DEBUG
+ CFLAGS_COMMON
+ CFLAGS_CMDLINE
+ CFLAGS_CONFIG
+ CFLAGS_SYSROOT
+ CFLAGS_PATH
+
+ LDFLAGS
+ LDFLAGS_DEBUG
+ LDFLAGS_COMMON
+ LDFLAGS_CMDLINE
+ LDFLAGS_CONFIG
+ LDFLAGS_SYSROOT
+ LDFLAGS_PATH
+
+ PE_SUBSYSTEM
+ PE_IMAGE_BASE
+ PE_CONFIG_DEFS
+
+ ELF_EH_FRAME
+ ELF_HASH_STYLE
+ ELF_CONFIG_DEFS
+
+ NATIVE_CC
+ NATIVE_OS
+ NATIVE_OS_BITS
+ NATIVE_OS_UNDERSCORE
diff --git a/configure b/configure
index 7139ece..a21df9e 100755
--- a/configure
+++ b/configure
@@ -5,6 +5,12 @@
# as well as both LDFLAGS and LDFLAGS_CMDLINE, however
# the latter variable of each pair should be preferred.
+usage()
+{
+ cat config.usage
+ exit $?
+}
+
error_msg()
{
echo $@ >&2