|
Packit |
2997f0 |
#!/bin/bash
|
|
Packit |
2997f0 |
#
|
|
Packit |
2997f0 |
# mklove builtin checks and options
|
|
Packit |
2997f0 |
# Sets:
|
|
Packit |
2997f0 |
# prefix, etc..
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
mkl_option "Standard" prefix "--prefix=PATH" \
|
|
Packit |
2997f0 |
"Install arch-independent files in PATH" "/usr/local"
|
|
Packit |
2997f0 |
mkl_option "Standard" exec_prefix "--exec-prefix=PATH" \
|
|
Packit |
2997f0 |
"Install arch-dependent files in PATH" "\$prefix"
|
|
Packit |
2997f0 |
mkl_option "Standard" bindir "--bindir=PATH" "User executables" "\$exec_prefix/bin"
|
|
Packit |
2997f0 |
mkl_option "Standard" sbindir "--sbindir=PATH" "System admin executables" \
|
|
Packit |
2997f0 |
"\$exec_prefix/sbin"
|
|
Packit |
2997f0 |
mkl_option "Standard" libexecdir "--libexecdir=PATH" "Program executables" \
|
|
Packit |
2997f0 |
"\$exec_prefix/libexec"
|
|
Packit |
2997f0 |
mkl_option "Standard" datadir "--datadir=PATH" "Read-only arch-independent data" \
|
|
Packit |
2997f0 |
"\$prefix/share"
|
|
Packit |
2997f0 |
mkl_option "Standard" sysconfdir "--sysconfdir=PATH" "Configuration data" \
|
|
Packit |
2997f0 |
"\$prefix/etc"
|
|
Packit |
2997f0 |
mkl_option "Standard" sharedstatedir "--sharedstatedir=PATH" \
|
|
Packit |
2997f0 |
"Modifiable arch-independent data" "\$prefix/com"
|
|
Packit |
2997f0 |
mkl_option "Standard" localstatedir "--localstatedir=PATH" \
|
|
Packit |
2997f0 |
"Modifiable local state data" "\$prefix/var"
|
|
Packit |
2997f0 |
mkl_option "Standard" libdir "--libdir=PATH" "Libraries" "\$exec_prefix/lib"
|
|
Packit |
2997f0 |
mkl_option "Standard" includedir "--includedir=PATH" "C/C++ header files" \
|
|
Packit |
2997f0 |
"\$prefix/include"
|
|
Packit |
2997f0 |
mkl_option "Standard" infodir "--infodir=PATH" "Info documentation" "\$prefix/info"
|
|
Packit |
2997f0 |
mkl_option "Standard" mandir "--mandir=PATH" "Manual pages" "\$prefix/man"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
mkl_option "Configure tool" "" "--list-modules" "List loaded mklove modules"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" "" "--list-checks" "List checks"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" env:MKL_FAILFATAL "--fail-fatal" "All failures are fatal"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" env:MKL_NOCACHE "--no-cache" "Dont use or generate config.cache"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" env:MKL_DEBUG "--debug" "Enable configure debugging"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" env:MKL_CLEAN "--clean" "Remove generated configure files"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" "" "--reconfigure" "Rerun configure with same arguments as last run"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" env:MKL_NO_DOWNLOAD "--no-download" "Disable downloads of required mklove modules"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" env:MKL_UPDATE_MODS "--update-modules" "Update modules from global repository"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" env:MKL_REPO_URL "--repo-url=URL_OR_PATH" "Override mklove modules repo URL" "$MKL_REPO_URL"
|
|
Packit |
2997f0 |
mkl_option "Configure tool" "" "--help" "Show configure usage"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
mkl_toggle_option "Compatibility" "mk:MKL_MAINT_MODE" "--enable-maintainer-mode" "Maintainer mode (no-op)"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
mkl_option "Configure tool" "mk:PROGRAM_PREFIX" "--program-prefix=PFX" "Program prefix"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
mkl_option "Compatibility" "mk:DISABL_DEP_TRACK" "--disable-dependency-tracking" "Disable dependency tracking (no-op)"
|
|
Packit |
2997f0 |
mkl_option "Compatibility" "mk:DISABL_SILENT_RULES" "--disable-silent-rules" "Verbose build output (no-op)"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
function checks {
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
if [[ ! -z $libdir ]]; then
|
|
Packit |
2997f0 |
mkl_mkvar_append "libdir" LDFLAGS "-L${libdir}"
|
|
Packit |
2997f0 |
fi
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
if [[ ! -z $includedir ]]; then
|
|
Packit |
2997f0 |
mkl_mkvar_append "includedir" CPPFLAGS "-I${includedir}"
|
|
Packit |
2997f0 |
fi
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
}
|