/usr/bin/xeno-config is in libxenomai-dev 2.6.3-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | #! /bin/sh
staging=${DESTDIR}
prefix="/usr"
exec_prefix="${prefix}"
libdir="${exec_prefix}/lib"
datarootdir="${prefix}/share"
datadir="${datarootdir}"
pkgdatadir="${datadir}/xenomai"
includedir="/usr/include/xenomai"
XENO_VERSION="2.6.3"
XENO_PREFIX="${staging}${prefix}"
XENO_CC="gcc"
XENO_TARGET_ARCH="x86"
XENO_BASE_CFLAGS="-I${staging}${includedir} -D_GNU_SOURCE -D_REENTRANT -D__XENO__"
XENO_BASE_LDFLAGS="-L${staging}${libdir} -lxenomai -lpthread -lrt "
XENO_POSIX_LDFLAGS="-L${staging}${libdir} -lpthread_rt -lxenomai -lpthread -lrt "
XENO_POSIX_WRAPPERS="${staging}${libdir}/posix.wrappers"
XENO_POSIX_FAST_WRAPPING="yes"
XENO_LIBRARY_DIR="${staging}${libdir}"
XENO_INCLUDE_DIR="${staging}${includedir}"
unset prefix exec_prefix libdir datadir datarootdir pkgdatadir includedir
posix_ldflags ()
{
if test \! -r $XENO_POSIX_WRAPPERS; then
echo "POSIX support is not available" >&2
exit 1
fi
if test "$XENO_POSIX_FAST_WRAPPING" = "yes"; then
echo -n "-Wl,@$XENO_POSIX_WRAPPERS $XENO_POSIX_LDFLAGS"
else
wrappers=`while read wrap_option symbol; do \
echo -n "-Wl,$wrap_option,$symbol " ; \
done < $XENO_POSIX_WRAPPERS`
echo -n "$wrappers $XENO_POSIX_LDFLAGS"
fi
}
usage ()
{
cat <<EOF
Usage xeno-config --skin=skinname OPTIONS
Options :
--help
--v,--verbose
--version
--cc
--arch
--prefix
--skin native|posix|psos|rtdm|uitron|vrtx|vxworks
--cflags
--ldflags
--lib*-dir,--libdir,--user-libdir
Deprecated options:
--xeno-cflags
--xeno-ldflags
--posix-cflags
--posix-ldflags
EOF
exit $1
}
verbose ()
{
echo xeno-config --verbose
echo " --version=\"${XENO_VERSION}\""
echo " --cc=\"$XENO_CC\""
echo " --arch=\"$XENO_TARGET_ARCH\""
echo " --prefix=\"$XENO_PREFIX\""
echo " --xeno-cflags=\"$XENO_BASE_CFLAGS\""
echo " --xeno-ldflags=\"$XENO_BASE_LDFLAGS\""
echo " --posix-cflags=\"$XENO_POSIX_CFLAGS\""
echo " --posix-ldflags=\"`posix_ldflags`\""
echo " --library-dir=\"$XENO_LIBRARY_DIR\""
}
if test $# -eq 0; then
verbose $*
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
--v|--verbose)
verbose $*
exit 0
;;
--version)
echo ${XENO_VERSION}
;;
--cc)
echo $XENO_CC
;;
--arch)
echo $XENO_TARGET_ARCH
;;
--prefix)
echo $XENO_PREFIX
;;
--lib*-dir|--libdir|--user-libdir)
echo $XENO_LIBRARY_DIR
;;
--skin)
skin="$2"
shift
;;
--skin=*)
skin=`expr "$1" : '--skin=\(.*\)'`
;;
--cflags)
case "$skin" in
native|rtdm)
echo $XENO_BASE_CFLAGS
;;
psos|psos+|posix|uitron|vrtx|vxworks)
if [ "x$skin" = "xpsos" ]; then
skin="psos+"
fi
echo $XENO_BASE_CFLAGS -I$XENO_INCLUDE_DIR/$skin
;;
"")
echo skin not set, please pass --skin before --cflags 1>&2
exit 1
;;
*)
echo skin $skin unknown 1>&2
exit 1
;;
esac
;;
--ldflags)
case "$skin" in
posix)
posix_ldflags
echo
;;
native|psos|psos+|rtdm|uitron|vrtx|vxworks)
if [ "x$skin" = "xpsos+" ]; then
skin="psos"
fi
echo -l$skin $XENO_BASE_LDFLAGS
;;
"")
echo skin not set, please pass --skin before --cflags 1>&2
exit 1
;;
*)
echo skin $skin unknown 1>&2
exit 1
;;
esac
;;
--xeno-cflags)
echo "$1" is deprecated, use --skin=name --cflags instead 1>&2
echo $XENO_BASE_CFLAGS
;;
--xeno-ldflags)
echo "$1" is deprecated, use --skin=name --ldflags instead 1>&2
echo $XENO_BASE_LDFLAGS
;;
--posix-cflags)
echo "$1" is deprecated, use --skin=posix --cflags instead 1>&2
echo $XENO_BASE_CFLAGS -I$XENO_INCLUDE_DIR/posix
;;
--posix-ldflags)
echo "$1" is deprecated, use --skin=posix --ldflags instead 1>&2
posix_ldflags
echo
;;
--help)
usage 0 1>&2
;;
*)
usage 1 1>&2
;;
esac
shift
done
|