diff options
Diffstat (limited to 'mcpu-config.in')
| -rw-r--r-- | mcpu-config.in | 91 |
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 |
