summaryrefslogtreecommitdiff
path: root/mcpu-config.in
diff options
context:
space:
mode:
authorkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
committerkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
commit065da3509019b15dd0e678072e6be629e5330bef (patch)
tree69c934c9e786ac048b4fbe8f4c4c5571661521f4 /mcpu-config.in
parentd130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff)
downloadlibmcpu-0.4.0.tar.xz
Version 0.4.00.4.0
Diffstat (limited to 'mcpu-config.in')
-rw-r--r--mcpu-config.in91
1 files changed, 91 insertions, 0 deletions
diff --git a/mcpu-config.in b/mcpu-config.in
new file mode 100644
index 0000000..8644eb3
--- /dev/null
+++ b/mcpu-config.in
@@ -0,0 +1,91 @@
+#!/bin/sh
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+VERSION=@VERSION@
+
+usage()
+{
+cat <<EOF
+
+ Usage : mcpu-config [OPTIONS]
+ Options :
+ [--prefix]
+ [--exec-prefix]
+ [--version]
+ [--cppflags]
+ [--cflags]
+ [--libs]
+ [--ldflags]
+
+EOF
+ exit $1
+}
+
+if test $# -eq 0; then
+ usage 1 1>&2
+fi
+
+while test $# -gt 0; do
+ case $1 in
+ --prefix)
+ echo_prefix=yes
+ ;;
+ --exec-prefix)
+ echo_exec_prefix=yes
+ ;;
+ --version)
+ echo ${VERSION}
+ ;;
+ --cppflags)
+ echo_cppflags=yes
+ ;;
+ --cflags)
+ echo_cflags=yes
+ ;;
+ --libs)
+ echo_libs=yes
+ ;;
+ --ldflags)
+ echo_ldflags=yes
+ ;;
+ *)
+ usage 1 1>&2
+ ;;
+ esac
+ shift
+done
+
+
+libmcpu_cppflags=" -I${includedir}"
+libmcpu_cflags=" -I${includedir}"
+libmcpu_ldflags=" -L${libdir}"
+libmcpu_libs=" -lmcpu"
+
+
+if test "x${echo_prefix}" = "xyes"; then
+ echo ${prefix}
+fi
+
+if test "x${echo_exec_prefix}" = "xyes"; then
+ echo ${exec_prefix}
+fi
+
+if test "x${echo_cppflags}" = "xyes"; then
+ echo ${libmcpu_cppflags}
+fi
+
+if test "x${echo_cflags}" = "xyes"; then
+ echo ${libmcpu_cflags}
+fi
+
+if test "x${echo_ldflags}" = "xyes"; then
+ echo ${libmcpu_ldflags}
+fi
+
+if test "x${echo_libs}" = "xyes"; then
+ echo ${libmcpu_libs}
+fi