You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
607 B
55 lines
607 B
#!/bin/sh
|
|
|
|
usage()
|
|
{
|
|
echo "usage: $0 [OPTIONS]"
|
|
cat << EOH
|
|
|
|
options:
|
|
[--libs]
|
|
[--cflags]
|
|
[--version]
|
|
[--prefix]
|
|
EOH
|
|
exit 1;
|
|
}
|
|
|
|
prefix=@prefix@
|
|
akode_libs="`pkg-config --libs akode`"
|
|
akode_cflags="`pkg-config --cflags akode`"
|
|
|
|
flags=""
|
|
|
|
if test $# -eq 0 ; then
|
|
usage
|
|
fi
|
|
|
|
while test $# -gt 0
|
|
do
|
|
case $1 in
|
|
--libs)
|
|
flags="$flags $akode_libs"
|
|
;;
|
|
--cflags)
|
|
flags="$flags $akode_cflags"
|
|
;;
|
|
--version)
|
|
echo 2.0.2
|
|
;;
|
|
--prefix)
|
|
echo $prefix
|
|
;;
|
|
*)
|
|
echo "$0: unknown option $1"
|
|
echo
|
|
usage
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
if test -n "$flags"
|
|
then
|
|
echo $flags
|
|
fi
|