103 lines
1.7 KiB
Bash
103 lines
1.7 KiB
Bash
#! /bin/sh
|
|
|
|
ustr='Usage: yate-config [--cflags] [--includes] [--c-all]
|
|
[--ldflags] [--libs] [--ld-all] [--ld-nostrip] [--ld-strip]
|
|
[--config] [--modules] [--share]
|
|
[--helpdir] [--scripts] [--skins]
|
|
[--version] [--release] [--archlib] [--param=...]'
|
|
if [ "$#" = 0 ]; then
|
|
echo "$ustr"
|
|
exit 0
|
|
fi
|
|
prefix="@prefix@"
|
|
exec_prefix="@exec_prefix@"
|
|
datarootdir="@datarootdir@"
|
|
shrdir="@datadir@/yate"
|
|
moddir="@libdir@/yate"
|
|
confdir="@sysconfdir@/yate"
|
|
s1="@MODULE_CPPFLAGS@"
|
|
s2="-I@includedir@/yate"
|
|
s3="@MODULE_LDFLAGS@"
|
|
s4="@MODULE_SYMBOLS@"
|
|
s5="-lyate"
|
|
|
|
while [ "$#" != 0 ]; do
|
|
case "$1" in
|
|
--version)
|
|
echo "@PACKAGE_VERSION@"
|
|
;;
|
|
--release)
|
|
echo "@PACKAGE_STATUS@@PACKAGE_RELEASE@"
|
|
;;
|
|
--cflags)
|
|
echo "$s1"
|
|
;;
|
|
--includes)
|
|
echo "$s2"
|
|
;;
|
|
--c-all)
|
|
echo "$s1 $s2"
|
|
;;
|
|
--ldflags)
|
|
echo "$s3 $s4"
|
|
;;
|
|
--libs)
|
|
echo "$s5"
|
|
;;
|
|
--ld-all)
|
|
echo "$s3 $s4 $s5"
|
|
;;
|
|
--ld-nostrip)
|
|
echo "$s3 $s5"
|
|
;;
|
|
--ld-strip)
|
|
echo "$s4"
|
|
;;
|
|
--config)
|
|
echo "$confdir"
|
|
;;
|
|
--modules)
|
|
echo "$moddir"
|
|
;;
|
|
--share)
|
|
echo "$shrdir"
|
|
;;
|
|
--helpdir)
|
|
echo "$shrdir/help"
|
|
;;
|
|
--skins)
|
|
echo "$shrdir/skins"
|
|
;;
|
|
--scripts)
|
|
echo "$shrdir/scripts"
|
|
;;
|
|
--archlib)
|
|
echo "@ARCHLIB@"
|
|
;;
|
|
--param=QT4_VER)
|
|
echo "@QT4_VER@"
|
|
;;
|
|
--param=QT4_MOC)
|
|
echo "@QT4_MOC@"
|
|
;;
|
|
--param=QT4_INC)
|
|
echo "@QT4_INC@"
|
|
;;
|
|
--param=QT4_LIB)
|
|
echo "@QT4_LIB@"
|
|
;;
|
|
--param=QT4_INC_NET)
|
|
echo "@QT4_INC_NET@"
|
|
;;
|
|
--param=QT4_LIB_NET)
|
|
echo "@QT4_LIB_NET@"
|
|
;;
|
|
*)
|
|
echo "I didn't understand: $1" >&2
|
|
echo "$ustr" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|