There are many better alternatives: less complex or having more functionality, but I like inventing bicycles
Yes, you most probably, do not need Minmiconf
Description
(m)configure anathomy
Script maintenance variables, with names staring with "_" character
Global default variables
Function definitions:
Script maintaining functions, with names staring with "_" character, e.g., _dprintf()
Process control, conditionsl, etc functions
DETECT_*() functions: return existence/status of something
DEFINE_*() functions: set/change variable in memory, e.g., WITH_* variables
DECIDE_*() functions: decide yes/no if argument is acceptable
WRITE_*() functions: Modify Makefile or other files
User-difined functions
Processing body
Implemented functions
Maintenance functions
Function
Description
_DPRINTF
If debug mode is on print a message specified in $*
_IFDEBUG
If _DEBUG value is [yY1-9] return 0; [nN0]: 1; on error: 2. See _YN()
_SELF_CHK
Quick mandatory selfcheck
_YN
If $1 value is [yY1-9] return 0; [nN0]: 1; on error: 2
Process control functions
|EHARD/ESOFT |Define functions behavior on an error: EHARD: exit 1, ESOFT: return 1 |
|IF_NDEF_OR_IVAR|IF $1 variable is NOT defined or has $2 numeric value, return 0 otherwise return 1 |
|IN |String-in-string. Return 0 if $2 is in $1, otherwise return 1 |
Detect functions
Function
Description
DETECT_CC
Detect C-compiler; $1: Results variable; $2: Compiler candidates in addition to CC_CANDIDATES
DETECT_COMMAND
Detect $2 command existence; Results variable: $1; Return: 0 - on success, 1 if not
DETECT_PATH
Print one or all (based on $4) pathname(s) from a list $2 with permissions $3; Result in$1
DETECT_PREFIX
Forcibly sets prefix from PREFIX variable, or detects if from $2 or PREFIX_PATH_CANDIDATES
DETECT_IPATH
Similar to DETECT_PATH(), detects valid include path(s) from a list
DETECT_LPATH
Similar to DETECT_PATH(), detects valid library path(s) from a list
DETECT_LIBRARY
Detect library with name $2 exists using $3 path(s) list as hints; Result in$1
DETECT_TARGET
Detect target triplet: machine-vendor-os; Result in$1
DETECT_USER
Detect current username; Respects USER and WITH_USER variables; $1: Results variable